pub struct TargetingTypeMethods<'a, C>where
C: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on targetingType resources.
It is not used directly, but through the DisplayVideo
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_displayvideo1 as displayvideo1;
use displayvideo1::{DisplayVideo, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http1()
.build()
);
let mut hub = DisplayVideo::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `targeting_options_get(...)`, `targeting_options_list(...)` and `targeting_options_search(...)`
// to build up your call.
let rb = hub.targeting_types();
Implementations§
Source§impl<'a, C> TargetingTypeMethods<'a, C>
impl<'a, C> TargetingTypeMethods<'a, C>
Sourcepub fn targeting_options_get(
&self,
targeting_type: &str,
targeting_option_id: &str,
) -> TargetingTypeTargetingOptionGetCall<'a, C>
pub fn targeting_options_get( &self, targeting_type: &str, targeting_option_id: &str, ) -> TargetingTypeTargetingOptionGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a single targeting option.
§Arguments
targetingType
- Required. The type of targeting option to retrieve. Accepted values are: *TARGETING_TYPE_APP_CATEGORY
*TARGETING_TYPE_AGE_RANGE
*TARGETING_TYPE_GENDER
*TARGETING_TYPE_VIDEO_PLAYER_SIZE
*TARGETING_TYPE_USER_REWARDED_CONTENT
*TARGETING_TYPE_PARENTAL_STATUS
*TARGETING_TYPE_CONTENT_INSTREAM_POSITION
*TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION
*TARGETING_TYPE_DEVICE_TYPE
*TARGETING_TYPE_BROWSER
*TARGETING_TYPE_HOUSEHOLD_INCOME
*TARGETING_TYPE_ON_SCREEN_POSITION
*TARGETING_TYPE_CARRIER_AND_ISP
*TARGETING_TYPE_OPERATING_SYSTEM
*TARGETING_TYPE_DEVICE_MAKE_MODEL
*TARGETING_TYPE_ENVIRONMENT
*TARGETING_TYPE_CATEGORY
*TARGETING_TYPE_VIEWABILITY
*TARGETING_TYPE_AUTHORIZED_SELLER_STATUS
*TARGETING_TYPE_LANGUAGE
*TARGETING_TYPE_GEO_REGION
*TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION
*TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION
*TARGETING_TYPE_EXCHANGE
*TARGETING_TYPE_SUB_EXCHANGE
*TARGETING_TYPE_NATIVE_CONTENT_POSITION
*TARGETING_TYPE_OMID
targetingOptionId
- Required. The ID of the of targeting option to retrieve.
Sourcepub fn targeting_options_list(
&self,
targeting_type: &str,
) -> TargetingTypeTargetingOptionListCall<'a, C>
pub fn targeting_options_list( &self, targeting_type: &str, ) -> TargetingTypeTargetingOptionListCall<'a, C>
Create a builder to help you perform the following task:
Lists targeting options of a given type.
§Arguments
targetingType
- Required. The type of targeting option to be listed. Accepted values are: *TARGETING_TYPE_APP_CATEGORY
*TARGETING_TYPE_AGE_RANGE
*TARGETING_TYPE_GENDER
*TARGETING_TYPE_VIDEO_PLAYER_SIZE
*TARGETING_TYPE_USER_REWARDED_CONTENT
*TARGETING_TYPE_PARENTAL_STATUS
*TARGETING_TYPE_CONTENT_INSTREAM_POSITION
*TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION
*TARGETING_TYPE_DEVICE_TYPE
*TARGETING_TYPE_BROWSER
*TARGETING_TYPE_HOUSEHOLD_INCOME
*TARGETING_TYPE_ON_SCREEN_POSITION
*TARGETING_TYPE_CARRIER_AND_ISP
*TARGETING_TYPE_OPERATING_SYSTEM
*TARGETING_TYPE_DEVICE_MAKE_MODEL
*TARGETING_TYPE_ENVIRONMENT
*TARGETING_TYPE_CATEGORY
*TARGETING_TYPE_VIEWABILITY
*TARGETING_TYPE_AUTHORIZED_SELLER_STATUS
*TARGETING_TYPE_LANGUAGE
*TARGETING_TYPE_GEO_REGION
*TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION
*TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION
*TARGETING_TYPE_EXCHANGE
*TARGETING_TYPE_SUB_EXCHANGE
*TARGETING_TYPE_NATIVE_CONTENT_POSITION
*TARGETING_TYPE_OMID
Sourcepub fn targeting_options_search(
&self,
request: SearchTargetingOptionsRequest,
targeting_type: &str,
) -> TargetingTypeTargetingOptionSearchCall<'a, C>
pub fn targeting_options_search( &self, request: SearchTargetingOptionsRequest, targeting_type: &str, ) -> TargetingTypeTargetingOptionSearchCall<'a, C>
Create a builder to help you perform the following task:
Searches for targeting options of a given type based on the given search terms.
§Arguments
request
- No description provided.targetingType
- Required. The type of targeting options to retrieve. Accepted values are: *TARGETING_TYPE_GEO_REGION
*TARGETING_TYPE_POI
*TARGETING_TYPE_BUSINESS_CHAIN
Trait Implementations§
impl<'a, C> MethodsBuilder for TargetingTypeMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for TargetingTypeMethods<'a, C>
impl<'a, C> !RefUnwindSafe for TargetingTypeMethods<'a, C>
impl<'a, C> Send for TargetingTypeMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for TargetingTypeMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for TargetingTypeMethods<'a, C>
impl<'a, C> !UnwindSafe for TargetingTypeMethods<'a, C>
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more