lib/Google/Ads/AdWords/v201710/DynamicSearchAd.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/v201710/DraftReturnValue.pm ↑ Summary lib/Google/Ads/AdWords/v201710/DynamicSearchAdsSetting.pm »
1 package Google::Ads::AdWords::v201710::DynamicSearchAd;
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/v201710' };
Subroutine get_xmlns: not called CC=1 SCAR=6.9
9  
10 our $XML_ATTRIBUTE_CLASS;
11 undef $XML_ATTRIBUTE_CLASS;
12  
13 sub __get_attr_class {
14 0 ▶ return $XML_ATTRIBUTE_CLASS;
Subroutine __get_attr_class: not called CC=1 SCAR=6.9
15 }
16  
17  
18 1 ▶use base qw(Google::Ads::AdWords::v201710::Ad);
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 %url_of :ATTR(:get<url>);
27 my %displayUrl_of :ATTR(:get<displayUrl>);
28 my %finalUrls_of :ATTR(:get<finalUrls>);
29 my %finalMobileUrls_of :ATTR(:get<finalMobileUrls>);
30 my %finalAppUrls_of :ATTR(:get<finalAppUrls>);
31 my %trackingUrlTemplate_of :ATTR(:get<trackingUrlTemplate>);
32 my %urlCustomParameters_of :ATTR(:get<urlCustomParameters>);
33 my %urlData_of :ATTR(:get<urlData>);
34 my %automated_of :ATTR(:get<automated>);
35 my %type_of :ATTR(:get<type>);
36 my %devicePreference_of :ATTR(:get<devicePreference>);
37 my %Ad__Type_of :ATTR(:get<Ad__Type>);
38 my %description1_of :ATTR(:get<description1>);
39 my %description2_of :ATTR(:get<description2>);
40  
41 __PACKAGE__->_factory(
42 [ qw( id
43 url
44 displayUrl
45 finalUrls
46 finalMobileUrls
47 finalAppUrls
48 trackingUrlTemplate
49 urlCustomParameters
50 urlData
51 automated
52 type
53 devicePreference
54 Ad__Type
55 description1
56 description2
57  
58 ) ],
59 {
60 'id' => \%id_of,
61 'url' => \%url_of,
62 'displayUrl' => \%displayUrl_of,
63 'finalUrls' => \%finalUrls_of,
64 'finalMobileUrls' => \%finalMobileUrls_of,
65 'finalAppUrls' => \%finalAppUrls_of,
66 'trackingUrlTemplate' => \%trackingUrlTemplate_of,
67 'urlCustomParameters' => \%urlCustomParameters_of,
68 'urlData' => \%urlData_of,
69 'automated' => \%automated_of,
70 'type' => \%type_of,
71 'devicePreference' => \%devicePreference_of,
72 'Ad__Type' => \%Ad__Type_of,
73 'description1' => \%description1_of,
74 'description2' => \%description2_of,
75 },
76 {
77 'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
78 'url' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
79 'displayUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
80 'finalUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
81 'finalMobileUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
82 'finalAppUrls' => 'Google::Ads::AdWords::v201710::AppUrl',
83 'trackingUrlTemplate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
84 'urlCustomParameters' => 'Google::Ads::AdWords::v201710::CustomParameters',
85 'urlData' => 'Google::Ads::AdWords::v201710::UrlData',
86 'automated' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
87 'type' => 'Google::Ads::AdWords::v201710::Ad::Type',
88 'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
89 'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
90 'description1' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
91 'description2' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
92 },
93 {
94  
95 'id' => 'id',
96 'url' => 'url',
97 'displayUrl' => 'displayUrl',
98 'finalUrls' => 'finalUrls',
99 'finalMobileUrls' => 'finalMobileUrls',
100 'finalAppUrls' => 'finalAppUrls',
101 'trackingUrlTemplate' => 'trackingUrlTemplate',
102 'urlCustomParameters' => 'urlCustomParameters',
103 'urlData' => 'urlData',
104 'automated' => 'automated',
105 'type' => 'type',
106 'devicePreference' => 'devicePreference',
107 'Ad__Type' => 'Ad.Type',
108 'description1' => 'description1',
109 'description2' => 'description2',
110 }
111 );
112  
113 } # end BLOCK
114  
115  
116  
117  
118  
119  
120  
121 1;
122  
123  
124 =pod
125  
126 =head1 NAME
127  
128 Google::Ads::AdWords::v201710::DynamicSearchAd
129  
130 =head1 DESCRIPTION
131  
132 Perl data type class for the XML Schema defined complexType
133 DynamicSearchAd from the namespace https://adwords.google.com/api/adwords/cm/v201710.
134  
135 Represents a dynamic search ad. This ad will have its headline and final URL auto-generated at serving time according to domain name specific information provided by DynamicSearchAdsSetting at the campaign level. <p>Auto-generated fields: headline and final URL.</p> <p>Note: we recommend using the ExpandedDynamicSearchAd type, introduced in v201705, rather than the DynamicSearchAd type.</p> <p><b>Required fields:</b> {@code description1}, {@code description2}, {@code displayUrl}.</p> <p>The tracking URL field must contain at least one of the following placeholder tags (URL parameters):</p> <ul> <li>{unescapedlpurl}</li> <li>{escapedlpurl}</li> <li>{lpurl}</li> <li>{lpurl+2}</li> <li>{lpurl+3}</li> </ul> <ul> <li>{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".</li> <li>{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.</li> <li>{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}".</li> <li>{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.</li> </ul> <p class="note">Note that {@code finalUrls} and {@code finalMobileUrls} cannot be set for dynamic search ads.</p> <p>For more information, see the article <a href="//support.google.com/adwords/answer/2549100">Using dynamic tracking URLs</a>. </p> <span class="constraint AdxEnabled">This is disabled for AdX when it is contained within Operators: ADD, SET.</span>
136  
137  
138  
139  
140 =head2 PROPERTIES
141  
142 The following properties may be accessed using get_PROPERTY / set_PROPERTY
143 methods:
144  
145 =over
146  
147 =item * description1
148  
149  
150 =item * description2
151  
152  
153  
154  
155 =back
156  
157  
158 =head1 METHODS
159  
160 =head2 new
161  
162 Constructor. The following data structure may be passed to new():
163  
164  
165  
166  
167  
168  
169 =head1 AUTHOR
170  
171 Generated by SOAP::WSDL
172  
173 =cut
174  
« lib/Google/Ads/AdWords/v201710/DraftReturnValue.pm ↑ Summary lib/Google/Ads/AdWords/v201710/DynamicSearchAdsSetting.pm »