1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service;
|
---|
19 |
|
---|
20 | use Google\Client;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Service definition for Analytics (v3).
|
---|
24 | *
|
---|
25 | * <p>
|
---|
26 | * Views and manages your Google Analytics data.</p>
|
---|
27 | *
|
---|
28 | * <p>
|
---|
29 | * For more information about this service, see the API
|
---|
30 | * <a href="https://developers.google.com/analytics/" target="_blank">Documentation</a>
|
---|
31 | * </p>
|
---|
32 | *
|
---|
33 | * @author Google, Inc.
|
---|
34 | */
|
---|
35 | class Analytics extends \Google\Service
|
---|
36 | {
|
---|
37 | /** View and manage your Google Analytics data. */
|
---|
38 | const ANALYTICS =
|
---|
39 | "https://www.googleapis.com/auth/analytics";
|
---|
40 | /** Edit Google Analytics management entities. */
|
---|
41 | const ANALYTICS_EDIT =
|
---|
42 | "https://www.googleapis.com/auth/analytics.edit";
|
---|
43 | /** Manage Google Analytics Account users by email address. */
|
---|
44 | const ANALYTICS_MANAGE_USERS =
|
---|
45 | "https://www.googleapis.com/auth/analytics.manage.users";
|
---|
46 | /** View Google Analytics user permissions. */
|
---|
47 | const ANALYTICS_MANAGE_USERS_READONLY =
|
---|
48 | "https://www.googleapis.com/auth/analytics.manage.users.readonly";
|
---|
49 | /** Create a new Google Analytics account along with its default property and view. */
|
---|
50 | const ANALYTICS_PROVISION =
|
---|
51 | "https://www.googleapis.com/auth/analytics.provision";
|
---|
52 | /** View your Google Analytics data. */
|
---|
53 | const ANALYTICS_READONLY =
|
---|
54 | "https://www.googleapis.com/auth/analytics.readonly";
|
---|
55 | /** Manage Google Analytics user deletion requests. */
|
---|
56 | const ANALYTICS_USER_DELETION =
|
---|
57 | "https://www.googleapis.com/auth/analytics.user.deletion";
|
---|
58 |
|
---|
59 | public $data_ga;
|
---|
60 | public $data_mcf;
|
---|
61 | public $data_realtime;
|
---|
62 | public $management_accountSummaries;
|
---|
63 | public $management_accountUserLinks;
|
---|
64 | public $management_accounts;
|
---|
65 | public $management_clientId;
|
---|
66 | public $management_customDataSources;
|
---|
67 | public $management_customDimensions;
|
---|
68 | public $management_customMetrics;
|
---|
69 | public $management_experiments;
|
---|
70 | public $management_filters;
|
---|
71 | public $management_goals;
|
---|
72 | public $management_profileFilterLinks;
|
---|
73 | public $management_profileUserLinks;
|
---|
74 | public $management_profiles;
|
---|
75 | public $management_remarketingAudience;
|
---|
76 | public $management_segments;
|
---|
77 | public $management_unsampledReports;
|
---|
78 | public $management_uploads;
|
---|
79 | public $management_webPropertyAdWordsLinks;
|
---|
80 | public $management_webproperties;
|
---|
81 | public $management_webpropertyUserLinks;
|
---|
82 | public $metadata_columns;
|
---|
83 | public $provisioning;
|
---|
84 | public $userDeletion_userDeletionRequest;
|
---|
85 | public $rootUrlTemplate;
|
---|
86 |
|
---|
87 | /**
|
---|
88 | * Constructs the internal representation of the Analytics service.
|
---|
89 | *
|
---|
90 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
91 | * config array to pass to a new Client instance.
|
---|
92 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
93 | */
|
---|
94 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
95 | {
|
---|
96 | parent::__construct($clientOrConfig);
|
---|
97 | $this->rootUrl = $rootUrl ?: 'https://analytics.googleapis.com/';
|
---|
98 | $this->rootUrlTemplate = $rootUrl ?: 'https://analytics.UNIVERSE_DOMAIN/';
|
---|
99 | $this->servicePath = 'analytics/v3/';
|
---|
100 | $this->batchPath = 'batch/analytics/v3';
|
---|
101 | $this->version = 'v3';
|
---|
102 | $this->serviceName = 'analytics';
|
---|
103 |
|
---|
104 | $this->data_ga = new Analytics\Resource\DataGa(
|
---|
105 | $this,
|
---|
106 | $this->serviceName,
|
---|
107 | 'ga',
|
---|
108 | [
|
---|
109 | 'methods' => [
|
---|
110 | 'get' => [
|
---|
111 | 'path' => 'data/ga',
|
---|
112 | 'httpMethod' => 'GET',
|
---|
113 | 'parameters' => [
|
---|
114 | 'ids' => [
|
---|
115 | 'location' => 'query',
|
---|
116 | 'type' => 'string',
|
---|
117 | 'required' => true,
|
---|
118 | ],
|
---|
119 | 'start-date' => [
|
---|
120 | 'location' => 'query',
|
---|
121 | 'type' => 'string',
|
---|
122 | 'required' => true,
|
---|
123 | ],
|
---|
124 | 'end-date' => [
|
---|
125 | 'location' => 'query',
|
---|
126 | 'type' => 'string',
|
---|
127 | 'required' => true,
|
---|
128 | ],
|
---|
129 | 'metrics' => [
|
---|
130 | 'location' => 'query',
|
---|
131 | 'type' => 'string',
|
---|
132 | 'required' => true,
|
---|
133 | ],
|
---|
134 | 'dimensions' => [
|
---|
135 | 'location' => 'query',
|
---|
136 | 'type' => 'string',
|
---|
137 | ],
|
---|
138 | 'filters' => [
|
---|
139 | 'location' => 'query',
|
---|
140 | 'type' => 'string',
|
---|
141 | ],
|
---|
142 | 'include-empty-rows' => [
|
---|
143 | 'location' => 'query',
|
---|
144 | 'type' => 'boolean',
|
---|
145 | ],
|
---|
146 | 'max-results' => [
|
---|
147 | 'location' => 'query',
|
---|
148 | 'type' => 'integer',
|
---|
149 | ],
|
---|
150 | 'output' => [
|
---|
151 | 'location' => 'query',
|
---|
152 | 'type' => 'string',
|
---|
153 | ],
|
---|
154 | 'samplingLevel' => [
|
---|
155 | 'location' => 'query',
|
---|
156 | 'type' => 'string',
|
---|
157 | ],
|
---|
158 | 'segment' => [
|
---|
159 | 'location' => 'query',
|
---|
160 | 'type' => 'string',
|
---|
161 | ],
|
---|
162 | 'sort' => [
|
---|
163 | 'location' => 'query',
|
---|
164 | 'type' => 'string',
|
---|
165 | ],
|
---|
166 | 'start-index' => [
|
---|
167 | 'location' => 'query',
|
---|
168 | 'type' => 'integer',
|
---|
169 | ],
|
---|
170 | ],
|
---|
171 | ],
|
---|
172 | ]
|
---|
173 | ]
|
---|
174 | );
|
---|
175 | $this->data_mcf = new Analytics\Resource\DataMcf(
|
---|
176 | $this,
|
---|
177 | $this->serviceName,
|
---|
178 | 'mcf',
|
---|
179 | [
|
---|
180 | 'methods' => [
|
---|
181 | 'get' => [
|
---|
182 | 'path' => 'data/mcf',
|
---|
183 | 'httpMethod' => 'GET',
|
---|
184 | 'parameters' => [
|
---|
185 | 'ids' => [
|
---|
186 | 'location' => 'query',
|
---|
187 | 'type' => 'string',
|
---|
188 | 'required' => true,
|
---|
189 | ],
|
---|
190 | 'start-date' => [
|
---|
191 | 'location' => 'query',
|
---|
192 | 'type' => 'string',
|
---|
193 | 'required' => true,
|
---|
194 | ],
|
---|
195 | 'end-date' => [
|
---|
196 | 'location' => 'query',
|
---|
197 | 'type' => 'string',
|
---|
198 | 'required' => true,
|
---|
199 | ],
|
---|
200 | 'metrics' => [
|
---|
201 | 'location' => 'query',
|
---|
202 | 'type' => 'string',
|
---|
203 | 'required' => true,
|
---|
204 | ],
|
---|
205 | 'dimensions' => [
|
---|
206 | 'location' => 'query',
|
---|
207 | 'type' => 'string',
|
---|
208 | ],
|
---|
209 | 'filters' => [
|
---|
210 | 'location' => 'query',
|
---|
211 | 'type' => 'string',
|
---|
212 | ],
|
---|
213 | 'max-results' => [
|
---|
214 | 'location' => 'query',
|
---|
215 | 'type' => 'integer',
|
---|
216 | ],
|
---|
217 | 'samplingLevel' => [
|
---|
218 | 'location' => 'query',
|
---|
219 | 'type' => 'string',
|
---|
220 | ],
|
---|
221 | 'sort' => [
|
---|
222 | 'location' => 'query',
|
---|
223 | 'type' => 'string',
|
---|
224 | ],
|
---|
225 | 'start-index' => [
|
---|
226 | 'location' => 'query',
|
---|
227 | 'type' => 'integer',
|
---|
228 | ],
|
---|
229 | ],
|
---|
230 | ],
|
---|
231 | ]
|
---|
232 | ]
|
---|
233 | );
|
---|
234 | $this->data_realtime = new Analytics\Resource\DataRealtime(
|
---|
235 | $this,
|
---|
236 | $this->serviceName,
|
---|
237 | 'realtime',
|
---|
238 | [
|
---|
239 | 'methods' => [
|
---|
240 | 'get' => [
|
---|
241 | 'path' => 'data/realtime',
|
---|
242 | 'httpMethod' => 'GET',
|
---|
243 | 'parameters' => [
|
---|
244 | 'ids' => [
|
---|
245 | 'location' => 'query',
|
---|
246 | 'type' => 'string',
|
---|
247 | 'required' => true,
|
---|
248 | ],
|
---|
249 | 'metrics' => [
|
---|
250 | 'location' => 'query',
|
---|
251 | 'type' => 'string',
|
---|
252 | 'required' => true,
|
---|
253 | ],
|
---|
254 | 'dimensions' => [
|
---|
255 | 'location' => 'query',
|
---|
256 | 'type' => 'string',
|
---|
257 | ],
|
---|
258 | 'filters' => [
|
---|
259 | 'location' => 'query',
|
---|
260 | 'type' => 'string',
|
---|
261 | ],
|
---|
262 | 'max-results' => [
|
---|
263 | 'location' => 'query',
|
---|
264 | 'type' => 'integer',
|
---|
265 | ],
|
---|
266 | 'sort' => [
|
---|
267 | 'location' => 'query',
|
---|
268 | 'type' => 'string',
|
---|
269 | ],
|
---|
270 | ],
|
---|
271 | ],
|
---|
272 | ]
|
---|
273 | ]
|
---|
274 | );
|
---|
275 | $this->management_accountSummaries = new Analytics\Resource\ManagementAccountSummaries(
|
---|
276 | $this,
|
---|
277 | $this->serviceName,
|
---|
278 | 'accountSummaries',
|
---|
279 | [
|
---|
280 | 'methods' => [
|
---|
281 | 'list' => [
|
---|
282 | 'path' => 'management/accountSummaries',
|
---|
283 | 'httpMethod' => 'GET',
|
---|
284 | 'parameters' => [
|
---|
285 | 'max-results' => [
|
---|
286 | 'location' => 'query',
|
---|
287 | 'type' => 'integer',
|
---|
288 | ],
|
---|
289 | 'start-index' => [
|
---|
290 | 'location' => 'query',
|
---|
291 | 'type' => 'integer',
|
---|
292 | ],
|
---|
293 | ],
|
---|
294 | ],
|
---|
295 | ]
|
---|
296 | ]
|
---|
297 | );
|
---|
298 | $this->management_accountUserLinks = new Analytics\Resource\ManagementAccountUserLinks(
|
---|
299 | $this,
|
---|
300 | $this->serviceName,
|
---|
301 | 'accountUserLinks',
|
---|
302 | [
|
---|
303 | 'methods' => [
|
---|
304 | 'delete' => [
|
---|
305 | 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}',
|
---|
306 | 'httpMethod' => 'DELETE',
|
---|
307 | 'parameters' => [
|
---|
308 | 'accountId' => [
|
---|
309 | 'location' => 'path',
|
---|
310 | 'type' => 'string',
|
---|
311 | 'required' => true,
|
---|
312 | ],
|
---|
313 | 'linkId' => [
|
---|
314 | 'location' => 'path',
|
---|
315 | 'type' => 'string',
|
---|
316 | 'required' => true,
|
---|
317 | ],
|
---|
318 | ],
|
---|
319 | ],'insert' => [
|
---|
320 | 'path' => 'management/accounts/{accountId}/entityUserLinks',
|
---|
321 | 'httpMethod' => 'POST',
|
---|
322 | 'parameters' => [
|
---|
323 | 'accountId' => [
|
---|
324 | 'location' => 'path',
|
---|
325 | 'type' => 'string',
|
---|
326 | 'required' => true,
|
---|
327 | ],
|
---|
328 | ],
|
---|
329 | ],'list' => [
|
---|
330 | 'path' => 'management/accounts/{accountId}/entityUserLinks',
|
---|
331 | 'httpMethod' => 'GET',
|
---|
332 | 'parameters' => [
|
---|
333 | 'accountId' => [
|
---|
334 | 'location' => 'path',
|
---|
335 | 'type' => 'string',
|
---|
336 | 'required' => true,
|
---|
337 | ],
|
---|
338 | 'max-results' => [
|
---|
339 | 'location' => 'query',
|
---|
340 | 'type' => 'integer',
|
---|
341 | ],
|
---|
342 | 'start-index' => [
|
---|
343 | 'location' => 'query',
|
---|
344 | 'type' => 'integer',
|
---|
345 | ],
|
---|
346 | ],
|
---|
347 | ],'update' => [
|
---|
348 | 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}',
|
---|
349 | 'httpMethod' => 'PUT',
|
---|
350 | 'parameters' => [
|
---|
351 | 'accountId' => [
|
---|
352 | 'location' => 'path',
|
---|
353 | 'type' => 'string',
|
---|
354 | 'required' => true,
|
---|
355 | ],
|
---|
356 | 'linkId' => [
|
---|
357 | 'location' => 'path',
|
---|
358 | 'type' => 'string',
|
---|
359 | 'required' => true,
|
---|
360 | ],
|
---|
361 | ],
|
---|
362 | ],
|
---|
363 | ]
|
---|
364 | ]
|
---|
365 | );
|
---|
366 | $this->management_accounts = new Analytics\Resource\ManagementAccounts(
|
---|
367 | $this,
|
---|
368 | $this->serviceName,
|
---|
369 | 'accounts',
|
---|
370 | [
|
---|
371 | 'methods' => [
|
---|
372 | 'list' => [
|
---|
373 | 'path' => 'management/accounts',
|
---|
374 | 'httpMethod' => 'GET',
|
---|
375 | 'parameters' => [
|
---|
376 | 'max-results' => [
|
---|
377 | 'location' => 'query',
|
---|
378 | 'type' => 'integer',
|
---|
379 | ],
|
---|
380 | 'start-index' => [
|
---|
381 | 'location' => 'query',
|
---|
382 | 'type' => 'integer',
|
---|
383 | ],
|
---|
384 | ],
|
---|
385 | ],
|
---|
386 | ]
|
---|
387 | ]
|
---|
388 | );
|
---|
389 | $this->management_clientId = new Analytics\Resource\ManagementClientId(
|
---|
390 | $this,
|
---|
391 | $this->serviceName,
|
---|
392 | 'clientId',
|
---|
393 | [
|
---|
394 | 'methods' => [
|
---|
395 | 'hashClientId' => [
|
---|
396 | 'path' => 'management/clientId:hashClientId',
|
---|
397 | 'httpMethod' => 'POST',
|
---|
398 | 'parameters' => [],
|
---|
399 | ],
|
---|
400 | ]
|
---|
401 | ]
|
---|
402 | );
|
---|
403 | $this->management_customDataSources = new Analytics\Resource\ManagementCustomDataSources(
|
---|
404 | $this,
|
---|
405 | $this->serviceName,
|
---|
406 | 'customDataSources',
|
---|
407 | [
|
---|
408 | 'methods' => [
|
---|
409 | 'list' => [
|
---|
410 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources',
|
---|
411 | 'httpMethod' => 'GET',
|
---|
412 | 'parameters' => [
|
---|
413 | 'accountId' => [
|
---|
414 | 'location' => 'path',
|
---|
415 | 'type' => 'string',
|
---|
416 | 'required' => true,
|
---|
417 | ],
|
---|
418 | 'webPropertyId' => [
|
---|
419 | 'location' => 'path',
|
---|
420 | 'type' => 'string',
|
---|
421 | 'required' => true,
|
---|
422 | ],
|
---|
423 | 'max-results' => [
|
---|
424 | 'location' => 'query',
|
---|
425 | 'type' => 'integer',
|
---|
426 | ],
|
---|
427 | 'start-index' => [
|
---|
428 | 'location' => 'query',
|
---|
429 | 'type' => 'integer',
|
---|
430 | ],
|
---|
431 | ],
|
---|
432 | ],
|
---|
433 | ]
|
---|
434 | ]
|
---|
435 | );
|
---|
436 | $this->management_customDimensions = new Analytics\Resource\ManagementCustomDimensions(
|
---|
437 | $this,
|
---|
438 | $this->serviceName,
|
---|
439 | 'customDimensions',
|
---|
440 | [
|
---|
441 | 'methods' => [
|
---|
442 | 'get' => [
|
---|
443 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
|
---|
444 | 'httpMethod' => 'GET',
|
---|
445 | 'parameters' => [
|
---|
446 | 'accountId' => [
|
---|
447 | 'location' => 'path',
|
---|
448 | 'type' => 'string',
|
---|
449 | 'required' => true,
|
---|
450 | ],
|
---|
451 | 'webPropertyId' => [
|
---|
452 | 'location' => 'path',
|
---|
453 | 'type' => 'string',
|
---|
454 | 'required' => true,
|
---|
455 | ],
|
---|
456 | 'customDimensionId' => [
|
---|
457 | 'location' => 'path',
|
---|
458 | 'type' => 'string',
|
---|
459 | 'required' => true,
|
---|
460 | ],
|
---|
461 | ],
|
---|
462 | ],'insert' => [
|
---|
463 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions',
|
---|
464 | 'httpMethod' => 'POST',
|
---|
465 | 'parameters' => [
|
---|
466 | 'accountId' => [
|
---|
467 | 'location' => 'path',
|
---|
468 | 'type' => 'string',
|
---|
469 | 'required' => true,
|
---|
470 | ],
|
---|
471 | 'webPropertyId' => [
|
---|
472 | 'location' => 'path',
|
---|
473 | 'type' => 'string',
|
---|
474 | 'required' => true,
|
---|
475 | ],
|
---|
476 | ],
|
---|
477 | ],'list' => [
|
---|
478 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions',
|
---|
479 | 'httpMethod' => 'GET',
|
---|
480 | 'parameters' => [
|
---|
481 | 'accountId' => [
|
---|
482 | 'location' => 'path',
|
---|
483 | 'type' => 'string',
|
---|
484 | 'required' => true,
|
---|
485 | ],
|
---|
486 | 'webPropertyId' => [
|
---|
487 | 'location' => 'path',
|
---|
488 | 'type' => 'string',
|
---|
489 | 'required' => true,
|
---|
490 | ],
|
---|
491 | 'max-results' => [
|
---|
492 | 'location' => 'query',
|
---|
493 | 'type' => 'integer',
|
---|
494 | ],
|
---|
495 | 'start-index' => [
|
---|
496 | 'location' => 'query',
|
---|
497 | 'type' => 'integer',
|
---|
498 | ],
|
---|
499 | ],
|
---|
500 | ],'patch' => [
|
---|
501 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
|
---|
502 | 'httpMethod' => 'PATCH',
|
---|
503 | 'parameters' => [
|
---|
504 | 'accountId' => [
|
---|
505 | 'location' => 'path',
|
---|
506 | 'type' => 'string',
|
---|
507 | 'required' => true,
|
---|
508 | ],
|
---|
509 | 'webPropertyId' => [
|
---|
510 | 'location' => 'path',
|
---|
511 | 'type' => 'string',
|
---|
512 | 'required' => true,
|
---|
513 | ],
|
---|
514 | 'customDimensionId' => [
|
---|
515 | 'location' => 'path',
|
---|
516 | 'type' => 'string',
|
---|
517 | 'required' => true,
|
---|
518 | ],
|
---|
519 | 'ignoreCustomDataSourceLinks' => [
|
---|
520 | 'location' => 'query',
|
---|
521 | 'type' => 'boolean',
|
---|
522 | ],
|
---|
523 | ],
|
---|
524 | ],'update' => [
|
---|
525 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
|
---|
526 | 'httpMethod' => 'PUT',
|
---|
527 | 'parameters' => [
|
---|
528 | 'accountId' => [
|
---|
529 | 'location' => 'path',
|
---|
530 | 'type' => 'string',
|
---|
531 | 'required' => true,
|
---|
532 | ],
|
---|
533 | 'webPropertyId' => [
|
---|
534 | 'location' => 'path',
|
---|
535 | 'type' => 'string',
|
---|
536 | 'required' => true,
|
---|
537 | ],
|
---|
538 | 'customDimensionId' => [
|
---|
539 | 'location' => 'path',
|
---|
540 | 'type' => 'string',
|
---|
541 | 'required' => true,
|
---|
542 | ],
|
---|
543 | 'ignoreCustomDataSourceLinks' => [
|
---|
544 | 'location' => 'query',
|
---|
545 | 'type' => 'boolean',
|
---|
546 | ],
|
---|
547 | ],
|
---|
548 | ],
|
---|
549 | ]
|
---|
550 | ]
|
---|
551 | );
|
---|
552 | $this->management_customMetrics = new Analytics\Resource\ManagementCustomMetrics(
|
---|
553 | $this,
|
---|
554 | $this->serviceName,
|
---|
555 | 'customMetrics',
|
---|
556 | [
|
---|
557 | 'methods' => [
|
---|
558 | 'get' => [
|
---|
559 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
|
---|
560 | 'httpMethod' => 'GET',
|
---|
561 | 'parameters' => [
|
---|
562 | 'accountId' => [
|
---|
563 | 'location' => 'path',
|
---|
564 | 'type' => 'string',
|
---|
565 | 'required' => true,
|
---|
566 | ],
|
---|
567 | 'webPropertyId' => [
|
---|
568 | 'location' => 'path',
|
---|
569 | 'type' => 'string',
|
---|
570 | 'required' => true,
|
---|
571 | ],
|
---|
572 | 'customMetricId' => [
|
---|
573 | 'location' => 'path',
|
---|
574 | 'type' => 'string',
|
---|
575 | 'required' => true,
|
---|
576 | ],
|
---|
577 | ],
|
---|
578 | ],'insert' => [
|
---|
579 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics',
|
---|
580 | 'httpMethod' => 'POST',
|
---|
581 | 'parameters' => [
|
---|
582 | 'accountId' => [
|
---|
583 | 'location' => 'path',
|
---|
584 | 'type' => 'string',
|
---|
585 | 'required' => true,
|
---|
586 | ],
|
---|
587 | 'webPropertyId' => [
|
---|
588 | 'location' => 'path',
|
---|
589 | 'type' => 'string',
|
---|
590 | 'required' => true,
|
---|
591 | ],
|
---|
592 | ],
|
---|
593 | ],'list' => [
|
---|
594 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics',
|
---|
595 | 'httpMethod' => 'GET',
|
---|
596 | 'parameters' => [
|
---|
597 | 'accountId' => [
|
---|
598 | 'location' => 'path',
|
---|
599 | 'type' => 'string',
|
---|
600 | 'required' => true,
|
---|
601 | ],
|
---|
602 | 'webPropertyId' => [
|
---|
603 | 'location' => 'path',
|
---|
604 | 'type' => 'string',
|
---|
605 | 'required' => true,
|
---|
606 | ],
|
---|
607 | 'max-results' => [
|
---|
608 | 'location' => 'query',
|
---|
609 | 'type' => 'integer',
|
---|
610 | ],
|
---|
611 | 'start-index' => [
|
---|
612 | 'location' => 'query',
|
---|
613 | 'type' => 'integer',
|
---|
614 | ],
|
---|
615 | ],
|
---|
616 | ],'patch' => [
|
---|
617 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
|
---|
618 | 'httpMethod' => 'PATCH',
|
---|
619 | 'parameters' => [
|
---|
620 | 'accountId' => [
|
---|
621 | 'location' => 'path',
|
---|
622 | 'type' => 'string',
|
---|
623 | 'required' => true,
|
---|
624 | ],
|
---|
625 | 'webPropertyId' => [
|
---|
626 | 'location' => 'path',
|
---|
627 | 'type' => 'string',
|
---|
628 | 'required' => true,
|
---|
629 | ],
|
---|
630 | 'customMetricId' => [
|
---|
631 | 'location' => 'path',
|
---|
632 | 'type' => 'string',
|
---|
633 | 'required' => true,
|
---|
634 | ],
|
---|
635 | 'ignoreCustomDataSourceLinks' => [
|
---|
636 | 'location' => 'query',
|
---|
637 | 'type' => 'boolean',
|
---|
638 | ],
|
---|
639 | ],
|
---|
640 | ],'update' => [
|
---|
641 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
|
---|
642 | 'httpMethod' => 'PUT',
|
---|
643 | 'parameters' => [
|
---|
644 | 'accountId' => [
|
---|
645 | 'location' => 'path',
|
---|
646 | 'type' => 'string',
|
---|
647 | 'required' => true,
|
---|
648 | ],
|
---|
649 | 'webPropertyId' => [
|
---|
650 | 'location' => 'path',
|
---|
651 | 'type' => 'string',
|
---|
652 | 'required' => true,
|
---|
653 | ],
|
---|
654 | 'customMetricId' => [
|
---|
655 | 'location' => 'path',
|
---|
656 | 'type' => 'string',
|
---|
657 | 'required' => true,
|
---|
658 | ],
|
---|
659 | 'ignoreCustomDataSourceLinks' => [
|
---|
660 | 'location' => 'query',
|
---|
661 | 'type' => 'boolean',
|
---|
662 | ],
|
---|
663 | ],
|
---|
664 | ],
|
---|
665 | ]
|
---|
666 | ]
|
---|
667 | );
|
---|
668 | $this->management_experiments = new Analytics\Resource\ManagementExperiments(
|
---|
669 | $this,
|
---|
670 | $this->serviceName,
|
---|
671 | 'experiments',
|
---|
672 | [
|
---|
673 | 'methods' => [
|
---|
674 | 'delete' => [
|
---|
675 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
|
---|
676 | 'httpMethod' => 'DELETE',
|
---|
677 | 'parameters' => [
|
---|
678 | 'accountId' => [
|
---|
679 | 'location' => 'path',
|
---|
680 | 'type' => 'string',
|
---|
681 | 'required' => true,
|
---|
682 | ],
|
---|
683 | 'webPropertyId' => [
|
---|
684 | 'location' => 'path',
|
---|
685 | 'type' => 'string',
|
---|
686 | 'required' => true,
|
---|
687 | ],
|
---|
688 | 'profileId' => [
|
---|
689 | 'location' => 'path',
|
---|
690 | 'type' => 'string',
|
---|
691 | 'required' => true,
|
---|
692 | ],
|
---|
693 | 'experimentId' => [
|
---|
694 | 'location' => 'path',
|
---|
695 | 'type' => 'string',
|
---|
696 | 'required' => true,
|
---|
697 | ],
|
---|
698 | ],
|
---|
699 | ],'get' => [
|
---|
700 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
|
---|
701 | 'httpMethod' => 'GET',
|
---|
702 | 'parameters' => [
|
---|
703 | 'accountId' => [
|
---|
704 | 'location' => 'path',
|
---|
705 | 'type' => 'string',
|
---|
706 | 'required' => true,
|
---|
707 | ],
|
---|
708 | 'webPropertyId' => [
|
---|
709 | 'location' => 'path',
|
---|
710 | 'type' => 'string',
|
---|
711 | 'required' => true,
|
---|
712 | ],
|
---|
713 | 'profileId' => [
|
---|
714 | 'location' => 'path',
|
---|
715 | 'type' => 'string',
|
---|
716 | 'required' => true,
|
---|
717 | ],
|
---|
718 | 'experimentId' => [
|
---|
719 | 'location' => 'path',
|
---|
720 | 'type' => 'string',
|
---|
721 | 'required' => true,
|
---|
722 | ],
|
---|
723 | ],
|
---|
724 | ],'insert' => [
|
---|
725 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments',
|
---|
726 | 'httpMethod' => 'POST',
|
---|
727 | 'parameters' => [
|
---|
728 | 'accountId' => [
|
---|
729 | 'location' => 'path',
|
---|
730 | 'type' => 'string',
|
---|
731 | 'required' => true,
|
---|
732 | ],
|
---|
733 | 'webPropertyId' => [
|
---|
734 | 'location' => 'path',
|
---|
735 | 'type' => 'string',
|
---|
736 | 'required' => true,
|
---|
737 | ],
|
---|
738 | 'profileId' => [
|
---|
739 | 'location' => 'path',
|
---|
740 | 'type' => 'string',
|
---|
741 | 'required' => true,
|
---|
742 | ],
|
---|
743 | ],
|
---|
744 | ],'list' => [
|
---|
745 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments',
|
---|
746 | 'httpMethod' => 'GET',
|
---|
747 | 'parameters' => [
|
---|
748 | 'accountId' => [
|
---|
749 | 'location' => 'path',
|
---|
750 | 'type' => 'string',
|
---|
751 | 'required' => true,
|
---|
752 | ],
|
---|
753 | 'webPropertyId' => [
|
---|
754 | 'location' => 'path',
|
---|
755 | 'type' => 'string',
|
---|
756 | 'required' => true,
|
---|
757 | ],
|
---|
758 | 'profileId' => [
|
---|
759 | 'location' => 'path',
|
---|
760 | 'type' => 'string',
|
---|
761 | 'required' => true,
|
---|
762 | ],
|
---|
763 | 'max-results' => [
|
---|
764 | 'location' => 'query',
|
---|
765 | 'type' => 'integer',
|
---|
766 | ],
|
---|
767 | 'start-index' => [
|
---|
768 | 'location' => 'query',
|
---|
769 | 'type' => 'integer',
|
---|
770 | ],
|
---|
771 | ],
|
---|
772 | ],'patch' => [
|
---|
773 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
|
---|
774 | 'httpMethod' => 'PATCH',
|
---|
775 | 'parameters' => [
|
---|
776 | 'accountId' => [
|
---|
777 | 'location' => 'path',
|
---|
778 | 'type' => 'string',
|
---|
779 | 'required' => true,
|
---|
780 | ],
|
---|
781 | 'webPropertyId' => [
|
---|
782 | 'location' => 'path',
|
---|
783 | 'type' => 'string',
|
---|
784 | 'required' => true,
|
---|
785 | ],
|
---|
786 | 'profileId' => [
|
---|
787 | 'location' => 'path',
|
---|
788 | 'type' => 'string',
|
---|
789 | 'required' => true,
|
---|
790 | ],
|
---|
791 | 'experimentId' => [
|
---|
792 | 'location' => 'path',
|
---|
793 | 'type' => 'string',
|
---|
794 | 'required' => true,
|
---|
795 | ],
|
---|
796 | ],
|
---|
797 | ],'update' => [
|
---|
798 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
|
---|
799 | 'httpMethod' => 'PUT',
|
---|
800 | 'parameters' => [
|
---|
801 | 'accountId' => [
|
---|
802 | 'location' => 'path',
|
---|
803 | 'type' => 'string',
|
---|
804 | 'required' => true,
|
---|
805 | ],
|
---|
806 | 'webPropertyId' => [
|
---|
807 | 'location' => 'path',
|
---|
808 | 'type' => 'string',
|
---|
809 | 'required' => true,
|
---|
810 | ],
|
---|
811 | 'profileId' => [
|
---|
812 | 'location' => 'path',
|
---|
813 | 'type' => 'string',
|
---|
814 | 'required' => true,
|
---|
815 | ],
|
---|
816 | 'experimentId' => [
|
---|
817 | 'location' => 'path',
|
---|
818 | 'type' => 'string',
|
---|
819 | 'required' => true,
|
---|
820 | ],
|
---|
821 | ],
|
---|
822 | ],
|
---|
823 | ]
|
---|
824 | ]
|
---|
825 | );
|
---|
826 | $this->management_filters = new Analytics\Resource\ManagementFilters(
|
---|
827 | $this,
|
---|
828 | $this->serviceName,
|
---|
829 | 'filters',
|
---|
830 | [
|
---|
831 | 'methods' => [
|
---|
832 | 'delete' => [
|
---|
833 | 'path' => 'management/accounts/{accountId}/filters/{filterId}',
|
---|
834 | 'httpMethod' => 'DELETE',
|
---|
835 | 'parameters' => [
|
---|
836 | 'accountId' => [
|
---|
837 | 'location' => 'path',
|
---|
838 | 'type' => 'string',
|
---|
839 | 'required' => true,
|
---|
840 | ],
|
---|
841 | 'filterId' => [
|
---|
842 | 'location' => 'path',
|
---|
843 | 'type' => 'string',
|
---|
844 | 'required' => true,
|
---|
845 | ],
|
---|
846 | ],
|
---|
847 | ],'get' => [
|
---|
848 | 'path' => 'management/accounts/{accountId}/filters/{filterId}',
|
---|
849 | 'httpMethod' => 'GET',
|
---|
850 | 'parameters' => [
|
---|
851 | 'accountId' => [
|
---|
852 | 'location' => 'path',
|
---|
853 | 'type' => 'string',
|
---|
854 | 'required' => true,
|
---|
855 | ],
|
---|
856 | 'filterId' => [
|
---|
857 | 'location' => 'path',
|
---|
858 | 'type' => 'string',
|
---|
859 | 'required' => true,
|
---|
860 | ],
|
---|
861 | ],
|
---|
862 | ],'insert' => [
|
---|
863 | 'path' => 'management/accounts/{accountId}/filters',
|
---|
864 | 'httpMethod' => 'POST',
|
---|
865 | 'parameters' => [
|
---|
866 | 'accountId' => [
|
---|
867 | 'location' => 'path',
|
---|
868 | 'type' => 'string',
|
---|
869 | 'required' => true,
|
---|
870 | ],
|
---|
871 | ],
|
---|
872 | ],'list' => [
|
---|
873 | 'path' => 'management/accounts/{accountId}/filters',
|
---|
874 | 'httpMethod' => 'GET',
|
---|
875 | 'parameters' => [
|
---|
876 | 'accountId' => [
|
---|
877 | 'location' => 'path',
|
---|
878 | 'type' => 'string',
|
---|
879 | 'required' => true,
|
---|
880 | ],
|
---|
881 | 'max-results' => [
|
---|
882 | 'location' => 'query',
|
---|
883 | 'type' => 'integer',
|
---|
884 | ],
|
---|
885 | 'start-index' => [
|
---|
886 | 'location' => 'query',
|
---|
887 | 'type' => 'integer',
|
---|
888 | ],
|
---|
889 | ],
|
---|
890 | ],'patch' => [
|
---|
891 | 'path' => 'management/accounts/{accountId}/filters/{filterId}',
|
---|
892 | 'httpMethod' => 'PATCH',
|
---|
893 | 'parameters' => [
|
---|
894 | 'accountId' => [
|
---|
895 | 'location' => 'path',
|
---|
896 | 'type' => 'string',
|
---|
897 | 'required' => true,
|
---|
898 | ],
|
---|
899 | 'filterId' => [
|
---|
900 | 'location' => 'path',
|
---|
901 | 'type' => 'string',
|
---|
902 | 'required' => true,
|
---|
903 | ],
|
---|
904 | ],
|
---|
905 | ],'update' => [
|
---|
906 | 'path' => 'management/accounts/{accountId}/filters/{filterId}',
|
---|
907 | 'httpMethod' => 'PUT',
|
---|
908 | 'parameters' => [
|
---|
909 | 'accountId' => [
|
---|
910 | 'location' => 'path',
|
---|
911 | 'type' => 'string',
|
---|
912 | 'required' => true,
|
---|
913 | ],
|
---|
914 | 'filterId' => [
|
---|
915 | 'location' => 'path',
|
---|
916 | 'type' => 'string',
|
---|
917 | 'required' => true,
|
---|
918 | ],
|
---|
919 | ],
|
---|
920 | ],
|
---|
921 | ]
|
---|
922 | ]
|
---|
923 | );
|
---|
924 | $this->management_goals = new Analytics\Resource\ManagementGoals(
|
---|
925 | $this,
|
---|
926 | $this->serviceName,
|
---|
927 | 'goals',
|
---|
928 | [
|
---|
929 | 'methods' => [
|
---|
930 | 'get' => [
|
---|
931 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
|
---|
932 | 'httpMethod' => 'GET',
|
---|
933 | 'parameters' => [
|
---|
934 | 'accountId' => [
|
---|
935 | 'location' => 'path',
|
---|
936 | 'type' => 'string',
|
---|
937 | 'required' => true,
|
---|
938 | ],
|
---|
939 | 'webPropertyId' => [
|
---|
940 | 'location' => 'path',
|
---|
941 | 'type' => 'string',
|
---|
942 | 'required' => true,
|
---|
943 | ],
|
---|
944 | 'profileId' => [
|
---|
945 | 'location' => 'path',
|
---|
946 | 'type' => 'string',
|
---|
947 | 'required' => true,
|
---|
948 | ],
|
---|
949 | 'goalId' => [
|
---|
950 | 'location' => 'path',
|
---|
951 | 'type' => 'string',
|
---|
952 | 'required' => true,
|
---|
953 | ],
|
---|
954 | ],
|
---|
955 | ],'insert' => [
|
---|
956 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals',
|
---|
957 | 'httpMethod' => 'POST',
|
---|
958 | 'parameters' => [
|
---|
959 | 'accountId' => [
|
---|
960 | 'location' => 'path',
|
---|
961 | 'type' => 'string',
|
---|
962 | 'required' => true,
|
---|
963 | ],
|
---|
964 | 'webPropertyId' => [
|
---|
965 | 'location' => 'path',
|
---|
966 | 'type' => 'string',
|
---|
967 | 'required' => true,
|
---|
968 | ],
|
---|
969 | 'profileId' => [
|
---|
970 | 'location' => 'path',
|
---|
971 | 'type' => 'string',
|
---|
972 | 'required' => true,
|
---|
973 | ],
|
---|
974 | ],
|
---|
975 | ],'list' => [
|
---|
976 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals',
|
---|
977 | 'httpMethod' => 'GET',
|
---|
978 | 'parameters' => [
|
---|
979 | 'accountId' => [
|
---|
980 | 'location' => 'path',
|
---|
981 | 'type' => 'string',
|
---|
982 | 'required' => true,
|
---|
983 | ],
|
---|
984 | 'webPropertyId' => [
|
---|
985 | 'location' => 'path',
|
---|
986 | 'type' => 'string',
|
---|
987 | 'required' => true,
|
---|
988 | ],
|
---|
989 | 'profileId' => [
|
---|
990 | 'location' => 'path',
|
---|
991 | 'type' => 'string',
|
---|
992 | 'required' => true,
|
---|
993 | ],
|
---|
994 | 'max-results' => [
|
---|
995 | 'location' => 'query',
|
---|
996 | 'type' => 'integer',
|
---|
997 | ],
|
---|
998 | 'start-index' => [
|
---|
999 | 'location' => 'query',
|
---|
1000 | 'type' => 'integer',
|
---|
1001 | ],
|
---|
1002 | ],
|
---|
1003 | ],'patch' => [
|
---|
1004 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
|
---|
1005 | 'httpMethod' => 'PATCH',
|
---|
1006 | 'parameters' => [
|
---|
1007 | 'accountId' => [
|
---|
1008 | 'location' => 'path',
|
---|
1009 | 'type' => 'string',
|
---|
1010 | 'required' => true,
|
---|
1011 | ],
|
---|
1012 | 'webPropertyId' => [
|
---|
1013 | 'location' => 'path',
|
---|
1014 | 'type' => 'string',
|
---|
1015 | 'required' => true,
|
---|
1016 | ],
|
---|
1017 | 'profileId' => [
|
---|
1018 | 'location' => 'path',
|
---|
1019 | 'type' => 'string',
|
---|
1020 | 'required' => true,
|
---|
1021 | ],
|
---|
1022 | 'goalId' => [
|
---|
1023 | 'location' => 'path',
|
---|
1024 | 'type' => 'string',
|
---|
1025 | 'required' => true,
|
---|
1026 | ],
|
---|
1027 | ],
|
---|
1028 | ],'update' => [
|
---|
1029 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
|
---|
1030 | 'httpMethod' => 'PUT',
|
---|
1031 | 'parameters' => [
|
---|
1032 | 'accountId' => [
|
---|
1033 | 'location' => 'path',
|
---|
1034 | 'type' => 'string',
|
---|
1035 | 'required' => true,
|
---|
1036 | ],
|
---|
1037 | 'webPropertyId' => [
|
---|
1038 | 'location' => 'path',
|
---|
1039 | 'type' => 'string',
|
---|
1040 | 'required' => true,
|
---|
1041 | ],
|
---|
1042 | 'profileId' => [
|
---|
1043 | 'location' => 'path',
|
---|
1044 | 'type' => 'string',
|
---|
1045 | 'required' => true,
|
---|
1046 | ],
|
---|
1047 | 'goalId' => [
|
---|
1048 | 'location' => 'path',
|
---|
1049 | 'type' => 'string',
|
---|
1050 | 'required' => true,
|
---|
1051 | ],
|
---|
1052 | ],
|
---|
1053 | ],
|
---|
1054 | ]
|
---|
1055 | ]
|
---|
1056 | );
|
---|
1057 | $this->management_profileFilterLinks = new Analytics\Resource\ManagementProfileFilterLinks(
|
---|
1058 | $this,
|
---|
1059 | $this->serviceName,
|
---|
1060 | 'profileFilterLinks',
|
---|
1061 | [
|
---|
1062 | 'methods' => [
|
---|
1063 | 'delete' => [
|
---|
1064 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
|
---|
1065 | 'httpMethod' => 'DELETE',
|
---|
1066 | 'parameters' => [
|
---|
1067 | 'accountId' => [
|
---|
1068 | 'location' => 'path',
|
---|
1069 | 'type' => 'string',
|
---|
1070 | 'required' => true,
|
---|
1071 | ],
|
---|
1072 | 'webPropertyId' => [
|
---|
1073 | 'location' => 'path',
|
---|
1074 | 'type' => 'string',
|
---|
1075 | 'required' => true,
|
---|
1076 | ],
|
---|
1077 | 'profileId' => [
|
---|
1078 | 'location' => 'path',
|
---|
1079 | 'type' => 'string',
|
---|
1080 | 'required' => true,
|
---|
1081 | ],
|
---|
1082 | 'linkId' => [
|
---|
1083 | 'location' => 'path',
|
---|
1084 | 'type' => 'string',
|
---|
1085 | 'required' => true,
|
---|
1086 | ],
|
---|
1087 | ],
|
---|
1088 | ],'get' => [
|
---|
1089 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
|
---|
1090 | 'httpMethod' => 'GET',
|
---|
1091 | 'parameters' => [
|
---|
1092 | 'accountId' => [
|
---|
1093 | 'location' => 'path',
|
---|
1094 | 'type' => 'string',
|
---|
1095 | 'required' => true,
|
---|
1096 | ],
|
---|
1097 | 'webPropertyId' => [
|
---|
1098 | 'location' => 'path',
|
---|
1099 | 'type' => 'string',
|
---|
1100 | 'required' => true,
|
---|
1101 | ],
|
---|
1102 | 'profileId' => [
|
---|
1103 | 'location' => 'path',
|
---|
1104 | 'type' => 'string',
|
---|
1105 | 'required' => true,
|
---|
1106 | ],
|
---|
1107 | 'linkId' => [
|
---|
1108 | 'location' => 'path',
|
---|
1109 | 'type' => 'string',
|
---|
1110 | 'required' => true,
|
---|
1111 | ],
|
---|
1112 | ],
|
---|
1113 | ],'insert' => [
|
---|
1114 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks',
|
---|
1115 | 'httpMethod' => 'POST',
|
---|
1116 | 'parameters' => [
|
---|
1117 | 'accountId' => [
|
---|
1118 | 'location' => 'path',
|
---|
1119 | 'type' => 'string',
|
---|
1120 | 'required' => true,
|
---|
1121 | ],
|
---|
1122 | 'webPropertyId' => [
|
---|
1123 | 'location' => 'path',
|
---|
1124 | 'type' => 'string',
|
---|
1125 | 'required' => true,
|
---|
1126 | ],
|
---|
1127 | 'profileId' => [
|
---|
1128 | 'location' => 'path',
|
---|
1129 | 'type' => 'string',
|
---|
1130 | 'required' => true,
|
---|
1131 | ],
|
---|
1132 | ],
|
---|
1133 | ],'list' => [
|
---|
1134 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks',
|
---|
1135 | 'httpMethod' => 'GET',
|
---|
1136 | 'parameters' => [
|
---|
1137 | 'accountId' => [
|
---|
1138 | 'location' => 'path',
|
---|
1139 | 'type' => 'string',
|
---|
1140 | 'required' => true,
|
---|
1141 | ],
|
---|
1142 | 'webPropertyId' => [
|
---|
1143 | 'location' => 'path',
|
---|
1144 | 'type' => 'string',
|
---|
1145 | 'required' => true,
|
---|
1146 | ],
|
---|
1147 | 'profileId' => [
|
---|
1148 | 'location' => 'path',
|
---|
1149 | 'type' => 'string',
|
---|
1150 | 'required' => true,
|
---|
1151 | ],
|
---|
1152 | 'max-results' => [
|
---|
1153 | 'location' => 'query',
|
---|
1154 | 'type' => 'integer',
|
---|
1155 | ],
|
---|
1156 | 'start-index' => [
|
---|
1157 | 'location' => 'query',
|
---|
1158 | 'type' => 'integer',
|
---|
1159 | ],
|
---|
1160 | ],
|
---|
1161 | ],'patch' => [
|
---|
1162 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
|
---|
1163 | 'httpMethod' => 'PATCH',
|
---|
1164 | 'parameters' => [
|
---|
1165 | 'accountId' => [
|
---|
1166 | 'location' => 'path',
|
---|
1167 | 'type' => 'string',
|
---|
1168 | 'required' => true,
|
---|
1169 | ],
|
---|
1170 | 'webPropertyId' => [
|
---|
1171 | 'location' => 'path',
|
---|
1172 | 'type' => 'string',
|
---|
1173 | 'required' => true,
|
---|
1174 | ],
|
---|
1175 | 'profileId' => [
|
---|
1176 | 'location' => 'path',
|
---|
1177 | 'type' => 'string',
|
---|
1178 | 'required' => true,
|
---|
1179 | ],
|
---|
1180 | 'linkId' => [
|
---|
1181 | 'location' => 'path',
|
---|
1182 | 'type' => 'string',
|
---|
1183 | 'required' => true,
|
---|
1184 | ],
|
---|
1185 | ],
|
---|
1186 | ],'update' => [
|
---|
1187 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
|
---|
1188 | 'httpMethod' => 'PUT',
|
---|
1189 | 'parameters' => [
|
---|
1190 | 'accountId' => [
|
---|
1191 | 'location' => 'path',
|
---|
1192 | 'type' => 'string',
|
---|
1193 | 'required' => true,
|
---|
1194 | ],
|
---|
1195 | 'webPropertyId' => [
|
---|
1196 | 'location' => 'path',
|
---|
1197 | 'type' => 'string',
|
---|
1198 | 'required' => true,
|
---|
1199 | ],
|
---|
1200 | 'profileId' => [
|
---|
1201 | 'location' => 'path',
|
---|
1202 | 'type' => 'string',
|
---|
1203 | 'required' => true,
|
---|
1204 | ],
|
---|
1205 | 'linkId' => [
|
---|
1206 | 'location' => 'path',
|
---|
1207 | 'type' => 'string',
|
---|
1208 | 'required' => true,
|
---|
1209 | ],
|
---|
1210 | ],
|
---|
1211 | ],
|
---|
1212 | ]
|
---|
1213 | ]
|
---|
1214 | );
|
---|
1215 | $this->management_profileUserLinks = new Analytics\Resource\ManagementProfileUserLinks(
|
---|
1216 | $this,
|
---|
1217 | $this->serviceName,
|
---|
1218 | 'profileUserLinks',
|
---|
1219 | [
|
---|
1220 | 'methods' => [
|
---|
1221 | 'delete' => [
|
---|
1222 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}',
|
---|
1223 | 'httpMethod' => 'DELETE',
|
---|
1224 | 'parameters' => [
|
---|
1225 | 'accountId' => [
|
---|
1226 | 'location' => 'path',
|
---|
1227 | 'type' => 'string',
|
---|
1228 | 'required' => true,
|
---|
1229 | ],
|
---|
1230 | 'webPropertyId' => [
|
---|
1231 | 'location' => 'path',
|
---|
1232 | 'type' => 'string',
|
---|
1233 | 'required' => true,
|
---|
1234 | ],
|
---|
1235 | 'profileId' => [
|
---|
1236 | 'location' => 'path',
|
---|
1237 | 'type' => 'string',
|
---|
1238 | 'required' => true,
|
---|
1239 | ],
|
---|
1240 | 'linkId' => [
|
---|
1241 | 'location' => 'path',
|
---|
1242 | 'type' => 'string',
|
---|
1243 | 'required' => true,
|
---|
1244 | ],
|
---|
1245 | ],
|
---|
1246 | ],'insert' => [
|
---|
1247 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks',
|
---|
1248 | 'httpMethod' => 'POST',
|
---|
1249 | 'parameters' => [
|
---|
1250 | 'accountId' => [
|
---|
1251 | 'location' => 'path',
|
---|
1252 | 'type' => 'string',
|
---|
1253 | 'required' => true,
|
---|
1254 | ],
|
---|
1255 | 'webPropertyId' => [
|
---|
1256 | 'location' => 'path',
|
---|
1257 | 'type' => 'string',
|
---|
1258 | 'required' => true,
|
---|
1259 | ],
|
---|
1260 | 'profileId' => [
|
---|
1261 | 'location' => 'path',
|
---|
1262 | 'type' => 'string',
|
---|
1263 | 'required' => true,
|
---|
1264 | ],
|
---|
1265 | ],
|
---|
1266 | ],'list' => [
|
---|
1267 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks',
|
---|
1268 | 'httpMethod' => 'GET',
|
---|
1269 | 'parameters' => [
|
---|
1270 | 'accountId' => [
|
---|
1271 | 'location' => 'path',
|
---|
1272 | 'type' => 'string',
|
---|
1273 | 'required' => true,
|
---|
1274 | ],
|
---|
1275 | 'webPropertyId' => [
|
---|
1276 | 'location' => 'path',
|
---|
1277 | 'type' => 'string',
|
---|
1278 | 'required' => true,
|
---|
1279 | ],
|
---|
1280 | 'profileId' => [
|
---|
1281 | 'location' => 'path',
|
---|
1282 | 'type' => 'string',
|
---|
1283 | 'required' => true,
|
---|
1284 | ],
|
---|
1285 | 'max-results' => [
|
---|
1286 | 'location' => 'query',
|
---|
1287 | 'type' => 'integer',
|
---|
1288 | ],
|
---|
1289 | 'start-index' => [
|
---|
1290 | 'location' => 'query',
|
---|
1291 | 'type' => 'integer',
|
---|
1292 | ],
|
---|
1293 | ],
|
---|
1294 | ],'update' => [
|
---|
1295 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}',
|
---|
1296 | 'httpMethod' => 'PUT',
|
---|
1297 | 'parameters' => [
|
---|
1298 | 'accountId' => [
|
---|
1299 | 'location' => 'path',
|
---|
1300 | 'type' => 'string',
|
---|
1301 | 'required' => true,
|
---|
1302 | ],
|
---|
1303 | 'webPropertyId' => [
|
---|
1304 | 'location' => 'path',
|
---|
1305 | 'type' => 'string',
|
---|
1306 | 'required' => true,
|
---|
1307 | ],
|
---|
1308 | 'profileId' => [
|
---|
1309 | 'location' => 'path',
|
---|
1310 | 'type' => 'string',
|
---|
1311 | 'required' => true,
|
---|
1312 | ],
|
---|
1313 | 'linkId' => [
|
---|
1314 | 'location' => 'path',
|
---|
1315 | 'type' => 'string',
|
---|
1316 | 'required' => true,
|
---|
1317 | ],
|
---|
1318 | ],
|
---|
1319 | ],
|
---|
1320 | ]
|
---|
1321 | ]
|
---|
1322 | );
|
---|
1323 | $this->management_profiles = new Analytics\Resource\ManagementProfiles(
|
---|
1324 | $this,
|
---|
1325 | $this->serviceName,
|
---|
1326 | 'profiles',
|
---|
1327 | [
|
---|
1328 | 'methods' => [
|
---|
1329 | 'delete' => [
|
---|
1330 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
|
---|
1331 | 'httpMethod' => 'DELETE',
|
---|
1332 | 'parameters' => [
|
---|
1333 | 'accountId' => [
|
---|
1334 | 'location' => 'path',
|
---|
1335 | 'type' => 'string',
|
---|
1336 | 'required' => true,
|
---|
1337 | ],
|
---|
1338 | 'webPropertyId' => [
|
---|
1339 | 'location' => 'path',
|
---|
1340 | 'type' => 'string',
|
---|
1341 | 'required' => true,
|
---|
1342 | ],
|
---|
1343 | 'profileId' => [
|
---|
1344 | 'location' => 'path',
|
---|
1345 | 'type' => 'string',
|
---|
1346 | 'required' => true,
|
---|
1347 | ],
|
---|
1348 | ],
|
---|
1349 | ],'get' => [
|
---|
1350 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
|
---|
1351 | 'httpMethod' => 'GET',
|
---|
1352 | 'parameters' => [
|
---|
1353 | 'accountId' => [
|
---|
1354 | 'location' => 'path',
|
---|
1355 | 'type' => 'string',
|
---|
1356 | 'required' => true,
|
---|
1357 | ],
|
---|
1358 | 'webPropertyId' => [
|
---|
1359 | 'location' => 'path',
|
---|
1360 | 'type' => 'string',
|
---|
1361 | 'required' => true,
|
---|
1362 | ],
|
---|
1363 | 'profileId' => [
|
---|
1364 | 'location' => 'path',
|
---|
1365 | 'type' => 'string',
|
---|
1366 | 'required' => true,
|
---|
1367 | ],
|
---|
1368 | ],
|
---|
1369 | ],'insert' => [
|
---|
1370 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles',
|
---|
1371 | 'httpMethod' => 'POST',
|
---|
1372 | 'parameters' => [
|
---|
1373 | 'accountId' => [
|
---|
1374 | 'location' => 'path',
|
---|
1375 | 'type' => 'string',
|
---|
1376 | 'required' => true,
|
---|
1377 | ],
|
---|
1378 | 'webPropertyId' => [
|
---|
1379 | 'location' => 'path',
|
---|
1380 | 'type' => 'string',
|
---|
1381 | 'required' => true,
|
---|
1382 | ],
|
---|
1383 | ],
|
---|
1384 | ],'list' => [
|
---|
1385 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles',
|
---|
1386 | 'httpMethod' => 'GET',
|
---|
1387 | 'parameters' => [
|
---|
1388 | 'accountId' => [
|
---|
1389 | 'location' => 'path',
|
---|
1390 | 'type' => 'string',
|
---|
1391 | 'required' => true,
|
---|
1392 | ],
|
---|
1393 | 'webPropertyId' => [
|
---|
1394 | 'location' => 'path',
|
---|
1395 | 'type' => 'string',
|
---|
1396 | 'required' => true,
|
---|
1397 | ],
|
---|
1398 | 'max-results' => [
|
---|
1399 | 'location' => 'query',
|
---|
1400 | 'type' => 'integer',
|
---|
1401 | ],
|
---|
1402 | 'start-index' => [
|
---|
1403 | 'location' => 'query',
|
---|
1404 | 'type' => 'integer',
|
---|
1405 | ],
|
---|
1406 | ],
|
---|
1407 | ],'patch' => [
|
---|
1408 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
|
---|
1409 | 'httpMethod' => 'PATCH',
|
---|
1410 | 'parameters' => [
|
---|
1411 | 'accountId' => [
|
---|
1412 | 'location' => 'path',
|
---|
1413 | 'type' => 'string',
|
---|
1414 | 'required' => true,
|
---|
1415 | ],
|
---|
1416 | 'webPropertyId' => [
|
---|
1417 | 'location' => 'path',
|
---|
1418 | 'type' => 'string',
|
---|
1419 | 'required' => true,
|
---|
1420 | ],
|
---|
1421 | 'profileId' => [
|
---|
1422 | 'location' => 'path',
|
---|
1423 | 'type' => 'string',
|
---|
1424 | 'required' => true,
|
---|
1425 | ],
|
---|
1426 | ],
|
---|
1427 | ],'update' => [
|
---|
1428 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
|
---|
1429 | 'httpMethod' => 'PUT',
|
---|
1430 | 'parameters' => [
|
---|
1431 | 'accountId' => [
|
---|
1432 | 'location' => 'path',
|
---|
1433 | 'type' => 'string',
|
---|
1434 | 'required' => true,
|
---|
1435 | ],
|
---|
1436 | 'webPropertyId' => [
|
---|
1437 | 'location' => 'path',
|
---|
1438 | 'type' => 'string',
|
---|
1439 | 'required' => true,
|
---|
1440 | ],
|
---|
1441 | 'profileId' => [
|
---|
1442 | 'location' => 'path',
|
---|
1443 | 'type' => 'string',
|
---|
1444 | 'required' => true,
|
---|
1445 | ],
|
---|
1446 | ],
|
---|
1447 | ],
|
---|
1448 | ]
|
---|
1449 | ]
|
---|
1450 | );
|
---|
1451 | $this->management_remarketingAudience = new Analytics\Resource\ManagementRemarketingAudience(
|
---|
1452 | $this,
|
---|
1453 | $this->serviceName,
|
---|
1454 | 'remarketingAudience',
|
---|
1455 | [
|
---|
1456 | 'methods' => [
|
---|
1457 | 'delete' => [
|
---|
1458 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
|
---|
1459 | 'httpMethod' => 'DELETE',
|
---|
1460 | 'parameters' => [
|
---|
1461 | 'accountId' => [
|
---|
1462 | 'location' => 'path',
|
---|
1463 | 'type' => 'string',
|
---|
1464 | 'required' => true,
|
---|
1465 | ],
|
---|
1466 | 'webPropertyId' => [
|
---|
1467 | 'location' => 'path',
|
---|
1468 | 'type' => 'string',
|
---|
1469 | 'required' => true,
|
---|
1470 | ],
|
---|
1471 | 'remarketingAudienceId' => [
|
---|
1472 | 'location' => 'path',
|
---|
1473 | 'type' => 'string',
|
---|
1474 | 'required' => true,
|
---|
1475 | ],
|
---|
1476 | ],
|
---|
1477 | ],'get' => [
|
---|
1478 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
|
---|
1479 | 'httpMethod' => 'GET',
|
---|
1480 | 'parameters' => [
|
---|
1481 | 'accountId' => [
|
---|
1482 | 'location' => 'path',
|
---|
1483 | 'type' => 'string',
|
---|
1484 | 'required' => true,
|
---|
1485 | ],
|
---|
1486 | 'webPropertyId' => [
|
---|
1487 | 'location' => 'path',
|
---|
1488 | 'type' => 'string',
|
---|
1489 | 'required' => true,
|
---|
1490 | ],
|
---|
1491 | 'remarketingAudienceId' => [
|
---|
1492 | 'location' => 'path',
|
---|
1493 | 'type' => 'string',
|
---|
1494 | 'required' => true,
|
---|
1495 | ],
|
---|
1496 | ],
|
---|
1497 | ],'insert' => [
|
---|
1498 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences',
|
---|
1499 | 'httpMethod' => 'POST',
|
---|
1500 | 'parameters' => [
|
---|
1501 | 'accountId' => [
|
---|
1502 | 'location' => 'path',
|
---|
1503 | 'type' => 'string',
|
---|
1504 | 'required' => true,
|
---|
1505 | ],
|
---|
1506 | 'webPropertyId' => [
|
---|
1507 | 'location' => 'path',
|
---|
1508 | 'type' => 'string',
|
---|
1509 | 'required' => true,
|
---|
1510 | ],
|
---|
1511 | ],
|
---|
1512 | ],'list' => [
|
---|
1513 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences',
|
---|
1514 | 'httpMethod' => 'GET',
|
---|
1515 | 'parameters' => [
|
---|
1516 | 'accountId' => [
|
---|
1517 | 'location' => 'path',
|
---|
1518 | 'type' => 'string',
|
---|
1519 | 'required' => true,
|
---|
1520 | ],
|
---|
1521 | 'webPropertyId' => [
|
---|
1522 | 'location' => 'path',
|
---|
1523 | 'type' => 'string',
|
---|
1524 | 'required' => true,
|
---|
1525 | ],
|
---|
1526 | 'max-results' => [
|
---|
1527 | 'location' => 'query',
|
---|
1528 | 'type' => 'integer',
|
---|
1529 | ],
|
---|
1530 | 'start-index' => [
|
---|
1531 | 'location' => 'query',
|
---|
1532 | 'type' => 'integer',
|
---|
1533 | ],
|
---|
1534 | 'type' => [
|
---|
1535 | 'location' => 'query',
|
---|
1536 | 'type' => 'string',
|
---|
1537 | ],
|
---|
1538 | ],
|
---|
1539 | ],'patch' => [
|
---|
1540 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
|
---|
1541 | 'httpMethod' => 'PATCH',
|
---|
1542 | 'parameters' => [
|
---|
1543 | 'accountId' => [
|
---|
1544 | 'location' => 'path',
|
---|
1545 | 'type' => 'string',
|
---|
1546 | 'required' => true,
|
---|
1547 | ],
|
---|
1548 | 'webPropertyId' => [
|
---|
1549 | 'location' => 'path',
|
---|
1550 | 'type' => 'string',
|
---|
1551 | 'required' => true,
|
---|
1552 | ],
|
---|
1553 | 'remarketingAudienceId' => [
|
---|
1554 | 'location' => 'path',
|
---|
1555 | 'type' => 'string',
|
---|
1556 | 'required' => true,
|
---|
1557 | ],
|
---|
1558 | ],
|
---|
1559 | ],'update' => [
|
---|
1560 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
|
---|
1561 | 'httpMethod' => 'PUT',
|
---|
1562 | 'parameters' => [
|
---|
1563 | 'accountId' => [
|
---|
1564 | 'location' => 'path',
|
---|
1565 | 'type' => 'string',
|
---|
1566 | 'required' => true,
|
---|
1567 | ],
|
---|
1568 | 'webPropertyId' => [
|
---|
1569 | 'location' => 'path',
|
---|
1570 | 'type' => 'string',
|
---|
1571 | 'required' => true,
|
---|
1572 | ],
|
---|
1573 | 'remarketingAudienceId' => [
|
---|
1574 | 'location' => 'path',
|
---|
1575 | 'type' => 'string',
|
---|
1576 | 'required' => true,
|
---|
1577 | ],
|
---|
1578 | ],
|
---|
1579 | ],
|
---|
1580 | ]
|
---|
1581 | ]
|
---|
1582 | );
|
---|
1583 | $this->management_segments = new Analytics\Resource\ManagementSegments(
|
---|
1584 | $this,
|
---|
1585 | $this->serviceName,
|
---|
1586 | 'segments',
|
---|
1587 | [
|
---|
1588 | 'methods' => [
|
---|
1589 | 'list' => [
|
---|
1590 | 'path' => 'management/segments',
|
---|
1591 | 'httpMethod' => 'GET',
|
---|
1592 | 'parameters' => [
|
---|
1593 | 'max-results' => [
|
---|
1594 | 'location' => 'query',
|
---|
1595 | 'type' => 'integer',
|
---|
1596 | ],
|
---|
1597 | 'start-index' => [
|
---|
1598 | 'location' => 'query',
|
---|
1599 | 'type' => 'integer',
|
---|
1600 | ],
|
---|
1601 | ],
|
---|
1602 | ],
|
---|
1603 | ]
|
---|
1604 | ]
|
---|
1605 | );
|
---|
1606 | $this->management_unsampledReports = new Analytics\Resource\ManagementUnsampledReports(
|
---|
1607 | $this,
|
---|
1608 | $this->serviceName,
|
---|
1609 | 'unsampledReports',
|
---|
1610 | [
|
---|
1611 | 'methods' => [
|
---|
1612 | 'delete' => [
|
---|
1613 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}',
|
---|
1614 | 'httpMethod' => 'DELETE',
|
---|
1615 | 'parameters' => [
|
---|
1616 | 'accountId' => [
|
---|
1617 | 'location' => 'path',
|
---|
1618 | 'type' => 'string',
|
---|
1619 | 'required' => true,
|
---|
1620 | ],
|
---|
1621 | 'webPropertyId' => [
|
---|
1622 | 'location' => 'path',
|
---|
1623 | 'type' => 'string',
|
---|
1624 | 'required' => true,
|
---|
1625 | ],
|
---|
1626 | 'profileId' => [
|
---|
1627 | 'location' => 'path',
|
---|
1628 | 'type' => 'string',
|
---|
1629 | 'required' => true,
|
---|
1630 | ],
|
---|
1631 | 'unsampledReportId' => [
|
---|
1632 | 'location' => 'path',
|
---|
1633 | 'type' => 'string',
|
---|
1634 | 'required' => true,
|
---|
1635 | ],
|
---|
1636 | ],
|
---|
1637 | ],'get' => [
|
---|
1638 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}',
|
---|
1639 | 'httpMethod' => 'GET',
|
---|
1640 | 'parameters' => [
|
---|
1641 | 'accountId' => [
|
---|
1642 | 'location' => 'path',
|
---|
1643 | 'type' => 'string',
|
---|
1644 | 'required' => true,
|
---|
1645 | ],
|
---|
1646 | 'webPropertyId' => [
|
---|
1647 | 'location' => 'path',
|
---|
1648 | 'type' => 'string',
|
---|
1649 | 'required' => true,
|
---|
1650 | ],
|
---|
1651 | 'profileId' => [
|
---|
1652 | 'location' => 'path',
|
---|
1653 | 'type' => 'string',
|
---|
1654 | 'required' => true,
|
---|
1655 | ],
|
---|
1656 | 'unsampledReportId' => [
|
---|
1657 | 'location' => 'path',
|
---|
1658 | 'type' => 'string',
|
---|
1659 | 'required' => true,
|
---|
1660 | ],
|
---|
1661 | ],
|
---|
1662 | ],'insert' => [
|
---|
1663 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports',
|
---|
1664 | 'httpMethod' => 'POST',
|
---|
1665 | 'parameters' => [
|
---|
1666 | 'accountId' => [
|
---|
1667 | 'location' => 'path',
|
---|
1668 | 'type' => 'string',
|
---|
1669 | 'required' => true,
|
---|
1670 | ],
|
---|
1671 | 'webPropertyId' => [
|
---|
1672 | 'location' => 'path',
|
---|
1673 | 'type' => 'string',
|
---|
1674 | 'required' => true,
|
---|
1675 | ],
|
---|
1676 | 'profileId' => [
|
---|
1677 | 'location' => 'path',
|
---|
1678 | 'type' => 'string',
|
---|
1679 | 'required' => true,
|
---|
1680 | ],
|
---|
1681 | ],
|
---|
1682 | ],'list' => [
|
---|
1683 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports',
|
---|
1684 | 'httpMethod' => 'GET',
|
---|
1685 | 'parameters' => [
|
---|
1686 | 'accountId' => [
|
---|
1687 | 'location' => 'path',
|
---|
1688 | 'type' => 'string',
|
---|
1689 | 'required' => true,
|
---|
1690 | ],
|
---|
1691 | 'webPropertyId' => [
|
---|
1692 | 'location' => 'path',
|
---|
1693 | 'type' => 'string',
|
---|
1694 | 'required' => true,
|
---|
1695 | ],
|
---|
1696 | 'profileId' => [
|
---|
1697 | 'location' => 'path',
|
---|
1698 | 'type' => 'string',
|
---|
1699 | 'required' => true,
|
---|
1700 | ],
|
---|
1701 | 'max-results' => [
|
---|
1702 | 'location' => 'query',
|
---|
1703 | 'type' => 'integer',
|
---|
1704 | ],
|
---|
1705 | 'start-index' => [
|
---|
1706 | 'location' => 'query',
|
---|
1707 | 'type' => 'integer',
|
---|
1708 | ],
|
---|
1709 | ],
|
---|
1710 | ],
|
---|
1711 | ]
|
---|
1712 | ]
|
---|
1713 | );
|
---|
1714 | $this->management_uploads = new Analytics\Resource\ManagementUploads(
|
---|
1715 | $this,
|
---|
1716 | $this->serviceName,
|
---|
1717 | 'uploads',
|
---|
1718 | [
|
---|
1719 | 'methods' => [
|
---|
1720 | 'deleteUploadData' => [
|
---|
1721 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData',
|
---|
1722 | 'httpMethod' => 'POST',
|
---|
1723 | 'parameters' => [
|
---|
1724 | 'accountId' => [
|
---|
1725 | 'location' => 'path',
|
---|
1726 | 'type' => 'string',
|
---|
1727 | 'required' => true,
|
---|
1728 | ],
|
---|
1729 | 'webPropertyId' => [
|
---|
1730 | 'location' => 'path',
|
---|
1731 | 'type' => 'string',
|
---|
1732 | 'required' => true,
|
---|
1733 | ],
|
---|
1734 | 'customDataSourceId' => [
|
---|
1735 | 'location' => 'path',
|
---|
1736 | 'type' => 'string',
|
---|
1737 | 'required' => true,
|
---|
1738 | ],
|
---|
1739 | ],
|
---|
1740 | ],'get' => [
|
---|
1741 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}',
|
---|
1742 | 'httpMethod' => 'GET',
|
---|
1743 | 'parameters' => [
|
---|
1744 | 'accountId' => [
|
---|
1745 | 'location' => 'path',
|
---|
1746 | 'type' => 'string',
|
---|
1747 | 'required' => true,
|
---|
1748 | ],
|
---|
1749 | 'webPropertyId' => [
|
---|
1750 | 'location' => 'path',
|
---|
1751 | 'type' => 'string',
|
---|
1752 | 'required' => true,
|
---|
1753 | ],
|
---|
1754 | 'customDataSourceId' => [
|
---|
1755 | 'location' => 'path',
|
---|
1756 | 'type' => 'string',
|
---|
1757 | 'required' => true,
|
---|
1758 | ],
|
---|
1759 | 'uploadId' => [
|
---|
1760 | 'location' => 'path',
|
---|
1761 | 'type' => 'string',
|
---|
1762 | 'required' => true,
|
---|
1763 | ],
|
---|
1764 | ],
|
---|
1765 | ],'list' => [
|
---|
1766 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads',
|
---|
1767 | 'httpMethod' => 'GET',
|
---|
1768 | 'parameters' => [
|
---|
1769 | 'accountId' => [
|
---|
1770 | 'location' => 'path',
|
---|
1771 | 'type' => 'string',
|
---|
1772 | 'required' => true,
|
---|
1773 | ],
|
---|
1774 | 'webPropertyId' => [
|
---|
1775 | 'location' => 'path',
|
---|
1776 | 'type' => 'string',
|
---|
1777 | 'required' => true,
|
---|
1778 | ],
|
---|
1779 | 'customDataSourceId' => [
|
---|
1780 | 'location' => 'path',
|
---|
1781 | 'type' => 'string',
|
---|
1782 | 'required' => true,
|
---|
1783 | ],
|
---|
1784 | 'max-results' => [
|
---|
1785 | 'location' => 'query',
|
---|
1786 | 'type' => 'integer',
|
---|
1787 | ],
|
---|
1788 | 'start-index' => [
|
---|
1789 | 'location' => 'query',
|
---|
1790 | 'type' => 'integer',
|
---|
1791 | ],
|
---|
1792 | ],
|
---|
1793 | ],'uploadData' => [
|
---|
1794 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads',
|
---|
1795 | 'httpMethod' => 'POST',
|
---|
1796 | 'parameters' => [
|
---|
1797 | 'accountId' => [
|
---|
1798 | 'location' => 'path',
|
---|
1799 | 'type' => 'string',
|
---|
1800 | 'required' => true,
|
---|
1801 | ],
|
---|
1802 | 'webPropertyId' => [
|
---|
1803 | 'location' => 'path',
|
---|
1804 | 'type' => 'string',
|
---|
1805 | 'required' => true,
|
---|
1806 | ],
|
---|
1807 | 'customDataSourceId' => [
|
---|
1808 | 'location' => 'path',
|
---|
1809 | 'type' => 'string',
|
---|
1810 | 'required' => true,
|
---|
1811 | ],
|
---|
1812 | ],
|
---|
1813 | ],
|
---|
1814 | ]
|
---|
1815 | ]
|
---|
1816 | );
|
---|
1817 | $this->management_webPropertyAdWordsLinks = new Analytics\Resource\ManagementWebPropertyAdWordsLinks(
|
---|
1818 | $this,
|
---|
1819 | $this->serviceName,
|
---|
1820 | 'webPropertyAdWordsLinks',
|
---|
1821 | [
|
---|
1822 | 'methods' => [
|
---|
1823 | 'delete' => [
|
---|
1824 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
|
---|
1825 | 'httpMethod' => 'DELETE',
|
---|
1826 | 'parameters' => [
|
---|
1827 | 'accountId' => [
|
---|
1828 | 'location' => 'path',
|
---|
1829 | 'type' => 'string',
|
---|
1830 | 'required' => true,
|
---|
1831 | ],
|
---|
1832 | 'webPropertyId' => [
|
---|
1833 | 'location' => 'path',
|
---|
1834 | 'type' => 'string',
|
---|
1835 | 'required' => true,
|
---|
1836 | ],
|
---|
1837 | 'webPropertyAdWordsLinkId' => [
|
---|
1838 | 'location' => 'path',
|
---|
1839 | 'type' => 'string',
|
---|
1840 | 'required' => true,
|
---|
1841 | ],
|
---|
1842 | ],
|
---|
1843 | ],'get' => [
|
---|
1844 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
|
---|
1845 | 'httpMethod' => 'GET',
|
---|
1846 | 'parameters' => [
|
---|
1847 | 'accountId' => [
|
---|
1848 | 'location' => 'path',
|
---|
1849 | 'type' => 'string',
|
---|
1850 | 'required' => true,
|
---|
1851 | ],
|
---|
1852 | 'webPropertyId' => [
|
---|
1853 | 'location' => 'path',
|
---|
1854 | 'type' => 'string',
|
---|
1855 | 'required' => true,
|
---|
1856 | ],
|
---|
1857 | 'webPropertyAdWordsLinkId' => [
|
---|
1858 | 'location' => 'path',
|
---|
1859 | 'type' => 'string',
|
---|
1860 | 'required' => true,
|
---|
1861 | ],
|
---|
1862 | ],
|
---|
1863 | ],'insert' => [
|
---|
1864 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks',
|
---|
1865 | 'httpMethod' => 'POST',
|
---|
1866 | 'parameters' => [
|
---|
1867 | 'accountId' => [
|
---|
1868 | 'location' => 'path',
|
---|
1869 | 'type' => 'string',
|
---|
1870 | 'required' => true,
|
---|
1871 | ],
|
---|
1872 | 'webPropertyId' => [
|
---|
1873 | 'location' => 'path',
|
---|
1874 | 'type' => 'string',
|
---|
1875 | 'required' => true,
|
---|
1876 | ],
|
---|
1877 | ],
|
---|
1878 | ],'list' => [
|
---|
1879 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks',
|
---|
1880 | 'httpMethod' => 'GET',
|
---|
1881 | 'parameters' => [
|
---|
1882 | 'accountId' => [
|
---|
1883 | 'location' => 'path',
|
---|
1884 | 'type' => 'string',
|
---|
1885 | 'required' => true,
|
---|
1886 | ],
|
---|
1887 | 'webPropertyId' => [
|
---|
1888 | 'location' => 'path',
|
---|
1889 | 'type' => 'string',
|
---|
1890 | 'required' => true,
|
---|
1891 | ],
|
---|
1892 | 'max-results' => [
|
---|
1893 | 'location' => 'query',
|
---|
1894 | 'type' => 'integer',
|
---|
1895 | ],
|
---|
1896 | 'start-index' => [
|
---|
1897 | 'location' => 'query',
|
---|
1898 | 'type' => 'integer',
|
---|
1899 | ],
|
---|
1900 | ],
|
---|
1901 | ],'patch' => [
|
---|
1902 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
|
---|
1903 | 'httpMethod' => 'PATCH',
|
---|
1904 | 'parameters' => [
|
---|
1905 | 'accountId' => [
|
---|
1906 | 'location' => 'path',
|
---|
1907 | 'type' => 'string',
|
---|
1908 | 'required' => true,
|
---|
1909 | ],
|
---|
1910 | 'webPropertyId' => [
|
---|
1911 | 'location' => 'path',
|
---|
1912 | 'type' => 'string',
|
---|
1913 | 'required' => true,
|
---|
1914 | ],
|
---|
1915 | 'webPropertyAdWordsLinkId' => [
|
---|
1916 | 'location' => 'path',
|
---|
1917 | 'type' => 'string',
|
---|
1918 | 'required' => true,
|
---|
1919 | ],
|
---|
1920 | ],
|
---|
1921 | ],'update' => [
|
---|
1922 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
|
---|
1923 | 'httpMethod' => 'PUT',
|
---|
1924 | 'parameters' => [
|
---|
1925 | 'accountId' => [
|
---|
1926 | 'location' => 'path',
|
---|
1927 | 'type' => 'string',
|
---|
1928 | 'required' => true,
|
---|
1929 | ],
|
---|
1930 | 'webPropertyId' => [
|
---|
1931 | 'location' => 'path',
|
---|
1932 | 'type' => 'string',
|
---|
1933 | 'required' => true,
|
---|
1934 | ],
|
---|
1935 | 'webPropertyAdWordsLinkId' => [
|
---|
1936 | 'location' => 'path',
|
---|
1937 | 'type' => 'string',
|
---|
1938 | 'required' => true,
|
---|
1939 | ],
|
---|
1940 | ],
|
---|
1941 | ],
|
---|
1942 | ]
|
---|
1943 | ]
|
---|
1944 | );
|
---|
1945 | $this->management_webproperties = new Analytics\Resource\ManagementWebproperties(
|
---|
1946 | $this,
|
---|
1947 | $this->serviceName,
|
---|
1948 | 'webproperties',
|
---|
1949 | [
|
---|
1950 | 'methods' => [
|
---|
1951 | 'get' => [
|
---|
1952 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}',
|
---|
1953 | 'httpMethod' => 'GET',
|
---|
1954 | 'parameters' => [
|
---|
1955 | 'accountId' => [
|
---|
1956 | 'location' => 'path',
|
---|
1957 | 'type' => 'string',
|
---|
1958 | 'required' => true,
|
---|
1959 | ],
|
---|
1960 | 'webPropertyId' => [
|
---|
1961 | 'location' => 'path',
|
---|
1962 | 'type' => 'string',
|
---|
1963 | 'required' => true,
|
---|
1964 | ],
|
---|
1965 | ],
|
---|
1966 | ],'insert' => [
|
---|
1967 | 'path' => 'management/accounts/{accountId}/webproperties',
|
---|
1968 | 'httpMethod' => 'POST',
|
---|
1969 | 'parameters' => [
|
---|
1970 | 'accountId' => [
|
---|
1971 | 'location' => 'path',
|
---|
1972 | 'type' => 'string',
|
---|
1973 | 'required' => true,
|
---|
1974 | ],
|
---|
1975 | ],
|
---|
1976 | ],'list' => [
|
---|
1977 | 'path' => 'management/accounts/{accountId}/webproperties',
|
---|
1978 | 'httpMethod' => 'GET',
|
---|
1979 | 'parameters' => [
|
---|
1980 | 'accountId' => [
|
---|
1981 | 'location' => 'path',
|
---|
1982 | 'type' => 'string',
|
---|
1983 | 'required' => true,
|
---|
1984 | ],
|
---|
1985 | 'max-results' => [
|
---|
1986 | 'location' => 'query',
|
---|
1987 | 'type' => 'integer',
|
---|
1988 | ],
|
---|
1989 | 'start-index' => [
|
---|
1990 | 'location' => 'query',
|
---|
1991 | 'type' => 'integer',
|
---|
1992 | ],
|
---|
1993 | ],
|
---|
1994 | ],'patch' => [
|
---|
1995 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}',
|
---|
1996 | 'httpMethod' => 'PATCH',
|
---|
1997 | 'parameters' => [
|
---|
1998 | 'accountId' => [
|
---|
1999 | 'location' => 'path',
|
---|
2000 | 'type' => 'string',
|
---|
2001 | 'required' => true,
|
---|
2002 | ],
|
---|
2003 | 'webPropertyId' => [
|
---|
2004 | 'location' => 'path',
|
---|
2005 | 'type' => 'string',
|
---|
2006 | 'required' => true,
|
---|
2007 | ],
|
---|
2008 | ],
|
---|
2009 | ],'update' => [
|
---|
2010 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}',
|
---|
2011 | 'httpMethod' => 'PUT',
|
---|
2012 | 'parameters' => [
|
---|
2013 | 'accountId' => [
|
---|
2014 | 'location' => 'path',
|
---|
2015 | 'type' => 'string',
|
---|
2016 | 'required' => true,
|
---|
2017 | ],
|
---|
2018 | 'webPropertyId' => [
|
---|
2019 | 'location' => 'path',
|
---|
2020 | 'type' => 'string',
|
---|
2021 | 'required' => true,
|
---|
2022 | ],
|
---|
2023 | ],
|
---|
2024 | ],
|
---|
2025 | ]
|
---|
2026 | ]
|
---|
2027 | );
|
---|
2028 | $this->management_webpropertyUserLinks = new Analytics\Resource\ManagementWebpropertyUserLinks(
|
---|
2029 | $this,
|
---|
2030 | $this->serviceName,
|
---|
2031 | 'webpropertyUserLinks',
|
---|
2032 | [
|
---|
2033 | 'methods' => [
|
---|
2034 | 'delete' => [
|
---|
2035 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}',
|
---|
2036 | 'httpMethod' => 'DELETE',
|
---|
2037 | 'parameters' => [
|
---|
2038 | 'accountId' => [
|
---|
2039 | 'location' => 'path',
|
---|
2040 | 'type' => 'string',
|
---|
2041 | 'required' => true,
|
---|
2042 | ],
|
---|
2043 | 'webPropertyId' => [
|
---|
2044 | 'location' => 'path',
|
---|
2045 | 'type' => 'string',
|
---|
2046 | 'required' => true,
|
---|
2047 | ],
|
---|
2048 | 'linkId' => [
|
---|
2049 | 'location' => 'path',
|
---|
2050 | 'type' => 'string',
|
---|
2051 | 'required' => true,
|
---|
2052 | ],
|
---|
2053 | ],
|
---|
2054 | ],'insert' => [
|
---|
2055 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks',
|
---|
2056 | 'httpMethod' => 'POST',
|
---|
2057 | 'parameters' => [
|
---|
2058 | 'accountId' => [
|
---|
2059 | 'location' => 'path',
|
---|
2060 | 'type' => 'string',
|
---|
2061 | 'required' => true,
|
---|
2062 | ],
|
---|
2063 | 'webPropertyId' => [
|
---|
2064 | 'location' => 'path',
|
---|
2065 | 'type' => 'string',
|
---|
2066 | 'required' => true,
|
---|
2067 | ],
|
---|
2068 | ],
|
---|
2069 | ],'list' => [
|
---|
2070 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks',
|
---|
2071 | 'httpMethod' => 'GET',
|
---|
2072 | 'parameters' => [
|
---|
2073 | 'accountId' => [
|
---|
2074 | 'location' => 'path',
|
---|
2075 | 'type' => 'string',
|
---|
2076 | 'required' => true,
|
---|
2077 | ],
|
---|
2078 | 'webPropertyId' => [
|
---|
2079 | 'location' => 'path',
|
---|
2080 | 'type' => 'string',
|
---|
2081 | 'required' => true,
|
---|
2082 | ],
|
---|
2083 | 'max-results' => [
|
---|
2084 | 'location' => 'query',
|
---|
2085 | 'type' => 'integer',
|
---|
2086 | ],
|
---|
2087 | 'start-index' => [
|
---|
2088 | 'location' => 'query',
|
---|
2089 | 'type' => 'integer',
|
---|
2090 | ],
|
---|
2091 | ],
|
---|
2092 | ],'update' => [
|
---|
2093 | 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}',
|
---|
2094 | 'httpMethod' => 'PUT',
|
---|
2095 | 'parameters' => [
|
---|
2096 | 'accountId' => [
|
---|
2097 | 'location' => 'path',
|
---|
2098 | 'type' => 'string',
|
---|
2099 | 'required' => true,
|
---|
2100 | ],
|
---|
2101 | 'webPropertyId' => [
|
---|
2102 | 'location' => 'path',
|
---|
2103 | 'type' => 'string',
|
---|
2104 | 'required' => true,
|
---|
2105 | ],
|
---|
2106 | 'linkId' => [
|
---|
2107 | 'location' => 'path',
|
---|
2108 | 'type' => 'string',
|
---|
2109 | 'required' => true,
|
---|
2110 | ],
|
---|
2111 | ],
|
---|
2112 | ],
|
---|
2113 | ]
|
---|
2114 | ]
|
---|
2115 | );
|
---|
2116 | $this->metadata_columns = new Analytics\Resource\MetadataColumns(
|
---|
2117 | $this,
|
---|
2118 | $this->serviceName,
|
---|
2119 | 'columns',
|
---|
2120 | [
|
---|
2121 | 'methods' => [
|
---|
2122 | 'list' => [
|
---|
2123 | 'path' => 'metadata/{reportType}/columns',
|
---|
2124 | 'httpMethod' => 'GET',
|
---|
2125 | 'parameters' => [
|
---|
2126 | 'reportType' => [
|
---|
2127 | 'location' => 'path',
|
---|
2128 | 'type' => 'string',
|
---|
2129 | 'required' => true,
|
---|
2130 | ],
|
---|
2131 | ],
|
---|
2132 | ],
|
---|
2133 | ]
|
---|
2134 | ]
|
---|
2135 | );
|
---|
2136 | $this->provisioning = new Analytics\Resource\Provisioning(
|
---|
2137 | $this,
|
---|
2138 | $this->serviceName,
|
---|
2139 | 'provisioning',
|
---|
2140 | [
|
---|
2141 | 'methods' => [
|
---|
2142 | 'createAccountTicket' => [
|
---|
2143 | 'path' => 'provisioning/createAccountTicket',
|
---|
2144 | 'httpMethod' => 'POST',
|
---|
2145 | 'parameters' => [],
|
---|
2146 | ],'createAccountTree' => [
|
---|
2147 | 'path' => 'provisioning/createAccountTree',
|
---|
2148 | 'httpMethod' => 'POST',
|
---|
2149 | 'parameters' => [],
|
---|
2150 | ],
|
---|
2151 | ]
|
---|
2152 | ]
|
---|
2153 | );
|
---|
2154 | $this->userDeletion_userDeletionRequest = new Analytics\Resource\UserDeletionUserDeletionRequest(
|
---|
2155 | $this,
|
---|
2156 | $this->serviceName,
|
---|
2157 | 'userDeletionRequest',
|
---|
2158 | [
|
---|
2159 | 'methods' => [
|
---|
2160 | 'upsert' => [
|
---|
2161 | 'path' => 'userDeletion/userDeletionRequests:upsert',
|
---|
2162 | 'httpMethod' => 'POST',
|
---|
2163 | 'parameters' => [],
|
---|
2164 | ],
|
---|
2165 | ]
|
---|
2166 | ]
|
---|
2167 | );
|
---|
2168 | }
|
---|
2169 | }
|
---|
2170 |
|
---|
2171 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
2172 | class_alias(Analytics::class, 'Google_Service_Analytics');
|
---|