source: vendor/google/apiclient-services/src/SA360.php

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

Upload project files

  • Property mode set to 100644
File size: 4.7 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 SA360 (v0).
24 *
25 * <p>
26 * The Search Ads 360 API allows developers to automate downloading reports from
27 * 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/reporting" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class SA360 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 $customers;
43 public $customers_customColumns;
44 public $customers_searchAds360;
45 public $searchAds360Fields;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the SA360 service.
50 *
51 * @param Client|array $clientOrConfig The client used to deliver requests, or a
52 * config array to pass to a new Client instance.
53 * @param string $rootUrl The root URL used for requests to the service.
54 */
55 public function __construct($clientOrConfig = [], $rootUrl = null)
56 {
57 parent::__construct($clientOrConfig);
58 $this->rootUrl = $rootUrl ?: 'https://searchads360.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://searchads360.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v0';
63 $this->serviceName = 'searchads360';
64
65 $this->customers = new SA360\Resource\Customers(
66 $this,
67 $this->serviceName,
68 'customers',
69 [
70 'methods' => [
71 'listAccessibleCustomers' => [
72 'path' => 'v0/customers:listAccessibleCustomers',
73 'httpMethod' => 'GET',
74 'parameters' => [],
75 ],
76 ]
77 ]
78 );
79 $this->customers_customColumns = new SA360\Resource\CustomersCustomColumns(
80 $this,
81 $this->serviceName,
82 'customColumns',
83 [
84 'methods' => [
85 'get' => [
86 'path' => 'v0/{+resourceName}',
87 'httpMethod' => 'GET',
88 'parameters' => [
89 'resourceName' => [
90 'location' => 'path',
91 'type' => 'string',
92 'required' => true,
93 ],
94 ],
95 ],'list' => [
96 'path' => 'v0/customers/{+customerId}/customColumns',
97 'httpMethod' => 'GET',
98 'parameters' => [
99 'customerId' => [
100 'location' => 'path',
101 'type' => 'string',
102 'required' => true,
103 ],
104 ],
105 ],
106 ]
107 ]
108 );
109 $this->customers_searchAds360 = new SA360\Resource\CustomersSearchAds360(
110 $this,
111 $this->serviceName,
112 'searchAds360',
113 [
114 'methods' => [
115 'search' => [
116 'path' => 'v0/customers/{+customerId}/searchAds360:search',
117 'httpMethod' => 'POST',
118 'parameters' => [
119 'customerId' => [
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
123 ],
124 ],
125 ],
126 ]
127 ]
128 );
129 $this->searchAds360Fields = new SA360\Resource\SearchAds360Fields(
130 $this,
131 $this->serviceName,
132 'searchAds360Fields',
133 [
134 'methods' => [
135 'get' => [
136 'path' => 'v0/{+resourceName}',
137 'httpMethod' => 'GET',
138 'parameters' => [
139 'resourceName' => [
140 'location' => 'path',
141 'type' => 'string',
142 'required' => true,
143 ],
144 ],
145 ],'search' => [
146 'path' => 'v0/searchAds360Fields:search',
147 'httpMethod' => 'POST',
148 'parameters' => [],
149 ],
150 ]
151 ]
152 );
153 }
154}
155
156// Adding a class alias for backwards compatibility with the previous class name.
157class_alias(SA360::class, 'Google_Service_SA360');
Note: See TracBrowser for help on using the repository browser.