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: 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: 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.
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for CampaignToForecast
impl PartialEq for CampaignToForecast
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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