Struct google_api_proto::google::ads::googleads::v16::services::GenerateReachForecastRequest
source · pub struct GenerateReachForecastRequest {
pub customer_id: String,
pub currency_code: Option<String>,
pub campaign_duration: Option<CampaignDuration>,
pub cookie_frequency_cap: Option<i32>,
pub cookie_frequency_cap_setting: Option<FrequencyCap>,
pub min_effective_frequency: Option<i32>,
pub effective_frequency_limit: Option<EffectiveFrequencyLimit>,
pub targeting: Option<Targeting>,
pub planned_products: Vec<PlannedProduct>,
pub forecast_metric_options: Option<ForecastMetricOptions>,
pub customer_reach_group: Option<String>,
}
Expand description
Request message for [ReachPlanService.GenerateReachForecast][google.ads.googleads.v16.services.ReachPlanService.GenerateReachForecast].
Fields§
§customer_id: String
Required. The ID of the customer.
currency_code: Option<String>
The currency code. Three-character ISO 4217 currency code.
campaign_duration: Option<CampaignDuration>
Required. Campaign duration.
Chosen cookie frequency cap to be applied to each planned product. This is equivalent to the frequency cap exposed in Google Ads when creating a campaign, it represents the maximum number of times an ad can be shown to the same user. If not specified, no cap is applied.
This field is deprecated in v4 and will eventually be removed. Use cookie_frequency_cap_setting instead.
Chosen cookie frequency cap to be applied to each planned product. This is equivalent to the frequency cap exposed in Google Ads when creating a campaign, it represents the maximum number of times an ad can be shown to the same user during a specified time interval. If not specified, a default of 0 (no cap) is applied.
This field replaces the deprecated cookie_frequency_cap field.
min_effective_frequency: Option<i32>
Chosen minimum effective frequency (the number of times a person was exposed to the ad) for the reported reach metrics [1-10]. This won’t affect the targeting, but just the reporting. If not specified, a default of 1 is applied.
This field cannot be combined with the effective_frequency_limit field.
effective_frequency_limit: Option<EffectiveFrequencyLimit>
The highest minimum effective frequency (the number of times a person was exposed to the ad) value [1-10] to include in Forecast.effective_frequency_breakdowns. If not specified, Forecast.effective_frequency_breakdowns will not be provided.
The effective frequency value provided here will also be used as the minimum effective frequency for the reported reach metrics.
This field cannot be combined with the min_effective_frequency field.
targeting: Option<Targeting>
The targeting to be applied to all products selected in the product mix.
This is planned targeting: execution details might vary based on the advertising product, consult an implementation specialist.
See specific metrics for details on how targeting affects them.
planned_products: Vec<PlannedProduct>
Required. The products to be forecast. The max number of allowed planned products is 15.
forecast_metric_options: Option<ForecastMetricOptions>
Controls the forecast metrics returned in the response.
customer_reach_group: Option<String>
The name of the customer being planned for. This is a user-defined value.
Implementations§
source§impl GenerateReachForecastRequest
impl GenerateReachForecastRequest
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.
Returns the value of cookie_frequency_cap
, or the default value if cookie_frequency_cap
is unset.
sourcepub fn min_effective_frequency(&self) -> i32
pub fn min_effective_frequency(&self) -> i32
Returns the value of min_effective_frequency
, or the default value if min_effective_frequency
is unset.
sourcepub fn customer_reach_group(&self) -> &str
pub fn customer_reach_group(&self) -> &str
Returns the value of customer_reach_group
, or the default value if customer_reach_group
is unset.
Trait Implementations§
source§impl Clone for GenerateReachForecastRequest
impl Clone for GenerateReachForecastRequest
source§fn clone(&self) -> GenerateReachForecastRequest
fn clone(&self) -> GenerateReachForecastRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerateReachForecastRequest
impl Debug for GenerateReachForecastRequest
source§impl Message for GenerateReachForecastRequest
impl Message for GenerateReachForecastRequest
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 GenerateReachForecastRequest
impl PartialEq for GenerateReachForecastRequest
source§fn eq(&self, other: &GenerateReachForecastRequest) -> bool
fn eq(&self, other: &GenerateReachForecastRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GenerateReachForecastRequest
Auto Trait Implementations§
impl Freeze for GenerateReachForecastRequest
impl RefUnwindSafe for GenerateReachForecastRequest
impl Send for GenerateReachForecastRequest
impl Sync for GenerateReachForecastRequest
impl Unpin for GenerateReachForecastRequest
impl UnwindSafe for GenerateReachForecastRequest
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