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

filter: Statementstmt 0.0% 0 / 40 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 49 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::ProductAd;
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  
39 __PACKAGE__->_factory(
40 [ qw( id
41 url
42 displayUrl
43 finalUrls
44 finalMobileUrls
45 finalAppUrls
46 trackingUrlTemplate
47 urlCustomParameters
48 urlData
49 automated
50 type
51 devicePreference
52 Ad__Type
53  
54 ) ],
55 {
56 'id' => \%id_of,
57 'url' => \%url_of,
58 'displayUrl' => \%displayUrl_of,
59 'finalUrls' => \%finalUrls_of,
60 'finalMobileUrls' => \%finalMobileUrls_of,
61 'finalAppUrls' => \%finalAppUrls_of,
62 'trackingUrlTemplate' => \%trackingUrlTemplate_of,
63 'urlCustomParameters' => \%urlCustomParameters_of,
64 'urlData' => \%urlData_of,
65 'automated' => \%automated_of,
66 'type' => \%type_of,
67 'devicePreference' => \%devicePreference_of,
68 'Ad__Type' => \%Ad__Type_of,
69 },
70 {
71 'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
72 'url' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
73 'displayUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
74 'finalUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
75 'finalMobileUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
76 'finalAppUrls' => 'Google::Ads::AdWords::v201710::AppUrl',
77 'trackingUrlTemplate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
78 'urlCustomParameters' => 'Google::Ads::AdWords::v201710::CustomParameters',
79 'urlData' => 'Google::Ads::AdWords::v201710::UrlData',
80 'automated' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
81 'type' => 'Google::Ads::AdWords::v201710::Ad::Type',
82 'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
83 'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
84 },
85 {
86  
87 'id' => 'id',
88 'url' => 'url',
89 'displayUrl' => 'displayUrl',
90 'finalUrls' => 'finalUrls',
91 'finalMobileUrls' => 'finalMobileUrls',
92 'finalAppUrls' => 'finalAppUrls',
93 'trackingUrlTemplate' => 'trackingUrlTemplate',
94 'urlCustomParameters' => 'urlCustomParameters',
95 'urlData' => 'urlData',
96 'automated' => 'automated',
97 'type' => 'type',
98 'devicePreference' => 'devicePreference',
99 'Ad__Type' => 'Ad.Type',
100 }
101 );
102  
103 } # end BLOCK
104  
105  
106  
107  
108  
109  
110  
111 1;
112  
113  
114 =pod
115  
116 =head1 NAME
117  
118 Google::Ads::AdWords::v201710::ProductAd
119  
120 =head1 DESCRIPTION
121  
122 Perl data type class for the XML Schema defined complexType
123 ProductAd from the namespace https://adwords.google.com/api/adwords/cm/v201710.
124  
125 Represents a product ad (known as a <a href= "//support.google.com/adwords/answer/2456103">product listing ad</a> in the AdWords user interface). A product ad displays product data (managed using the Google Merchant Center) that is pulled from the Google base product feed specified in the parent campaign's {@linkplain ShoppingSetting shopping setting}. <p class="caution"><b>Caution:</b> Product ads do not use {@link #url url}, {@link #finalUrls finalUrls}, {@link #finalMobileUrls finalMobileUrls}, {@link #finalAppUrls finalAppUrls}, or {@link #displayUrl displayUrl}; setting these fields on a product ad will cause an error. {@link #urlCustomParameters urlCustomParameters} and {@link #trackingUrlTemplate trackingUrlTemplate} can be set, but it is not recommended, as they will not be used; they should be set at the ad group or campaign level instead.</p> <span class="constraint AdxEnabled">This is disabled for AdX when it is contained within Operators: ADD, SET.</span>
126  
127  
128  
129  
130 =head2 PROPERTIES
131  
132 The following properties may be accessed using get_PROPERTY / set_PROPERTY
133 methods:
134  
135 =over
136  
137  
138  
139 =back
140  
141  
142 =head1 METHODS
143  
144 =head2 new
145  
146 Constructor. The following data structure may be passed to new():
147  
148  
149  
150  
151  
152  
153 =head1 AUTHOR
154  
155 Generated by SOAP::WSDL
156  
157 =cut
158