File Coverage

lib/Google/Ads/AdWords/v201710/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::v201710::ProductAd;
2 1     1   1926 use strict;
  1         2  
  1         24  
3 1     1   4 use warnings;
  1         2  
  1         84  
4              
5              
6             __PACKAGE__->_set_element_form_qualified(1);
7              
8 0     0     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 0     0     return $XML_ATTRIBUTE_CLASS;
15             }
16              
17              
18 1     1   5 use base qw(Google::Ads::AdWords::v201710::Ad);
  1         2  
  1         355  
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 %automated_of :ATTR(:get);
35             my %type_of :ATTR(:get);
36             my %devicePreference_of :ATTR(:get);
37             my %Ad__Type_of :ATTR(:get);
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 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.
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