Struct google_api_proto::google::ads::searchads360::v0::resources::AdGroup
source · pub struct AdGroup {Show 16 fields
pub resource_name: String,
pub id: Option<i64>,
pub name: Option<String>,
pub status: i32,
pub type: i32,
pub ad_rotation_mode: i32,
pub cpc_bid_micros: Option<i64>,
pub creation_time: String,
pub engine_status: Option<i32>,
pub targeting_setting: Option<TargetingSetting>,
pub labels: Vec<String>,
pub engine_id: String,
pub start_date: String,
pub end_date: String,
pub language_code: String,
pub last_modified_time: String,
}
Expand description
An ad group.
Fields§
§resource_name: String
Immutable. The resource name of the ad group. Ad group resource names have the form:
customers/{customer_id}/adGroups/{ad_group_id}
id: Option<i64>
Output only. The ID of the ad group.
name: Option<String>
The name of the ad group.
This field is required and should not be empty when creating new ad groups.
It must contain fewer than 255 UTF-8 full-width characters.
It must not contain any null (code point 0x0), NL line feed (code point 0xA) or carriage return (code point 0xD) characters.
status: i32
The status of the ad group.
type: i32
Immutable. The type of the ad group.
ad_rotation_mode: i32
The ad rotation mode of the ad group.
cpc_bid_micros: Option<i64>
The maximum CPC (cost-per-click) bid.
creation_time: String
Output only. The timestamp when this ad_group was created. The timestamp is in the customer’s time zone and in “yyyy-MM-dd HH:mm:ss” format.
engine_status: Option<i32>
Output only. The Engine Status for ad group.
targeting_setting: Option<TargetingSetting>
Setting for targeting related features.
labels: Vec<String>
Output only. The resource names of labels attached to this ad group.
engine_id: String
Output only. ID of the ad group in the external engine account. This field is for non-Google Ads account only, for example, Yahoo Japan, Microsoft, Baidu etc. For Google Ads entity, use “ad_group.id” instead.
start_date: String
Output only. Date when this ad group starts serving ads. By default, the ad group starts now or the ad group’s start date, whichever is later. If this field is set, then the ad group starts at the beginning of the specified date in the customer’s time zone. This field is only available for Microsoft Advertising and Facebook gateway accounts.
Format: YYYY-MM-DD Example: 2019-03-14
end_date: String
Output only. Date when the ad group ends serving ads. By default, the ad group ends on the ad group’s end date. If this field is set, then the ad group ends at the end of the specified date in the customer’s time zone. This field is only available for Microsoft Advertising and Facebook gateway accounts.
Format: YYYY-MM-DD Example: 2019-03-14
language_code: String
Output only. The language of the ads and keywords in an ad group. This field is only available for Microsoft Advertising accounts. More details: https://docs.microsoft.com/en-us/advertising/guides/ad-languages?view=bingads-13#adlanguage
last_modified_time: String
Output only. The datetime when this ad group was last modified. The datetime is in the customer’s time zone and in “yyyy-MM-dd HH:mm:ss.ssssss” format.
Implementations§
source§impl AdGroup
impl AdGroup
sourcepub fn status(&self) -> AdGroupStatus
pub fn status(&self) -> AdGroupStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: AdGroupStatus)
pub fn set_status(&mut self, value: AdGroupStatus)
Sets status
to the provided enum value.
sourcepub fn type(&self) -> AdGroupType
pub fn type(&self) -> AdGroupType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: AdGroupType)
pub fn set_type(&mut self, value: AdGroupType)
Sets type
to the provided enum value.
sourcepub fn ad_rotation_mode(&self) -> AdGroupAdRotationMode
pub fn ad_rotation_mode(&self) -> AdGroupAdRotationMode
Returns the enum value of ad_rotation_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_ad_rotation_mode(&mut self, value: AdGroupAdRotationMode)
pub fn set_ad_rotation_mode(&mut self, value: AdGroupAdRotationMode)
Sets ad_rotation_mode
to the provided enum value.
sourcepub fn cpc_bid_micros(&self) -> i64
pub fn cpc_bid_micros(&self) -> i64
Returns the value of cpc_bid_micros
, or the default value if cpc_bid_micros
is unset.
sourcepub fn engine_status(&self) -> AdGroupEngineStatus
pub fn engine_status(&self) -> AdGroupEngineStatus
Returns the enum value of engine_status
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_engine_status(&mut self, value: AdGroupEngineStatus)
pub fn set_engine_status(&mut self, value: AdGroupEngineStatus)
Sets engine_status
to the provided enum value.
Trait Implementations§
source§impl Message for AdGroup
impl Message for AdGroup
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 AdGroup
impl PartialEq for AdGroup
impl StructuralPartialEq for AdGroup
Auto Trait Implementations§
impl Freeze for AdGroup
impl RefUnwindSafe for AdGroup
impl Send for AdGroup
impl Sync for AdGroup
impl Unpin for AdGroup
impl UnwindSafe for AdGroup
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