Class AccountsResource.ProposalsResource.UpdateRequest
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 deal_id
, the server will
assign a new unique ID and create the deal. If passed-in deal has a deal_id
, 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 deal_id
not present at head.
Inheritance
Inherited Members
Namespace: Google.Apis.AdExchangeBuyerII.v2beta1
Assembly: Google.Apis.AdExchangeBuyerII.v2beta1.dll
Syntax
public class AccountsResource.ProposalsResource.UpdateRequest : AdExchangeBuyerIIBaseServiceRequest<Proposal>, IClientServiceRequest<Proposal>, IClientServiceRequest
Constructors
UpdateRequest(IClientService, Proposal, string, string)
Constructs a new Update request.
Declaration
public UpdateRequest(IClientService service, Proposal body, string accountId, string proposalId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Proposal | body | |
string | accountId | |
string | proposalId |
Properties
AccountId
Account ID of the buyer.
Declaration
[RequestParameter("accountId", RequestParameterType.Path)]
public virtual string AccountId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ProposalId
The unique ID of the proposal.
Declaration
[RequestParameter("proposalId", RequestParameterType.Path)]
public virtual string ProposalId { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()