source: vendor/google/apiclient-services/src/DoubleClickBidManager.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: 5.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 DoubleClickBidManager (v2).
24 *
25 * <p>
26 * DoubleClick Bid Manager API allows users to manage and create campaigns and
27 * reports.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://developers.google.com/bid-manager/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class DoubleClickBidManager extends \Google\Service
37{
38 /** View and manage your reports in DoubleClick Bid Manager. */
39 const DOUBLECLICKBIDMANAGER =
40 "https://www.googleapis.com/auth/doubleclickbidmanager";
41
42 public $queries;
43 public $queries_reports;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the DoubleClickBidManager
48 * 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://doubleclickbidmanager.googleapis.com/';
58 $this->rootUrlTemplate = $rootUrl ?: 'https://doubleclickbidmanager.UNIVERSE_DOMAIN/';
59 $this->servicePath = 'v2/';
60 $this->batchPath = 'batch';
61 $this->version = 'v2';
62 $this->serviceName = 'doubleclickbidmanager';
63
64 $this->queries = new DoubleClickBidManager\Resource\Queries(
65 $this,
66 $this->serviceName,
67 'queries',
68 [
69 'methods' => [
70 'create' => [
71 'path' => 'queries',
72 'httpMethod' => 'POST',
73 'parameters' => [],
74 ],'delete' => [
75 'path' => 'queries/{queryId}',
76 'httpMethod' => 'DELETE',
77 'parameters' => [
78 'queryId' => [
79 'location' => 'path',
80 'type' => 'string',
81 'required' => true,
82 ],
83 ],
84 ],'get' => [
85 'path' => 'queries/{queryId}',
86 'httpMethod' => 'GET',
87 'parameters' => [
88 'queryId' => [
89 'location' => 'path',
90 'type' => 'string',
91 'required' => true,
92 ],
93 ],
94 ],'list' => [
95 'path' => 'queries',
96 'httpMethod' => 'GET',
97 'parameters' => [
98 'orderBy' => [
99 'location' => 'query',
100 'type' => 'string',
101 ],
102 'pageSize' => [
103 'location' => 'query',
104 'type' => 'integer',
105 ],
106 'pageToken' => [
107 'location' => 'query',
108 'type' => 'string',
109 ],
110 ],
111 ],'run' => [
112 'path' => 'queries/{queryId}:run',
113 'httpMethod' => 'POST',
114 'parameters' => [
115 'queryId' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 'synchronous' => [
121 'location' => 'query',
122 'type' => 'boolean',
123 ],
124 ],
125 ],
126 ]
127 ]
128 );
129 $this->queries_reports = new DoubleClickBidManager\Resource\QueriesReports(
130 $this,
131 $this->serviceName,
132 'reports',
133 [
134 'methods' => [
135 'get' => [
136 'path' => 'queries/{queryId}/reports/{reportId}',
137 'httpMethod' => 'GET',
138 'parameters' => [
139 'queryId' => [
140 'location' => 'path',
141 'type' => 'string',
142 'required' => true,
143 ],
144 'reportId' => [
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
148 ],
149 ],
150 ],'list' => [
151 'path' => 'queries/{queryId}/reports',
152 'httpMethod' => 'GET',
153 'parameters' => [
154 'queryId' => [
155 'location' => 'path',
156 'type' => 'string',
157 'required' => true,
158 ],
159 'orderBy' => [
160 'location' => 'query',
161 'type' => 'string',
162 ],
163 'pageSize' => [
164 'location' => 'query',
165 'type' => 'integer',
166 ],
167 'pageToken' => [
168 'location' => 'query',
169 'type' => 'string',
170 ],
171 ],
172 ],
173 ]
174 ]
175 );
176 }
177}
178
179// Adding a class alias for backwards compatibility with the previous class name.
180class_alias(DoubleClickBidManager::class, 'Google_Service_DoubleClickBidManager');
Note: See TracBrowser for help on using the repository browser.