source: vendor/google/apiclient-services/src/Doubleclicksearch.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: 9.5 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 Doubleclicksearch (v2).
24 *
25 * <p>
26 * The Search Ads 360 API allows developers to automate uploading conversions
27 * and downloading reports from Search Ads 360.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://developers.google.com/search-ads" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class Doubleclicksearch extends \Google\Service
37{
38 /** View and manage your advertising data in DoubleClick Search. */
39 const DOUBLECLICKSEARCH =
40 "https://www.googleapis.com/auth/doubleclicksearch";
41
42 public $conversion;
43 public $reports;
44 public $savedColumns;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the Doubleclicksearch service.
49 *
50 * @param Client|array $clientOrConfig The client used to deliver requests, or a
51 * config array to pass to a new Client instance.
52 * @param string $rootUrl The root URL used for requests to the service.
53 */
54 public function __construct($clientOrConfig = [], $rootUrl = null)
55 {
56 parent::__construct($clientOrConfig);
57 $this->rootUrl = $rootUrl ?: 'https://doubleclicksearch.googleapis.com/';
58 $this->rootUrlTemplate = $rootUrl ?: 'https://doubleclicksearch.UNIVERSE_DOMAIN/';
59 $this->servicePath = '';
60 $this->batchPath = 'batch';
61 $this->version = 'v2';
62 $this->serviceName = 'doubleclicksearch';
63
64 $this->conversion = new Doubleclicksearch\Resource\Conversion(
65 $this,
66 $this->serviceName,
67 'conversion',
68 [
69 'methods' => [
70 'get' => [
71 'path' => 'doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion',
72 'httpMethod' => 'GET',
73 'parameters' => [
74 'agencyId' => [
75 'location' => 'path',
76 'type' => 'string',
77 'required' => true,
78 ],
79 'advertiserId' => [
80 'location' => 'path',
81 'type' => 'string',
82 'required' => true,
83 ],
84 'engineAccountId' => [
85 'location' => 'path',
86 'type' => 'string',
87 'required' => true,
88 ],
89 'endDate' => [
90 'location' => 'query',
91 'type' => 'integer',
92 'required' => true,
93 ],
94 'rowCount' => [
95 'location' => 'query',
96 'type' => 'integer',
97 'required' => true,
98 ],
99 'startDate' => [
100 'location' => 'query',
101 'type' => 'integer',
102 'required' => true,
103 ],
104 'startRow' => [
105 'location' => 'query',
106 'type' => 'integer',
107 'required' => true,
108 ],
109 'adGroupId' => [
110 'location' => 'query',
111 'type' => 'string',
112 ],
113 'adId' => [
114 'location' => 'query',
115 'type' => 'string',
116 ],
117 'campaignId' => [
118 'location' => 'query',
119 'type' => 'string',
120 ],
121 'criterionId' => [
122 'location' => 'query',
123 'type' => 'string',
124 ],
125 'customerId' => [
126 'location' => 'query',
127 'type' => 'string',
128 ],
129 ],
130 ],'getByCustomerId' => [
131 'path' => 'doubleclicksearch/v2/customer/{customerId}/conversion',
132 'httpMethod' => 'GET',
133 'parameters' => [
134 'customerId' => [
135 'location' => 'path',
136 'type' => 'string',
137 'required' => true,
138 ],
139 'endDate' => [
140 'location' => 'query',
141 'type' => 'integer',
142 'required' => true,
143 ],
144 'rowCount' => [
145 'location' => 'query',
146 'type' => 'integer',
147 'required' => true,
148 ],
149 'startDate' => [
150 'location' => 'query',
151 'type' => 'integer',
152 'required' => true,
153 ],
154 'startRow' => [
155 'location' => 'query',
156 'type' => 'integer',
157 'required' => true,
158 ],
159 'adGroupId' => [
160 'location' => 'query',
161 'type' => 'string',
162 ],
163 'adId' => [
164 'location' => 'query',
165 'type' => 'string',
166 ],
167 'advertiserId' => [
168 'location' => 'query',
169 'type' => 'string',
170 ],
171 'agencyId' => [
172 'location' => 'query',
173 'type' => 'string',
174 ],
175 'campaignId' => [
176 'location' => 'query',
177 'type' => 'string',
178 ],
179 'criterionId' => [
180 'location' => 'query',
181 'type' => 'string',
182 ],
183 'engineAccountId' => [
184 'location' => 'query',
185 'type' => 'string',
186 ],
187 ],
188 ],'insert' => [
189 'path' => 'doubleclicksearch/v2/conversion',
190 'httpMethod' => 'POST',
191 'parameters' => [],
192 ],'update' => [
193 'path' => 'doubleclicksearch/v2/conversion',
194 'httpMethod' => 'PUT',
195 'parameters' => [],
196 ],'updateAvailability' => [
197 'path' => 'doubleclicksearch/v2/conversion/updateAvailability',
198 'httpMethod' => 'POST',
199 'parameters' => [],
200 ],
201 ]
202 ]
203 );
204 $this->reports = new Doubleclicksearch\Resource\Reports(
205 $this,
206 $this->serviceName,
207 'reports',
208 [
209 'methods' => [
210 'generate' => [
211 'path' => 'doubleclicksearch/v2/reports/generate',
212 'httpMethod' => 'POST',
213 'parameters' => [],
214 ],'get' => [
215 'path' => 'doubleclicksearch/v2/reports/{reportId}',
216 'httpMethod' => 'GET',
217 'parameters' => [
218 'reportId' => [
219 'location' => 'path',
220 'type' => 'string',
221 'required' => true,
222 ],
223 ],
224 ],'getFile' => [
225 'path' => 'doubleclicksearch/v2/reports/{reportId}/files/{reportFragment}',
226 'httpMethod' => 'GET',
227 'parameters' => [
228 'reportId' => [
229 'location' => 'path',
230 'type' => 'string',
231 'required' => true,
232 ],
233 'reportFragment' => [
234 'location' => 'path',
235 'type' => 'integer',
236 'required' => true,
237 ],
238 ],
239 ],'getIdMappingFile' => [
240 'path' => 'doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/idmapping',
241 'httpMethod' => 'GET',
242 'parameters' => [
243 'agencyId' => [
244 'location' => 'path',
245 'type' => 'string',
246 'required' => true,
247 ],
248 'advertiserId' => [
249 'location' => 'path',
250 'type' => 'string',
251 'required' => true,
252 ],
253 ],
254 ],'request' => [
255 'path' => 'doubleclicksearch/v2/reports',
256 'httpMethod' => 'POST',
257 'parameters' => [],
258 ],
259 ]
260 ]
261 );
262 $this->savedColumns = new Doubleclicksearch\Resource\SavedColumns(
263 $this,
264 $this->serviceName,
265 'savedColumns',
266 [
267 'methods' => [
268 'list' => [
269 'path' => 'doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/savedcolumns',
270 'httpMethod' => 'GET',
271 'parameters' => [
272 'agencyId' => [
273 'location' => 'path',
274 'type' => 'string',
275 'required' => true,
276 ],
277 'advertiserId' => [
278 'location' => 'path',
279 'type' => 'string',
280 'required' => true,
281 ],
282 ],
283 ],
284 ]
285 ]
286 );
287 }
288}
289
290// Adding a class alias for backwards compatibility with the previous class name.
291class_alias(Doubleclicksearch::class, 'Google_Service_Doubleclicksearch');
Note: See TracBrowser for help on using the repository browser.