Struct google_api_proto::google::ads::googleads::v17::services::GenerateKeywordForecastMetricsRequest
source · pub struct GenerateKeywordForecastMetricsRequest {
pub customer_id: String,
pub currency_code: Option<String>,
pub forecast_period: Option<DateRange>,
pub campaign: Option<CampaignToForecast>,
}
Expand description
Request message for [KeywordPlanIdeaService.GenerateKeywordForecastMetrics].
Fields§
§customer_id: String
The ID of the customer.
currency_code: Option<String>
The currency used for exchange rate conversion. By default, the account currency of the customer is used. Set this field only if the currency is different from the account currency. The list of valid currency codes can be found at https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
forecast_period: Option<DateRange>
The date range for the forecast. The start date must be in the future and end date must be within 1 year from today. The reference timezone used is the one of the Google Ads account belonging to the customer. If not set, a default date range from next Sunday to the following Saturday will be used.
campaign: Option<CampaignToForecast>
Required. The campaign used in the forecast.
Implementations§
source§impl GenerateKeywordForecastMetricsRequest
impl GenerateKeywordForecastMetricsRequest
sourcepub fn currency_code(&self) -> &str
pub fn currency_code(&self) -> &str
Returns the value of currency_code
, or the default value if currency_code
is unset.
Trait Implementations§
source§impl Clone for GenerateKeywordForecastMetricsRequest
impl Clone for GenerateKeywordForecastMetricsRequest
source§fn clone(&self) -> GenerateKeywordForecastMetricsRequest
fn clone(&self) -> GenerateKeywordForecastMetricsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for GenerateKeywordForecastMetricsRequest
impl Message for GenerateKeywordForecastMetricsRequest
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 GenerateKeywordForecastMetricsRequest
impl PartialEq for GenerateKeywordForecastMetricsRequest
source§fn eq(&self, other: &GenerateKeywordForecastMetricsRequest) -> bool
fn eq(&self, other: &GenerateKeywordForecastMetricsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GenerateKeywordForecastMetricsRequest
Auto Trait Implementations§
impl Freeze for GenerateKeywordForecastMetricsRequest
impl RefUnwindSafe for GenerateKeywordForecastMetricsRequest
impl Send for GenerateKeywordForecastMetricsRequest
impl Sync for GenerateKeywordForecastMetricsRequest
impl Unpin for GenerateKeywordForecastMetricsRequest
impl UnwindSafe for GenerateKeywordForecastMetricsRequest
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