pub struct GenerateRecommendationsRequest {Show 18 fields
pub customer_id: String,
pub recommendation_types: Vec<i32>,
pub advertising_channel_type: i32,
pub campaign_sitelink_count: i32,
pub conversion_tracking_status: i32,
pub bidding_info: Option<BiddingInfo>,
pub ad_group_info: Vec<AdGroupInfo>,
pub seed_info: Option<SeedInfo>,
pub budget_info: Option<BudgetInfo>,
pub campaign_image_asset_count: i32,
pub campaign_call_asset_count: i32,
pub country_codes: Vec<String>,
pub language_codes: Vec<String>,
pub positive_locations_ids: Vec<i64>,
pub negative_locations_ids: Vec<i64>,
pub asset_group_info: Vec<AssetGroupInfo>,
pub target_partner_search_network: bool,
pub target_content_network: bool,
}
Expand description
Request message for [RecommendationService.GenerateRecommendations][google.ads.googleads.v18.services.RecommendationService.GenerateRecommendations].
Fields§
§customer_id: String
Required. The ID of the customer generating recommendations.
recommendation_types: Vec<i32>
Required. List of eligible recommendation_types to generate. If the uploaded criteria isn’t sufficient to make a recommendation, or the campaign is already in the recommended state, no recommendation will be returned for that type. Generally, a recommendation is returned if all required fields for that recommendation_type are uploaded, but there are cases where this is still not sufficient.
The following recommendation_types are supported for recommendation generation: CAMPAIGN_BUDGET, KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS, SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
advertising_channel_type: i32
Required. Advertising channel type of the campaign. The following advertising_channel_types are supported for recommendation generation: PERFORMANCE_MAX and SEARCH
campaign_sitelink_count: i32
Optional. Number of sitelinks on the campaign. This field is necessary for the following recommendation_types: SITELINK_ASSET
conversion_tracking_status: i32
Optional. Current conversion tracking status. This field is necessary for the following recommendation_types: MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
bidding_info: Option<BiddingInfo>
Optional. Current bidding information of the campaign. This field is necessary for the following recommendation_types: CAMPAIGN_BUDGET, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
ad_group_info: Vec<AdGroupInfo>
Optional. Current AdGroup Information. Supports information from a single AdGroup. This field is optional for the following recommendation_types: KEYWORD This field is required for the following recommendation_types: CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
seed_info: Option<SeedInfo>
Optional. Seed information for Keywords. This field is necessary for the following recommendation_types: KEYWORD
budget_info: Option<BudgetInfo>
Optional. Current budget information. This field is optional for the following recommendation_types: CAMPAIGN_BUDGET
campaign_image_asset_count: i32
Optional. Current campaign image asset count. This field is optional for the following recommendation_types: CAMPAIGN_BUDGET
campaign_call_asset_count: i32
Optional. Current campaign call asset count. This field is optional for the following recommendation_types: CAMPAIGN_BUDGET
country_codes: Vec<String>
Optional. Current campaign country codes. This field is required for the following recommendation_types: CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
language_codes: Vec<String>
Optional. Current campaign language codes. This field is required for the following recommendation_types: CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
positive_locations_ids: Vec<i64>
Optional. Current campaign positive location ids. One of this field OR negative_location_ids is required for the following recommendation_types: CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
negative_locations_ids: Vec<i64>
Optional. Current campaign negative location ids. One of this field OR positive_location_ids is required for the following recommendation_types: CAMPAIGN_BUDGET if AdvertisingChannelType is SEARCH
asset_group_info: Vec<AssetGroupInfo>
Optional. Current AssetGroup Information. This field is required for the following recommendation_types: CAMPAIGN_BUDGET
target_partner_search_network: bool
Optional. If true, the campaign is opted into serving ads on the Google Partner Network. This field is optional for the following recommendation_types: CAMPAIGN_BUDGET
target_content_network: bool
Optional. If true, the campaign is opted into serving ads on specified placements in the Google Display Network. This field is optional for the following recommendation_types: CAMPAIGN_BUDGET
Implementations§
Source§impl GenerateRecommendationsRequest
impl GenerateRecommendationsRequest
Sourcepub fn recommendation_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<RecommendationType>>
pub fn recommendation_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<RecommendationType>>
Returns an iterator which yields the valid enum values contained in recommendation_types
.
Sourcepub fn push_recommendation_types(&mut self, value: RecommendationType)
pub fn push_recommendation_types(&mut self, value: RecommendationType)
Appends the provided enum value to recommendation_types
.
Sourcepub fn advertising_channel_type(&self) -> AdvertisingChannelType
pub fn advertising_channel_type(&self) -> AdvertisingChannelType
Returns the enum value of advertising_channel_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_advertising_channel_type(&mut self, value: AdvertisingChannelType)
pub fn set_advertising_channel_type(&mut self, value: AdvertisingChannelType)
Sets advertising_channel_type
to the provided enum value.
Sourcepub fn conversion_tracking_status(&self) -> ConversionTrackingStatus
pub fn conversion_tracking_status(&self) -> ConversionTrackingStatus
Returns the enum value of conversion_tracking_status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_conversion_tracking_status(
&mut self,
value: ConversionTrackingStatus,
)
pub fn set_conversion_tracking_status( &mut self, value: ConversionTrackingStatus, )
Sets conversion_tracking_status
to the provided enum value.
Trait Implementations§
Source§impl Clone for GenerateRecommendationsRequest
impl Clone for GenerateRecommendationsRequest
Source§fn clone(&self) -> GenerateRecommendationsRequest
fn clone(&self) -> GenerateRecommendationsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Message for GenerateRecommendationsRequest
impl Message for GenerateRecommendationsRequest
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 GenerateRecommendationsRequest
impl PartialEq for GenerateRecommendationsRequest
Source§fn eq(&self, other: &GenerateRecommendationsRequest) -> bool
fn eq(&self, other: &GenerateRecommendationsRequest) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GenerateRecommendationsRequest
Auto Trait Implementations§
impl Freeze for GenerateRecommendationsRequest
impl RefUnwindSafe for GenerateRecommendationsRequest
impl Send for GenerateRecommendationsRequest
impl Sync for GenerateRecommendationsRequest
impl Unpin for GenerateRecommendationsRequest
impl UnwindSafe for GenerateRecommendationsRequest
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