File Coverage

lib/Google/Ads/AdWords/v201702/Proximity.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::Proximity;
2 1     1   2216 use strict;
  1         3  
  1         26  
3 1     1   4 use warnings;
  1         3  
  1         90  
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         3  
  1         133  
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 %geoPoint_of :ATTR(:get);
29             my %radiusDistanceUnits_of :ATTR(:get);
30             my %radiusInUnits_of :ATTR(:get);
31             my %address_of :ATTR(:get
);
32              
33             __PACKAGE__->_factory(
34             [ qw( id
35             type
36             Criterion__Type
37             geoPoint
38             radiusDistanceUnits
39             radiusInUnits
40             address
41              
42             ) ],
43             {
44             'id' => \%id_of,
45             'type' => \%type_of,
46             'Criterion__Type' => \%Criterion__Type_of,
47             'geoPoint' => \%geoPoint_of,
48             'radiusDistanceUnits' => \%radiusDistanceUnits_of,
49             'radiusInUnits' => \%radiusInUnits_of,
50             'address' => \%address_of,
51             },
52             {
53             'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
54             'type' => 'Google::Ads::AdWords::v201702::Criterion::Type',
55             'Criterion__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
56             'geoPoint' => 'Google::Ads::AdWords::v201702::GeoPoint',
57             'radiusDistanceUnits' => 'Google::Ads::AdWords::v201702::Proximity::DistanceUnits',
58             'radiusInUnits' => 'SOAP::WSDL::XSD::Typelib::Builtin::double',
59             'address' => 'Google::Ads::AdWords::v201702::Address',
60             },
61             {
62              
63             'id' => 'id',
64             'type' => 'type',
65             'Criterion__Type' => 'Criterion.Type',
66             'geoPoint' => 'geoPoint',
67             'radiusDistanceUnits' => 'radiusDistanceUnits',
68             'radiusInUnits' => 'radiusInUnits',
69             'address' => 'address',
70             }
71             );
72              
73             } # end BLOCK
74              
75              
76              
77              
78              
79              
80              
81             1;
82              
83              
84             =pod
85              
86             =head1 NAME
87              
88             Google::Ads::AdWords::v201702::Proximity
89              
90             =head1 DESCRIPTION
91              
92             Perl data type class for the XML Schema defined complexType
93             Proximity from the namespace https://adwords.google.com/api/adwords/cm/v201702.
94              
95             Represents a Proximity Criterion. A proximity is an area within a certain radius of a point with the center point being described by a lat/long pair. The caller may also alternatively provide address fields which will be geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not used for calculating the lat/long to target.

A criterion of this type is only targetable. This is enabled for AdX.

96              
97              
98              
99              
100             =head2 PROPERTIES
101              
102             The following properties may be accessed using get_PROPERTY / set_PROPERTY
103             methods:
104              
105             =over
106              
107             =item * geoPoint
108              
109              
110             =item * radiusDistanceUnits
111              
112              
113             =item * radiusInUnits
114              
115              
116             =item * address
117              
118              
119              
120              
121             =back
122              
123              
124             =head1 METHODS
125              
126             =head2 new
127              
128             Constructor. The following data structure may be passed to new():
129              
130              
131              
132              
133              
134              
135             =head1 AUTHOR
136              
137             Generated by SOAP::WSDL
138              
139             =cut
140