File Coverage

lib/Google/Ads/AdWords/v201710/GeoTargetTypeSetting.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::GeoTargetTypeSetting;
2 1     1   1954 use strict;
  1         4  
  1         39  
3 1     1   7 use warnings;
  1         2  
  1         86  
4              
5              
6             __PACKAGE__->_set_element_form_qualified(1);
7              
8 0     0     sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/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   6 use base qw(Google::Ads::AdWords::v201710::Setting);
  1         2  
  1         99  
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 %Setting__Type_of :ATTR(:get);
26             my %positiveGeoTargetType_of :ATTR(:get);
27             my %negativeGeoTargetType_of :ATTR(:get);
28              
29             __PACKAGE__->_factory(
30             [ qw( Setting__Type
31             positiveGeoTargetType
32             negativeGeoTargetType
33              
34             ) ],
35             {
36             'Setting__Type' => \%Setting__Type_of,
37             'positiveGeoTargetType' => \%positiveGeoTargetType_of,
38             'negativeGeoTargetType' => \%negativeGeoTargetType_of,
39             },
40             {
41             'Setting__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
42             'positiveGeoTargetType' => 'Google::Ads::AdWords::v201710::GeoTargetTypeSetting::PositiveGeoTargetType',
43             'negativeGeoTargetType' => 'Google::Ads::AdWords::v201710::GeoTargetTypeSetting::NegativeGeoTargetType',
44             },
45             {
46              
47             'Setting__Type' => 'Setting.Type',
48             'positiveGeoTargetType' => 'positiveGeoTargetType',
49             'negativeGeoTargetType' => 'negativeGeoTargetType',
50             }
51             );
52              
53             } # end BLOCK
54              
55              
56              
57              
58              
59              
60              
61             1;
62              
63              
64             =pod
65              
66             =head1 NAME
67              
68             Google::Ads::AdWords::v201710::GeoTargetTypeSetting
69              
70             =head1 DESCRIPTION
71              
72             Perl data type class for the XML Schema defined complexType
73             GeoTargetTypeSetting from the namespace https://adwords.google.com/api/adwords/cm/v201710.
74              
75             Represents a collection of settings related to ads geotargeting.

AdWords ads can be geotargeted using Location of Presence (LOP), Area of Interest (AOI), or both. LOP is the physical location of the user performing the search; AOI is the geographical region in which the searcher is interested. For example, if a user in New York City performs a search "hotels california", their LOP is New York City and their AOI is California.

Additionally, ads can be positively or negatively geotargeted. An ad that is positively geotargeted to New York City only appears to users whose location is related (via AOI or LOP) to New York City. An ad that is negatively geotargeted to New York City appears for all users except those whose location is related to New York City. Ads can only be negatively geotargeted if a positive geotargeting is also supplied, and the negatively geotargeted region must be contained within the positive region.

Geotargeting settings allow ads to be targeted in the following way:

  • Positively geotargeted using solely AOI, solely LOP, or either.
  • Negatively geotargeted using solely LOP, or both.

This setting applies only to ads shown on the search network, and does not affect ads shown on the Google Display Network.

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