lib/Google/Ads/AdWords/v201809/TemplateAd.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/TempAdUnionId.pm ↑ Summary lib/Google/Ads/AdWords/v201809/TextAd.pm »
1 package Google::Ads::AdWords::v201809::TemplateAd;
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 %templateId_of :ATTR(:get<templateId>);
41 my %adUnionId_of :ATTR(:get<adUnionId>);
42 my %templateElements_of :ATTR(:get<templateElements>);
43 my %adAsImage_of :ATTR(:get<adAsImage>);
44 my %dimensions_of :ATTR(:get<dimensions>);
45 my %name_of :ATTR(:get<name>);
46 my %duration_of :ATTR(:get<duration>);
47 my %originAdId_of :ATTR(:get<originAdId>);
48  
49 __PACKAGE__->_factory(
50 [ qw( id
51 url
52 displayUrl
53 finalUrls
54 finalMobileUrls
55 finalAppUrls
56 trackingUrlTemplate
57 finalUrlSuffix
58 urlCustomParameters
59 urlData
60 automated
61 type
62 devicePreference
63 systemManagedEntitySource
64 Ad__Type
65 templateId
66 adUnionId
67 templateElements
68 adAsImage
69 dimensions
70 name
71 duration
72 originAdId
73  
74 ) ],
75 {
76 'id' => \%id_of,
77 'url' => \%url_of,
78 'displayUrl' => \%displayUrl_of,
79 'finalUrls' => \%finalUrls_of,
80 'finalMobileUrls' => \%finalMobileUrls_of,
81 'finalAppUrls' => \%finalAppUrls_of,
82 'trackingUrlTemplate' => \%trackingUrlTemplate_of,
83 'finalUrlSuffix' => \%finalUrlSuffix_of,
84 'urlCustomParameters' => \%urlCustomParameters_of,
85 'urlData' => \%urlData_of,
86 'automated' => \%automated_of,
87 'type' => \%type_of,
88 'devicePreference' => \%devicePreference_of,
89 'systemManagedEntitySource' => \%systemManagedEntitySource_of,
90 'Ad__Type' => \%Ad__Type_of,
91 'templateId' => \%templateId_of,
92 'adUnionId' => \%adUnionId_of,
93 'templateElements' => \%templateElements_of,
94 'adAsImage' => \%adAsImage_of,
95 'dimensions' => \%dimensions_of,
96 'name' => \%name_of,
97 'duration' => \%duration_of,
98 'originAdId' => \%originAdId_of,
99 },
100 {
101 'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
102 'url' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
103 'displayUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
104 'finalUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
105 'finalMobileUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
106 'finalAppUrls' => 'Google::Ads::AdWords::v201809::AppUrl',
107 'trackingUrlTemplate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
108 'finalUrlSuffix' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
109 'urlCustomParameters' => 'Google::Ads::AdWords::v201809::CustomParameters',
110 'urlData' => 'Google::Ads::AdWords::v201809::UrlData',
111 'automated' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
112 'type' => 'Google::Ads::AdWords::v201809::Ad::Type',
113 'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
114 'systemManagedEntitySource' => 'Google::Ads::AdWords::v201809::SystemManagedEntitySource',
115 'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
116 'templateId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
117 'adUnionId' => 'Google::Ads::AdWords::v201809::AdUnionId',
118 'templateElements' => 'Google::Ads::AdWords::v201809::TemplateElement',
119 'adAsImage' => 'Google::Ads::AdWords::v201809::Image',
120 'dimensions' => 'Google::Ads::AdWords::v201809::Dimensions',
121 'name' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
122 'duration' => 'SOAP::WSDL::XSD::Typelib::Builtin::int',
123 'originAdId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
124 },
125 {
126  
127 'id' => 'id',
128 'url' => 'url',
129 'displayUrl' => 'displayUrl',
130 'finalUrls' => 'finalUrls',
131 'finalMobileUrls' => 'finalMobileUrls',
132 'finalAppUrls' => 'finalAppUrls',
133 'trackingUrlTemplate' => 'trackingUrlTemplate',
134 'finalUrlSuffix' => 'finalUrlSuffix',
135 'urlCustomParameters' => 'urlCustomParameters',
136 'urlData' => 'urlData',
137 'automated' => 'automated',
138 'type' => 'type',
139 'devicePreference' => 'devicePreference',
140 'systemManagedEntitySource' => 'systemManagedEntitySource',
141 'Ad__Type' => 'Ad.Type',
142 'templateId' => 'templateId',
143 'adUnionId' => 'adUnionId',
144 'templateElements' => 'templateElements',
145 'adAsImage' => 'adAsImage',
146 'dimensions' => 'dimensions',
147 'name' => 'name',
148 'duration' => 'duration',
149 'originAdId' => 'originAdId',
150 }
151 );
152  
153 } # end BLOCK
154  
155  
156  
157  
158  
159  
160  
161 1;
162  
163  
164 =pod
165  
166 =head1 NAME
167  
168 Google::Ads::AdWords::v201809::TemplateAd
169  
170 =head1 DESCRIPTION
171  
172 Perl data type class for the XML Schema defined complexType
173 TemplateAd from the namespace https://adwords.google.com/api/adwords/cm/v201809.
174  
175 Represents a <a href= "//www.google.com/adwords/displaynetwork/plan-creative-campaigns/display-ad-builder.html" >Display Ad Builder</a> template ad. A template ad is composed of a template (specified by its ID) and the data that populates the template's fields. For a list of available templates and their required fields, see <a href="/adwords/api/docs/appendix/templateads">Template Ads</a>. <span class="constraint AdxEnabled">This is disabled for AdX when it is contained within Operators: ADD, SET.</span>
176  
177  
178  
179  
180 =head2 PROPERTIES
181  
182 The following properties may be accessed using get_PROPERTY / set_PROPERTY
183 methods:
184  
185 =over
186  
187 =item * templateId
188  
189  
190 =item * adUnionId
191  
192  
193 =item * templateElements
194  
195  
196 =item * adAsImage
197  
198  
199 =item * dimensions
200  
201  
202 =item * name
203  
204  
205 =item * duration
206  
207  
208 =item * originAdId
209  
210  
211  
212  
213 =back
214  
215  
216 =head1 METHODS
217  
218 =head2 new
219  
220 Constructor. The following data structure may be passed to new():
221  
222  
223  
224  
225  
226  
227 =head1 AUTHOR
228  
229 Generated by SOAP::WSDL
230  
231 =cut
232  
« lib/Google/Ads/AdWords/v201809/TempAdUnionId.pm ↑ Summary lib/Google/Ads/AdWords/v201809/TextAd.pm »