pub struct AdUnit {
pub content_ads_settings: Option<ContentAdsSettings>,
pub display_name: Option<String>,
pub name: Option<String>,
pub reporting_dimension_id: Option<String>,
pub state: Option<String>,
}Expand description
Representation of an ad unit. An ad unit represents a saved ad unit with a specific set of ad settings that have been customized within an account.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- adclients adunits create accounts (request|response)
- adclients adunits get accounts (response)
- adclients adunits patch accounts (request|response)
Fields§
§content_ads_settings: Option<ContentAdsSettings>Required. Settings specific to content ads (AFC).
display_name: Option<String>Required. Display name of the ad unit, as provided when the ad unit was created.
name: Option<String>Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}
reporting_dimension_id: Option<String>Output only. Unique ID of the ad unit as used in the AD_UNIT_ID reporting dimension.
state: Option<String>Required. State of the ad unit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AdUnit
impl<'de> Deserialize<'de> for AdUnit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl RequestValue for AdUnit
impl ResponseResult for AdUnit
Auto Trait Implementations§
impl Freeze for AdUnit
impl RefUnwindSafe for AdUnit
impl Send for AdUnit
impl Sync for AdUnit
impl Unpin for AdUnit
impl UnwindSafe for AdUnit
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
Mutably borrows from an owned value. Read more