Skip to content

Commit bbeaacb

Browse files
1 parent 206e081 commit bbeaacb

3 files changed

Lines changed: 47 additions & 3 deletions

File tree

src/AuthorizedBuyersMarketplace.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
136136
'type' => 'string',
137137
],
138138
],
139+
],'setReadyToServe' => [
140+
'path' => 'v1/{+deal}:setReadyToServe',
141+
'httpMethod' => 'POST',
142+
'parameters' => [
143+
'deal' => [
144+
'location' => 'path',
145+
'type' => 'string',
146+
'required' => true,
147+
],
148+
],
139149
],
140150
]
141151
]

src/AuthorizedBuyersMarketplace/Resource/BiddersFinalizedDeals.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818
namespace Google\Service\AuthorizedBuyersMarketplace\Resource;
1919

20+
use Google\Service\AuthorizedBuyersMarketplace\FinalizedDeal;
2021
use Google\Service\AuthorizedBuyersMarketplace\ListFinalizedDealsResponse;
22+
use Google\Service\AuthorizedBuyersMarketplace\SetReadyToServeRequest;
2123

2224
/**
2325
* The "finalizedDeals" collection of methods.
@@ -72,6 +74,34 @@ public function listBiddersFinalizedDeals($parent, $optParams = [])
7274
$params = array_merge($params, $optParams);
7375
return $this->call('list', [$params], ListFinalizedDealsResponse::class);
7476
}
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+
}
75105
}
76106

77107
// Adding a class alias for backwards compatibility with the previous class name.

src/AuthorizedBuyersMarketplace/Resource/BuyersFinalizedDeals.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,15 @@ public function resume($name, ResumeFinalizedDealRequest $postBody, $optParams =
162162
* use this method, finalized deals belonging to the bidder and its child seats
163163
* don't start serving until after you call `setReadyToServe`, and after the
164164
* deals become active. For example, you can use this method to delay receiving
165-
* bid requests until your creative is ready. This method only applies to
166-
* programmatic guaranteed deals. (finalizedDeals.setReadyToServe)
165+
* bid requests until your creative is ready. In addition, bidders can use the
166+
* URL path "/v1/bidders/{accountId}/finalizedDeals/{dealId}" to set ready to
167+
* serve for the finalized deals belong to itself, its child seats and all their
168+
* clients. This method only applies to programmatic guaranteed deals.
169+
* (finalizedDeals.setReadyToServe)
167170
*
168171
* @param string $deal Required. Format:
169-
* `buyers/{accountId}/finalizedDeals/{dealId}`
172+
* `buyers/{accountId}/finalizedDeals/{dealId}` or
173+
* `bidders/{accountId}/finalizedDeals/{dealId}`
170174
* @param SetReadyToServeRequest $postBody
171175
* @param array $optParams Optional parameters.
172176
* @return FinalizedDeal

0 commit comments

Comments
 (0)