lib/Google/Ads/AdWords/v201809/ManagedCustomerService/ManagedCustomerServiceInterfacePort.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Google/Ads/AdWords/v201809/LocationCriterionService/LocationCriterionServiceInterfacePort.pm ↑ Summary lib/Google/Ads/AdWords/v201809/MediaService/MediaServiceInterfacePort.pm »
1 package Google::Ads::AdWords::v201809::ManagedCustomerService::ManagedCustomerServiceInterfacePort;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Class::Std::Fast::Storable;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Scalar::Util qw(blessed);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use base qw(SOAP::WSDL::Client::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 # only load if it hasn't been loaded before
9 require Google::Ads::AdWords::v201809::TypeMaps::ManagedCustomerService
10 if not Google::Ads::AdWords::v201809::TypeMaps::ManagedCustomerService->can('get_class');
11  
12 sub START {
13 $_[0]->set_proxy('https://adwords.google.com/api/adwords/mcm/v201809/ManagedCustomerService') if not $_[2]->{proxy};
14 $_[0]->set_class_resolver('Google::Ads::AdWords::v201809::TypeMaps::ManagedCustomerService')
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::ManagedCustomerService::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::ManagedCustomerService::RequestHeader )],
43 },
44 headerfault => {
45
46 }
47 }, $body, $header);
48 }
49  
50  
51 sub getPendingInvitations {
52 my ($self, $body, $header) = @_;
53 die "getPendingInvitations must be called as object method (\$self is <$self>)" if not blessed($self);
54 return $self->SUPER::call({
55 operation => 'getPendingInvitations',
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::ManagedCustomerService::getPendingInvitations )],
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::ManagedCustomerService::RequestHeader )],
74 },
75 headerfault => {
76
77 }
78 }, $body, $header);
79 }
80  
81  
82 sub mutate {
83 my ($self, $body, $header) = @_;
84 die "mutate must be called as object method (\$self is <$self>)" if not blessed($self);
85 return $self->SUPER::call({
86 operation => 'mutate',
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::ManagedCustomerService::mutate )],
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::ManagedCustomerService::RequestHeader )],
105 },
106 headerfault => {
107
108 }
109 }, $body, $header);
110 }
111  
112  
113 sub mutateLabel {
114 my ($self, $body, $header) = @_;
115 die "mutateLabel must be called as object method (\$self is <$self>)" if not blessed($self);
116 return $self->SUPER::call({
117 operation => 'mutateLabel',
118 soap_action => '',
119 style => 'document',
120 body => {
121
122  
123 'use' => 'literal',
124 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
125 encodingStyle => '',
126 parts => [qw( Google::Ads::AdWords::v201809::ManagedCustomerService::mutateLabel )],
127 },
128 header => {
129
130  
131  
132 'use' => 'literal',
133 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
134 encodingStyle => '',
135 parts => [qw( Google::Ads::AdWords::v201809::ManagedCustomerService::RequestHeader )],
136 },
137 headerfault => {
138
139 }
140 }, $body, $header);
141 }
142  
143  
144 sub mutateLink {
145 my ($self, $body, $header) = @_;
146 die "mutateLink must be called as object method (\$self is <$self>)" if not blessed($self);
147 return $self->SUPER::call({
148 operation => 'mutateLink',
149 soap_action => '',
150 style => 'document',
151 body => {
152
153  
154 'use' => 'literal',
155 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
156 encodingStyle => '',
157 parts => [qw( Google::Ads::AdWords::v201809::ManagedCustomerService::mutateLink )],
158 },
159 header => {
160
161  
162  
163 'use' => 'literal',
164 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
165 encodingStyle => '',
166 parts => [qw( Google::Ads::AdWords::v201809::ManagedCustomerService::RequestHeader )],
167 },
168 headerfault => {
169
170 }
171 }, $body, $header);
172 }
173  
174  
175 sub mutateManager {
176 my ($self, $body, $header) = @_;
177 die "mutateManager must be called as object method (\$self is <$self>)" if not blessed($self);
178 return $self->SUPER::call({
179 operation => 'mutateManager',
180 soap_action => '',
181 style => 'document',
182 body => {
183
184  
185 'use' => 'literal',
186 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
187 encodingStyle => '',
188 parts => [qw( Google::Ads::AdWords::v201809::ManagedCustomerService::mutateManager )],
189 },
190 header => {
191
192  
193  
194 'use' => 'literal',
195 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
196 encodingStyle => '',
197 parts => [qw( Google::Ads::AdWords::v201809::ManagedCustomerService::RequestHeader )],
198 },
199 headerfault => {
200
201 }
202 }, $body, $header);
203 }
204  
205  
206  
207  
208 1;
209  
210  
211  
212 __END__
213  
214 =pod
215  
216 =head1 NAME
217  
218 Google::Ads::AdWords::v201809::ManagedCustomerService::ManagedCustomerServiceInterfacePort - SOAP Interface for the ManagedCustomerService Web Service
219  
220 =head1 SYNOPSIS
221  
222 use Google::Ads::AdWords::v201809::ManagedCustomerService::ManagedCustomerServiceInterfacePort;
223 my $interface = Google::Ads::AdWords::v201809::ManagedCustomerService::ManagedCustomerServiceInterfacePort->new();
224  
225 my $response;
226 $response = $interface->get();
227 $response = $interface->getPendingInvitations();
228 $response = $interface->mutate();
229 $response = $interface->mutateLabel();
230 $response = $interface->mutateLink();
231 $response = $interface->mutateManager();
232  
233  
234  
235 =head1 DESCRIPTION
236  
237 SOAP Interface for the ManagedCustomerService web service
238 located at https://adwords.google.com/api/adwords/mcm/v201809/ManagedCustomerService.
239  
240 =head1 SERVICE ManagedCustomerService
241  
242  
243  
244 =head2 Port ManagedCustomerServiceInterfacePort
245  
246  
247  
248 =head1 METHODS
249  
250 =head2 General methods
251  
252 =head3 new
253  
254 Constructor.
255  
256 All arguments are forwarded to L<SOAP::WSDL::Client|SOAP::WSDL::Client>.
257  
258 =head2 SOAP Service methods
259  
260 Method synopsis is displayed with hash refs as parameters.
261  
262 The commented class names in the method's parameters denote that objects
263 of the corresponding class can be passed instead of the marked hash ref.
264  
265 You may pass any combination of objects, hash and list refs to these
266 methods, as long as you meet the structure.
267  
268 List items (i.e. multiple occurences) are not displayed in the synopsis.
269 You may generally pass a list ref of hash refs (or objects) instead of a hash
270 ref - this may result in invalid XML if used improperly, though. Note that
271 SOAP::WSDL always expects list references at maximum depth position.
272  
273 XML attributes are not displayed in this synopsis and cannot be set using
274 hash refs. See the respective class' documentation for additional information.
275  
276  
277  
278 =head3 get
279  
280 Returns the list of customers that meet the selector criteria. @param selector The selector specifying the {@link ManagedCustomer}s to return. @return List of customers identified by the selector. @throws ApiException When there is at least one error with the request.
281  
282 Returns a L<Google::Ads::AdWords::v201809::ManagedCustomerService::getResponse|Google::Ads::AdWords::v201809::ManagedCustomerService::getResponse> object.
283  
284 $response = $interface->get( {
285 serviceSelector => $a_reference_to, # see Google::Ads::AdWords::v201809::Selector
286 },,
287 );
288  
289 =head3 getPendingInvitations
290  
291 Returns the pending invitations for the customer IDs in the selector. @param selector the manager customer ids (inviters) or the client customer ids (invitees) @throws ApiException when there is at least one error with the request
292  
293 Returns a L<Google::Ads::AdWords::v201809::ManagedCustomerService::getPendingInvitationsResponse|Google::Ads::AdWords::v201809::ManagedCustomerService::getPendingInvitationsResponse> object.
294  
295 $response = $interface->getPendingInvitations( {
296 selector => $a_reference_to, # see Google::Ads::AdWords::v201809::PendingInvitationSelector
297 },,
298 );
299  
300 =head3 mutate
301  
302 Modifies or creates new {@link ManagedCustomer}s. <p class="note"><b>Note:</b> See {@link ManagedCustomerOperation} for available operators.</p> @param operations List of unique operations. @return The list of updated managed customers, returned in the same order as the <code>operations</code> array.
303  
304 Returns a L<Google::Ads::AdWords::v201809::ManagedCustomerService::mutateResponse|Google::Ads::AdWords::v201809::ManagedCustomerService::mutateResponse> object.
305  
306 $response = $interface->mutate( {
307 operations => $a_reference_to, # see Google::Ads::AdWords::v201809::ManagedCustomerOperation
308 },,
309 );
310  
311 =head3 mutateLabel
312  
313 Adds {@linkplain AccountLabel}s to, and removes {@linkplain AccountLabel}s from, {@linkplain ManagedCustomer}s. <p>To add an {@linkplain AccountLabel} to a {@linkplain ManagedCustomer}, use {@link Operator#ADD}. To remove an {@linkplain AccountLabel} from a {@linkplain ManagedCustomer}, use {@link Operator#REMOVE}.</p> <p>The label must already exist (see {@link AccountLabelService#mutate} for how to create them) and be owned by the authenticated user.</p> <p>The {@linkplain ManagedCustomer} must already exist and be managed by the customer making the request (either directly or indirectly).</p> <p>An AccountLabel may be applied to at most 1000 customers.</p> <p>This method does not support partial failures, and will fail if any operation is invalid.</p>
314  
315 Returns a L<Google::Ads::AdWords::v201809::ManagedCustomerService::mutateLabelResponse|Google::Ads::AdWords::v201809::ManagedCustomerService::mutateLabelResponse> object.
316  
317 $response = $interface->mutateLabel( {
318 operations => $a_reference_to, # see Google::Ads::AdWords::v201809::ManagedCustomerLabelOperation
319 },,
320 );
321  
322 =head3 mutateLink
323  
324 Modifies the ManagedCustomer forest. These actions are possible (categorized by Operator + Link Status): <ul> <li>ADD + PENDING: manager extends invitations</li> <li>SET + CANCELLED: manager rescinds invitations</li> <li>SET + INACTIVE: manager/client terminates links</li> <li>SET + ACTIVE: client accepts invitations</li> <li>SET + REFUSED: client declines invitations</li> </ul> In addition to these, active links can also be marked hidden / unhidden. <ul> <li> An ACTIVE link can be marked hidden with SET + ACTIVE along with setting the isHidden bit to true. </li> <li> An ACTIVE link can be marked unhidden with SET + ACTIVE along with setting the isHidden bit to false. </li> </ul> @param operations the list of operations @return results for the given operations @throws ApiException with a {@link ManagedCustomerServiceError}
325  
326 Returns a L<Google::Ads::AdWords::v201809::ManagedCustomerService::mutateLinkResponse|Google::Ads::AdWords::v201809::ManagedCustomerService::mutateLinkResponse> object.
327  
328 $response = $interface->mutateLink( {
329 operations => $a_reference_to, # see Google::Ads::AdWords::v201809::LinkOperation
330 },,
331 );
332  
333 =head3 mutateManager
334  
335 Moves client customers to new managers (moving links). Only the following action is possible: <ul> <li>SET + ACTIVE: manager moves client customers to new managers within the same manager account hierarchy</li> </ul> @param operations List of unique operations. @return results for the given operations @throws ApiException with a {@link ManagedCustomerServiceError}
336  
337 Returns a L<Google::Ads::AdWords::v201809::ManagedCustomerService::mutateManagerResponse|Google::Ads::AdWords::v201809::ManagedCustomerService::mutateManagerResponse> object.
338  
339 $response = $interface->mutateManager( {
340 operations => $a_reference_to, # see Google::Ads::AdWords::v201809::MoveOperation
341 },,
342 );
343  
344  
345  
346 =head1 AUTHOR
347  
348 Generated by SOAP::WSDL on Thu Sep 20 11:05:43 2018
349  
350 =cut
« lib/Google/Ads/AdWords/v201809/LocationCriterionService/LocationCriterionServiceInterfacePort.pm ↑ Summary lib/Google/Ads/AdWords/v201809/MediaService/MediaServiceInterfacePort.pm »