source: vendor/google/apiclient-services/src/AdSensePlatform.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 7.0 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 AdSensePlatform (v1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/adsense/platforms/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class AdSensePlatform extends \Google\Service
36{
37 /** View and manage your AdSense data. */
38 const ADSENSE =
39 "https://www.googleapis.com/auth/adsense";
40 /** View your AdSense data. */
41 const ADSENSE_READONLY =
42 "https://www.googleapis.com/auth/adsense.readonly";
43
44 public $platforms_accounts;
45 public $platforms_accounts_events;
46 public $platforms_accounts_sites;
47 public $rootUrlTemplate;
48
49 /**
50 * Constructs the internal representation of the AdSensePlatform service.
51 *
52 * @param Client|array $clientOrConfig The client used to deliver requests, or a
53 * config array to pass to a new Client instance.
54 * @param string $rootUrl The root URL used for requests to the service.
55 */
56 public function __construct($clientOrConfig = [], $rootUrl = null)
57 {
58 parent::__construct($clientOrConfig);
59 $this->rootUrl = $rootUrl ?: 'https://adsenseplatform.googleapis.com/';
60 $this->rootUrlTemplate = $rootUrl ?: 'https://adsenseplatform.UNIVERSE_DOMAIN/';
61 $this->servicePath = '';
62 $this->batchPath = 'batch';
63 $this->version = 'v1';
64 $this->serviceName = 'adsenseplatform';
65
66 $this->platforms_accounts = new AdSensePlatform\Resource\PlatformsAccounts(
67 $this,
68 $this->serviceName,
69 'accounts',
70 [
71 'methods' => [
72 'close' => [
73 'path' => 'v1/{+name}:close',
74 'httpMethod' => 'POST',
75 'parameters' => [
76 'name' => [
77 'location' => 'path',
78 'type' => 'string',
79 'required' => true,
80 ],
81 ],
82 ],'create' => [
83 'path' => 'v1/{+parent}/accounts',
84 'httpMethod' => 'POST',
85 'parameters' => [
86 'parent' => [
87 'location' => 'path',
88 'type' => 'string',
89 'required' => true,
90 ],
91 ],
92 ],'get' => [
93 'path' => 'v1/{+name}',
94 'httpMethod' => 'GET',
95 'parameters' => [
96 'name' => [
97 'location' => 'path',
98 'type' => 'string',
99 'required' => true,
100 ],
101 ],
102 ],'list' => [
103 'path' => 'v1/{+parent}/accounts',
104 'httpMethod' => 'GET',
105 'parameters' => [
106 'parent' => [
107 'location' => 'path',
108 'type' => 'string',
109 'required' => true,
110 ],
111 'pageSize' => [
112 'location' => 'query',
113 'type' => 'integer',
114 ],
115 'pageToken' => [
116 'location' => 'query',
117 'type' => 'string',
118 ],
119 ],
120 ],'lookup' => [
121 'path' => 'v1/{+parent}/accounts:lookup',
122 'httpMethod' => 'GET',
123 'parameters' => [
124 'parent' => [
125 'location' => 'path',
126 'type' => 'string',
127 'required' => true,
128 ],
129 'creationRequestId' => [
130 'location' => 'query',
131 'type' => 'string',
132 ],
133 ],
134 ],
135 ]
136 ]
137 );
138 $this->platforms_accounts_events = new AdSensePlatform\Resource\PlatformsAccountsEvents(
139 $this,
140 $this->serviceName,
141 'events',
142 [
143 'methods' => [
144 'create' => [
145 'path' => 'v1/{+parent}/events',
146 'httpMethod' => 'POST',
147 'parameters' => [
148 'parent' => [
149 'location' => 'path',
150 'type' => 'string',
151 'required' => true,
152 ],
153 ],
154 ],
155 ]
156 ]
157 );
158 $this->platforms_accounts_sites = new AdSensePlatform\Resource\PlatformsAccountsSites(
159 $this,
160 $this->serviceName,
161 'sites',
162 [
163 'methods' => [
164 'create' => [
165 'path' => 'v1/{+parent}/sites',
166 'httpMethod' => 'POST',
167 'parameters' => [
168 'parent' => [
169 'location' => 'path',
170 'type' => 'string',
171 'required' => true,
172 ],
173 ],
174 ],'delete' => [
175 'path' => 'v1/{+name}',
176 'httpMethod' => 'DELETE',
177 'parameters' => [
178 'name' => [
179 'location' => 'path',
180 'type' => 'string',
181 'required' => true,
182 ],
183 ],
184 ],'get' => [
185 'path' => 'v1/{+name}',
186 'httpMethod' => 'GET',
187 'parameters' => [
188 'name' => [
189 'location' => 'path',
190 'type' => 'string',
191 'required' => true,
192 ],
193 ],
194 ],'list' => [
195 'path' => 'v1/{+parent}/sites',
196 'httpMethod' => 'GET',
197 'parameters' => [
198 'parent' => [
199 'location' => 'path',
200 'type' => 'string',
201 'required' => true,
202 ],
203 'pageSize' => [
204 'location' => 'query',
205 'type' => 'integer',
206 ],
207 'pageToken' => [
208 'location' => 'query',
209 'type' => 'string',
210 ],
211 ],
212 ],'requestReview' => [
213 'path' => 'v1/{+name}:requestReview',
214 'httpMethod' => 'POST',
215 'parameters' => [
216 'name' => [
217 'location' => 'path',
218 'type' => 'string',
219 'required' => true,
220 ],
221 ],
222 ],
223 ]
224 ]
225 );
226 }
227}
228
229// Adding a class alias for backwards compatibility with the previous class name.
230class_alias(AdSensePlatform::class, 'Google_Service_AdSensePlatform');
Note: See TracBrowser for help on using the repository browser.