source: vendor/google/apiclient-services/src/AuthorizedBuyersMarketplace/Resource/BuyersAuctionPackages.php

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

Upload project files

  • Property mode set to 100644
File size: 7.6 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\AuthorizedBuyersMarketplace\Resource;
19
20use Google\Service\AuthorizedBuyersMarketplace\AuctionPackage;
21use Google\Service\AuthorizedBuyersMarketplace\ListAuctionPackagesResponse;
22use Google\Service\AuthorizedBuyersMarketplace\SubscribeAuctionPackageRequest;
23use Google\Service\AuthorizedBuyersMarketplace\SubscribeClientsRequest;
24use Google\Service\AuthorizedBuyersMarketplace\UnsubscribeAuctionPackageRequest;
25use Google\Service\AuthorizedBuyersMarketplace\UnsubscribeClientsRequest;
26
27/**
28 * The "auctionPackages" collection of methods.
29 * Typical usage is:
30 * <code>
31 * $authorizedbuyersmarketplaceService = new Google\Service\AuthorizedBuyersMarketplace(...);
32 * $auctionPackages = $authorizedbuyersmarketplaceService->buyers_auctionPackages;
33 * </code>
34 */
35class BuyersAuctionPackages extends \Google\Service\Resource
36{
37 /**
38 * Gets an auction package given its name. (auctionPackages.get)
39 *
40 * @param string $name Required. Name of auction package to get. Format:
41 * `buyers/{accountId}/auctionPackages/{auctionPackageId}`
42 * @param array $optParams Optional parameters.
43 * @return AuctionPackage
44 * @throws \Google\Service\Exception
45 */
46 public function get($name, $optParams = [])
47 {
48 $params = ['name' => $name];
49 $params = array_merge($params, $optParams);
50 return $this->call('get', [$params], AuctionPackage::class);
51 }
52 /**
53 * List the auction packages. Buyers can use the URL path
54 * "/v1/buyers/{accountId}/auctionPackages" to list auction packages for the
55 * current buyer and its clients. Bidders can use the URL path
56 * "/v1/bidders/{accountId}/auctionPackages" to list auction packages for the
57 * bidder, its media planners, its buyers, and all their clients.
58 * (auctionPackages.listBuyersAuctionPackages)
59 *
60 * @param string $parent Required. Name of the parent buyer that can access the
61 * auction package. Format: `buyers/{accountId}`. When used with a bidder
62 * account, the auction packages that the bidder, its media planners, its buyers
63 * and clients are subscribed to will be listed, in the format
64 * `bidders/{accountId}`.
65 * @param array $optParams Optional parameters.
66 *
67 * @opt_param string filter Optional. Optional query string using the [Cloud API
68 * list filtering syntax](/authorized-buyers/apis/guides/list-filters). Only
69 * supported when parent is bidder. Supported columns for filtering are: *
70 * displayName * createTime * updateTime * eligibleSeatIds
71 * @opt_param string orderBy Optional. An optional query string to sort auction
72 * packages using the [Cloud API sorting
73 * syntax](https://cloud.google.com/apis/design/design_patterns#sorting_order).
74 * If no sort order is specified, results will be returned in an arbitrary
75 * order. Only supported when parent is bidder. Supported columns for sorting
76 * are: * displayName * createTime * updateTime
77 * @opt_param int pageSize Requested page size. The server may return fewer
78 * results than requested. Max allowed page size is 500.
79 * @opt_param string pageToken The page token as returned.
80 * ListAuctionPackagesResponse.nextPageToken
81 * @return ListAuctionPackagesResponse
82 * @throws \Google\Service\Exception
83 */
84 public function listBuyersAuctionPackages($parent, $optParams = [])
85 {
86 $params = ['parent' => $parent];
87 $params = array_merge($params, $optParams);
88 return $this->call('list', [$params], ListAuctionPackagesResponse::class);
89 }
90 /**
91 * Subscribe to the auction package for the specified buyer. Once subscribed,
92 * the bidder will receive a call out for inventory matching the auction package
93 * targeting criteria with the auction package deal ID and the specified buyer.
94 * (auctionPackages.subscribe)
95 *
96 * @param string $name Required. Name of the auction package. Format:
97 * `buyers/{accountId}/auctionPackages/{auctionPackageId}`
98 * @param SubscribeAuctionPackageRequest $postBody
99 * @param array $optParams Optional parameters.
100 * @return AuctionPackage
101 * @throws \Google\Service\Exception
102 */
103 public function subscribe($name, SubscribeAuctionPackageRequest $postBody, $optParams = [])
104 {
105 $params = ['name' => $name, 'postBody' => $postBody];
106 $params = array_merge($params, $optParams);
107 return $this->call('subscribe', [$params], AuctionPackage::class);
108 }
109 /**
110 * Subscribe the specified clients of the buyer to the auction package. If a
111 * client in the list does not belong to the buyer, an error response will be
112 * returned, and all of the following clients in the list will not be
113 * subscribed. Subscribing an already subscribed client will have no effect.
114 * (auctionPackages.subscribeClients)
115 *
116 * @param string $auctionPackage Required. Name of the auction package. Format:
117 * `buyers/{accountId}/auctionPackages/{auctionPackageId}`
118 * @param SubscribeClientsRequest $postBody
119 * @param array $optParams Optional parameters.
120 * @return AuctionPackage
121 * @throws \Google\Service\Exception
122 */
123 public function subscribeClients($auctionPackage, SubscribeClientsRequest $postBody, $optParams = [])
124 {
125 $params = ['auctionPackage' => $auctionPackage, 'postBody' => $postBody];
126 $params = array_merge($params, $optParams);
127 return $this->call('subscribeClients', [$params], AuctionPackage::class);
128 }
129 /**
130 * Unsubscribe from the auction package for the specified buyer. Once
131 * unsubscribed, the bidder will no longer receive a call out for the auction
132 * package deal ID and the specified buyer. (auctionPackages.unsubscribe)
133 *
134 * @param string $name Required. Name of the auction package. Format:
135 * `buyers/{accountId}/auctionPackages/{auctionPackageId}`
136 * @param UnsubscribeAuctionPackageRequest $postBody
137 * @param array $optParams Optional parameters.
138 * @return AuctionPackage
139 * @throws \Google\Service\Exception
140 */
141 public function unsubscribe($name, UnsubscribeAuctionPackageRequest $postBody, $optParams = [])
142 {
143 $params = ['name' => $name, 'postBody' => $postBody];
144 $params = array_merge($params, $optParams);
145 return $this->call('unsubscribe', [$params], AuctionPackage::class);
146 }
147 /**
148 * Unsubscribe from the auction package for the specified clients of the buyer.
149 * Unsubscribing a client that is not subscribed will have no effect.
150 * (auctionPackages.unsubscribeClients)
151 *
152 * @param string $auctionPackage Required. Name of the auction package. Format:
153 * `buyers/{accountId}/auctionPackages/{auctionPackageId}`
154 * @param UnsubscribeClientsRequest $postBody
155 * @param array $optParams Optional parameters.
156 * @return AuctionPackage
157 * @throws \Google\Service\Exception
158 */
159 public function unsubscribeClients($auctionPackage, UnsubscribeClientsRequest $postBody, $optParams = [])
160 {
161 $params = ['auctionPackage' => $auctionPackage, 'postBody' => $postBody];
162 $params = array_merge($params, $optParams);
163 return $this->call('unsubscribeClients', [$params], AuctionPackage::class);
164 }
165}
166
167// Adding a class alias for backwards compatibility with the previous class name.
168class_alias(BuyersAuctionPackages::class, 'Google_Service_AuthorizedBuyersMarketplace_Resource_BuyersAuctionPackages');
Note: See TracBrowser for help on using the repository browser.