lib/Google/Ads/AdWords/v201809/LocationGroups.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod n/a totaltotal 75.0% 12 / 16 CC 1 SCAR 3.4
CC
1
Cov
82%
get_xmlns
2.0
__get_attr_class
2.0
BEGIN
1.0
CRAP 1.4
« lib/Google/Ads/AdWords/v201809/LocationExtensionOperand.pm ↑ Summary lib/Google/Ads/AdWords/v201809/LocationSearchParameter.pm »
1 package Google::Ads::AdWords::v201809::LocationGroups;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5  
6 __PACKAGE__->_set_element_form_qualified(1);
7  
8 0 ▶sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201809' };
Subroutine get_xmlns: not called CC=1 SCAR=6.9
9  
10 our $XML_ATTRIBUTE_CLASS;
11 undef $XML_ATTRIBUTE_CLASS;
12  
13 0 ▶sub __get_attr_class {
Subroutine __get_attr_class: not called CC=1 SCAR=6.9
14 0 return $XML_ATTRIBUTE_CLASS;
15 }
16  
17  
18 1 ▶use base qw(Google::Ads::AdWords::v201809::Criterion);
Subroutine BEGIN: called CC=1 SCAR=0.0
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<id>);
26 my %type_of :ATTR(:get<type>);
27 my %Criterion__Type_of :ATTR(:get<Criterion__Type>);
28 my %feedId_of :ATTR(:get<feedId>);
29 my %matchingFunction_of :ATTR(:get<matchingFunction>);
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::v201809::Criterion::Type',
49 'Criterion__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
50 'feedId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
51 'matchingFunction' => 'Google::Ads::AdWords::v201809::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::v201809::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/v201809.
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"). <p>Examples:</p> 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: <pre><code> 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)))); </code></pre> 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: <pre><code> 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)))); </code></pre> <p>NOTE: Places of interest and income targeting are read only. </p> <span class="constraint AdxEnabled">This is disabled for AdX when it is contained within Operators: ADD, SET.</span>
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  
« lib/Google/Ads/AdWords/v201809/LocationExtensionOperand.pm ↑ Summary lib/Google/Ads/AdWords/v201809/LocationSearchParameter.pm »