File Coverage

lib/Google/Ads/AdWords/v201710/BiddingStrategyConfiguration.pm
Criterion Covered Total %
statement 12 14 85.7
branch n/a
condition n/a
subroutine 4 6 66.6
pod n/a
total 16 20 80.0


line stmt bran cond sub pod time code
1             package Google::Ads::AdWords::v201710::BiddingStrategyConfiguration;
2 1     1   1787 use strict;
  1         2  
  1         26  
3 1     1   5 use warnings;
  1         3  
  1         85  
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 1     1   7 use Class::Std::Fast::Storable constructor => 'none';
  1         1  
  1         13  
18 1     1   162 use base qw(Google::Ads::SOAP::Typelib::ComplexType);
  1         1  
  1         100  
19              
20             { # BLOCK to scope variables
21              
22             my %biddingStrategyId_of :ATTR(:get);
23             my %biddingStrategyName_of :ATTR(:get);
24             my %biddingStrategyType_of :ATTR(:get);
25             my %biddingStrategySource_of :ATTR(:get);
26             my %biddingScheme_of :ATTR(:get);
27             my %bids_of :ATTR(:get);
28             my %targetRoasOverride_of :ATTR(:get);
29              
30             __PACKAGE__->_factory(
31             [ qw( biddingStrategyId
32             biddingStrategyName
33             biddingStrategyType
34             biddingStrategySource
35             biddingScheme
36             bids
37             targetRoasOverride
38              
39             ) ],
40             {
41             'biddingStrategyId' => \%biddingStrategyId_of,
42             'biddingStrategyName' => \%biddingStrategyName_of,
43             'biddingStrategyType' => \%biddingStrategyType_of,
44             'biddingStrategySource' => \%biddingStrategySource_of,
45             'biddingScheme' => \%biddingScheme_of,
46             'bids' => \%bids_of,
47             'targetRoasOverride' => \%targetRoasOverride_of,
48             },
49             {
50             'biddingStrategyId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
51             'biddingStrategyName' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
52             'biddingStrategyType' => 'Google::Ads::AdWords::v201710::BiddingStrategyType',
53             'biddingStrategySource' => 'Google::Ads::AdWords::v201710::BiddingStrategySource',
54             'biddingScheme' => 'Google::Ads::AdWords::v201710::BiddingScheme',
55             'bids' => 'Google::Ads::AdWords::v201710::Bids',
56             'targetRoasOverride' => 'SOAP::WSDL::XSD::Typelib::Builtin::double',
57             },
58             {
59              
60             'biddingStrategyId' => 'biddingStrategyId',
61             'biddingStrategyName' => 'biddingStrategyName',
62             'biddingStrategyType' => 'biddingStrategyType',
63             'biddingStrategySource' => 'biddingStrategySource',
64             'biddingScheme' => 'biddingScheme',
65             'bids' => 'bids',
66             'targetRoasOverride' => 'targetRoasOverride',
67             }
68             );
69              
70             } # end BLOCK
71              
72              
73              
74              
75              
76              
77              
78             1;
79              
80              
81             =pod
82              
83             =head1 NAME
84              
85             Google::Ads::AdWords::v201710::BiddingStrategyConfiguration
86              
87             =head1 DESCRIPTION
88              
89             Perl data type class for the XML Schema defined complexType
90             BiddingStrategyConfiguration from the namespace https://adwords.google.com/api/adwords/cm/v201710.
91              
92             Encapsulates the information about bids and bidding strategies.

Note: Starting with v201705, bidding strategies can only be set on campaigns. In earlier versions, bidding strategies can be set on campaigns, ad groups and ad group criteria.

A bidding strategy can be set using one of the following:

  • {@linkplain BiddingStrategyConfiguration#biddingScheme bidding scheme}
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyType bidding strategy type}
  • {@linkplain BiddingStrategyConfiguration#biddingStrategyId bidding strategy ID} for flexible bid strategies.

If the bidding strategy type is used, then schemes are created using default values.

Bids can be set only on ad groups and ad group criteria. They cannot be set on campaigns. Multiple bids can be set at the same time. Only the bids that apply to the effective bidding strategy will be used. Effective bidding strategy is considered to be the directly attached strategy or inherited strategy from above level(s) when there is no directly attached strategy.

For more information on flexible bidding, visit the Help Center.

93              
94              
95              
96              
97             =head2 PROPERTIES
98              
99             The following properties may be accessed using get_PROPERTY / set_PROPERTY
100             methods:
101              
102             =over
103              
104             =item * biddingStrategyId
105              
106              
107             =item * biddingStrategyName
108              
109              
110             =item * biddingStrategyType
111              
112              
113             =item * biddingStrategySource
114              
115              
116             =item * biddingScheme
117              
118              
119             =item * bids
120              
121              
122             =item * targetRoasOverride
123              
124              
125              
126              
127             =back
128              
129              
130             =head1 METHODS
131              
132             =head2 new
133              
134             Constructor. The following data structure may be passed to new():
135              
136              
137              
138              
139              
140              
141             =head1 AUTHOR
142              
143             Generated by SOAP::WSDL
144              
145             =cut
146