File Coverage

lib/Google/Ads/AdWords/v201702/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::v201702::BiddingStrategyConfiguration;
2 1     1   1820 use strict;
  1         2  
  1         26  
3 1     1   5 use warnings;
  1         1  
  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 1     1   5 use Class::Std::Fast::Storable constructor => 'none';
  1         2  
  1         8  
18 1     1   143 use base qw(Google::Ads::SOAP::Typelib::ComplexType);
  1         2  
  1         133  
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              
29             __PACKAGE__->_factory(
30             [ qw( biddingStrategyId
31             biddingStrategyName
32             biddingStrategyType
33             biddingStrategySource
34             biddingScheme
35             bids
36              
37             ) ],
38             {
39             'biddingStrategyId' => \%biddingStrategyId_of,
40             'biddingStrategyName' => \%biddingStrategyName_of,
41             'biddingStrategyType' => \%biddingStrategyType_of,
42             'biddingStrategySource' => \%biddingStrategySource_of,
43             'biddingScheme' => \%biddingScheme_of,
44             'bids' => \%bids_of,
45             },
46             {
47             'biddingStrategyId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
48             'biddingStrategyName' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
49             'biddingStrategyType' => 'Google::Ads::AdWords::v201702::BiddingStrategyType',
50             'biddingStrategySource' => 'Google::Ads::AdWords::v201702::BiddingStrategySource',
51             'biddingScheme' => 'Google::Ads::AdWords::v201702::BiddingScheme',
52             'bids' => 'Google::Ads::AdWords::v201702::Bids',
53             },
54             {
55              
56             'biddingStrategyId' => 'biddingStrategyId',
57             'biddingStrategyName' => 'biddingStrategyName',
58             'biddingStrategyType' => 'biddingStrategyType',
59             'biddingStrategySource' => 'biddingStrategySource',
60             'biddingScheme' => 'biddingScheme',
61             'bids' => 'bids',
62             }
63             );
64              
65             } # end BLOCK
66              
67              
68              
69              
70              
71              
72              
73             1;
74              
75              
76             =pod
77              
78             =head1 NAME
79              
80             Google::Ads::AdWords::v201702::BiddingStrategyConfiguration
81              
82             =head1 DESCRIPTION
83              
84             Perl data type class for the XML Schema defined complexType
85             BiddingStrategyConfiguration from the namespace https://adwords.google.com/api/adwords/cm/v201702.
86              
87             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.

88              
89              
90              
91              
92             =head2 PROPERTIES
93              
94             The following properties may be accessed using get_PROPERTY / set_PROPERTY
95             methods:
96              
97             =over
98              
99             =item * biddingStrategyId
100              
101              
102             =item * biddingStrategyName
103              
104              
105             =item * biddingStrategyType
106              
107              
108             =item * biddingStrategySource
109              
110              
111             =item * biddingScheme
112              
113              
114             =item * bids
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