source: vendor/google/apiclient-services/src/SA360/Resource/SearchAds360Fields.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 2.9 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\SA360\Resource;
19
20use Google\Service\SA360\GoogleAdsSearchads360V0ResourcesSearchAds360Field;
21use Google\Service\SA360\GoogleAdsSearchads360V0ServicesSearchSearchAds360FieldsRequest;
22use Google\Service\SA360\GoogleAdsSearchads360V0ServicesSearchSearchAds360FieldsResponse;
23
24/**
25 * The "searchAds360Fields" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $searchads360Service = new Google\Service\SA360(...);
29 * $searchAds360Fields = $searchads360Service->searchAds360Fields;
30 * </code>
31 */
32class SearchAds360Fields extends \Google\Service\Resource
33{
34 /**
35 * Returns just the requested field. List of thrown errors:
36 * [AuthenticationError]() [AuthorizationError]() [HeaderError]()
37 * [InternalError]() [QuotaError]() [RequestError]() (searchAds360Fields.get)
38 *
39 * @param string $resourceName Required. The resource name of the field to get.
40 * @param array $optParams Optional parameters.
41 * @return GoogleAdsSearchads360V0ResourcesSearchAds360Field
42 * @throws \Google\Service\Exception
43 */
44 public function get($resourceName, $optParams = [])
45 {
46 $params = ['resourceName' => $resourceName];
47 $params = array_merge($params, $optParams);
48 return $this->call('get', [$params], GoogleAdsSearchads360V0ResourcesSearchAds360Field::class);
49 }
50 /**
51 * Returns all fields that match the search [query](/search-
52 * ads/reporting/concepts/field-service#use_a_query_to_get_field_details). List
53 * of thrown errors: [AuthenticationError]() [AuthorizationError]()
54 * [HeaderError]() [InternalError]() [QueryError]() [QuotaError]()
55 * [RequestError]() (searchAds360Fields.search)
56 *
57 * @param GoogleAdsSearchads360V0ServicesSearchSearchAds360FieldsRequest $postBody
58 * @param array $optParams Optional parameters.
59 * @return GoogleAdsSearchads360V0ServicesSearchSearchAds360FieldsResponse
60 * @throws \Google\Service\Exception
61 */
62 public function search(GoogleAdsSearchads360V0ServicesSearchSearchAds360FieldsRequest $postBody, $optParams = [])
63 {
64 $params = ['postBody' => $postBody];
65 $params = array_merge($params, $optParams);
66 return $this->call('search', [$params], GoogleAdsSearchads360V0ServicesSearchSearchAds360FieldsResponse::class);
67 }
68}
69
70// Adding a class alias for backwards compatibility with the previous class name.
71class_alias(SearchAds360Fields::class, 'Google_Service_SA360_Resource_SearchAds360Fields');
Note: See TracBrowser for help on using the repository browser.