lib/Google/Ads/AdWords/v201809/ProductAd.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/PriceFeedItem.pm ↑ Summary lib/Google/Ads/AdWords/v201809/ProductAdwordsGrouping.pm »
1 package Google::Ads::AdWords::v201809::ProductAd;
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  
41 __PACKAGE__->_factory(
42 [ qw( id
43 url
44 displayUrl
45 finalUrls
46 finalMobileUrls
47 finalAppUrls
48 trackingUrlTemplate
49 finalUrlSuffix
50 urlCustomParameters
51 urlData
52 automated
53 type
54 devicePreference
55 systemManagedEntitySource
56 Ad__Type
57  
58 ) ],
59 {
60 'id' => \%id_of,
61 'url' => \%url_of,
62 'displayUrl' => \%displayUrl_of,
63 'finalUrls' => \%finalUrls_of,
64 'finalMobileUrls' => \%finalMobileUrls_of,
65 'finalAppUrls' => \%finalAppUrls_of,
66 'trackingUrlTemplate' => \%trackingUrlTemplate_of,
67 'finalUrlSuffix' => \%finalUrlSuffix_of,
68 'urlCustomParameters' => \%urlCustomParameters_of,
69 'urlData' => \%urlData_of,
70 'automated' => \%automated_of,
71 'type' => \%type_of,
72 'devicePreference' => \%devicePreference_of,
73 'systemManagedEntitySource' => \%systemManagedEntitySource_of,
74 'Ad__Type' => \%Ad__Type_of,
75 },
76 {
77 'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
78 'url' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
79 'displayUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
80 'finalUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
81 'finalMobileUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
82 'finalAppUrls' => 'Google::Ads::AdWords::v201809::AppUrl',
83 'trackingUrlTemplate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
84 'finalUrlSuffix' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
85 'urlCustomParameters' => 'Google::Ads::AdWords::v201809::CustomParameters',
86 'urlData' => 'Google::Ads::AdWords::v201809::UrlData',
87 'automated' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
88 'type' => 'Google::Ads::AdWords::v201809::Ad::Type',
89 'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
90 'systemManagedEntitySource' => 'Google::Ads::AdWords::v201809::SystemManagedEntitySource',
91 'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
92 },
93 {
94  
95 'id' => 'id',
96 'url' => 'url',
97 'displayUrl' => 'displayUrl',
98 'finalUrls' => 'finalUrls',
99 'finalMobileUrls' => 'finalMobileUrls',
100 'finalAppUrls' => 'finalAppUrls',
101 'trackingUrlTemplate' => 'trackingUrlTemplate',
102 'finalUrlSuffix' => 'finalUrlSuffix',
103 'urlCustomParameters' => 'urlCustomParameters',
104 'urlData' => 'urlData',
105 'automated' => 'automated',
106 'type' => 'type',
107 'devicePreference' => 'devicePreference',
108 'systemManagedEntitySource' => 'systemManagedEntitySource',
109 'Ad__Type' => 'Ad.Type',
110 }
111 );
112  
113 } # end BLOCK
114  
115  
116  
117  
118  
119  
120  
121 1;
122  
123  
124 =pod
125  
126 =head1 NAME
127  
128 Google::Ads::AdWords::v201809::ProductAd
129  
130 =head1 DESCRIPTION
131  
132 Perl data type class for the XML Schema defined complexType
133 ProductAd from the namespace https://adwords.google.com/api/adwords/cm/v201809.
134  
135 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>
136  
137  
138  
139  
140 =head2 PROPERTIES
141  
142 The following properties may be accessed using get_PROPERTY / set_PROPERTY
143 methods:
144  
145 =over
146  
147  
148  
149 =back
150  
151  
152 =head1 METHODS
153  
154 =head2 new
155  
156 Constructor. The following data structure may be passed to new():
157  
158  
159  
160  
161  
162  
163 =head1 AUTHOR
164  
165 Generated by SOAP::WSDL
166  
167 =cut
168  
« lib/Google/Ads/AdWords/v201809/PriceFeedItem.pm ↑ Summary lib/Google/Ads/AdWords/v201809/ProductAdwordsGrouping.pm »