Method: accounts.proposals.accept

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 Google API HTTP annotation syntax.

Path parameters

Parameters
accountId

string

Account ID of the buyer.

proposalId

string

The ID of the proposal to accept.

Request body

The request body contains data with the following structure:

JSON representation
{
  "proposalRevision": string,
}
Fields
proposalRevision

string (int64 format)

The last known client revision number of the proposal.

Response body

If successful, the response body contains an instance of Proposal.

Authorization

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/adexchange.buyer

Try it!

Send feedback about...

Buyer REST API
Buyer REST API