source: vendor/google/apiclient-services/src/GoogleMarketingPlatformAdminAPI.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 5.2 KB
Line 
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
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for GoogleMarketingPlatformAdminAPI (v1alpha).
24 *
25 * <p>
26 * The Google Marketing Platform Admin API allows for programmatic access to the
27 * Google Marketing Platform configuration data. You can use the Google
28 * Marketing Platform Admin API to manage links between your Google Marketing
29 * Platform organization and Google Analytics accounts, and to set the service
30 * level of your GA4 properties.</p>
31 *
32 * <p>
33 * For more information about this service, see the API
34 * <a href="https://developers.google.com/analytics/devguides/config/gmp/v1" target="_blank">Documentation</a>
35 * </p>
36 *
37 * @author Google, Inc.
38 */
39class GoogleMarketingPlatformAdminAPI extends \Google\Service
40{
41 /** View your Google Analytics product account data in GMP home. */
42 const MARKETINGPLATFORMADMIN_ANALYTICS_READ =
43 "https://www.googleapis.com/auth/marketingplatformadmin.analytics.read";
44 /** Manage your Google Analytics product account data in GMP home. */
45 const MARKETINGPLATFORMADMIN_ANALYTICS_UPDATE =
46 "https://www.googleapis.com/auth/marketingplatformadmin.analytics.update";
47
48 public $organizations;
49 public $organizations_analyticsAccountLinks;
50 public $rootUrlTemplate;
51
52 /**
53 * Constructs the internal representation of the
54 * GoogleMarketingPlatformAdminAPI service.
55 *
56 * @param Client|array $clientOrConfig The client used to deliver requests, or a
57 * config array to pass to a new Client instance.
58 * @param string $rootUrl The root URL used for requests to the service.
59 */
60 public function __construct($clientOrConfig = [], $rootUrl = null)
61 {
62 parent::__construct($clientOrConfig);
63 $this->rootUrl = $rootUrl ?: 'https://marketingplatformadmin.googleapis.com/';
64 $this->rootUrlTemplate = $rootUrl ?: 'https://marketingplatformadmin.UNIVERSE_DOMAIN/';
65 $this->servicePath = '';
66 $this->batchPath = 'batch';
67 $this->version = 'v1alpha';
68 $this->serviceName = 'marketingplatformadmin';
69
70 $this->organizations = new GoogleMarketingPlatformAdminAPI\Resource\Organizations(
71 $this,
72 $this->serviceName,
73 'organizations',
74 [
75 'methods' => [
76 'get' => [
77 'path' => 'v1alpha/{+name}',
78 'httpMethod' => 'GET',
79 'parameters' => [
80 'name' => [
81 'location' => 'path',
82 'type' => 'string',
83 'required' => true,
84 ],
85 ],
86 ],
87 ]
88 ]
89 );
90 $this->organizations_analyticsAccountLinks = new GoogleMarketingPlatformAdminAPI\Resource\OrganizationsAnalyticsAccountLinks(
91 $this,
92 $this->serviceName,
93 'analyticsAccountLinks',
94 [
95 'methods' => [
96 'create' => [
97 'path' => 'v1alpha/{+parent}/analyticsAccountLinks',
98 'httpMethod' => 'POST',
99 'parameters' => [
100 'parent' => [
101 'location' => 'path',
102 'type' => 'string',
103 'required' => true,
104 ],
105 ],
106 ],'delete' => [
107 'path' => 'v1alpha/{+name}',
108 'httpMethod' => 'DELETE',
109 'parameters' => [
110 'name' => [
111 'location' => 'path',
112 'type' => 'string',
113 'required' => true,
114 ],
115 ],
116 ],'list' => [
117 'path' => 'v1alpha/{+parent}/analyticsAccountLinks',
118 'httpMethod' => 'GET',
119 'parameters' => [
120 'parent' => [
121 'location' => 'path',
122 'type' => 'string',
123 'required' => true,
124 ],
125 'pageSize' => [
126 'location' => 'query',
127 'type' => 'integer',
128 ],
129 'pageToken' => [
130 'location' => 'query',
131 'type' => 'string',
132 ],
133 ],
134 ],'setPropertyServiceLevel' => [
135 'path' => 'v1alpha/{+analyticsAccountLink}:setPropertyServiceLevel',
136 'httpMethod' => 'POST',
137 'parameters' => [
138 'analyticsAccountLink' => [
139 'location' => 'path',
140 'type' => 'string',
141 'required' => true,
142 ],
143 ],
144 ],
145 ]
146 ]
147 );
148 }
149}
150
151// Adding a class alias for backwards compatibility with the previous class name.
152class_alias(GoogleMarketingPlatformAdminAPI::class, 'Google_Service_GoogleMarketingPlatformAdminAPI');
Note: See TracBrowser for help on using the repository browser.