source: vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesGoogleAdsLinks.php

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

Upload project files

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