File Coverage

lib/Google/Ads/AdWords/v201710/AdCallMetricsConversion.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::AdCallMetricsConversion;
2 1     1   2248 use strict;
  1         2  
  1         42  
3 1     1   7 use warnings;
  1         5  
  1         113  
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   6 use base qw(Google::Ads::AdWords::v201710::ConversionTracker);
  1         2  
  1         267  
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 %originalConversionTypeId_of :ATTR(:get);
27             my %name_of :ATTR(:get);
28             my %status_of :ATTR(:get);
29             my %category_of :ATTR(:get);
30             my %dataDrivenModelStatus_of :ATTR(:get);
31             my %conversionTypeOwnerCustomerId_of :ATTR(:get);
32             my %viewthroughLookbackWindow_of :ATTR(:get);
33             my %ctcLookbackWindow_of :ATTR(:get);
34             my %countingType_of :ATTR(:get);
35             my %defaultRevenueValue_of :ATTR(:get);
36             my %defaultRevenueCurrencyCode_of :ATTR(:get);
37             my %alwaysUseDefaultRevenueValue_of :ATTR(:get);
38             my %excludeFromBidding_of :ATTR(:get);
39             my %attributionModelType_of :ATTR(:get);
40             my %mostRecentConversionDate_of :ATTR(:get);
41             my %lastReceivedRequestTime_of :ATTR(:get);
42             my %ConversionTracker__Type_of :ATTR(:get);
43             my %phoneCallDuration_of :ATTR(:get);
44              
45             __PACKAGE__->_factory(
46             [ qw( id
47             originalConversionTypeId
48             name
49             status
50             category
51             dataDrivenModelStatus
52             conversionTypeOwnerCustomerId
53             viewthroughLookbackWindow
54             ctcLookbackWindow
55             countingType
56             defaultRevenueValue
57             defaultRevenueCurrencyCode
58             alwaysUseDefaultRevenueValue
59             excludeFromBidding
60             attributionModelType
61             mostRecentConversionDate
62             lastReceivedRequestTime
63             ConversionTracker__Type
64             phoneCallDuration
65              
66             ) ],
67             {
68             'id' => \%id_of,
69             'originalConversionTypeId' => \%originalConversionTypeId_of,
70             'name' => \%name_of,
71             'status' => \%status_of,
72             'category' => \%category_of,
73             'dataDrivenModelStatus' => \%dataDrivenModelStatus_of,
74             'conversionTypeOwnerCustomerId' => \%conversionTypeOwnerCustomerId_of,
75             'viewthroughLookbackWindow' => \%viewthroughLookbackWindow_of,
76             'ctcLookbackWindow' => \%ctcLookbackWindow_of,
77             'countingType' => \%countingType_of,
78             'defaultRevenueValue' => \%defaultRevenueValue_of,
79             'defaultRevenueCurrencyCode' => \%defaultRevenueCurrencyCode_of,
80             'alwaysUseDefaultRevenueValue' => \%alwaysUseDefaultRevenueValue_of,
81             'excludeFromBidding' => \%excludeFromBidding_of,
82             'attributionModelType' => \%attributionModelType_of,
83             'mostRecentConversionDate' => \%mostRecentConversionDate_of,
84             'lastReceivedRequestTime' => \%lastReceivedRequestTime_of,
85             'ConversionTracker__Type' => \%ConversionTracker__Type_of,
86             'phoneCallDuration' => \%phoneCallDuration_of,
87             },
88             {
89             'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
90             'originalConversionTypeId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
91             'name' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
92             'status' => 'Google::Ads::AdWords::v201710::ConversionTracker::Status',
93             'category' => 'Google::Ads::AdWords::v201710::ConversionTracker::Category',
94             'dataDrivenModelStatus' => 'Google::Ads::AdWords::v201710::DataDrivenModelStatus',
95             'conversionTypeOwnerCustomerId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
96             'viewthroughLookbackWindow' => 'SOAP::WSDL::XSD::Typelib::Builtin::int',
97             'ctcLookbackWindow' => 'SOAP::WSDL::XSD::Typelib::Builtin::int',
98             'countingType' => 'Google::Ads::AdWords::v201710::ConversionDeduplicationMode',
99             'defaultRevenueValue' => 'SOAP::WSDL::XSD::Typelib::Builtin::double',
100             'defaultRevenueCurrencyCode' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
101             'alwaysUseDefaultRevenueValue' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
102             'excludeFromBidding' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
103             'attributionModelType' => 'Google::Ads::AdWords::v201710::AttributionModelType',
104             'mostRecentConversionDate' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
105             'lastReceivedRequestTime' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
106             'ConversionTracker__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
107             'phoneCallDuration' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
108             },
109             {
110              
111             'id' => 'id',
112             'originalConversionTypeId' => 'originalConversionTypeId',
113             'name' => 'name',
114             'status' => 'status',
115             'category' => 'category',
116             'dataDrivenModelStatus' => 'dataDrivenModelStatus',
117             'conversionTypeOwnerCustomerId' => 'conversionTypeOwnerCustomerId',
118             'viewthroughLookbackWindow' => 'viewthroughLookbackWindow',
119             'ctcLookbackWindow' => 'ctcLookbackWindow',
120             'countingType' => 'countingType',
121             'defaultRevenueValue' => 'defaultRevenueValue',
122             'defaultRevenueCurrencyCode' => 'defaultRevenueCurrencyCode',
123             'alwaysUseDefaultRevenueValue' => 'alwaysUseDefaultRevenueValue',
124             'excludeFromBidding' => 'excludeFromBidding',
125             'attributionModelType' => 'attributionModelType',
126             'mostRecentConversionDate' => 'mostRecentConversionDate',
127             'lastReceivedRequestTime' => 'lastReceivedRequestTime',
128             'ConversionTracker__Type' => 'ConversionTracker.Type',
129             'phoneCallDuration' => 'phoneCallDuration',
130             }
131             );
132              
133             } # end BLOCK
134              
135              
136              
137              
138              
139              
140              
141             1;
142              
143              
144             =pod
145              
146             =head1 NAME
147              
148             Google::Ads::AdWords::v201710::AdCallMetricsConversion
149              
150             =head1 DESCRIPTION
151              
152             Perl data type class for the XML Schema defined complexType
153             AdCallMetricsConversion from the namespace https://adwords.google.com/api/adwords/cm/v201710.
154              
155             A ConversionTracker for phone calls from conversion-tracked call extensions and call-only ads.

A call made from the call extension is reported as a conversion if it lasts longer than N seconds. This duration is 60 seconds by default. Each call extension can specify the desired conversion configuration.

156              
157              
158              
159              
160             =head2 PROPERTIES
161              
162             The following properties may be accessed using get_PROPERTY / set_PROPERTY
163             methods:
164              
165             =over
166              
167             =item * phoneCallDuration
168              
169              
170              
171              
172             =back
173              
174              
175             =head1 METHODS
176              
177             =head2 new
178              
179             Constructor. The following data structure may be passed to new():
180              
181              
182              
183              
184              
185              
186             =head1 AUTHOR
187              
188             Generated by SOAP::WSDL
189              
190             =cut
191