Struct gapi_grpc::google::ads::googleads::v4::services::campaign_experiment_service_client::CampaignExperimentServiceClient [−][src]
CampaignExperimentService manages the life cycle of campaign experiments. It is used to create new experiments from drafts, modify experiment properties, promote changes in an experiment back to its base campaign, graduate experiments into new stand-alone campaigns, and to remove an experiment.
An experiment consists of two variants or arms - the base campaign and the experiment campaign, directing a fixed share of traffic to each arm. A campaign experiment is created from a draft of changes to the base campaign and will be a snapshot of changes in the draft at the time of creation.
Implementations
impl CampaignExperimentServiceClient<Channel>
[src]
pub async fn connect<D>(dst: D) -> Result<Self, Error> where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
[src]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
Attempt to create a new client by connecting to a given endpoint.
impl<T> CampaignExperimentServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
[src]
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
[src]
pub async fn get_campaign_experiment(
&mut self,
request: impl IntoRequest<GetCampaignExperimentRequest>
) -> Result<Response<CampaignExperiment>, Status>
[src]
&mut self,
request: impl IntoRequest<GetCampaignExperimentRequest>
) -> Result<Response<CampaignExperiment>, Status>
Returns the requested campaign experiment in full detail.
pub async fn create_campaign_experiment(
&mut self,
request: impl IntoRequest<CreateCampaignExperimentRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateCampaignExperimentRequest>
) -> Result<Response<Operation>, Status>
Creates a campaign experiment based on a campaign draft. The draft campaign will be forked into a real campaign (called the experiment campaign) that will begin serving ads if successfully created.
The campaign experiment is created immediately with status INITIALIZING. This method return a long running operation that tracks the forking of the draft campaign. If the forking fails, a list of errors can be retrieved using the ListCampaignExperimentAsyncErrors method. The operation’s metadata will be a StringValue containing the resource name of the created campaign experiment.
pub async fn mutate_campaign_experiments(
&mut self,
request: impl IntoRequest<MutateCampaignExperimentsRequest>
) -> Result<Response<MutateCampaignExperimentsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<MutateCampaignExperimentsRequest>
) -> Result<Response<MutateCampaignExperimentsResponse>, Status>
Updates campaign experiments. Operation statuses are returned.
pub async fn graduate_campaign_experiment(
&mut self,
request: impl IntoRequest<GraduateCampaignExperimentRequest>
) -> Result<Response<GraduateCampaignExperimentResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<GraduateCampaignExperimentRequest>
) -> Result<Response<GraduateCampaignExperimentResponse>, Status>
Graduates a campaign experiment to a full campaign. The base and experiment campaigns will start running independently with their own budgets.
pub async fn promote_campaign_experiment(
&mut self,
request: impl IntoRequest<PromoteCampaignExperimentRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<PromoteCampaignExperimentRequest>
) -> Result<Response<Operation>, Status>
Promotes the changes in a experiment campaign back to the base campaign.
The campaign experiment is updated immediately with status PROMOTING. This method return a long running operation that tracks the promoting of the experiment campaign. If the promoting fails, a list of errors can be retrieved using the ListCampaignExperimentAsyncErrors method.
pub async fn end_campaign_experiment(
&mut self,
request: impl IntoRequest<EndCampaignExperimentRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<EndCampaignExperimentRequest>
) -> Result<Response<()>, Status>
Immediately ends a campaign experiment, changing the experiment’s scheduled end date and without waiting for end of day. End date is updated to be the time of the request.
pub async fn list_campaign_experiment_async_errors(
&mut self,
request: impl IntoRequest<ListCampaignExperimentAsyncErrorsRequest>
) -> Result<Response<ListCampaignExperimentAsyncErrorsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListCampaignExperimentAsyncErrorsRequest>
) -> Result<Response<ListCampaignExperimentAsyncErrorsResponse>, Status>
Returns all errors that occurred during CampaignExperiment create or promote (whichever occurred last). Supports standard list paging.
Trait Implementations
impl<T: Clone> Clone for CampaignExperimentServiceClient<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for CampaignExperimentServiceClient<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for CampaignExperimentServiceClient<T>
impl<T> Send for CampaignExperimentServiceClient<T> where
T: Send,
T: Send,
impl<T> Sync for CampaignExperimentServiceClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for CampaignExperimentServiceClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for CampaignExperimentServiceClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,