File Coverage

lib/Google/Ads/AdWords/v201710/LocationSearchParameter.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 5 60.0
pod n/a
total 12 16 75.0


line stmt bran cond sub pod time code
1             package Google::Ads::AdWords::v201710::LocationSearchParameter;
2 1     1   2000 use strict;
  1         3  
  1         42  
3 1     1   5 use warnings;
  1         1  
  1         93  
4              
5              
6             __PACKAGE__->_set_element_form_qualified(1);
7              
8 0     0     sub get_xmlns { 'https://adwords.google.com/api/adwords/o/v201710' };
9              
10             our $XML_ATTRIBUTE_CLASS;
11             undef $XML_ATTRIBUTE_CLASS;
12              
13             sub __get_attr_class {
14 0     0     return $XML_ATTRIBUTE_CLASS;
15             }
16              
17              
18 1     1   9 use base qw(Google::Ads::AdWords::v201710::SearchParameter);
  1         3  
  1         116  
19             # Variety: sequence
20             use Class::Std::Fast::Storable constructor => 'none';
21             use base qw(Google::Ads::SOAP::Typelib::ComplexType);
22              
23             { # BLOCK to scope variables
24              
25             my %SearchParameter__Type_of :ATTR(:get);
26             my %locations_of :ATTR(:get);
27              
28             __PACKAGE__->_factory(
29             [ qw( SearchParameter__Type
30             locations
31              
32             ) ],
33             {
34             'SearchParameter__Type' => \%SearchParameter__Type_of,
35             'locations' => \%locations_of,
36             },
37             {
38             'SearchParameter__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
39             'locations' => 'Google::Ads::AdWords::v201710::Location',
40             },
41             {
42              
43             'SearchParameter__Type' => 'SearchParameter.Type',
44             'locations' => 'locations',
45             }
46             );
47              
48             } # end BLOCK
49              
50              
51              
52              
53              
54              
55              
56             1;
57              
58              
59             =pod
60              
61             =head1 NAME
62              
63             Google::Ads::AdWords::v201710::LocationSearchParameter
64              
65             =head1 DESCRIPTION
66              
67             Perl data type class for the XML Schema defined complexType
68             LocationSearchParameter from the namespace https://adwords.google.com/api/adwords/o/v201710.
69              
70             A {@link SearchParameter} used to indicate the locations being targeted. This can be used, for example, to search for {@code KEYWORD} {@link IdeaType}s that are best for Japan and Los Angeles.

This parameter replaces the {@code CountryTargetSearchParameter}.

See the Geographical Targeting page for the complete list of supported geo target types for this service.

The service allows up to 10 locations to be targeted for KEYWORD requests and 50 locations for PLACEMENT requests.

This element is supported by following {@link IdeaType}s: KEYWORD.

This element is supported by following {@link RequestType}s: IDEAS, STATS.

71              
72              
73              
74              
75             =head2 PROPERTIES
76              
77             The following properties may be accessed using get_PROPERTY / set_PROPERTY
78             methods:
79              
80             =over
81              
82             =item * locations
83              
84              
85              
86              
87             =back
88              
89              
90             =head1 METHODS
91              
92             =head2 new
93              
94             Constructor. The following data structure may be passed to new():
95              
96              
97              
98              
99              
100              
101             =head1 AUTHOR
102              
103             Generated by SOAP::WSDL
104              
105             =cut
106