File Coverage

lib/Google/Ads/AdWords/v201702/ProductAd.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 5 60.0
pod n/a
total 12 16 75.0


line stmt bran cond sub pod time code
1             package Google::Ads::AdWords::v201702::ProductAd;
2 1     1   1915 use strict;
  1         2  
  1         24  
3 1     1   4 use warnings;
  1         1  
  1         83  
4              
5              
6             __PACKAGE__->_set_element_form_qualified(1);
7              
8 0     0     sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201702' };
9              
10             our $XML_ATTRIBUTE_CLASS;
11             undef $XML_ATTRIBUTE_CLASS;
12              
13             sub __get_attr_class {
14 0     0     return $XML_ATTRIBUTE_CLASS;
15             }
16              
17              
18 1     1   5 use base qw(Google::Ads::AdWords::v201702::Ad);
  1         1  
  1         243  
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);
26             my %url_of :ATTR(:get);
27             my %displayUrl_of :ATTR(:get);
28             my %finalUrls_of :ATTR(:get);
29             my %finalMobileUrls_of :ATTR(:get);
30             my %finalAppUrls_of :ATTR(:get);
31             my %trackingUrlTemplate_of :ATTR(:get);
32             my %urlCustomParameters_of :ATTR(:get);
33             my %urlData_of :ATTR(:get);
34             my %type_of :ATTR(:get);
35             my %devicePreference_of :ATTR(:get);
36             my %Ad__Type_of :ATTR(:get);
37              
38             __PACKAGE__->_factory(
39             [ qw( id
40             url
41             displayUrl
42             finalUrls
43             finalMobileUrls
44             finalAppUrls
45             trackingUrlTemplate
46             urlCustomParameters
47             urlData
48             type
49             devicePreference
50             Ad__Type
51              
52             ) ],
53             {
54             'id' => \%id_of,
55             'url' => \%url_of,
56             'displayUrl' => \%displayUrl_of,
57             'finalUrls' => \%finalUrls_of,
58             'finalMobileUrls' => \%finalMobileUrls_of,
59             'finalAppUrls' => \%finalAppUrls_of,
60             'trackingUrlTemplate' => \%trackingUrlTemplate_of,
61             'urlCustomParameters' => \%urlCustomParameters_of,
62             'urlData' => \%urlData_of,
63             'type' => \%type_of,
64             'devicePreference' => \%devicePreference_of,
65             'Ad__Type' => \%Ad__Type_of,
66             },
67             {
68             'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
69             'url' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
70             'displayUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
71             'finalUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
72             'finalMobileUrls' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
73             'finalAppUrls' => 'Google::Ads::AdWords::v201702::AppUrl',
74             'trackingUrlTemplate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
75             'urlCustomParameters' => 'Google::Ads::AdWords::v201702::CustomParameters',
76             'urlData' => 'Google::Ads::AdWords::v201702::UrlData',
77             'type' => 'Google::Ads::AdWords::v201702::Ad::Type',
78             'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
79             'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
80             },
81             {
82              
83             'id' => 'id',
84             'url' => 'url',
85             'displayUrl' => 'displayUrl',
86             'finalUrls' => 'finalUrls',
87             'finalMobileUrls' => 'finalMobileUrls',
88             'finalAppUrls' => 'finalAppUrls',
89             'trackingUrlTemplate' => 'trackingUrlTemplate',
90             'urlCustomParameters' => 'urlCustomParameters',
91             'urlData' => 'urlData',
92             'type' => 'type',
93             'devicePreference' => 'devicePreference',
94             'Ad__Type' => 'Ad.Type',
95             }
96             );
97              
98             } # end BLOCK
99              
100              
101              
102              
103              
104              
105              
106             1;
107              
108              
109             =pod
110              
111             =head1 NAME
112              
113             Google::Ads::AdWords::v201702::ProductAd
114              
115             =head1 DESCRIPTION
116              
117             Perl data type class for the XML Schema defined complexType
118             ProductAd from the namespace https://adwords.google.com/api/adwords/cm/v201702.
119              
120             Represents a product ad (known as a product listing ad 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}.

Caution: 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.

This is disabled for AdX when it is contained within Operators: ADD, SET.
121              
122              
123              
124              
125             =head2 PROPERTIES
126              
127             The following properties may be accessed using get_PROPERTY / set_PROPERTY
128             methods:
129              
130             =over
131              
132              
133              
134             =back
135              
136              
137             =head1 METHODS
138              
139             =head2 new
140              
141             Constructor. The following data structure may be passed to new():
142              
143              
144              
145              
146              
147              
148             =head1 AUTHOR
149              
150             Generated by SOAP::WSDL
151              
152             =cut
153