pub async fn promote_campaign_draft(
            &mut self,
            request: impl tonic::IntoRequest<super::PromoteCampaignDraftRequest>,
        ) -> Result<
            tonic::Response<super::super::super::super::super::longrunning::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.ads.googleads.v10.services.CampaignDraftService/PromoteCampaignDraft",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
/// 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]()
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.


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 .
pub async fn promote_campaign_draft(
            &mut self,
            request: impl tonic::IntoRequest<super::PromoteCampaignDraftRequest>,
        ) -> Result<
            tonic::Response<super::super::super::super::super::longrunning::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.ads.googleads.v10.services.CampaignDraftService/PromoteCampaignDraft",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn promote_campaign_draft ( & mut self , request : impl tonic :: IntoRequest < super :: PromoteCampaignDraftRequest > , ) -> Result < tonic :: Response < super :: super :: super :: super :: super :: longrunning :: Operation > , tonic :: Status , > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( " " e into ( ) ) , ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( " " , ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await }
Promotes the changes in a draft back to the base campaign.
Promotes the changes in a draft back to the base campaign .
&mut self
request
impl tonic::IntoRequest<super::PromoteCampaignDraftRequest>
&mut self
request
impl tonic::IntoRequest<super::PromoteCampaignDraftRequest>