* $authorizedbuyersmarketplaceService = new Google\Service\AuthorizedBuyersMarketplace(...); * $auctionPackages = $authorizedbuyersmarketplaceService->auctionPackages; * */ class BuyersAuctionPackages extends \Google\Service\Resource { /** * Gets an auction package given its name. (auctionPackages.get) * * @param string $name Required. Name of auction package to get. Format: * `buyers/{accountId}/auctionPackages/{auctionPackageId}` * @param array $optParams Optional parameters. * @return AuctionPackage */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], AuctionPackage::class); } /** * List the auction packages subscribed by a buyer and its clients. * (auctionPackages.listBuyersAuctionPackages) * * @param string $parent Required. Name of the parent buyer that can access the * auction package. Format: `buyers/{accountId}` * @param array $optParams Optional parameters. * * @opt_param int pageSize Requested page size. The server may return fewer * results than requested. Max allowed page size is 500. * @opt_param string pageToken The page token as returned. * ListAuctionPackagesResponse.nextPageToken * @return ListAuctionPackagesResponse */ public function listBuyersAuctionPackages($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListAuctionPackagesResponse::class); } /** * Subscribe to the auction package for the specified buyer. Once subscribed, * the bidder will receive a call out for inventory matching the auction package * targeting criteria with the auction package deal ID and the specified buyer. * (auctionPackages.subscribe) * * @param string $name Required. Name of the auction package. Format: * `buyers/{accountId}/auctionPackages/{auctionPackageId}` * @param SubscribeAuctionPackageRequest $postBody * @param array $optParams Optional parameters. * @return AuctionPackage */ public function subscribe($name, SubscribeAuctionPackageRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('subscribe', [$params], AuctionPackage::class); } /** * Subscribe the specified clients of the buyer to the auction package. If a * client in the list does not belong to the buyer, an error response will be * returned, and all of the following clients in the list will not be * subscribed. Subscribing an already subscribed client will have no effect. * (auctionPackages.subscribeClients) * * @param string $auctionPackage Required. Name of the auction package. Format: * `buyers/{accountId}/auctionPackages/{auctionPackageId}` * @param SubscribeClientsRequest $postBody * @param array $optParams Optional parameters. * @return AuctionPackage */ public function subscribeClients($auctionPackage, SubscribeClientsRequest $postBody, $optParams = []) { $params = ['auctionPackage' => $auctionPackage, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('subscribeClients', [$params], AuctionPackage::class); } /** * Unsubscribe from the auction package for the specified buyer. Once * unsubscribed, the bidder will no longer receive a call out for the auction * package deal ID and the specified buyer. (auctionPackages.unsubscribe) * * @param string $name Required. Name of the auction package. Format: * `buyers/{accountId}/auctionPackages/{auctionPackageId}` * @param UnsubscribeAuctionPackageRequest $postBody * @param array $optParams Optional parameters. * @return AuctionPackage */ public function unsubscribe($name, UnsubscribeAuctionPackageRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('unsubscribe', [$params], AuctionPackage::class); } /** * Unsubscribe from the auction package for the specified clients of the buyer. * Unsubscribing a client that is not subscribed will have no effect. * (auctionPackages.unsubscribeClients) * * @param string $auctionPackage Required. Name of the auction package. Format: * `buyers/{accountId}/auctionPackages/{auctionPackageId}` * @param UnsubscribeClientsRequest $postBody * @param array $optParams Optional parameters. * @return AuctionPackage */ public function unsubscribeClients($auctionPackage, UnsubscribeClientsRequest $postBody, $optParams = []) { $params = ['auctionPackage' => $auctionPackage, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('unsubscribeClients', [$params], AuctionPackage::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(BuyersAuctionPackages::class, 'Google_Service_AuthorizedBuyersMarketplace_Resource_BuyersAuctionPackages');