source: vendor/google/apiclient-services/src/BusinessProfilePerformance.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: 7.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 BusinessProfilePerformance (v1).
24 *
25 * <p>
26 * The Business Profile Performance API allows merchants to fetch performance
27 * reports about their business profile on Google. Note - If you have a quota of
28 * 0 after enabling the API, please request for GBP API access.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="https://developers.google.com/my-business/" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class BusinessProfilePerformance extends \Google\Service
38{
39
40
41 public $locations;
42 public $locations_searchkeywords_impressions_monthly;
43 public $rootUrlTemplate;
44
45 /**
46 * Constructs the internal representation of the BusinessProfilePerformance
47 * service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://businessprofileperformance.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://businessprofileperformance.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'businessprofileperformance';
62
63 $this->locations = new BusinessProfilePerformance\Resource\Locations(
64 $this,
65 $this->serviceName,
66 'locations',
67 [
68 'methods' => [
69 'fetchMultiDailyMetricsTimeSeries' => [
70 'path' => 'v1/{+location}:fetchMultiDailyMetricsTimeSeries',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'location' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 'dailyMetrics' => [
79 'location' => 'query',
80 'type' => 'string',
81 'repeated' => true,
82 ],
83 'dailyRange.endDate.day' => [
84 'location' => 'query',
85 'type' => 'integer',
86 ],
87 'dailyRange.endDate.month' => [
88 'location' => 'query',
89 'type' => 'integer',
90 ],
91 'dailyRange.endDate.year' => [
92 'location' => 'query',
93 'type' => 'integer',
94 ],
95 'dailyRange.startDate.day' => [
96 'location' => 'query',
97 'type' => 'integer',
98 ],
99 'dailyRange.startDate.month' => [
100 'location' => 'query',
101 'type' => 'integer',
102 ],
103 'dailyRange.startDate.year' => [
104 'location' => 'query',
105 'type' => 'integer',
106 ],
107 ],
108 ],'getDailyMetricsTimeSeries' => [
109 'path' => 'v1/{+name}:getDailyMetricsTimeSeries',
110 'httpMethod' => 'GET',
111 'parameters' => [
112 'name' => [
113 'location' => 'path',
114 'type' => 'string',
115 'required' => true,
116 ],
117 'dailyMetric' => [
118 'location' => 'query',
119 'type' => 'string',
120 ],
121 'dailyRange.endDate.day' => [
122 'location' => 'query',
123 'type' => 'integer',
124 ],
125 'dailyRange.endDate.month' => [
126 'location' => 'query',
127 'type' => 'integer',
128 ],
129 'dailyRange.endDate.year' => [
130 'location' => 'query',
131 'type' => 'integer',
132 ],
133 'dailyRange.startDate.day' => [
134 'location' => 'query',
135 'type' => 'integer',
136 ],
137 'dailyRange.startDate.month' => [
138 'location' => 'query',
139 'type' => 'integer',
140 ],
141 'dailyRange.startDate.year' => [
142 'location' => 'query',
143 'type' => 'integer',
144 ],
145 'dailySubEntityType.dayOfWeek' => [
146 'location' => 'query',
147 'type' => 'string',
148 ],
149 'dailySubEntityType.timeOfDay.hours' => [
150 'location' => 'query',
151 'type' => 'integer',
152 ],
153 'dailySubEntityType.timeOfDay.minutes' => [
154 'location' => 'query',
155 'type' => 'integer',
156 ],
157 'dailySubEntityType.timeOfDay.nanos' => [
158 'location' => 'query',
159 'type' => 'integer',
160 ],
161 'dailySubEntityType.timeOfDay.seconds' => [
162 'location' => 'query',
163 'type' => 'integer',
164 ],
165 ],
166 ],
167 ]
168 ]
169 );
170 $this->locations_searchkeywords_impressions_monthly = new BusinessProfilePerformance\Resource\LocationsSearchkeywordsImpressionsMonthly(
171 $this,
172 $this->serviceName,
173 'monthly',
174 [
175 'methods' => [
176 'list' => [
177 'path' => 'v1/{+parent}/searchkeywords/impressions/monthly',
178 'httpMethod' => 'GET',
179 'parameters' => [
180 'parent' => [
181 'location' => 'path',
182 'type' => 'string',
183 'required' => true,
184 ],
185 'monthlyRange.endMonth.day' => [
186 'location' => 'query',
187 'type' => 'integer',
188 ],
189 'monthlyRange.endMonth.month' => [
190 'location' => 'query',
191 'type' => 'integer',
192 ],
193 'monthlyRange.endMonth.year' => [
194 'location' => 'query',
195 'type' => 'integer',
196 ],
197 'monthlyRange.startMonth.day' => [
198 'location' => 'query',
199 'type' => 'integer',
200 ],
201 'monthlyRange.startMonth.month' => [
202 'location' => 'query',
203 'type' => 'integer',
204 ],
205 'monthlyRange.startMonth.year' => [
206 'location' => 'query',
207 'type' => 'integer',
208 ],
209 'pageSize' => [
210 'location' => 'query',
211 'type' => 'integer',
212 ],
213 'pageToken' => [
214 'location' => 'query',
215 'type' => 'string',
216 ],
217 ],
218 ],
219 ]
220 ]
221 );
222 }
223}
224
225// Adding a class alias for backwards compatibility with the previous class name.
226class_alias(BusinessProfilePerformance::class, 'Google_Service_BusinessProfilePerformance');
Note: See TracBrowser for help on using the repository browser.