source: vendor/google/apiclient-services/src/RealTimeBidding/Resource/BiddersPublisherConnections.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: 5.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\RealTimeBidding\Resource;
19
20use Google\Service\RealTimeBidding\BatchApprovePublisherConnectionsRequest;
21use Google\Service\RealTimeBidding\BatchApprovePublisherConnectionsResponse;
22use Google\Service\RealTimeBidding\BatchRejectPublisherConnectionsRequest;
23use Google\Service\RealTimeBidding\BatchRejectPublisherConnectionsResponse;
24use Google\Service\RealTimeBidding\ListPublisherConnectionsResponse;
25use Google\Service\RealTimeBidding\PublisherConnection;
26
27/**
28 * The "publisherConnections" collection of methods.
29 * Typical usage is:
30 * <code>
31 * $realtimebiddingService = new Google\Service\RealTimeBidding(...);
32 * $publisherConnections = $realtimebiddingService->bidders_publisherConnections;
33 * </code>
34 */
35class BiddersPublisherConnections extends \Google\Service\Resource
36{
37 /**
38 * Batch approves multiple publisher connections.
39 * (publisherConnections.batchApprove)
40 *
41 * @param string $parent Required. The bidder for whom publisher connections
42 * will be approved. Format: `bidders/{bidder}` where `{bidder}` is the account
43 * ID of the bidder.
44 * @param BatchApprovePublisherConnectionsRequest $postBody
45 * @param array $optParams Optional parameters.
46 * @return BatchApprovePublisherConnectionsResponse
47 * @throws \Google\Service\Exception
48 */
49 public function batchApprove($parent, BatchApprovePublisherConnectionsRequest $postBody, $optParams = [])
50 {
51 $params = ['parent' => $parent, 'postBody' => $postBody];
52 $params = array_merge($params, $optParams);
53 return $this->call('batchApprove', [$params], BatchApprovePublisherConnectionsResponse::class);
54 }
55 /**
56 * Batch rejects multiple publisher connections.
57 * (publisherConnections.batchReject)
58 *
59 * @param string $parent Required. The bidder for whom publisher connections
60 * will be rejected. Format: `bidders/{bidder}` where `{bidder}` is the account
61 * ID of the bidder.
62 * @param BatchRejectPublisherConnectionsRequest $postBody
63 * @param array $optParams Optional parameters.
64 * @return BatchRejectPublisherConnectionsResponse
65 * @throws \Google\Service\Exception
66 */
67 public function batchReject($parent, BatchRejectPublisherConnectionsRequest $postBody, $optParams = [])
68 {
69 $params = ['parent' => $parent, 'postBody' => $postBody];
70 $params = array_merge($params, $optParams);
71 return $this->call('batchReject', [$params], BatchRejectPublisherConnectionsResponse::class);
72 }
73 /**
74 * Gets a publisher connection. (publisherConnections.get)
75 *
76 * @param string $name Required. Name of the publisher whose connection
77 * information is to be retrieved. In the pattern
78 * `bidders/{bidder}/publisherConnections/{publisher}` where `{bidder}` is the
79 * account ID of the bidder, and `{publisher}` is the ads.txt/app-ads.txt
80 * publisher ID. See publisherConnection.name.
81 * @param array $optParams Optional parameters.
82 * @return PublisherConnection
83 * @throws \Google\Service\Exception
84 */
85 public function get($name, $optParams = [])
86 {
87 $params = ['name' => $name];
88 $params = array_merge($params, $optParams);
89 return $this->call('get', [$params], PublisherConnection::class);
90 }
91 /**
92 * Lists publisher connections for a given bidder.
93 * (publisherConnections.listBiddersPublisherConnections)
94 *
95 * @param string $parent Required. Name of the bidder for which publishers have
96 * initiated connections. The pattern for this resource is `bidders/{bidder}`
97 * where `{bidder}` represents the account ID of the bidder.
98 * @param array $optParams Optional parameters.
99 *
100 * @opt_param string filter Query string to filter publisher connections.
101 * Connections can be filtered by `displayName`, `publisherPlatform`, and
102 * `biddingState`. If no filter is specified, all publisher connections will be
103 * returned. Example: 'displayName="Great Publisher*" AND
104 * publisherPlatform=ADMOB AND biddingState != PENDING' See
105 * https://google.aip.dev/160 for more information about filtering syntax.
106 * @opt_param string orderBy Order specification by which results should be
107 * sorted. If no sort order is specified, the results will be returned in
108 * alphabetic order based on the publisher's publisher code. Results can be
109 * sorted by `createTime`. Example: 'createTime DESC'.
110 * @opt_param int pageSize Requested page size. The server may return fewer
111 * results than requested (due to timeout constraint) even if more are available
112 * through another call. If unspecified, the server will pick an appropriate
113 * default. Acceptable values are 1 to 5000, inclusive.
114 * @opt_param string pageToken A token identifying a page of results the server
115 * should return. Typically, this is the value of
116 * ListPublisherConnectionsResponse.nextPageToken returned from the previous
117 * call to the 'ListPublisherConnections' method.
118 * @return ListPublisherConnectionsResponse
119 * @throws \Google\Service\Exception
120 */
121 public function listBiddersPublisherConnections($parent, $optParams = [])
122 {
123 $params = ['parent' => $parent];
124 $params = array_merge($params, $optParams);
125 return $this->call('list', [$params], ListPublisherConnectionsResponse::class);
126 }
127}
128
129// Adding a class alias for backwards compatibility with the previous class name.
130class_alias(BiddersPublisherConnections::class, 'Google_Service_RealTimeBidding_Resource_BiddersPublisherConnections');
Note: See TracBrowser for help on using the repository browser.