Struct google_doubleclicksearch2::api::ReportMethods
source · pub struct ReportMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on report resources.
It is not used directly, but through the Doubleclicksearch
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_doubleclicksearch2 as doubleclicksearch2;
use std::default::Default;
use doubleclicksearch2::{Doubleclicksearch, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = Doubleclicksearch::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `generate(...)`, `get(...)`, `get_file(...)`, `get_id_mapping_file(...)` and `request(...)`
// to build up your call.
let rb = hub.reports();
Implementations§
source§impl<'a, S> ReportMethods<'a, S>
impl<'a, S> ReportMethods<'a, S>
sourcepub fn generate(&self, request: ReportRequest) -> ReportGenerateCall<'a, S>
pub fn generate(&self, request: ReportRequest) -> ReportGenerateCall<'a, S>
Create a builder to help you perform the following task:
Generates and returns a report immediately.
§Arguments
request
- No description provided.
sourcepub fn get(&self, report_id: &str) -> ReportGetCall<'a, S>
pub fn get(&self, report_id: &str) -> ReportGetCall<'a, S>
Create a builder to help you perform the following task:
Polls for the status of a report request.
§Arguments
reportId
- ID of the report request being polled.
sourcepub fn get_file(
&self,
report_id: &str,
report_fragment: i32
) -> ReportGetFileCall<'a, S>
pub fn get_file( &self, report_id: &str, report_fragment: i32 ) -> ReportGetFileCall<'a, S>
Create a builder to help you perform the following task:
Downloads a report file encoded in UTF-8.
§Arguments
reportId
- ID of the report.reportFragment
- The index of the report fragment to download.
sourcepub fn get_id_mapping_file(
&self,
agency_id: i64,
advertiser_id: i64
) -> ReportGetIdMappingFileCall<'a, S>
pub fn get_id_mapping_file( &self, agency_id: i64, advertiser_id: i64 ) -> ReportGetIdMappingFileCall<'a, S>
Create a builder to help you perform the following task:
Downloads a csv file(encoded in UTF-8) that contains ID mappings between legacy SA360 and new SA360. The file includes all children entities of the given advertiser(e.g. engine accounts, campaigns, ad groups, etc.) that exist in both legacy SA360 and new SA360.
§Arguments
agencyId
- Legacy SA360 agency ID.advertiserId
- Legacy SA360 advertiser ID.
sourcepub fn request(&self, request: ReportRequest) -> ReportRequestCall<'a, S>
pub fn request(&self, request: ReportRequest) -> ReportRequestCall<'a, S>
Create a builder to help you perform the following task:
Inserts a report request into the reporting system.
§Arguments
request
- No description provided.