Class CustomersResource.CampaignDraftsResource
The "campaignDrafts" collection of methods.
Inherited Members
Namespace: Google.Apis.SA360.v23
Assembly: Google.Apis.SA360.v23.dll
Syntax
public class CustomersResource.CampaignDraftsResource
Constructors
CampaignDraftsResource(IClientService)
Constructs a new resource.
Declaration
public CampaignDraftsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
ListAsyncErrors(string)
Returns all errors that occurred during CampaignDraft promote. Throws an error if called before campaign draft is promoted. Supports standard list paging. List of thrown errors: AuthenticationError AuthorizationError HeaderError InternalError QuotaError RequestError
Declaration
public virtual CustomersResource.CampaignDraftsResource.ListAsyncErrorsRequest ListAsyncErrors(string resourceName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | resourceName | Required. The name of the campaign draft from which to retrieve the async errors. |
Returns
| Type | Description |
|---|---|
| CustomersResource.CampaignDraftsResource.ListAsyncErrorsRequest |
Mutate(GoogleAdsSearchads360V23ServicesMutateCampaignDraftsRequest, string)
Creates, updates, or removes campaign drafts. Operation statuses are returned. List of thrown errors: AuthenticationError AuthorizationError CampaignDraftError DatabaseError FieldError HeaderError InternalError MutateError QuotaError RequestError
Declaration
public virtual CustomersResource.CampaignDraftsResource.MutateRequest Mutate(GoogleAdsSearchads360V23ServicesMutateCampaignDraftsRequest body, string customerId)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleAdsSearchads360V23ServicesMutateCampaignDraftsRequest | body | The body of the request. |
| string | customerId | Required. The ID of the customer whose campaign drafts are being modified. |
Returns
| Type | Description |
|---|---|
| CustomersResource.CampaignDraftsResource.MutateRequest |
Promote(GoogleAdsSearchads360V23ServicesPromoteCampaignDraftRequest, string)
Promotes the changes in a draft back to the base campaign. This method returns a Long Running Operation (LRO) indicating if the Promote is done. Use google.longrunning.Operations.GetOperation to poll the LRO until it is done. Only a done status is returned in the response. See the status in the Campaign Draft resource to determine if the promotion was successful. If the LRO failed, use CampaignDraftService.ListCampaignDraftAsyncErrors to view the list of error reasons. List of thrown errors: AuthenticationError AuthorizationError CampaignDraftError HeaderError InternalError QuotaError RequestError
Declaration
public virtual CustomersResource.CampaignDraftsResource.PromoteRequest Promote(GoogleAdsSearchads360V23ServicesPromoteCampaignDraftRequest body, string campaignDraft)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleAdsSearchads360V23ServicesPromoteCampaignDraftRequest | body | The body of the request. |
| string | campaignDraft | Required. The resource name of the campaign draft to promote. |
Returns
| Type | Description |
|---|---|
| CustomersResource.CampaignDraftsResource.PromoteRequest |