Struct google_adsense1d4::AdunitMethods
[−]
[src]
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]
fn customchannels_list(
&self,
ad_client_id: &str,
ad_unit_id: &str
) -> AdunitCustomchannelListCall<'a, C, A>
[src]
&self,
ad_client_id: &str,
ad_unit_id: &str
) -> AdunitCustomchannelListCall<'a, C, A>
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.
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.
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.
fn get_ad_code(
&self,
ad_client_id: &str,
ad_unit_id: &str
) -> AdunitGetAdCodeCall<'a, C, A>
[src]
&self,
ad_client_id: &str,
ad_unit_id: &str
) -> AdunitGetAdCodeCall<'a, C, A>
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.