File Coverage

lib/Google/Ads/AdWords/v201708/ExpandedDynamicSearchAd.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::v201708::ExpandedDynamicSearchAd;
2 1     1   11665 use strict;
  1         3  
  1         33  
3 1     1   5 use warnings;
  1         3  
  1         112  
4              
5              
6             __PACKAGE__->_set_element_form_qualified(1);
7              
8 0     0     sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201708' };
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::v201708::Ad);
  1         1  
  1         280  
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 %url_of :ATTR(:get);
27             my %displayUrl_of :ATTR(:get);
28             my %finalUrls_of :ATTR(:get);
29             my %finalMobileUrls_of :ATTR(:get);
30             my %finalAppUrls_of :ATTR(:get);
31             my %trackingUrlTemplate_of :ATTR(:get);
32             my %urlCustomParameters_of :ATTR(:get);
33             my %urlData_of :ATTR(:get);
34             my %type_of :ATTR(:get);
35             my %devicePreference_of :ATTR(:get);
36             my %Ad__Type_of :ATTR(:get);
37             my %description_of :ATTR(:get);
38              
39             __PACKAGE__->_factory(
40             [ qw( id
41             url
42             displayUrl
43             finalUrls
44             finalMobileUrls
45             finalAppUrls
46             trackingUrlTemplate
47             urlCustomParameters
48             urlData
49             type
50             devicePreference
51             Ad__Type
52             description
53              
54             ) ],
55             {
56             'id' => \%id_of,
57             'url' => \%url_of,
58             'displayUrl' => \%displayUrl_of,
59             'finalUrls' => \%finalUrls_of,
60             'finalMobileUrls' => \%finalMobileUrls_of,
61             'finalAppUrls' => \%finalAppUrls_of,
62             'trackingUrlTemplate' => \%trackingUrlTemplate_of,
63             'urlCustomParameters' => \%urlCustomParameters_of,
64             'urlData' => \%urlData_of,
65             'type' => \%type_of,
66             'devicePreference' => \%devicePreference_of,
67             'Ad__Type' => \%Ad__Type_of,
68             'description' => \%description_of,
69             },
70             {
71             'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
72             'url' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
73             'displayUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
74             'finalUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
75             'finalMobileUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
76             'finalAppUrls' => 'Google::Ads::AdWords::v201708::AppUrl',
77             'trackingUrlTemplate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
78             'urlCustomParameters' => 'Google::Ads::AdWords::v201708::CustomParameters',
79             'urlData' => 'Google::Ads::AdWords::v201708::UrlData',
80             'type' => 'Google::Ads::AdWords::v201708::Ad::Type',
81             'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
82             'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
83             'description' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
84             },
85             {
86              
87             'id' => 'id',
88             'url' => 'url',
89             'displayUrl' => 'displayUrl',
90             'finalUrls' => 'finalUrls',
91             'finalMobileUrls' => 'finalMobileUrls',
92             'finalAppUrls' => 'finalAppUrls',
93             'trackingUrlTemplate' => 'trackingUrlTemplate',
94             'urlCustomParameters' => 'urlCustomParameters',
95             'urlData' => 'urlData',
96             'type' => 'type',
97             'devicePreference' => 'devicePreference',
98             'Ad__Type' => 'Ad.Type',
99             'description' => 'description',
100             }
101             );
102              
103             } # end BLOCK
104              
105              
106              
107              
108              
109              
110              
111             1;
112              
113              
114             =pod
115              
116             =head1 NAME
117              
118             Google::Ads::AdWords::v201708::ExpandedDynamicSearchAd
119              
120             =head1 DESCRIPTION
121              
122             Perl data type class for the XML Schema defined complexType
123             ExpandedDynamicSearchAd from the namespace https://adwords.google.com/api/adwords/cm/v201708.
124              
125             Represents an ExpandedDynamicSearchAd. This ad will have its headline, final URLs and display URL auto-generated at serving time according to domain name specific information provided by DynamicSearchAdsSetting linked at the campaign level.

Auto-generated fields: headline, final URLs and display URL.

Required fields: {@code description}.

The tracking URL field must contain at least one of the following placeholder tags (URL parameters):

  • {unescapedlpurl}
  • {escapedlpurl}
  • {lpurl}
  • {lpurl+2}
  • {lpurl+3}
  • {unescapedlpurl} will be replaced with the full landing page URL of the displayed ad. Extra query parameters can be added to the end, e.g.: "{unescapedlpurl}?lang=en".
  • {escapedlpurl} will be replaced with the URL-encoded version of the full landing page URL. This makes it suitable for use as a query parameter value (e.g.: "http://www.3rdpartytracker.com/?lp={escapedlpurl}") but not at the beginning of the URL field.
  • {lpurl} encodes the "?" and "=" of the landing page URL making it suitable for use as a query parameter. If found at the beginning of the URL field, it is replaced by the {unescapedlpurl} value. E.g.: "http://tracking.com/redir.php?tracking=xyz&url={lpurl}".
  • {lpurl+2} and {lpurl+3} will be replaced with the landing page URL escaped two or three times, respectively. This makes it suitable if there is a chain of redirects in the tracking URL.
This is enabled for AdX.
126              
127              
128              
129              
130             =head2 PROPERTIES
131              
132             The following properties may be accessed using get_PROPERTY / set_PROPERTY
133             methods:
134              
135             =over
136              
137             =item * description
138              
139              
140              
141              
142             =back
143              
144              
145             =head1 METHODS
146              
147             =head2 new
148              
149             Constructor. The following data structure may be passed to new():
150              
151              
152              
153              
154              
155              
156             =head1 AUTHOR
157              
158             Generated by SOAP::WSDL
159              
160             =cut
161