pub struct GenerateReachForecastRequest {
pub customer_id: String,
pub currency_code: String,
pub campaign_duration: Option<CampaignDuration>,
pub cookie_frequency_cap: i32,
pub cookie_frequency_cap_setting: Option<FrequencyCap>,
pub min_effective_frequency: 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: String,
}
Expand description
Request message for [ReachPlanService.GenerateReachForecast][google.ads.googleads.v18.services.ReachPlanService.GenerateReachForecast].
Fields§
§customer_id: String
Required. The ID of the customer.
currency_code: 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: 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: String
The name of the customer being planned for. This is a user-defined value.
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<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 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
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