blib/lib/Google/Ads/AdWords/v201710/TemplateAd.pm untested

filter: Statementstmt 0.0% 0 / 48 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 57 CC 1 SCAR 6.9
CC
1
Cov
0%
get_xmlns
2.0
__get_attr_class
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Ads::AdWords::v201710::TemplateAd;
2 use strict;
3 use warnings;
4  
5  
6 __PACKAGE__->_set_element_form_qualified(1);
7  
8 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 return $XML_ATTRIBUTE_CLASS;
15 }
16  
17  
18 use base qw(Google::Ads::AdWords::v201710::Ad);
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 %templateId_of :ATTR(:get<templateId>);
39 my %adUnionId_of :ATTR(:get<adUnionId>);
40 my %templateElements_of :ATTR(:get<templateElements>);
41 my %adAsImage_of :ATTR(:get<adAsImage>);
42 my %dimensions_of :ATTR(:get<dimensions>);
43 my %name_of :ATTR(:get<name>);
44 my %duration_of :ATTR(:get<duration>);
45 my %originAdId_of :ATTR(:get<originAdId>);
46  
47 __PACKAGE__->_factory(
48 [ qw( id
49 url
50 displayUrl
51 finalUrls
52 finalMobileUrls
53 finalAppUrls
54 trackingUrlTemplate
55 urlCustomParameters
56 urlData
57 automated
58 type
59 devicePreference
60 Ad__Type
61 templateId
62 adUnionId
63 templateElements
64 adAsImage
65 dimensions
66 name
67 duration
68 originAdId
69  
70 ) ],
71 {
72 'id' => \%id_of,
73 'url' => \%url_of,
74 'displayUrl' => \%displayUrl_of,
75 'finalUrls' => \%finalUrls_of,
76 'finalMobileUrls' => \%finalMobileUrls_of,
77 'finalAppUrls' => \%finalAppUrls_of,
78 'trackingUrlTemplate' => \%trackingUrlTemplate_of,
79 'urlCustomParameters' => \%urlCustomParameters_of,
80 'urlData' => \%urlData_of,
81 'automated' => \%automated_of,
82 'type' => \%type_of,
83 'devicePreference' => \%devicePreference_of,
84 'Ad__Type' => \%Ad__Type_of,
85 'templateId' => \%templateId_of,
86 'adUnionId' => \%adUnionId_of,
87 'templateElements' => \%templateElements_of,
88 'adAsImage' => \%adAsImage_of,
89 'dimensions' => \%dimensions_of,
90 'name' => \%name_of,
91 'duration' => \%duration_of,
92 'originAdId' => \%originAdId_of,
93 },
94 {
95 'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
96 'url' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
97 'displayUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
98 'finalUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
99 'finalMobileUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
100 'finalAppUrls' => 'Google::Ads::AdWords::v201710::AppUrl',
101 'trackingUrlTemplate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
102 'urlCustomParameters' => 'Google::Ads::AdWords::v201710::CustomParameters',
103 'urlData' => 'Google::Ads::AdWords::v201710::UrlData',
104 'automated' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
105 'type' => 'Google::Ads::AdWords::v201710::Ad::Type',
106 'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
107 'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
108 'templateId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
109 'adUnionId' => 'Google::Ads::AdWords::v201710::AdUnionId',
110 'templateElements' => 'Google::Ads::AdWords::v201710::TemplateElement',
111 'adAsImage' => 'Google::Ads::AdWords::v201710::Image',
112 'dimensions' => 'Google::Ads::AdWords::v201710::Dimensions',
113 'name' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
114 'duration' => 'SOAP::WSDL::XSD::Typelib::Builtin::int',
115 'originAdId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
116 },
117 {
118  
119 'id' => 'id',
120 'url' => 'url',
121 'displayUrl' => 'displayUrl',
122 'finalUrls' => 'finalUrls',
123 'finalMobileUrls' => 'finalMobileUrls',
124 'finalAppUrls' => 'finalAppUrls',
125 'trackingUrlTemplate' => 'trackingUrlTemplate',
126 'urlCustomParameters' => 'urlCustomParameters',
127 'urlData' => 'urlData',
128 'automated' => 'automated',
129 'type' => 'type',
130 'devicePreference' => 'devicePreference',
131 'Ad__Type' => 'Ad.Type',
132 'templateId' => 'templateId',
133 'adUnionId' => 'adUnionId',
134 'templateElements' => 'templateElements',
135 'adAsImage' => 'adAsImage',
136 'dimensions' => 'dimensions',
137 'name' => 'name',
138 'duration' => 'duration',
139 'originAdId' => 'originAdId',
140 }
141 );
142  
143 } # end BLOCK
144  
145  
146  
147  
148  
149  
150  
151 1;
152  
153  
154 =pod
155  
156 =head1 NAME
157  
158 Google::Ads::AdWords::v201710::TemplateAd
159  
160 =head1 DESCRIPTION
161  
162 Perl data type class for the XML Schema defined complexType
163 TemplateAd from the namespace https://adwords.google.com/api/adwords/cm/v201710.
164  
165 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>
166  
167  
168  
169  
170 =head2 PROPERTIES
171  
172 The following properties may be accessed using get_PROPERTY / set_PROPERTY
173 methods:
174  
175 =over
176  
177 =item * templateId
178  
179  
180 =item * adUnionId
181  
182  
183 =item * templateElements
184  
185  
186 =item * adAsImage
187  
188  
189 =item * dimensions
190  
191  
192 =item * name
193  
194  
195 =item * duration
196  
197  
198 =item * originAdId
199  
200  
201  
202  
203 =back
204  
205  
206 =head1 METHODS
207  
208 =head2 new
209  
210 Constructor. The following data structure may be passed to new():
211  
212  
213  
214  
215  
216  
217 =head1 AUTHOR
218  
219 Generated by SOAP::WSDL
220  
221 =cut
222