Struct gapi_grpc::google::ads::googleads::v7::resources::CampaignDraft[][src]

pub struct CampaignDraft {
    pub resource_name: String,
    pub draft_id: i64,
    pub base_campaign: String,
    pub name: String,
    pub draft_campaign: String,
    pub status: i32,
    pub has_experiment_running: bool,
    pub long_running_operation: String,
}

A campaign draft.

Fields

resource_name: String

Immutable. The resource name of the campaign draft. Campaign draft resource names have the form:

customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}

draft_id: i64

Output only. The ID of the draft.

This field is read-only.

base_campaign: String

Immutable. The base campaign to which the draft belongs.

name: String

The name of the campaign draft.

This field is required and should not be empty when creating new campaign drafts.

It must not contain any null (code point 0x0), NL line feed (code point 0xA) or carriage return (code point 0xD) characters.

draft_campaign: String

Output only. Resource name of the Campaign that results from overlaying the draft changes onto the base campaign.

This field is read-only.

status: i32

Output only. The status of the campaign draft. This field is read-only.

When a new campaign draft is added, the status defaults to PROPOSED.

has_experiment_running: bool

Output only. Whether there is an experiment based on this draft currently serving.

long_running_operation: String

Output only. The resource name of the long-running operation that can be used to poll for completion of draft promotion. This is only set if the draft promotion is in progress or finished.

Implementations

impl CampaignDraft[src]

pub fn status(&self) -> CampaignDraftStatus[src]

Returns the enum value of status, or the default if the field is set to an invalid enum value.

pub fn set_status(&mut self, value: CampaignDraftStatus)[src]

Sets status to the provided enum value.

Trait Implementations

impl Clone for CampaignDraft[src]

impl Debug for CampaignDraft[src]

impl Default for CampaignDraft[src]

impl Message for CampaignDraft[src]

impl PartialEq<CampaignDraft> for CampaignDraft[src]

impl StructuralPartialEq for CampaignDraft[src]

Auto Trait Implementations

impl RefUnwindSafe for CampaignDraft

impl Send for CampaignDraft

impl Sync for CampaignDraft

impl Unpin for CampaignDraft

impl UnwindSafe for CampaignDraft

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]