|
17 | 17 |
|
18 | 18 | namespace Google\Service\AuthorizedBuyersMarketplace\Resource; |
19 | 19 |
|
| 20 | +use Google\Service\AuthorizedBuyersMarketplace\FinalizedDeal; |
20 | 21 | use Google\Service\AuthorizedBuyersMarketplace\ListFinalizedDealsResponse; |
| 22 | +use Google\Service\AuthorizedBuyersMarketplace\SetReadyToServeRequest; |
21 | 23 |
|
22 | 24 | /** |
23 | 25 | * The "finalizedDeals" collection of methods. |
@@ -72,6 +74,34 @@ public function listBiddersFinalizedDeals($parent, $optParams = []) |
72 | 74 | $params = array_merge($params, $optParams); |
73 | 75 | return $this->call('list', [$params], ListFinalizedDealsResponse::class); |
74 | 76 | } |
| 77 | + /** |
| 78 | + * Sets the given finalized deal as ready to serve. By default, deals are set as |
| 79 | + * ready to serve as soon as they're finalized. If you want to opt out of the |
| 80 | + * default behavior, and manually indicate that deals are ready to serve, ask |
| 81 | + * your Technical Account Manager to add you to the allowlist. If you choose to |
| 82 | + * use this method, finalized deals belonging to the bidder and its child seats |
| 83 | + * don't start serving until after you call `setReadyToServe`, and after the |
| 84 | + * deals become active. For example, you can use this method to delay receiving |
| 85 | + * bid requests until your creative is ready. In addition, bidders can use the |
| 86 | + * URL path "/v1/bidders/{accountId}/finalizedDeals/{dealId}" to set ready to |
| 87 | + * serve for the finalized deals belong to itself, its child seats and all their |
| 88 | + * clients. This method only applies to programmatic guaranteed deals. |
| 89 | + * (finalizedDeals.setReadyToServe) |
| 90 | + * |
| 91 | + * @param string $deal Required. Format: |
| 92 | + * `buyers/{accountId}/finalizedDeals/{dealId}` or |
| 93 | + * `bidders/{accountId}/finalizedDeals/{dealId}` |
| 94 | + * @param SetReadyToServeRequest $postBody |
| 95 | + * @param array $optParams Optional parameters. |
| 96 | + * @return FinalizedDeal |
| 97 | + * @throws \Google\Service\Exception |
| 98 | + */ |
| 99 | + public function setReadyToServe($deal, SetReadyToServeRequest $postBody, $optParams = []) |
| 100 | + { |
| 101 | + $params = ['deal' => $deal, 'postBody' => $postBody]; |
| 102 | + $params = array_merge($params, $optParams); |
| 103 | + return $this->call('setReadyToServe', [$params], FinalizedDeal::class); |
| 104 | + } |
75 | 105 | } |
76 | 106 |
|
77 | 107 | // Adding a class alias for backwards compatibility with the previous class name. |
|
0 commit comments