File Coverage

lib/Google/Ads/AdWords/v201702/TextAd.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::TextAd;
2 1     1   1562 use strict;
  1         1  
  1         24  
3 1     1   3 use warnings;
  1         2  
  1         74  
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   7 use base qw(Google::Ads::AdWords::v201702::Ad);
  1         5  
  1         97  
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             my %headline_of :ATTR(:get);
38             my %description1_of :ATTR(:get);
39             my %description2_of :ATTR(:get);
40              
41             __PACKAGE__->_factory(
42             [ qw( id
43             url
44             displayUrl
45             finalUrls
46             finalMobileUrls
47             finalAppUrls
48             trackingUrlTemplate
49             urlCustomParameters
50             urlData
51             type
52             devicePreference
53             Ad__Type
54             headline
55             description1
56             description2
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             'urlCustomParameters' => \%urlCustomParameters_of,
68             'urlData' => \%urlData_of,
69             'type' => \%type_of,
70             'devicePreference' => \%devicePreference_of,
71             'Ad__Type' => \%Ad__Type_of,
72             'headline' => \%headline_of,
73             'description1' => \%description1_of,
74             'description2' => \%description2_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::v201702::AppUrl',
83             'trackingUrlTemplate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
84             'urlCustomParameters' => 'Google::Ads::AdWords::v201702::CustomParameters',
85             'urlData' => 'Google::Ads::AdWords::v201702::UrlData',
86             'type' => 'Google::Ads::AdWords::v201702::Ad::Type',
87             'devicePreference' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
88             'Ad__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
89             'headline' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
90             'description1' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
91             'description2' => '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             'urlCustomParameters' => 'urlCustomParameters',
103             'urlData' => 'urlData',
104             'type' => 'type',
105             'devicePreference' => 'devicePreference',
106             'Ad__Type' => 'Ad.Type',
107             'headline' => 'headline',
108             'description1' => 'description1',
109             'description2' => 'description2',
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::v201702::TextAd
129              
130             =head1 DESCRIPTION
131              
132             Perl data type class for the XML Schema defined complexType
133             TextAd from the namespace https://adwords.google.com/api/adwords/cm/v201702.
134              
135             Represents a TextAd. This is disabled for AdX when it is contained within Operators: ADD, SET.
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             =item * headline
148              
149              
150             =item * description1
151              
152              
153             =item * description2
154              
155              
156              
157              
158             =back
159              
160              
161             =head1 METHODS
162              
163             =head2 new
164              
165             Constructor. The following data structure may be passed to new():
166              
167              
168              
169              
170              
171              
172             =head1 AUTHOR
173              
174             Generated by SOAP::WSDL
175              
176             =cut
177