Struct gapi_grpc::google::ads::googleads::v6::services::campaign_draft_service_client::CampaignDraftServiceClient[][src]

pub struct CampaignDraftServiceClient<T> { /* fields omitted */ }

Service to manage campaign drafts.

Implementations

impl CampaignDraftServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> CampaignDraftServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn get_campaign_draft(
    &mut self,
    request: impl IntoRequest<GetCampaignDraftRequest>
) -> Result<Response<CampaignDraft>, Status>
[src]

Returns the requested campaign draft in full detail.

pub async fn mutate_campaign_drafts(
    &mut self,
    request: impl IntoRequest<MutateCampaignDraftsRequest>
) -> Result<Response<MutateCampaignDraftsResponse>, Status>
[src]

Creates, updates, or removes campaign drafts. Operation statuses are returned.

pub async fn promote_campaign_draft(
    &mut self,
    request: impl IntoRequest<PromoteCampaignDraftRequest>
) -> Result<Response<Operation>, Status>
[src]

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.v6.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of error reasons.

pub async fn list_campaign_draft_async_errors(
    &mut self,
    request: impl IntoRequest<ListCampaignDraftAsyncErrorsRequest>
) -> Result<Response<ListCampaignDraftAsyncErrorsResponse>, Status>
[src]

Returns all errors that occurred during CampaignDraft promote. Throws an error if called before campaign draft is promoted. Supports standard list paging.

Trait Implementations

impl<T: Clone> Clone for CampaignDraftServiceClient<T>[src]

impl<T> Debug for CampaignDraftServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for CampaignDraftServiceClient<T>

impl<T> Send for CampaignDraftServiceClient<T> where
    T: Send

impl<T> Sync for CampaignDraftServiceClient<T> where
    T: Sync

impl<T> Unpin for CampaignDraftServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for CampaignDraftServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]