Struct google_api_proto::google::ads::googleads::v15::resources::CampaignDraft
source · pub struct CampaignDraft {
pub resource_name: String,
pub draft_id: Option<i64>,
pub base_campaign: Option<String>,
pub name: Option<String>,
pub draft_campaign: Option<String>,
pub status: i32,
pub has_experiment_running: Option<bool>,
pub long_running_operation: Option<String>,
}
Expand description
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: Option<i64>
Output only. The ID of the draft.
This field is read-only.
base_campaign: Option<String>
Immutable. The base campaign to which the draft belongs.
name: Option<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: Option<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: Option<bool>
Output only. Whether there is an experiment based on this draft currently serving.
long_running_operation: Option<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§
source§impl CampaignDraft
impl CampaignDraft
sourcepub fn status(&self) -> CampaignDraftStatus
pub fn status(&self) -> CampaignDraftStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: CampaignDraftStatus)
pub fn set_status(&mut self, value: CampaignDraftStatus)
Sets status
to the provided enum value.
sourcepub fn draft_id(&self) -> i64
pub fn draft_id(&self) -> i64
Returns the value of draft_id
, or the default value if draft_id
is unset.
sourcepub fn base_campaign(&self) -> &str
pub fn base_campaign(&self) -> &str
Returns the value of base_campaign
, or the default value if base_campaign
is unset.
sourcepub fn draft_campaign(&self) -> &str
pub fn draft_campaign(&self) -> &str
Returns the value of draft_campaign
, or the default value if draft_campaign
is unset.
sourcepub fn has_experiment_running(&self) -> bool
pub fn has_experiment_running(&self) -> bool
Returns the value of has_experiment_running
, or the default value if has_experiment_running
is unset.
sourcepub fn long_running_operation(&self) -> &str
pub fn long_running_operation(&self) -> &str
Returns the value of long_running_operation
, or the default value if long_running_operation
is unset.
Trait Implementations§
source§impl Clone for CampaignDraft
impl Clone for CampaignDraft
source§fn clone(&self) -> CampaignDraft
fn clone(&self) -> CampaignDraft
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignDraft
impl Debug for CampaignDraft
source§impl Default for CampaignDraft
impl Default for CampaignDraft
source§impl Message for CampaignDraft
impl Message for CampaignDraft
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CampaignDraft
impl PartialEq for CampaignDraft
source§fn eq(&self, other: &CampaignDraft) -> bool
fn eq(&self, other: &CampaignDraft) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CampaignDraft
Auto Trait Implementations§
impl Freeze for CampaignDraft
impl RefUnwindSafe for CampaignDraft
impl Send for CampaignDraft
impl Sync for CampaignDraft
impl Unpin for CampaignDraft
impl UnwindSafe for CampaignDraft
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request