Class ProposalsResource
The "proposals" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.AdExchangeBuyer.v1_4
Assembly: Google.Apis.AdExchangeBuyer.v1_4.dll
Syntax
public class ProposalsResource
Constructors
ProposalsResource(IClientService)
Constructs a new resource.
Declaration
public ProposalsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| Google.Apis.Services.IClientService | service |
Methods
Get(String)
Get a proposal given its id
Declaration
public virtual ProposalsResource.GetRequest Get(string proposalId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | proposalId | Id of the proposal to retrieve. |
Returns
| Type | Description |
|---|---|
| ProposalsResource.GetRequest |
Insert(CreateOrdersRequest)
Create the given list of proposals
Declaration
public virtual ProposalsResource.InsertRequest Insert(CreateOrdersRequest body)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateOrdersRequest | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| ProposalsResource.InsertRequest |
Patch(Proposal, String, Int64, ProposalsResource.PatchRequest.UpdateActionEnum)
Update the given proposal. This method supports patch semantics.
Declaration
public virtual ProposalsResource.PatchRequest Patch(Proposal body, string proposalId, long revisionNumber, ProposalsResource.PatchRequest.UpdateActionEnum updateAction)
Parameters
| Type | Name | Description |
|---|---|---|
| Proposal | body | The body of the request. |
| System.String | proposalId | The proposal id to update. |
| System.Int64 | revisionNumber | The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision. |
| ProposalsResource.PatchRequest.UpdateActionEnum | updateAction | The proposed action to take on the proposal. This field is required and it must be set when updating a proposal. |
Returns
| Type | Description |
|---|---|
| ProposalsResource.PatchRequest |
Search()
Search for proposals using pql query
Declaration
public virtual ProposalsResource.SearchRequest Search()
Returns
| Type | Description |
|---|---|
| ProposalsResource.SearchRequest |
Setupcomplete(String)
Update the given proposal to indicate that setup has been completed.
Declaration
public virtual ProposalsResource.SetupcompleteRequest Setupcomplete(string proposalId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | proposalId | The proposal id for which the setup is complete |
Returns
| Type | Description |
|---|---|
| ProposalsResource.SetupcompleteRequest |
Update(Proposal, String, Int64, ProposalsResource.UpdateRequest.UpdateActionEnum)
Update the given proposal
Declaration
public virtual ProposalsResource.UpdateRequest Update(Proposal body, string proposalId, long revisionNumber, ProposalsResource.UpdateRequest.UpdateActionEnum updateAction)
Parameters
| Type | Name | Description |
|---|---|---|
| Proposal | body | The body of the request. |
| System.String | proposalId | The proposal id to update. |
| System.Int64 | revisionNumber | The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision. |
| ProposalsResource.UpdateRequest.UpdateActionEnum | updateAction | The proposed action to take on the proposal. This field is required and it must be set when updating a proposal. |
Returns
| Type | Description |
|---|---|
| ProposalsResource.UpdateRequest |