Method: accounts.proposals.update
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
This page describes how to update a proposal using the PUT method and specifies the required URL, path parameters, request body, and response body.
Updating a proposal requires the client known revision number and will return an ABORTED error if the server revision has advanced.
Only buyer-modifiable fields of the proposal can be updated, and deals within the proposal will be updated or created based on the provided data, with existing deals not present being deleted.
The update operation requires the https://www.googleapis.com/auth/adexchange.buyer OAuth scope for authorization.
Update the given proposal at the client known revision number. If the server revision has advanced since the passed-in proposal.proposal_revision, an ABORTED error message will be returned. Only the buyer-modifiable fields of the proposal will be updated.
Note that the deals in the proposal will be updated to match the passed-in copy. If a passed-in deal does not have a dealId, the server will assign a new unique ID and create the deal. If passed-in deal has a dealId, it will be updated to match the passed-in copy. Any existing deals not present in the passed-in proposal will be deleted. It is an error to pass in a deal with a dealId not present at head.
HTTP request
PUT https://adexchangebuyer.googleapis.com/v2beta1/accounts/{accountId}/proposals/{proposalId}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[],["This content outlines the process of updating a proposal via an HTTP PUT request. The request targets a specific proposal by its `accountId` and `proposalId` in the URL path. The request body contains the updated `Proposal`, while the response body returns the updated `Proposal`. Deals within the proposal are updated, created, or deleted based on their `dealId`. An `ABORTED` error is returned if the server's revision is newer. Access requires the `adexchange.buyer` OAuth scope.\n"]]