File Coverage

lib/Google/Ads/AdWords/v201702/ProductScope.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::ProductScope;
2 1     1   1634 use strict;
  1         2  
  1         29  
3 1     1   5 use warnings;
  1         2  
  1         73  
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              
18 1     1   5 use base qw(Google::Ads::AdWords::v201702::Criterion);
  1         2  
  1         95  
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 %id_of :ATTR(:get);
26             my %type_of :ATTR(:get);
27             my %Criterion__Type_of :ATTR(:get);
28             my %dimensions_of :ATTR(:get);
29              
30             __PACKAGE__->_factory(
31             [ qw( id
32             type
33             Criterion__Type
34             dimensions
35              
36             ) ],
37             {
38             'id' => \%id_of,
39             'type' => \%type_of,
40             'Criterion__Type' => \%Criterion__Type_of,
41             'dimensions' => \%dimensions_of,
42             },
43             {
44             'id' => 'SOAP::WSDL::XSD::Typelib::Builtin::long',
45             'type' => 'Google::Ads::AdWords::v201702::Criterion::Type',
46             'Criterion__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
47             'dimensions' => 'Google::Ads::AdWords::v201702::ProductDimension',
48             },
49             {
50              
51             'id' => 'id',
52             'type' => 'type',
53             'Criterion__Type' => 'Criterion.Type',
54             'dimensions' => 'dimensions',
55             }
56             );
57              
58             } # end BLOCK
59              
60              
61              
62              
63              
64              
65              
66             1;
67              
68              
69             =pod
70              
71             =head1 NAME
72              
73             Google::Ads::AdWords::v201702::ProductScope
74              
75             =head1 DESCRIPTION
76              
77             Perl data type class for the XML Schema defined complexType
78             ProductScope from the namespace https://adwords.google.com/api/adwords/cm/v201702.
79              
80             Scope of products. Contains a set of product dimensions, all of which a product has to match to be included in the campaign. These product dimensions must have a value; the "everything else" case without a value is not allowed.

If there is no {@code ProductScope}, all products are included in the campaign. If a campaign has more than one {@code ProductScope}, products are included as long as they match any. Campaigns of {@link AdvertisingChannelType#SHOPPING} can have at most one {@code ProductScope}. This is disabled for AdX when it is contained within Operators: ADD, SET.

81              
82              
83              
84              
85             =head2 PROPERTIES
86              
87             The following properties may be accessed using get_PROPERTY / set_PROPERTY
88             methods:
89              
90             =over
91              
92             =item * dimensions
93              
94              
95              
96              
97             =back
98              
99              
100             =head1 METHODS
101              
102             =head2 new
103              
104             Constructor. The following data structure may be passed to new():
105              
106              
107              
108              
109              
110              
111             =head1 AUTHOR
112              
113             Generated by SOAP::WSDL
114              
115             =cut
116