Struct google_admob1::api::AccountMethods[][src]

pub struct AccountMethods<'a> { /* fields omitted */ }

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_admob1 as admob1;
 
use std::default::Default;
use oauth2;
use admob1::AdMob;
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
        secret,
        yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = AdMob::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `get(...)`, `list(...)`, `mediation_report_generate(...)` and `network_report_generate(...)`
// to build up your call.
let rb = hub.accounts();

Implementations

impl<'a> AccountMethods<'a>[src]

pub fn mediation_report_generate(
    &self,
    request: GenerateMediationReportRequest,
    parent: &str
) -> AccountMediationReportGenerateCall<'a>
[src]

Create a builder to help you perform the following task:

Generates an AdMob Mediation report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.

Arguments

  • request - No description provided.
  • parent - Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654

pub fn network_report_generate(
    &self,
    request: GenerateNetworkReportRequest,
    parent: &str
) -> AccountNetworkReportGenerateCall<'a>
[src]

Create a builder to help you perform the following task:

Generates an AdMob Network report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.

Arguments

  • request - No description provided.
  • parent - Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654

pub fn get(&self, name: &str) -> AccountGetCall<'a>[src]

Create a builder to help you perform the following task:

Gets information about the specified AdMob publisher account.

Arguments

  • name - Resource name of the publisher account to retrieve. Example: accounts/pub-9876543210987654

pub fn list(&self) -> AccountListCall<'a>[src]

Create a builder to help you perform the following task:

Lists the AdMob publisher account that was most recently signed in to from the AdMob UI. For more information, see https://support.google.com/admob/answer/10243672.

Trait Implementations

Auto Trait Implementations

impl<'a> !RefUnwindSafe for AccountMethods<'a>

impl<'a> Send for AccountMethods<'a>

impl<'a> Sync for AccountMethods<'a>

impl<'a> Unpin for AccountMethods<'a>

impl<'a> !UnwindSafe for AccountMethods<'a>

Blanket Implementations

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

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

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

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

impl<T> Instrument 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.