Struct google_api_proto::google::ads::googleads::v15::services::CampaignToForecast
source · pub struct CampaignToForecast {
pub language_constants: Vec<String>,
pub geo_modifiers: Vec<CriterionBidModifier>,
pub keyword_plan_network: i32,
pub negative_keywords: Vec<KeywordInfo>,
pub bidding_strategy: Option<CampaignBiddingStrategy>,
pub conversion_rate: Option<f64>,
pub ad_groups: Vec<ForecastAdGroup>,
}
Expand description
A campaign to do a keyword campaign forecast.
Fields§
§language_constants: Vec<String>
The list of resource names of languages to be targeted. The resource name is of the format “languageConstants/{criterion_id}”. See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of language criterion codes.
geo_modifiers: Vec<CriterionBidModifier>
Locations to be targeted. Locations must be unique.
keyword_plan_network: i32
Required. The network used for targeting.
negative_keywords: Vec<KeywordInfo>
The list of negative keywords to be used in the campaign when doing the forecast.
bidding_strategy: Option<CampaignBiddingStrategy>
Required. The bidding strategy for the campaign.
conversion_rate: Option<f64>
The expected conversion rate (number of conversions divided by number of total clicks) as defined by the user. This value is expressed as a decimal value, so an expected conversion rate of 2% should be entered as 0.02. If left empty, an estimated conversion rate will be used.
ad_groups: Vec<ForecastAdGroup>
The ad groups in the new campaign to forecast.
Implementations§
source§impl CampaignToForecast
impl CampaignToForecast
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 conversion_rate(&self) -> f64
pub fn conversion_rate(&self) -> f64
Returns the value of conversion_rate
, or the default value if conversion_rate
is unset.
Trait Implementations§
source§impl Clone for CampaignToForecast
impl Clone for CampaignToForecast
source§fn clone(&self) -> CampaignToForecast
fn clone(&self) -> CampaignToForecast
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignToForecast
impl Debug for CampaignToForecast
source§impl Default for CampaignToForecast
impl Default for CampaignToForecast
source§impl Message for CampaignToForecast
impl Message for CampaignToForecast
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 CampaignToForecast
impl PartialEq for CampaignToForecast
source§fn eq(&self, other: &CampaignToForecast) -> bool
fn eq(&self, other: &CampaignToForecast) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CampaignToForecast
Auto Trait Implementations§
impl Freeze for CampaignToForecast
impl RefUnwindSafe for CampaignToForecast
impl Send for CampaignToForecast
impl Sync for CampaignToForecast
impl Unpin for CampaignToForecast
impl UnwindSafe for CampaignToForecast
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