blib/lib/Google/Ads/AdWords/v201402/ProductPartition.pm untested

filter: Statementstmt 0.0% 0 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 43 CC 1 SCAR 6.9
CC
1
Cov
0%
get_xmlns
2.0
__get_attr_class
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Ads::AdWords::v201402::ProductPartition;
2 use strict;
3 use warnings;
4  
5  
6 __PACKAGE__->_set_element_form_qualified(1);
7  
8 sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201402' };
9  
10 our $XML_ATTRIBUTE_CLASS;
11 undef $XML_ATTRIBUTE_CLASS;
12  
13 sub __get_attr_class {
14 return $XML_ATTRIBUTE_CLASS;
15 }
16  
17  
18 use base qw(Google::Ads::AdWords::v201402::Criterion);
19 # Variety: sequence
20 use Class::Std::Fast::Storable constructor => 'none';
21 use base qw(Google::Ads::SOAP::Typelib::ComplexType);
22  
23 Class::Std::initialize();
24  
25 { # BLOCK to scope variables
26  
27 my %id_of :ATTR(:get<id>);
28 my %type_of :ATTR(:get<type>);
29 my %Criterion__Type_of :ATTR(:get<Criterion__Type>);
30 my %partitionType_of :ATTR(:get<partitionType>);
31 my %parentCriterionId_of :ATTR(:get<parentCriterionId>);
32 my %caseValue_of :ATTR(:get<caseValue>);
33  
34 __PACKAGE__->_factory(
35 [ qw( id
36 type
37 Criterion__Type
38 partitionType
39 parentCriterionId
40 caseValue
41  
42 ) ],
43 {
44 'id' => \%id_of,
45 'type' => \%type_of,
46 'Criterion__Type' => \%Criterion__Type_of,
47 'partitionType' => \%partitionType_of,
48 'parentCriterionId' => \%parentCriterionId_of,
49 'caseValue' => \%caseValue_of,
50 },
51 {
52 'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
53 'type' => 'Google::Ads::AdWords::v201402::Criterion::Type',
54 'Criterion__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
55 'partitionType' => 'Google::Ads::AdWords::v201402::ProductPartitionType',
56 'parentCriterionId' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
57 'caseValue' => 'Google::Ads::AdWords::v201402::ProductDimension',
58 },
59 {
60  
61 'id' => 'id',
62 'type' => 'type',
63 'Criterion__Type' => 'Criterion.Type',
64 'partitionType' => 'partitionType',
65 'parentCriterionId' => 'parentCriterionId',
66 'caseValue' => 'caseValue',
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::v201402::ProductPartition
86  
87 =head1 DESCRIPTION
88  
89 Perl data type class for the XML Schema defined complexType
90 ProductPartition from the namespace https://adwords.google.com/api/adwords/cm/v201402.
91  
92 Product partition (product group) in a shopping campaign. Depending on its type, a product partition subdivides products along some product dimension, specifies a bid for products, or excludes products from bidding. <p>Inner nodes of a product partition hierarchy are always subdivisions. Each child is linked to the subdivision via the {@code parentCriterionId} and defines a {@code caseValue}. For all children of the same subdivision, the {@code caseValue}s must be mutually different but instances of the same class. To create a subdivision and child node in the same API request, they should refer to each other using temporary criterion IDs in the {@code parentCriterionId} of the child, and ID field of the subdivision. Temporary IDs are specified by using any negative integer. Temporary IDs only exist within the scope of a single API request. The API will assign real criterion IDs, and replace the temporary values, and the API response will reflect this. <span class="constraint AdxEnabled">This is disabled for AdX when it is contained within Operators: ADD, SET.</span>
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 * partitionType
105  
106  
107 =item * parentCriterionId
108  
109  
110 =item * caseValue
111  
112  
113  
114  
115 =back
116  
117  
118 =head1 METHODS
119  
120 =head2 new
121  
122 Constructor. The following data structure may be passed to new():
123  
124  
125  
126  
127  
128  
129 =head1 AUTHOR
130  
131 Generated by SOAP::WSDL
132  
133 =cut
134