Struct google_api_proto::google::ads::searchads360::v0::resources::campaign::ShoppingSetting
source · pub struct ShoppingSetting {
pub merchant_id: Option<i64>,
pub sales_country: Option<String>,
pub feed_label: String,
pub campaign_priority: Option<i32>,
pub enable_local: Option<bool>,
pub use_vehicle_inventory: bool,
}
Expand description
The setting for Shopping campaigns. Defines the universe of products that can be advertised by the campaign, and how this campaign interacts with other Shopping campaigns.
Fields§
§merchant_id: Option<i64>
Immutable. ID of the Merchant Center account. This field is required for create operations. This field is immutable for Shopping campaigns.
sales_country: Option<String>
Sales country of products to include in the campaign.
feed_label: String
Feed label of products to include in the campaign. Only one of feed_label or sales_country can be set. If used instead of sales_country, the feed_label field accepts country codes in the same format for example: ‘XX’. Otherwise can be any string used for feed label in Google Merchant Center.
campaign_priority: Option<i32>
Priority of the campaign. Campaigns with numerically higher priorities take precedence over those with lower priorities. This field is required for Shopping campaigns, with values between 0 and 2, inclusive. This field is optional for Smart Shopping campaigns, but must be equal to 3 if set.
enable_local: Option<bool>
Whether to include local products.
use_vehicle_inventory: bool
Immutable. Whether to target Vehicle Listing inventory.
Implementations§
source§impl ShoppingSetting
impl ShoppingSetting
sourcepub fn merchant_id(&self) -> i64
pub fn merchant_id(&self) -> i64
Returns the value of merchant_id
, or the default value if merchant_id
is unset.
sourcepub fn sales_country(&self) -> &str
pub fn sales_country(&self) -> &str
Returns the value of sales_country
, or the default value if sales_country
is unset.
sourcepub fn campaign_priority(&self) -> i32
pub fn campaign_priority(&self) -> i32
Returns the value of campaign_priority
, or the default value if campaign_priority
is unset.
sourcepub fn enable_local(&self) -> bool
pub fn enable_local(&self) -> bool
Returns the value of enable_local
, or the default value if enable_local
is unset.
Trait Implementations§
source§impl Clone for ShoppingSetting
impl Clone for ShoppingSetting
source§fn clone(&self) -> ShoppingSetting
fn clone(&self) -> ShoppingSetting
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ShoppingSetting
impl Debug for ShoppingSetting
source§impl Default for ShoppingSetting
impl Default for ShoppingSetting
source§impl Message for ShoppingSetting
impl Message for ShoppingSetting
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 ShoppingSetting
impl PartialEq for ShoppingSetting
source§fn eq(&self, other: &ShoppingSetting) -> bool
fn eq(&self, other: &ShoppingSetting) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ShoppingSetting
Auto Trait Implementations§
impl Freeze for ShoppingSetting
impl RefUnwindSafe for ShoppingSetting
impl Send for ShoppingSetting
impl Sync for ShoppingSetting
impl Unpin for ShoppingSetting
impl UnwindSafe for ShoppingSetting
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