lib/Google/Ads/AdWords/v201809/Ad.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Google/Ads/AdWords/v201809/AccountLabelService/AccountLabelServiceInterfacePort.pm ↑ Summary lib/Google/Ads/AdWords/v201809/AdCustomizerFeedService/AdCustomizerFeedServiceInterfacePort.pm »
1 package Google::Ads::AdWords::v201809::Ad;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5  
6 __PACKAGE__->_set_element_form_qualified(1);
7  
8 sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201809' };
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 2 ▶use Class::Std::Fast::Storable constructor => 'none';
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶use base qw(Google::Ads::SOAP::Typelib::ComplexType);
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 { # BLOCK to scope variables
21  
22 my %id_of :ATTR(:get<id>);
23 my %url_of :ATTR(:get<url>);
24 my %displayUrl_of :ATTR(:get<displayUrl>);
25 my %finalUrls_of :ATTR(:get<finalUrls>);
26 my %finalMobileUrls_of :ATTR(:get<finalMobileUrls>);
27 my %finalAppUrls_of :ATTR(:get<finalAppUrls>);
28 my %trackingUrlTemplate_of :ATTR(:get<trackingUrlTemplate>);
29 my %finalUrlSuffix_of :ATTR(:get<finalUrlSuffix>);
30 my %urlCustomParameters_of :ATTR(:get<urlCustomParameters>);
31 my %urlData_of :ATTR(:get<urlData>);
32 my %automated_of :ATTR(:get<automated>);
33 my %type_of :ATTR(:get<type>);
34 my %devicePreference_of :ATTR(:get<devicePreference>);
35 my %systemManagedEntitySource_of :ATTR(:get<systemManagedEntitySource>);
36 my %Ad__Type_of :ATTR(:get<Ad__Type>);
37  
38 __PACKAGE__->_factory(
39 [ qw( id
40 url
41 displayUrl
42 finalUrls
43 finalMobileUrls
44 finalAppUrls
45 trackingUrlTemplate
46 finalUrlSuffix
47 urlCustomParameters
48 urlData
49 automated
50 type
51 devicePreference
52 systemManagedEntitySource
53 Ad__Type
54  
55 ) ],
56 {
57 'id' => \%id_of,
58 'url' => \%url_of,
59 'displayUrl' => \%displayUrl_of,
60 'finalUrls' => \%finalUrls_of,
61 'finalMobileUrls' => \%finalMobileUrls_of,
62 'finalAppUrls' => \%finalAppUrls_of,
63 'trackingUrlTemplate' => \%trackingUrlTemplate_of,
64 'finalUrlSuffix' => \%finalUrlSuffix_of,
65 'urlCustomParameters' => \%urlCustomParameters_of,
66 'urlData' => \%urlData_of,
67 'automated' => \%automated_of,
68 'type' => \%type_of,
69 'devicePreference' => \%devicePreference_of,
70 'systemManagedEntitySource' => \%systemManagedEntitySource_of,
71 'Ad__Type' => \%Ad__Type_of,
72 },
73 {
74 'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
75 'url' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
76 'displayUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
77 'finalUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
78 'finalMobileUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
79 'finalAppUrls' => 'Google::Ads::AdWords::v201809::AppUrl',
80 'trackingUrlTemplate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
81 'finalUrlSuffix' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
82 'urlCustomParameters' => 'Google::Ads::AdWords::v201809::CustomParameters',
83 'urlData' => 'Google::Ads::AdWords::v201809::UrlData',
84 'automated' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
85 'type' => 'Google::Ads::AdWords::v201809::Ad::Type',
86 'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
87 'systemManagedEntitySource' => 'Google::Ads::AdWords::v201809::SystemManagedEntitySource',
88 'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
89 },
90 {
91  
92 'id' => 'id',
93 'url' => 'url',
94 'displayUrl' => 'displayUrl',
95 'finalUrls' => 'finalUrls',
96 'finalMobileUrls' => 'finalMobileUrls',
97 'finalAppUrls' => 'finalAppUrls',
98 'trackingUrlTemplate' => 'trackingUrlTemplate',
99 'finalUrlSuffix' => 'finalUrlSuffix',
100 'urlCustomParameters' => 'urlCustomParameters',
101 'urlData' => 'urlData',
102 'automated' => 'automated',
103 'type' => 'type',
104 'devicePreference' => 'devicePreference',
105 'systemManagedEntitySource' => 'systemManagedEntitySource',
106 'Ad__Type' => 'Ad.Type',
107 }
108 );
109  
110 } # end BLOCK
111  
112  
113  
114  
115  
116  
117  
118 1;
119  
120  
121 =pod
122  
123 =head1 NAME
124  
125 Google::Ads::AdWords::v201809::Ad
126  
127 =head1 DESCRIPTION
128  
129 Perl data type class for the XML Schema defined complexType
130 Ad from the namespace https://adwords.google.com/api/adwords/cm/v201809.
131  
132 The base class of all ad types. {@code Ad}s are created using the {@code AdGroupAdService}. Some ad types such as {@code ExpandedTextAd}s may be modified using the {@code AdService}. <p>When calling {@code AdGroupAdService} to update the {@code status} of an {@code AdGroupAd}, you can construct an {@code Ad} object (instead of the {@code Ad}'s concrete type) with the {@link #id} field set. <span class="constraint AdxEnabled">This is enabled for AdX.</span>
133  
134  
135  
136  
137 =head2 PROPERTIES
138  
139 The following properties may be accessed using get_PROPERTY / set_PROPERTY
140 methods:
141  
142 =over
143  
144 =item * id
145  
146  
147 =item * url
148  
149  
150 =item * displayUrl
151  
152  
153 =item * finalUrls
154  
155  
156 =item * finalMobileUrls
157  
158  
159 =item * finalAppUrls
160  
161  
162 =item * trackingUrlTemplate
163  
164  
165 =item * finalUrlSuffix
166  
167  
168 =item * urlCustomParameters
169  
170  
171 =item * urlData
172  
173  
174 =item * automated
175  
176  
177 =item * type
178  
179  
180 =item * devicePreference
181  
182  
183 =item * systemManagedEntitySource
184  
185  
186 =item * Ad__Type
187  
188 Note: The name of this property has been altered, because it didn't match
189 perl's notion of variable/subroutine names. The altered name is used in
190 perl code only, XML output uses the original name:
191  
192 Ad.Type
193  
194  
195  
196  
197 =back
198  
199  
200 =head1 METHODS
201  
202 =head2 new
203  
204 Constructor. The following data structure may be passed to new():
205  
206  
207  
208  
209  
210  
211 =head1 AUTHOR
212  
213 Generated by SOAP::WSDL
214  
215 =cut
216  
« lib/Google/Ads/AdWords/v201809/AccountLabelService/AccountLabelServiceInterfacePort.pm ↑ Summary lib/Google/Ads/AdWords/v201809/AdCustomizerFeedService/AdCustomizerFeedServiceInterfacePort.pm »