blib/lib/Google/Ads/AdWords/v201809/ConversionTrackerService/ConversionTrackerServiceInterfacePort.pm untested

filter: Statementstmt 0.0% 0 / 46 Branchbran 0.0% 0 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 74 CC 7 SCAR 20.8
CC
7
Cov
0%
START
20.0
get
6.0
mutate
6.0
CRAP 8.0
1 package Google::Ads::AdWords::v201809::ConversionTrackerService::ConversionTrackerServiceInterfacePort;
2 use strict;
3 use warnings;
4 use Class::Std::Fast::Storable;
5 use Scalar::Util qw(blessed);
6 use base qw(SOAP::WSDL::Client::Base);
7  
8 # only load if it hasn't been loaded before
9 require Google::Ads::AdWords::v201809::TypeMaps::ConversionTrackerService
10 if not Google::Ads::AdWords::v201809::TypeMaps::ConversionTrackerService->can('get_class');
11  
12 sub START {
13 $_[0]->set_proxy('https://adwords.google.com/api/adwords/cm/v201809/ConversionTrackerService') if not $_[2]->{proxy};
14 $_[0]->set_class_resolver('Google::Ads::AdWords::v201809::TypeMaps::ConversionTrackerService')
15 if not $_[2]->{class_resolver};
16  
17 $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix};
18 }
19  
20 sub get {
21 my ($self, $body, $header) = @_;
22 die "get must be called as object method (\$self is <$self>)" if not blessed($self);
23 return $self->SUPER::call({
24 operation => 'get',
25 soap_action => '',
26 style => 'document',
27 body => {
28
29  
30 'use' => 'literal',
31 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
32 encodingStyle => '',
33 parts => [qw( Google::Ads::AdWords::v201809::ConversionTrackerService::get )],
34 },
35 header => {
36
37  
38  
39 'use' => 'literal',
40 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
41 encodingStyle => '',
42 parts => [qw( Google::Ads::AdWords::v201809::ConversionTrackerService::RequestHeader )],
43 },
44 headerfault => {
45
46 }
47 }, $body, $header);
48 }
49  
50  
51 sub mutate {
52 my ($self, $body, $header) = @_;
53 die "mutate must be called as object method (\$self is <$self>)" if not blessed($self);
54 return $self->SUPER::call({
55 operation => 'mutate',
56 soap_action => '',
57 style => 'document',
58 body => {
59
60  
61 'use' => 'literal',
62 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
63 encodingStyle => '',
64 parts => [qw( Google::Ads::AdWords::v201809::ConversionTrackerService::mutate )],
65 },
66 header => {
67
68  
69  
70 'use' => 'literal',
71 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
72 encodingStyle => '',
73 parts => [qw( Google::Ads::AdWords::v201809::ConversionTrackerService::RequestHeader )],
74 },
75 headerfault => {
76
77 }
78 }, $body, $header);
79 }
80  
81  
82 sub query {
83 my ($self, $body, $header) = @_;
84 die "query must be called as object method (\$self is <$self>)" if not blessed($self);
85 return $self->SUPER::call({
86 operation => 'query',
87 soap_action => '',
88 style => 'document',
89 body => {
90
91  
92 'use' => 'literal',
93 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
94 encodingStyle => '',
95 parts => [qw( Google::Ads::AdWords::v201809::ConversionTrackerService::query )],
96 },
97 header => {
98
99  
100  
101 'use' => 'literal',
102 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
103 encodingStyle => '',
104 parts => [qw( Google::Ads::AdWords::v201809::ConversionTrackerService::RequestHeader )],
105 },
106 headerfault => {
107
108 }
109 }, $body, $header);
110 }
111  
112  
113  
114  
115 1;
116  
117  
118  
119 __END__
120  
121 =pod
122  
123 =head1 NAME
124  
125 Google::Ads::AdWords::v201809::ConversionTrackerService::ConversionTrackerServiceInterfacePort - SOAP Interface for the ConversionTrackerService Web Service
126  
127 =head1 SYNOPSIS
128  
129 use Google::Ads::AdWords::v201809::ConversionTrackerService::ConversionTrackerServiceInterfacePort;
130 my $interface = Google::Ads::AdWords::v201809::ConversionTrackerService::ConversionTrackerServiceInterfacePort->new();
131  
132 my $response;
133 $response = $interface->get();
134 $response = $interface->mutate();
135 $response = $interface->query();
136  
137  
138  
139 =head1 DESCRIPTION
140  
141 SOAP Interface for the ConversionTrackerService web service
142 located at https://adwords.google.com/api/adwords/cm/v201809/ConversionTrackerService.
143  
144 =head1 SERVICE ConversionTrackerService
145  
146  
147  
148 =head2 Port ConversionTrackerServiceInterfacePort
149  
150  
151  
152 =head1 METHODS
153  
154 =head2 General methods
155  
156 =head3 new
157  
158 Constructor.
159  
160 All arguments are forwarded to L<SOAP::WSDL::Client|SOAP::WSDL::Client>.
161  
162 =head2 SOAP Service methods
163  
164 Method synopsis is displayed with hash refs as parameters.
165  
166 The commented class names in the method's parameters denote that objects
167 of the corresponding class can be passed instead of the marked hash ref.
168  
169 You may pass any combination of objects, hash and list refs to these
170 methods, as long as you meet the structure.
171  
172 List items (i.e. multiple occurences) are not displayed in the synopsis.
173 You may generally pass a list ref of hash refs (or objects) instead of a hash
174 ref - this may result in invalid XML if used improperly, though. Note that
175 SOAP::WSDL always expects list references at maximum depth position.
176  
177 XML attributes are not displayed in this synopsis and cannot be set using
178 hash refs. See the respective class' documentation for additional information.
179  
180  
181  
182 =head3 get
183  
184 Returns a list of the conversion trackers that match the selector. The actual objects contained in the page's list of entries will be specific subclasses of the abstract {@link ConversionTracker} class. @param serviceSelector The selector specifying the {@link ConversionTracker}s to return. @return List of conversion trackers specified by the selector. @throws com.google.ads.api.services.common.error.ApiException if problems occurred while retrieving results.
185  
186 Returns a L<Google::Ads::AdWords::v201809::ConversionTrackerService::getResponse|Google::Ads::AdWords::v201809::ConversionTrackerService::getResponse> object.
187  
188 $response = $interface->get( {
189 serviceSelector => $a_reference_to, # see Google::Ads::AdWords::v201809::Selector
190 },,
191 );
192  
193 =head3 mutate
194  
195 Applies the list of mutate operations such as adding or updating conversion trackers. <p class="note"><b>Note:</b> {@link ConversionTrackerOperation} does not support the <code>REMOVE</code> operator. In order to 'disable' a conversion type, send a <code>SET</code> operation for the conversion tracker with the <code>status</code> property set to <code>DISABLED</code></p> <p>You can mutate any ConversionTracker that belongs to your account. You may not mutate a ConversionTracker that belongs to some other account. You may not directly mutate a system-defined ConversionTracker, but you can create a mutable copy of it in your account by sending a mutate request with an ADD operation specifying an originalConversionTypeId matching a system-defined conversion tracker's ID. That new ADDed ConversionTracker will inherit the statistics and properties of the system-defined type, but will be editable as usual.</p> @param operations A list of mutate operations to perform. @return The list of the conversion trackers as they appear after mutation, in the same order as they appeared in the list of operations. @throws com.google.ads.api.services.common.error.ApiException if problems occurred while updating the data.
196  
197 Returns a L<Google::Ads::AdWords::v201809::ConversionTrackerService::mutateResponse|Google::Ads::AdWords::v201809::ConversionTrackerService::mutateResponse> object.
198  
199 $response = $interface->mutate( {
200 operations => $a_reference_to, # see Google::Ads::AdWords::v201809::ConversionTrackerOperation
201 },,
202 );
203  
204 =head3 query
205  
206 Returns a list of conversion trackers that match the query. @param query The SQL-like AWQL query string. @return A list of conversion trackers. @throws ApiException if problems occur while parsing the query or fetching conversion trackers.
207  
208 Returns a L<Google::Ads::AdWords::v201809::ConversionTrackerService::queryResponse|Google::Ads::AdWords::v201809::ConversionTrackerService::queryResponse> object.
209  
210 $response = $interface->query( {
211 query => $some_value, # string
212 },,
213 );
214  
215  
216  
217 =head1 AUTHOR
218  
219 Generated by SOAP::WSDL on Thu Sep 20 11:08:59 2018
220  
221 =cut