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 |
|
---|
18 | namespace Google\Service\BusinessProfilePerformance\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\BusinessProfilePerformance\ListSearchKeywordImpressionsMonthlyResponse;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * The "monthly" collection of methods.
|
---|
24 | * Typical usage is:
|
---|
25 | * <code>
|
---|
26 | * $businessprofileperformanceService = new Google\Service\BusinessProfilePerformance(...);
|
---|
27 | * $monthly = $businessprofileperformanceService->locations_searchkeywords_impressions_monthly;
|
---|
28 | * </code>
|
---|
29 | */
|
---|
30 | class LocationsSearchkeywordsImpressionsMonthly extends \Google\Service\Resource
|
---|
31 | {
|
---|
32 | /**
|
---|
33 | * (monthly.listLocationsSearchkeywordsImpressionsMonthly)
|
---|
34 | *
|
---|
35 | * @param string $parent Required. The location for which the time series should
|
---|
36 | * be fetched. Format: locations/{location_id} where location_id is an
|
---|
37 | * unobfuscated listing id.
|
---|
38 | * @param array $optParams Optional parameters.
|
---|
39 | *
|
---|
40 | * @opt_param int monthlyRange.endMonth.day Day of a month. Must be from 1 to 31
|
---|
41 | * and valid for the year and month, or 0 to specify a year by itself or a year
|
---|
42 | * and month where the day isn't significant.
|
---|
43 | * @opt_param int monthlyRange.endMonth.month Month of a year. Must be from 1 to
|
---|
44 | * 12, or 0 to specify a year without a month and day.
|
---|
45 | * @opt_param int monthlyRange.endMonth.year Year of the date. Must be from 1 to
|
---|
46 | * 9999, or 0 to specify a date without a year.
|
---|
47 | * @opt_param int monthlyRange.startMonth.day Day of a month. Must be from 1 to
|
---|
48 | * 31 and valid for the year and month, or 0 to specify a year by itself or a
|
---|
49 | * year and month where the day isn't significant.
|
---|
50 | * @opt_param int monthlyRange.startMonth.month Month of a year. Must be from 1
|
---|
51 | * to 12, or 0 to specify a year without a month and day.
|
---|
52 | * @opt_param int monthlyRange.startMonth.year Year of the date. Must be from 1
|
---|
53 | * to 9999, or 0 to specify a date without a year.
|
---|
54 | * @opt_param int pageSize Optional. The number of results requested. The
|
---|
55 | * default page size is 100. Page size can be set to a maximum of 100.
|
---|
56 | * @opt_param string pageToken Optional. A token indicating the next paginated
|
---|
57 | * result to be returned.
|
---|
58 | * @return ListSearchKeywordImpressionsMonthlyResponse
|
---|
59 | * @throws \Google\Service\Exception
|
---|
60 | */
|
---|
61 | public function listLocationsSearchkeywordsImpressionsMonthly($parent, $optParams = [])
|
---|
62 | {
|
---|
63 | $params = ['parent' => $parent];
|
---|
64 | $params = array_merge($params, $optParams);
|
---|
65 | return $this->call('list', [$params], ListSearchKeywordImpressionsMonthlyResponse::class);
|
---|
66 | }
|
---|
67 | }
|
---|
68 |
|
---|
69 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
70 | class_alias(LocationsSearchkeywordsImpressionsMonthly::class, 'Google_Service_BusinessProfilePerformance_Resource_LocationsSearchkeywordsImpressionsMonthly');
|
---|