lib/Google/Ads/AdWords/v201809/ResponsiveSearchAd.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/v201809/ResponsiveDisplayAd.pm ↑ Summary lib/Google/Ads/AdWords/v201809/ReviewFeedItem.pm »
1 package Google::Ads::AdWords::v201809::ResponsiveSearchAd;
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/v201809' };
Subroutine get_xmlns: not called CC=1 SCAR=6.9
9  
10 our $XML_ATTRIBUTE_CLASS;
11 undef $XML_ATTRIBUTE_CLASS;
12  
13 0 ▶sub __get_attr_class {
Subroutine __get_attr_class: not called CC=1 SCAR=6.9
14 0 return $XML_ATTRIBUTE_CLASS;
15 }
16  
17  
18 1 ▶use base qw(Google::Ads::AdWords::v201809::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 %finalUrlSuffix_of :ATTR(:get<finalUrlSuffix>);
33 my %urlCustomParameters_of :ATTR(:get<urlCustomParameters>);
34 my %urlData_of :ATTR(:get<urlData>);
35 my %automated_of :ATTR(:get<automated>);
36 my %type_of :ATTR(:get<type>);
37 my %devicePreference_of :ATTR(:get<devicePreference>);
38 my %systemManagedEntitySource_of :ATTR(:get<systemManagedEntitySource>);
39 my %Ad__Type_of :ATTR(:get<Ad__Type>);
40 my %headlines_of :ATTR(:get<headlines>);
41 my %descriptions_of :ATTR(:get<descriptions>);
42 my %path1_of :ATTR(:get<path1>);
43 my %path2_of :ATTR(:get<path2>);
44  
45 __PACKAGE__->_factory(
46 [ qw( id
47 url
48 displayUrl
49 finalUrls
50 finalMobileUrls
51 finalAppUrls
52 trackingUrlTemplate
53 finalUrlSuffix
54 urlCustomParameters
55 urlData
56 automated
57 type
58 devicePreference
59 systemManagedEntitySource
60 Ad__Type
61 headlines
62 descriptions
63 path1
64 path2
65  
66 ) ],
67 {
68 'id' => \%id_of,
69 'url' => \%url_of,
70 'displayUrl' => \%displayUrl_of,
71 'finalUrls' => \%finalUrls_of,
72 'finalMobileUrls' => \%finalMobileUrls_of,
73 'finalAppUrls' => \%finalAppUrls_of,
74 'trackingUrlTemplate' => \%trackingUrlTemplate_of,
75 'finalUrlSuffix' => \%finalUrlSuffix_of,
76 'urlCustomParameters' => \%urlCustomParameters_of,
77 'urlData' => \%urlData_of,
78 'automated' => \%automated_of,
79 'type' => \%type_of,
80 'devicePreference' => \%devicePreference_of,
81 'systemManagedEntitySource' => \%systemManagedEntitySource_of,
82 'Ad__Type' => \%Ad__Type_of,
83 'headlines' => \%headlines_of,
84 'descriptions' => \%descriptions_of,
85 'path1' => \%path1_of,
86 'path2' => \%path2_of,
87 },
88 {
89 'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
90 'url' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
91 'displayUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
92 'finalUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
93 'finalMobileUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
94 'finalAppUrls' => 'Google::Ads::AdWords::v201809::AppUrl',
95 'trackingUrlTemplate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
96 'finalUrlSuffix' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
97 'urlCustomParameters' => 'Google::Ads::AdWords::v201809::CustomParameters',
98 'urlData' => 'Google::Ads::AdWords::v201809::UrlData',
99 'automated' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
100 'type' => 'Google::Ads::AdWords::v201809::Ad::Type',
101 'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
102 'systemManagedEntitySource' => 'Google::Ads::AdWords::v201809::SystemManagedEntitySource',
103 'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
104 'headlines' => 'Google::Ads::AdWords::v201809::AssetLink',
105 'descriptions' => 'Google::Ads::AdWords::v201809::AssetLink',
106 'path1' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
107 'path2' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
108 },
109 {
110  
111 'id' => 'id',
112 'url' => 'url',
113 'displayUrl' => 'displayUrl',
114 'finalUrls' => 'finalUrls',
115 'finalMobileUrls' => 'finalMobileUrls',
116 'finalAppUrls' => 'finalAppUrls',
117 'trackingUrlTemplate' => 'trackingUrlTemplate',
118 'finalUrlSuffix' => 'finalUrlSuffix',
119 'urlCustomParameters' => 'urlCustomParameters',
120 'urlData' => 'urlData',
121 'automated' => 'automated',
122 'type' => 'type',
123 'devicePreference' => 'devicePreference',
124 'systemManagedEntitySource' => 'systemManagedEntitySource',
125 'Ad__Type' => 'Ad.Type',
126 'headlines' => 'headlines',
127 'descriptions' => 'descriptions',
128 'path1' => 'path1',
129 'path2' => 'path2',
130 }
131 );
132  
133 } # end BLOCK
134  
135  
136  
137  
138  
139  
140  
141 1;
142  
143  
144 =pod
145  
146 =head1 NAME
147  
148 Google::Ads::AdWords::v201809::ResponsiveSearchAd
149  
150 =head1 DESCRIPTION
151  
152 Perl data type class for the XML Schema defined complexType
153 ResponsiveSearchAd from the namespace https://adwords.google.com/api/adwords/cm/v201809.
154  
155 Represents a responsive search ad. <p><strong>Important</strong></p> <p> <ul> <li>Responsive search ads are in beta and may not be available to all AdWords advertisers.</li> <li>Per the <a href="https://support.google.com/adwordspolicy/answer/54818">AdWords Terms &amp; Conditions</a> for features in beta, you may not disclose any non-public information.</li> <li>Responsive search ads will learn and improve over time, so make sure to regularly monitor the performance and status of your ads.</li> <li>Responsive search ads are currently available in English, French, German, Spanish, Portuguese, Italian, Swedish, Dutch, Russian, Japanese, Polish, Turkish, Danish, and Norwegian, with other languages on the way.</li> <li>Assets can be shown in any order, so make sure that they make sense individually or in combination, and don’t violate our policies or local law.</li> <li>Even after ads are assembled, they may not serve.</li> <li>If you have text that should appear in every ad, then you must pin it to either Headline position 1, Headline position 2, or Description position 1, and also make sure it is less than 80 characters long.</li> </ul> </p> <p>To increase the likelihood that your ad shows, be sure to provide at least 5 distinct headlines and 2 distinct descriptions that don't repeat the same or similar phrases. Providing redundant content will restrict the system's ability to assemble combinations. <a href="https://support.google.com/adwords/answer/9023565">See example ads</a></p> <p>Help center documentation <ul> <li><a href="https://support.google.com/adwords/answer/7684791">About responsive search ads</a></li> <li><a href="https://support.google.com/adwords/answer/9023565">Create a responsive search ad (see examples)</a></li> </ul> </p> <p class="caution"><b>Caution:</b> Responsive search ads do not use {@link #url url}, {@link #displayUrl displayUrl}, {@link #finalAppUrls finalAppUrls}, or {@link #devicePreference devicePreference}; setting these fields on a responsive search ad will cause an error.</p> <span class="constraint AdxEnabled">This is enabled for AdX.</span>
156  
157  
158  
159  
160 =head2 PROPERTIES
161  
162 The following properties may be accessed using get_PROPERTY / set_PROPERTY
163 methods:
164  
165 =over
166  
167 =item * headlines
168  
169  
170 =item * descriptions
171  
172  
173 =item * path1
174  
175  
176 =item * path2
177  
178  
179  
180  
181 =back
182  
183  
184 =head1 METHODS
185  
186 =head2 new
187  
188 Constructor. The following data structure may be passed to new():
189  
190  
191  
192  
193  
194  
195 =head1 AUTHOR
196  
197 Generated by SOAP::WSDL
198  
199 =cut
200  
« lib/Google/Ads/AdWords/v201809/ResponsiveDisplayAd.pm ↑ Summary lib/Google/Ads/AdWords/v201809/ReviewFeedItem.pm »