source: vendor/google/apiclient-services/src/Adsense/Resource/AccountsAdclientsUrlchannels.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days 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\Adsense\Resource;
19
20use Google\Service\Adsense\ListUrlChannelsResponse;
21use Google\Service\Adsense\UrlChannel;
22
23/**
24 * The "urlchannels" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $adsenseService = new Google\Service\Adsense(...);
28 * $urlchannels = $adsenseService->accounts_adclients_urlchannels;
29 * </code>
30 */
31class AccountsAdclientsUrlchannels extends \Google\Service\Resource
32{
33 /**
34 * Gets information about the selected url channel. (urlchannels.get)
35 *
36 * @param string $name Required. The name of the url channel to retrieve.
37 * Format: accounts/{account}/adclients/{adclient}/urlchannels/{urlchannel}
38 * @param array $optParams Optional parameters.
39 * @return UrlChannel
40 * @throws \Google\Service\Exception
41 */
42 public function get($name, $optParams = [])
43 {
44 $params = ['name' => $name];
45 $params = array_merge($params, $optParams);
46 return $this->call('get', [$params], UrlChannel::class);
47 }
48 /**
49 * Lists active url channels. (urlchannels.listAccountsAdclientsUrlchannels)
50 *
51 * @param string $parent Required. The ad client which owns the collection of
52 * url channels. Format: accounts/{account}/adclients/{adclient}
53 * @param array $optParams Optional parameters.
54 *
55 * @opt_param int pageSize The maximum number of url channels to include in the
56 * response, used for paging. If unspecified, at most 10000 url channels will be
57 * returned. The maximum value is 10000; values above 10000 will be coerced to
58 * 10000.
59 * @opt_param string pageToken A page token, received from a previous
60 * `ListUrlChannels` call. Provide this to retrieve the subsequent page. When
61 * paginating, all other parameters provided to `ListUrlChannels` must match the
62 * call that provided the page token.
63 * @return ListUrlChannelsResponse
64 * @throws \Google\Service\Exception
65 */
66 public function listAccountsAdclientsUrlchannels($parent, $optParams = [])
67 {
68 $params = ['parent' => $parent];
69 $params = array_merge($params, $optParams);
70 return $this->call('list', [$params], ListUrlChannelsResponse::class);
71 }
72}
73
74// Adding a class alias for backwards compatibility with the previous class name.
75class_alias(AccountsAdclientsUrlchannels::class, 'Google_Service_Adsense_Resource_AccountsAdclientsUrlchannels');
Note: See TracBrowser for help on using the repository browser.