lib/Google/Ads/AdWords/v201809/CampaignEstimateRequest.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod n/a totaltotal 75.0% 12 / 16 CC 1 SCAR 3.4
CC
1
Cov
82%
get_xmlns
2.0
__get_attr_class
2.0
BEGIN
1.0
CRAP 1.4
« lib/Google/Ads/AdWords/v201809/CampaignEstimate.pm ↑ Summary lib/Google/Ads/AdWords/v201809/CampaignExtensionSettingOperation.pm »
1 package Google::Ads::AdWords::v201809::CampaignEstimateRequest;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5  
6 __PACKAGE__->_set_element_form_qualified(1);
7  
8 0 ▶sub get_xmlns { 'https://adwords.google.com/api/adwords/o/v201809' };
Subroutine get_xmlns: not called CC=1 SCAR=6.9
9  
10 our $XML_ATTRIBUTE_CLASS;
11 undef $XML_ATTRIBUTE_CLASS;
12  
13 0 ▶sub __get_attr_class {
Subroutine __get_attr_class: not called CC=1 SCAR=6.9
14 0 return $XML_ATTRIBUTE_CLASS;
15 }
16  
17  
18 1 ▶use base qw(Google::Ads::AdWords::v201809::EstimateRequest);
Subroutine BEGIN: called CC=1 SCAR=0.0
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<EstimateRequest__Type>);
26 my %campaignId_of :ATTR(:get<campaignId>);
27 my %adGroupEstimateRequests_of :ATTR(:get<adGroupEstimateRequests>);
28 my %criteria_of :ATTR(:get<criteria>);
29 my %networkSetting_of :ATTR(:get<networkSetting>);
30 my %dailyBudget_of :ATTR(:get<dailyBudget>);
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::v201809::AdGroupEstimateRequest',
53 'criteria' => 'Google::Ads::AdWords::v201809::Criterion',
54 'networkSetting' => 'Google::Ads::AdWords::v201809::NetworkSetting',
55 'dailyBudget' => 'Google::Ads::AdWords::v201809::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::v201809::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/v201809.
89  
90 Represents a campaign that will be estimated.<p> 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.<p> 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.<p> 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  
« lib/Google/Ads/AdWords/v201809/CampaignEstimate.pm ↑ Summary lib/Google/Ads/AdWords/v201809/CampaignExtensionSettingOperation.pm »