Struct google_api_proto::google::ads::googleads::v15::resources::KeywordPlanCampaign
source · pub struct KeywordPlanCampaign {
pub resource_name: String,
pub keyword_plan: Option<String>,
pub id: Option<i64>,
pub name: Option<String>,
pub language_constants: Vec<String>,
pub keyword_plan_network: i32,
pub cpc_bid_micros: Option<i64>,
pub geo_targets: Vec<KeywordPlanGeoTarget>,
}
Expand description
A Keyword Plan campaign. Max number of keyword plan campaigns per plan allowed: 1.
Fields§
§resource_name: String
Immutable. The resource name of the Keyword Plan campaign. KeywordPlanCampaign resource names have the form:
customers/{customer_id}/keywordPlanCampaigns/{kp_campaign_id}
keyword_plan: Option<String>
The keyword plan this campaign belongs to.
id: Option<i64>
Output only. The ID of the Keyword Plan campaign.
name: Option<String>
The name of the Keyword Plan campaign.
This field is required and should not be empty when creating Keyword Plan campaigns.
language_constants: Vec<String>
The languages targeted for the Keyword Plan campaign. Max allowed: 1.
keyword_plan_network: i32
Targeting network.
This field is required and should not be empty when creating Keyword Plan campaigns.
cpc_bid_micros: Option<i64>
A default max cpc bid in micros, and in the account currency, for all ad groups under the campaign.
This field is required and should not be empty when creating Keyword Plan campaigns.
geo_targets: Vec<KeywordPlanGeoTarget>
The geo targets. Max number allowed: 20.
Implementations§
source§impl KeywordPlanCampaign
impl KeywordPlanCampaign
sourcepub fn keyword_plan_network(&self) -> KeywordPlanNetwork
pub fn keyword_plan_network(&self) -> KeywordPlanNetwork
Returns the enum value of keyword_plan_network
, or the default if the field is set to an invalid enum value.
sourcepub fn set_keyword_plan_network(&mut self, value: KeywordPlanNetwork)
pub fn set_keyword_plan_network(&mut self, value: KeywordPlanNetwork)
Sets keyword_plan_network
to the provided enum value.
sourcepub fn keyword_plan(&self) -> &str
pub fn keyword_plan(&self) -> &str
Returns the value of keyword_plan
, or the default value if keyword_plan
is unset.
sourcepub fn cpc_bid_micros(&self) -> i64
pub fn cpc_bid_micros(&self) -> i64
Returns the value of cpc_bid_micros
, or the default value if cpc_bid_micros
is unset.
Trait Implementations§
source§impl Clone for KeywordPlanCampaign
impl Clone for KeywordPlanCampaign
source§fn clone(&self) -> KeywordPlanCampaign
fn clone(&self) -> KeywordPlanCampaign
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeywordPlanCampaign
impl Debug for KeywordPlanCampaign
source§impl Default for KeywordPlanCampaign
impl Default for KeywordPlanCampaign
source§impl Message for KeywordPlanCampaign
impl Message for KeywordPlanCampaign
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 KeywordPlanCampaign
impl PartialEq for KeywordPlanCampaign
source§fn eq(&self, other: &KeywordPlanCampaign) -> bool
fn eq(&self, other: &KeywordPlanCampaign) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KeywordPlanCampaign
Auto Trait Implementations§
impl Freeze for KeywordPlanCampaign
impl RefUnwindSafe for KeywordPlanCampaign
impl Send for KeywordPlanCampaign
impl Sync for KeywordPlanCampaign
impl Unpin for KeywordPlanCampaign
impl UnwindSafe for KeywordPlanCampaign
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