Class CustomersResource.CampaignDraftsResource.PromoteRequest
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
Inheritance
Inherited Members
Namespace: Google.Apis.SA360.v23
Assembly: Google.Apis.SA360.v23.dll
Syntax
public class CustomersResource.CampaignDraftsResource.PromoteRequest : SA360BaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
PromoteRequest(IClientService, GoogleAdsSearchads360V23ServicesPromoteCampaignDraftRequest, string)
Constructs a new Promote request.
Declaration
public PromoteRequest(IClientService service, GoogleAdsSearchads360V23ServicesPromoteCampaignDraftRequest body, string campaignDraft)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleAdsSearchads360V23ServicesPromoteCampaignDraftRequest | body | |
| string | campaignDraft |
Properties
CampaignDraft
Required. The resource name of the campaign draft to promote.
Declaration
[RequestParameter("campaignDraft", RequestParameterType.Path)]
public virtual string CampaignDraft { 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
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 Promote parameter list.
Declaration
protected override void InitParameters()