blib/lib/Google/Ads/AdWords/v201309/AdGroupAdService/mutate.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  
2 package Google::Ads::AdWords::v201309::AdGroupAdService::mutate;
3 use strict;
4 use warnings;
5  
6 { # BLOCK to scope variables
7  
8 sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201309' }
9  
10 __PACKAGE__->__set_name('mutate');
11 __PACKAGE__->__set_nillable();
12 __PACKAGE__->__set_minOccurs();
13 __PACKAGE__->__set_maxOccurs();
14 __PACKAGE__->__set_ref();
15  
16 use base qw(
17 SOAP::WSDL::XSD::Typelib::Element
18 Google::Ads::SOAP::Typelib::ComplexType
19 );
20  
21 our $XML_ATTRIBUTE_CLASS;
22 undef $XML_ATTRIBUTE_CLASS;
23  
24 sub __get_attr_class {
25 return $XML_ATTRIBUTE_CLASS;
26 }
27  
28 use Class::Std::Fast::Storable constructor => 'none';
29 use base qw(Google::Ads::SOAP::Typelib::ComplexType);
30  
31 Class::Std::initialize();
32  
33 { # BLOCK to scope variables
34  
35 my %operations_of :ATTR(:get<operations>);
36  
37 __PACKAGE__->_factory(
38 [ qw( operations
39  
40 ) ],
41 {
42 'operations' => \%operations_of,
43 },
44 {
45 'operations' => 'Google::Ads::AdWords::v201309::AdGroupAdOperation',
46 },
47 {
48  
49 'operations' => 'operations',
50 }
51 );
52  
53 } # end BLOCK
54  
55  
56  
57  
58  
59  
60 } # end of BLOCK
61  
62  
63  
64 1;
65  
66  
67 =pod
68  
69 =head1 NAME
70  
71 Google::Ads::AdWords::v201309::AdGroupAdService::mutate
72  
73 =head1 DESCRIPTION
74  
75 Perl data type class for the XML Schema defined element
76 mutate from the namespace https://adwords.google.com/api/adwords/cm/v201309.
77  
78 Applies the list of mutate operations (ie. add, set, remove): <p>Add - Creates a new {@linkplain AdGroupAd ad group ad}. The {@code adGroupId} must reference an existing ad group. The child {@code Ad} must be sufficiently specified by constructing a concrete ad type (such as {@code TextAd}) and setting its fields accordingly.</p> <p>Set - Updates an ad group ad. Except for {@code status}, ad group ad fields are not mutable. Status updates are straightforward - the status of the ad group ad is updated as specified. If any other field has changed, it will be ignored. If you want to change any of the fields other than status, you must make a new ad and then delete the old one.</p> <p>Remove - Removes the link between the specified AdGroup and Ad.</p> @param operations The operations to apply. @return A list of AdGroupAds where each entry in the list is the result of applying the operation in the input list with the same index. For an add/set operation, the return AdGroupAd will be what is saved to the db. In the case of the remove operation, the return AdGroupAd will simply be an AdGroupAd containing an Ad with the id set to the Ad being deleted from the AdGroup.
79  
80  
81  
82  
83  
84 =head1 PROPERTIES
85  
86 The following properties may be accessed using get_PROPERTY / set_PROPERTY
87 methods:
88  
89 =over
90  
91 =item * operations
92  
93 $element->set_operations($data);
94 $element->get_operations();
95  
96  
97  
98  
99  
100 =back
101  
102  
103 =head1 METHODS
104  
105 =head2 new
106  
107 my $element = Google::Ads::AdWords::v201309::AdGroupAdService::mutate->new($data);
108  
109 Constructor. The following data structure may be passed to new():
110  
111 {
112 operations => $a_reference_to, # see Google::Ads::AdWords::v201309::AdGroupAdOperation
113 },
114  
115 =head1 AUTHOR
116  
117 Generated by SOAP::WSDL
118  
119 =cut
120