lib/Google/Ads/AdWords/v201702/CampaignEstimateRequest.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::CampaignEstimateRequest; | ||||||
2 | 1 | 1 | 1808 | use strict; | |||
1 | 4 | ||||||
1 | 38 | ||||||
3 | 1 | 1 | 9 | use warnings; | |||
1 | 2 | ||||||
1 | 129 | ||||||
4 | |||||||
5 | |||||||
6 | __PACKAGE__->_set_element_form_qualified(1); | ||||||
7 | |||||||
8 | 0 | 0 | sub get_xmlns { 'https://adwords.google.com/api/adwords/o/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 | 9 | use base qw(Google::Ads::AdWords::v201702::EstimateRequest); | |||
1 | 4 | ||||||
1 | 143 | ||||||
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 %EstimateRequest__Type_of :ATTR(:get |
||||||
26 | my %campaignId_of :ATTR(:get |
||||||
27 | my %adGroupEstimateRequests_of :ATTR(:get |
||||||
28 | my %criteria_of :ATTR(:get |
||||||
29 | my %networkSetting_of :ATTR(:get |
||||||
30 | my %dailyBudget_of :ATTR(:get |
||||||
31 | |||||||
32 | __PACKAGE__->_factory( | ||||||
33 | [ qw( EstimateRequest__Type | ||||||
34 | campaignId | ||||||
35 | adGroupEstimateRequests | ||||||
36 | criteria | ||||||
37 | networkSetting | ||||||
38 | dailyBudget | ||||||
39 | |||||||
40 | ) ], | ||||||
41 | { | ||||||
42 | 'EstimateRequest__Type' => \%EstimateRequest__Type_of, | ||||||
43 | 'campaignId' => \%campaignId_of, | ||||||
44 | 'adGroupEstimateRequests' => \%adGroupEstimateRequests_of, | ||||||
45 | 'criteria' => \%criteria_of, | ||||||
46 | 'networkSetting' => \%networkSetting_of, | ||||||
47 | 'dailyBudget' => \%dailyBudget_of, | ||||||
48 | }, | ||||||
49 | { | ||||||
50 | 'EstimateRequest__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', | ||||||
51 | 'campaignId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long', | ||||||
52 | 'adGroupEstimateRequests' => 'Google::Ads::AdWords::v201702::AdGroupEstimateRequest', | ||||||
53 | 'criteria' => 'Google::Ads::AdWords::v201702::Criterion', | ||||||
54 | 'networkSetting' => 'Google::Ads::AdWords::v201702::NetworkSetting', | ||||||
55 | 'dailyBudget' => 'Google::Ads::AdWords::v201702::Money', | ||||||
56 | }, | ||||||
57 | { | ||||||
58 | |||||||
59 | 'EstimateRequest__Type' => 'EstimateRequest.Type', | ||||||
60 | 'campaignId' => 'campaignId', | ||||||
61 | 'adGroupEstimateRequests' => 'adGroupEstimateRequests', | ||||||
62 | 'criteria' => 'criteria', | ||||||
63 | 'networkSetting' => 'networkSetting', | ||||||
64 | 'dailyBudget' => 'dailyBudget', | ||||||
65 | } | ||||||
66 | ); | ||||||
67 | |||||||
68 | } # end BLOCK | ||||||
69 | |||||||
70 | |||||||
71 | |||||||
72 | |||||||
73 | |||||||
74 | |||||||
75 | |||||||
76 | 1; | ||||||
77 | |||||||
78 | |||||||
79 | =pod | ||||||
80 | |||||||
81 | =head1 NAME | ||||||
82 | |||||||
83 | Google::Ads::AdWords::v201702::CampaignEstimateRequest | ||||||
84 | |||||||
85 | =head1 DESCRIPTION | ||||||
86 | |||||||
87 | Perl data type class for the XML Schema defined complexType | ||||||
88 | CampaignEstimateRequest from the namespace https://adwords.google.com/api/adwords/o/v201702. | ||||||
89 | |||||||
90 | Represents a campaign that will be estimated. Returns traffic estimates for the requested set of campaigns. The campaigns can be all new or all existing, or a mixture of new and existing. Only existing campaigns may contain estimates for existing ad groups. For existing campaigns, the campaign and optionally the ad group will be used as context to produce more accurate estimates. Traffic estimates may only be requested on keywords, so regardless of whether campaign and ad group IDs are provided or left blank, at least one keyword is required to estimate traffic. To make a keyword estimates request in which estimates do not consider existing account information (e.g. historical ad group performance), set {@link #campaignId} to {@code null}. |
||||||
91 | |||||||
92 | |||||||
93 | |||||||
94 | |||||||
95 | =head2 PROPERTIES | ||||||
96 | |||||||
97 | The following properties may be accessed using get_PROPERTY / set_PROPERTY | ||||||
98 | methods: | ||||||
99 | |||||||
100 | =over | ||||||
101 | |||||||
102 | =item * campaignId | ||||||
103 | |||||||
104 | |||||||
105 | =item * adGroupEstimateRequests | ||||||
106 | |||||||
107 | |||||||
108 | =item * criteria | ||||||
109 | |||||||
110 | |||||||
111 | =item * networkSetting | ||||||
112 | |||||||
113 | |||||||
114 | =item * dailyBudget | ||||||
115 | |||||||
116 | |||||||
117 | |||||||
118 | |||||||
119 | =back | ||||||
120 | |||||||
121 | |||||||
122 | =head1 METHODS | ||||||
123 | |||||||
124 | =head2 new | ||||||
125 | |||||||
126 | Constructor. The following data structure may be passed to new(): | ||||||
127 | |||||||
128 | |||||||
129 | |||||||
130 | |||||||
131 | |||||||
132 | |||||||
133 | =head1 AUTHOR | ||||||
134 | |||||||
135 | Generated by SOAP::WSDL | ||||||
136 | |||||||
137 | =cut | ||||||
138 |