blib/lib/Google/Ads/AdWords/v201402/LocationGroups.pm untested

filter: Statementstmt 0.0% 0 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 41 CC 1 SCAR 6.9
CC
1
Cov
0%
get_xmlns
2.0
__get_attr_class
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Ads::AdWords::v201402::LocationGroups;
2 use strict;
3 use warnings;
4  
5  
6 __PACKAGE__->_set_element_form_qualified(1);
7  
8 sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201402' };
9  
10 our $XML_ATTRIBUTE_CLASS;
11 undef $XML_ATTRIBUTE_CLASS;
12  
13 sub __get_attr_class {
14 return $XML_ATTRIBUTE_CLASS;
15 }
16  
17  
18 use base qw(Google::Ads::AdWords::v201402::Criterion);
19 # Variety: sequence
20 use Class::Std::Fast::Storable constructor => 'none';
21 use base qw(Google::Ads::SOAP::Typelib::ComplexType);
22  
23 Class::Std::initialize();
24  
25 { # BLOCK to scope variables
26  
27 my %id_of :ATTR(:get<id>);
28 my %type_of :ATTR(:get<type>);
29 my %Criterion__Type_of :ATTR(:get<Criterion__Type>);
30 my %matchingFunction_of :ATTR(:get<matchingFunction>);
31  
32 __PACKAGE__->_factory(
33 [ qw( id
34 type
35 Criterion__Type
36 matchingFunction
37  
38 ) ],
39 {
40 'id' => \%id_of,
41 'type' => \%type_of,
42 'Criterion__Type' => \%Criterion__Type_of,
43 'matchingFunction' => \%matchingFunction_of,
44 },
45 {
46 'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
47 'type' => 'Google::Ads::AdWords::v201402::Criterion::Type',
48 'Criterion__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
49 'matchingFunction' => 'Google::Ads::AdWords::v201402::Function',
50 },
51 {
52  
53 'id' => 'id',
54 'type' => 'type',
55 'Criterion__Type' => 'Criterion.Type',
56 'matchingFunction' => 'matchingFunction',
57 }
58 );
59  
60 } # end BLOCK
61  
62  
63  
64  
65  
66  
67  
68 1;
69  
70  
71 =pod
72  
73 =head1 NAME
74  
75 Google::Ads::AdWords::v201402::LocationGroups
76  
77 =head1 DESCRIPTION
78  
79 Perl data type class for the XML Schema defined complexType
80 LocationGroups from the namespace https://adwords.google.com/api/adwords/cm/v201402.
81  
82 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> <span class="constraint AdxEnabled">This is disabled for AdX when it is contained within Operators: ADD, SET.</span>
83  
84  
85  
86  
87 =head2 PROPERTIES
88  
89 The following properties may be accessed using get_PROPERTY / set_PROPERTY
90 methods:
91  
92 =over
93  
94 =item * matchingFunction
95  
96  
97  
98  
99 =back
100  
101  
102 =head1 METHODS
103  
104 =head2 new
105  
106 Constructor. The following data structure may be passed to new():
107  
108  
109  
110  
111  
112  
113 =head1 AUTHOR
114  
115 Generated by SOAP::WSDL
116  
117 =cut
118