Class CampaignDraftServiceGrpc.CampaignDraftServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<CampaignDraftServiceGrpc.CampaignDraftServiceStub>
-
- com.google.ads.googleads.v10.services.CampaignDraftServiceGrpc.CampaignDraftServiceStub
-
- Enclosing class:
- CampaignDraftServiceGrpc
public static final class CampaignDraftServiceGrpc.CampaignDraftServiceStub extends io.grpc.stub.AbstractAsyncStub<CampaignDraftServiceGrpc.CampaignDraftServiceStub>
Service to manage campaign drafts.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CampaignDraftServiceGrpc.CampaignDraftServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voidlistCampaignDraftAsyncErrors(ListCampaignDraftAsyncErrorsRequest request, io.grpc.stub.StreamObserver<ListCampaignDraftAsyncErrorsResponse> responseObserver)Returns all errors that occurred during CampaignDraft promote.voidmutateCampaignDrafts(MutateCampaignDraftsRequest request, io.grpc.stub.StreamObserver<MutateCampaignDraftsResponse> responseObserver)Creates, updates, or removes campaign drafts.voidpromoteCampaignDraft(PromoteCampaignDraftRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Promotes the changes in a draft back to the base campaign.
-
-
-
Method Detail
-
build
protected CampaignDraftServiceGrpc.CampaignDraftServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<CampaignDraftServiceGrpc.CampaignDraftServiceStub>
-
mutateCampaignDrafts
public void mutateCampaignDrafts(MutateCampaignDraftsRequest request, io.grpc.stub.StreamObserver<MutateCampaignDraftsResponse> responseObserver)
Creates, updates, or removes campaign drafts. Operation statuses are returned. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [CampaignDraftError]() [DatabaseError]() [FieldError]() [HeaderError]() [InternalError]() [MutateError]() [QuotaError]() [RequestError]()
-
promoteCampaignDraft
public void promoteCampaignDraft(PromoteCampaignDraftRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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 [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][google.ads.googleads.v10.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of error reasons. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [CampaignDraftError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]()
-
listCampaignDraftAsyncErrors
public void listCampaignDraftAsyncErrors(ListCampaignDraftAsyncErrorsRequest request, io.grpc.stub.StreamObserver<ListCampaignDraftAsyncErrorsResponse> responseObserver)
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]()
-
-