source: vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesSearchAds360Links.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 5.1 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\GoogleAnalyticsAdmin\Resource;
19
20use Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse;
21use Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link;
22use Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty;
23
24/**
25 * The "searchAds360Links" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...);
29 * $searchAds360Links = $analyticsadminService->searchAds360Links;
30 * </code>
31 */
32class PropertiesSearchAds360Links extends \Google\Service\Resource
33{
34 /**
35 * Creates a SearchAds360Link. (searchAds360Links.create)
36 *
37 * @param string $parent Required. Example format: properties/1234
38 * @param GoogleAnalyticsAdminV1alphaSearchAds360Link $postBody
39 * @param array $optParams Optional parameters.
40 * @return GoogleAnalyticsAdminV1alphaSearchAds360Link
41 */
42 public function create($parent, GoogleAnalyticsAdminV1alphaSearchAds360Link $postBody, $optParams = [])
43 {
44 $params = ['parent' => $parent, 'postBody' => $postBody];
45 $params = array_merge($params, $optParams);
46 return $this->call('create', [$params], GoogleAnalyticsAdminV1alphaSearchAds360Link::class);
47 }
48 /**
49 * Deletes a SearchAds360Link on a property. (searchAds360Links.delete)
50 *
51 * @param string $name Required. The name of the SearchAds360Link to delete.
52 * Example format: properties/1234/SearchAds360Links/5678
53 * @param array $optParams Optional parameters.
54 * @return GoogleProtobufEmpty
55 */
56 public function delete($name, $optParams = [])
57 {
58 $params = ['name' => $name];
59 $params = array_merge($params, $optParams);
60 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
61 }
62 /**
63 * Look up a single SearchAds360Link (searchAds360Links.get)
64 *
65 * @param string $name Required. The name of the SearchAds360Link to get.
66 * Example format: properties/1234/SearchAds360Link/5678
67 * @param array $optParams Optional parameters.
68 * @return GoogleAnalyticsAdminV1alphaSearchAds360Link
69 */
70 public function get($name, $optParams = [])
71 {
72 $params = ['name' => $name];
73 $params = array_merge($params, $optParams);
74 return $this->call('get', [$params], GoogleAnalyticsAdminV1alphaSearchAds360Link::class);
75 }
76 /**
77 * Lists all SearchAds360Links on a property.
78 * (searchAds360Links.listPropertiesSearchAds360Links)
79 *
80 * @param string $parent Required. Example format: properties/1234
81 * @param array $optParams Optional parameters.
82 *
83 * @opt_param int pageSize The maximum number of resources to return. If
84 * unspecified, at most 50 resources will be returned. The maximum value is 200
85 * (higher values will be coerced to the maximum).
86 * @opt_param string pageToken A page token, received from a previous
87 * `ListSearchAds360Links` call. Provide this to retrieve the subsequent page.
88 * When paginating, all other parameters provided to `ListSearchAds360Links`
89 * must match the call that provided the page token.
90 * @return GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse
91 */
92 public function listPropertiesSearchAds360Links($parent, $optParams = [])
93 {
94 $params = ['parent' => $parent];
95 $params = array_merge($params, $optParams);
96 return $this->call('list', [$params], GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse::class);
97 }
98 /**
99 * Updates a SearchAds360Link on a property. (searchAds360Links.patch)
100 *
101 * @param string $name Output only. The resource name for this SearchAds360Link
102 * resource. Format: properties/{propertyId}/searchAds360Links/{linkId} Note:
103 * linkId is not the Search Ads 360 advertiser ID
104 * @param GoogleAnalyticsAdminV1alphaSearchAds360Link $postBody
105 * @param array $optParams Optional parameters.
106 *
107 * @opt_param string updateMask Required. The list of fields to be updated.
108 * Omitted fields will not be updated. To replace the entire entity, use one
109 * path with the string "*" to match all fields.
110 * @return GoogleAnalyticsAdminV1alphaSearchAds360Link
111 */
112 public function patch($name, GoogleAnalyticsAdminV1alphaSearchAds360Link $postBody, $optParams = [])
113 {
114 $params = ['name' => $name, 'postBody' => $postBody];
115 $params = array_merge($params, $optParams);
116 return $this->call('patch', [$params], GoogleAnalyticsAdminV1alphaSearchAds360Link::class);
117 }
118}
119
120// Adding a class alias for backwards compatibility with the previous class name.
121class_alias(PropertiesSearchAds360Links::class, 'Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesSearchAds360Links');
Note: See TracBrowser for help on using the repository browser.