Struct gapi_grpc::google::ads::googleads::v6::resources::Campaign [−][src]
A campaign.
Fields
resource_name: String
Immutable. The resource name of the campaign. Campaign resource names have the form:
customers/{customer_id}/campaigns/{campaign_id}
id: i64
Output only. The ID of the campaign.
name: String
The name of the campaign.
This field is required and should not be empty when creating new campaigns.
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 campaign.
When a new campaign is added, the status defaults to ENABLED.
serving_status: i32
Output only. The ad serving status of the campaign.
ad_serving_optimization_status: i32
The ad serving optimization status of the campaign.
advertising_channel_type: i32
Immutable. The primary serving target for ads within the campaign.
The targeting options can be refined in network_settings
.
This field is required and should not be empty when creating new campaigns.
Can be set only when creating campaigns. After the campaign is created, the field can not be changed.
advertising_channel_sub_type: i32
Immutable. Optional refinement to advertising_channel_type
.
Must be a valid sub-type of the parent channel type.
Can be set only when creating campaigns. After campaign is created, the field can not be changed.
tracking_url_template: String
The URL template for constructing a tracking URL.
url_custom_parameters: Vec<CustomParameter>
The list of mappings used to substitute custom parameter tags in a
tracking_url_template
, final_urls
, or mobile_final_urls
.
real_time_bidding_setting: Option<RealTimeBiddingSetting>
Settings for Real-Time Bidding, a feature only available for campaigns targeting the Ad Exchange network.
network_settings: Option<NetworkSettings>
The network settings for the campaign.
hotel_setting: Option<HotelSettingInfo>
Immutable. The hotel setting for the campaign.
dynamic_search_ads_setting: Option<DynamicSearchAdsSetting>
The setting for controlling Dynamic Search Ads (DSA).
shopping_setting: Option<ShoppingSetting>
The setting for controlling Shopping campaigns.
targeting_setting: Option<TargetingSetting>
Setting for targeting related features.
geo_target_type_setting: Option<GeoTargetTypeSetting>
The setting for ads geotargeting.
local_campaign_setting: Option<LocalCampaignSetting>
The setting for local campaign.
app_campaign_setting: Option<AppCampaignSetting>
The setting related to App Campaign.
labels: Vec<String>
Output only. The resource names of labels attached to this campaign.
experiment_type: i32
Output only. The type of campaign: normal, draft, or experiment.
base_campaign: String
Output only. The resource name of the base campaign of a draft or experiment campaign.
For base campaigns, this is equal to resource_name
.
This field is read-only.
campaign_budget: String
The budget of the campaign.
bidding_strategy_type: i32
Output only. The type of bidding strategy.
A bidding strategy can be created by setting either the bidding scheme to
create a standard bidding strategy or the bidding_strategy
field to
create a portfolio bidding strategy.
This field is read-only.
start_date: String
The date when campaign started.
end_date: String
The last day of the campaign.
final_url_suffix: String
Suffix used to append query parameters to landing pages that are served with parallel tracking.
frequency_caps: Vec<FrequencyCapEntry>
A list that limits how often each user will see this campaign’s ads.
video_brand_safety_suitability: i32
Output only. 3-Tier Brand Safety setting for the campaign.
vanity_pharma: Option<VanityPharma>
Describes how unbranded pharma ads will be displayed.
selective_optimization: Option<SelectiveOptimization>
Selective optimization setting for this campaign, which includes a set of conversion actions to optimize this campaign towards.
optimization_goal_setting: Option<OptimizationGoalSetting>
Optimization goal setting for this campaign, which includes a set of optimization goal types.
tracking_setting: Option<TrackingSetting>
Output only. Campaign-level settings for tracking information.
payment_mode: i32
Payment mode for the campaign.
optimization_score: f64
Output only. Optimization score of the campaign.
Optimization score is an estimate of how well a campaign is set to perform. It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the campaign is performing at full potential. This field is null for unscored campaigns.
See “About optimization score” at https://support.google.com/google-ads/answer/9061546.
This field is read-only.
campaign_bidding_strategy: Option<CampaignBiddingStrategy>
The bidding strategy for the campaign.
Must be either portfolio (created via BiddingStrategy service) or standard, that is embedded into the campaign.
Implementations
impl Campaign
[src]
pub fn status(&self) -> CampaignStatus
[src]
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
pub fn set_status(&mut self, value: CampaignStatus)
[src]
Sets status
to the provided enum value.
pub fn ad_serving_optimization_status(&self) -> AdServingOptimizationStatus
[src]
Returns the enum value of ad_serving_optimization_status
, or the default if the field is set to an invalid enum value.
pub fn set_ad_serving_optimization_status(
&mut self,
value: AdServingOptimizationStatus
)
[src]
&mut self,
value: AdServingOptimizationStatus
)
Sets ad_serving_optimization_status
to the provided enum value.
pub fn advertising_channel_type(&self) -> AdvertisingChannelType
[src]
Returns the enum value of advertising_channel_type
, or the default if the field is set to an invalid enum value.
pub fn set_advertising_channel_type(&mut self, value: AdvertisingChannelType)
[src]
Sets advertising_channel_type
to the provided enum value.
pub fn advertising_channel_sub_type(&self) -> AdvertisingChannelSubType
[src]
Returns the enum value of advertising_channel_sub_type
, or the default if the field is set to an invalid enum value.
pub fn set_advertising_channel_sub_type(
&mut self,
value: AdvertisingChannelSubType
)
[src]
&mut self,
value: AdvertisingChannelSubType
)
Sets advertising_channel_sub_type
to the provided enum value.
pub fn experiment_type(&self) -> CampaignExperimentType
[src]
Returns the enum value of experiment_type
, or the default if the field is set to an invalid enum value.
pub fn set_experiment_type(&mut self, value: CampaignExperimentType)
[src]
Sets experiment_type
to the provided enum value.
pub fn serving_status(&self) -> CampaignServingStatus
[src]
Returns the enum value of serving_status
, or the default if the field is set to an invalid enum value.
pub fn set_serving_status(&mut self, value: CampaignServingStatus)
[src]
Sets serving_status
to the provided enum value.
pub fn bidding_strategy_type(&self) -> BiddingStrategyType
[src]
Returns the enum value of bidding_strategy_type
, or the default if the field is set to an invalid enum value.
pub fn set_bidding_strategy_type(&mut self, value: BiddingStrategyType)
[src]
Sets bidding_strategy_type
to the provided enum value.
pub fn video_brand_safety_suitability(&self) -> BrandSafetySuitability
[src]
Returns the enum value of video_brand_safety_suitability
, or the default if the field is set to an invalid enum value.
pub fn set_video_brand_safety_suitability(
&mut self,
value: BrandSafetySuitability
)
[src]
&mut self,
value: BrandSafetySuitability
)
Sets video_brand_safety_suitability
to the provided enum value.
pub fn payment_mode(&self) -> PaymentMode
[src]
Returns the enum value of payment_mode
, or the default if the field is set to an invalid enum value.
pub fn set_payment_mode(&mut self, value: PaymentMode)
[src]
Sets payment_mode
to the provided enum value.
Trait Implementations
impl Clone for Campaign
[src]
impl Debug for Campaign
[src]
impl Default for Campaign
[src]
impl Message for Campaign
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<Campaign> for Campaign
[src]
impl StructuralPartialEq for Campaign
[src]
Auto Trait Implementations
impl RefUnwindSafe for Campaign
impl Send for Campaign
impl Sync for Campaign
impl Unpin for Campaign
impl UnwindSafe for Campaign
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,