source: vendor/google/apiclient-services/src/MyBusinessBusinessCalls.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.8 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 MyBusinessBusinessCalls (v1).
24 *
25 * <p>
26 * The My Business Business Calls API manages business calls information of a
27 * location on Google and collect insights like the number of missed calls to
28 * their location. Additional information about Business calls can be found at
29 * https://support.google.com/business/answer/9688285?p=call_history. If the
30 * Google Business Profile links to a Google Ads account and call history is
31 * turned on, calls that last longer than a specific time, and that can be
32 * attributed to an ad interaction, will show in the linked Google Ads account
33 * under the "Calls from Ads" conversion. If smart bidding and call conversions
34 * are used in the optimization strategy, there could be a change in ad spend.
35 * Learn more about smart bidding. To view and perform actions on a location's
36 * calls, you need to be a `OWNER`, `CO_OWNER` or `MANAGER` of the location.
37 * Note - If you have a quota of 0 after enabling the API, please request for
38 * GBP API access.</p>
39 *
40 * <p>
41 * For more information about this service, see the API
42 * <a href="https://developers.google.com/my-business/" target="_blank">Documentation</a>
43 * </p>
44 *
45 * @author Google, Inc.
46 */
47class MyBusinessBusinessCalls extends \Google\Service
48{
49
50
51 public $locations;
52 public $locations_businesscallsinsights;
53
54 /**
55 * Constructs the internal representation of the MyBusinessBusinessCalls
56 * service.
57 *
58 * @param Client|array $clientOrConfig The client used to deliver requests, or a
59 * config array to pass to a new Client instance.
60 * @param string $rootUrl The root URL used for requests to the service.
61 */
62 public function __construct($clientOrConfig = [], $rootUrl = null)
63 {
64 parent::__construct($clientOrConfig);
65 $this->rootUrl = $rootUrl ?: 'https://mybusinessbusinesscalls.googleapis.com/';
66 $this->servicePath = '';
67 $this->batchPath = 'batch';
68 $this->version = 'v1';
69 $this->serviceName = 'mybusinessbusinesscalls';
70
71 $this->locations = new MyBusinessBusinessCalls\Resource\Locations(
72 $this,
73 $this->serviceName,
74 'locations',
75 [
76 'methods' => [
77 'getBusinesscallssettings' => [
78 'path' => 'v1/{+name}',
79 'httpMethod' => 'GET',
80 'parameters' => [
81 'name' => [
82 'location' => 'path',
83 'type' => 'string',
84 'required' => true,
85 ],
86 ],
87 ],'updateBusinesscallssettings' => [
88 'path' => 'v1/{+name}',
89 'httpMethod' => 'PATCH',
90 'parameters' => [
91 'name' => [
92 'location' => 'path',
93 'type' => 'string',
94 'required' => true,
95 ],
96 'updateMask' => [
97 'location' => 'query',
98 'type' => 'string',
99 ],
100 ],
101 ],
102 ]
103 ]
104 );
105 $this->locations_businesscallsinsights = new MyBusinessBusinessCalls\Resource\LocationsBusinesscallsinsights(
106 $this,
107 $this->serviceName,
108 'businesscallsinsights',
109 [
110 'methods' => [
111 'list' => [
112 'path' => 'v1/{+parent}/businesscallsinsights',
113 'httpMethod' => 'GET',
114 'parameters' => [
115 'parent' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 'filter' => [
121 'location' => 'query',
122 'type' => 'string',
123 ],
124 'pageSize' => [
125 'location' => 'query',
126 'type' => 'integer',
127 ],
128 'pageToken' => [
129 'location' => 'query',
130 'type' => 'string',
131 ],
132 ],
133 ],
134 ]
135 ]
136 );
137 }
138}
139
140// Adding a class alias for backwards compatibility with the previous class name.
141class_alias(MyBusinessBusinessCalls::class, 'Google_Service_MyBusinessBusinessCalls');
Note: See TracBrowser for help on using the repository browser.