File Coverage

lib/Google/Ads/AdWords/v201702/LocationGroups.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::v201702::LocationGroups;
2 1     1   624 use strict;
  1         2  
  1         28  
3 1     1   5 use warnings;
  1         1  
  1         85  
4              
5              
6             __PACKAGE__->_set_element_form_qualified(1);
7              
8 0     0     sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201702' };
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   5 use base qw(Google::Ads::AdWords::v201702::Criterion);
  1         2  
  1         120  
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 %id_of :ATTR(:get);
26             my %type_of :ATTR(:get);
27             my %Criterion__Type_of :ATTR(:get);
28             my %feedId_of :ATTR(:get);
29             my %matchingFunction_of :ATTR(:get);
30              
31             __PACKAGE__->_factory(
32             [ qw( id
33             type
34             Criterion__Type
35             feedId
36             matchingFunction
37              
38             ) ],
39             {
40             'id' => \%id_of,
41             'type' => \%type_of,
42             'Criterion__Type' => \%Criterion__Type_of,
43             'feedId' => \%feedId_of,
44             'matchingFunction' => \%matchingFunction_of,
45             },
46             {
47             'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
48             'type' => 'Google::Ads::AdWords::v201702::Criterion::Type',
49             'Criterion__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
50             'feedId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
51             'matchingFunction' => 'Google::Ads::AdWords::v201702::Function',
52             },
53             {
54              
55             'id' => 'id',
56             'type' => 'type',
57             'Criterion__Type' => 'Criterion.Type',
58             'feedId' => 'feedId',
59             'matchingFunction' => 'matchingFunction',
60             }
61             );
62              
63             } # end BLOCK
64              
65              
66              
67              
68              
69              
70              
71             1;
72              
73              
74             =pod
75              
76             =head1 NAME
77              
78             Google::Ads::AdWords::v201702::LocationGroups
79              
80             =head1 DESCRIPTION
81              
82             Perl data type class for the XML Schema defined complexType
83             LocationGroups from the namespace https://adwords.google.com/api/adwords/cm/v201702.
84              
85             Represents a criterion containing a function that when evaluated specifies how to target based on the type of the location. These "location groups" are custom, dynamic bundles of locations (for instance "High income areas in California" or "Airports in France").

Examples:

For income demographic targeting, we need to specify the income tier and the geo which it targets. Areas in California that are in the top national income tier can be represented by:
 Function function = new Function(); function.setLhsOperand(Arrays.asList( (Operand) new IncomeOperand(IncomeTier.TIER_1)); function.setOperator(Operator.AND); function.setRhsOperand(Arrays.asList( (Operand) new GeoTargetOperand(Lists.newArrayList(new CriterionId(21137L)))); 
For place of interest targeting, we need to specify the place of interest category and the geo which it targets. Airports in France can be represented by:
 Function function = new Function(); function.setLhsOperand(Arrays.asList( (Operand) new PlacesOfInterestOperand(PlacesOfInterestOperand.Category.AIRPORT)); function.setOperator(Operator.AND); function.setRhsOperand(Arrays.asList( (Operand) new GeoTargetOperand(Lists.newArrayList(new CriterionId(2250L)))); 

NOTE: Starting v201607 places of interest targeting is read only.

NOTE: Starting v201702 income targeting is read only.

This is disabled for AdX when it is contained within Operators: ADD, SET.
86              
87              
88              
89              
90             =head2 PROPERTIES
91              
92             The following properties may be accessed using get_PROPERTY / set_PROPERTY
93             methods:
94              
95             =over
96              
97             =item * feedId
98              
99              
100             =item * matchingFunction
101              
102              
103              
104              
105             =back
106              
107              
108             =head1 METHODS
109              
110             =head2 new
111              
112             Constructor. The following data structure may be passed to new():
113              
114              
115              
116              
117              
118              
119             =head1 AUTHOR
120              
121             Generated by SOAP::WSDL
122              
123             =cut
124