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

filter: Statementstmt 0.0% 0 / 41 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 50 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::v201402::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/v201402' };
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::v201402::Ad);
19 # Variety: sequence
20 use Class::Std::Fast::Storable constructor => 'none';
21 use base qw(Google::Ads::SOAP::Typelib::ComplexType);
22  
23 Class::Std::initialize();
24  
25 { # BLOCK to scope variables
26  
27 my %id_of :ATTR(:get<id>);
28 my %url_of :ATTR(:get<url>);
29 my %displayUrl_of :ATTR(:get<displayUrl>);
30 my %devicePreference_of :ATTR(:get<devicePreference>);
31 my %Ad__Type_of :ATTR(:get<Ad__Type>);
32 my %templateId_of :ATTR(:get<templateId>);
33 my %adUnionId_of :ATTR(:get<adUnionId>);
34 my %templateElements_of :ATTR(:get<templateElements>);
35 my %adAsImage_of :ATTR(:get<adAsImage>);
36 my %dimensions_of :ATTR(:get<dimensions>);
37 my %name_of :ATTR(:get<name>);
38 my %duration_of :ATTR(:get<duration>);
39 my %originAdId_of :ATTR(:get<originAdId>);
40  
41 __PACKAGE__->_factory(
42 [ qw( id
43 url
44 displayUrl
45 devicePreference
46 Ad__Type
47 templateId
48 adUnionId
49 templateElements
50 adAsImage
51 dimensions
52 name
53 duration
54 originAdId
55  
56 ) ],
57 {
58 'id' => \%id_of,
59 'url' => \%url_of,
60 'displayUrl' => \%displayUrl_of,
61 'devicePreference' => \%devicePreference_of,
62 'Ad__Type' => \%Ad__Type_of,
63 'templateId' => \%templateId_of,
64 'adUnionId' => \%adUnionId_of,
65 'templateElements' => \%templateElements_of,
66 'adAsImage' => \%adAsImage_of,
67 'dimensions' => \%dimensions_of,
68 'name' => \%name_of,
69 'duration' => \%duration_of,
70 'originAdId' => \%originAdId_of,
71 },
72 {
73 'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
74 'url' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
75 'displayUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
76 'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
77 'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
78 'templateId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
79 'adUnionId' => 'Google::Ads::AdWords::v201402::AdUnionId',
80 'templateElements' => 'Google::Ads::AdWords::v201402::TemplateElement',
81 'adAsImage' => 'Google::Ads::AdWords::v201402::Image',
82 'dimensions' => 'Google::Ads::AdWords::v201402::Dimensions',
83 'name' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
84 'duration' => 'SOAP::WSDL::XSD::Typelib::Builtin::int',
85 'originAdId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
86 },
87 {
88  
89 'id' => 'id',
90 'url' => 'url',
91 'displayUrl' => 'displayUrl',
92 'devicePreference' => 'devicePreference',
93 'Ad__Type' => 'Ad.Type',
94 'templateId' => 'templateId',
95 'adUnionId' => 'adUnionId',
96 'templateElements' => 'templateElements',
97 'adAsImage' => 'adAsImage',
98 'dimensions' => 'dimensions',
99 'name' => 'name',
100 'duration' => 'duration',
101 'originAdId' => 'originAdId',
102 }
103 );
104  
105 } # end BLOCK
106  
107  
108  
109  
110  
111  
112  
113 1;
114  
115  
116 =pod
117  
118 =head1 NAME
119  
120 Google::Ads::AdWords::v201402::TemplateAd
121  
122 =head1 DESCRIPTION
123  
124 Perl data type class for the XML Schema defined complexType
125 TemplateAd from the namespace https://adwords.google.com/api/adwords/cm/v201402.
126  
127 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>
128  
129  
130  
131  
132 =head2 PROPERTIES
133  
134 The following properties may be accessed using get_PROPERTY / set_PROPERTY
135 methods:
136  
137 =over
138  
139 =item * templateId
140  
141  
142 =item * adUnionId
143  
144  
145 =item * templateElements
146  
147  
148 =item * adAsImage
149  
150  
151 =item * dimensions
152  
153  
154 =item * name
155  
156  
157 =item * duration
158  
159  
160 =item * originAdId
161  
162  
163  
164  
165 =back
166  
167  
168 =head1 METHODS
169  
170 =head2 new
171  
172 Constructor. The following data structure may be passed to new():
173  
174  
175  
176  
177  
178  
179 =head1 AUTHOR
180  
181 Generated by SOAP::WSDL
182  
183 =cut
184