[][src]Struct google_adsense1d4::AdunitMethods

pub struct AdunitMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

A builder providing access to all methods supported on adunit resources. It is not used directly, but through the AdSense hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_adsense1d4 as adsense1d4;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use adsense1d4::AdSense;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = AdSense::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `customchannels_list(...)`, `get(...)`, `get_ad_code(...)` and `list(...)`
// to build up your call.
let rb = hub.adunits();

Methods

impl<'a, C, A> AdunitMethods<'a, C, A>[src]

pub fn customchannels_list(
    &self,
    ad_client_id: &str,
    ad_unit_id: &str
) -> AdunitCustomchannelListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

List all custom channels which the specified ad unit belongs to.

Arguments

  • adClientId - Ad client which contains the ad unit.
  • adUnitId - Ad unit for which to list custom channels.

pub fn get(
    &self,
    ad_client_id: &str,
    ad_unit_id: &str
) -> AdunitGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Gets the specified ad unit in the specified ad client.

Arguments

  • adClientId - Ad client for which to get the ad unit.
  • adUnitId - Ad unit to retrieve.

pub fn list(&self, ad_client_id: &str) -> AdunitListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

List all ad units in the specified ad client for this AdSense account.

Arguments

  • adClientId - Ad client for which to list ad units.

pub fn get_ad_code(
    &self,
    ad_client_id: &str,
    ad_unit_id: &str
) -> AdunitGetAdCodeCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Get ad code for the specified ad unit.

Arguments

  • adClientId - Ad client with contains the ad unit.
  • adUnitId - Ad unit to get the code for.

Trait Implementations

impl<'a, C, A> MethodsBuilder for AdunitMethods<'a, C, A>[src]

Auto Trait Implementations

impl<'a, C, A> !Send for AdunitMethods<'a, C, A>

impl<'a, C, A> Unpin for AdunitMethods<'a, C, A>

impl<'a, C, A> !Sync for AdunitMethods<'a, C, A>

impl<'a, C, A> !UnwindSafe for AdunitMethods<'a, C, A>

impl<'a, C, A> !RefUnwindSafe for AdunitMethods<'a, C, A>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.