Mark the proposal as accepted at the given revision number. If the number does not match the server's revision number an ABORTED
error message will be returned. This call updates the proposalState from PROPOSED
to BUYER_ACCEPTED
, or from SELLER_ACCEPTED
to FINALIZED
.
HTTP request
POST https://adexchangebuyer.googleapis.com/v2beta1/accounts/{accountId}/proposals/{proposalId}:accept
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
accountId |
Account ID of the buyer. |
proposalId |
The ID of the proposal to accept. |
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "proposalRevision": string } |
Fields | |
---|---|
proposalRevision |
The last known client revision number of the proposal. |
Response body
If successful, the response body contains an instance of Proposal
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adexchange.buyer