Struct googapis::google::ads::admob::v1::ad_mob_api_client::AdMobApiClient [−][src]
pub struct AdMobApiClient<T> { /* fields omitted */ }
Expand description
The AdMob API allows AdMob publishers programmatically get information about their AdMob account.
Implementations
impl<T> AdMobApiClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> AdMobApiClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> AdMobApiClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn get_publisher_account(
&mut self,
request: impl IntoRequest<GetPublisherAccountRequest>
) -> Result<Response<PublisherAccount>, Status>
pub async fn get_publisher_account(
&mut self,
request: impl IntoRequest<GetPublisherAccountRequest>
) -> Result<Response<PublisherAccount>, Status>
Gets information about the specified AdMob publisher account.
pub async fn list_publisher_accounts(
&mut self,
request: impl IntoRequest<ListPublisherAccountsRequest>
) -> Result<Response<ListPublisherAccountsResponse>, Status>
pub async fn list_publisher_accounts(
&mut self,
request: impl IntoRequest<ListPublisherAccountsRequest>
) -> Result<Response<ListPublisherAccountsResponse>, Status>
Lists the AdMob publisher account accessible with the client credential. Currently, all credentials have access to at most one AdMob account.
pub async fn generate_network_report(
&mut self,
request: impl IntoRequest<GenerateNetworkReportRequest>
) -> Result<Response<Streaming<GenerateNetworkReportResponse>>, Status>
pub async fn generate_network_report(
&mut self,
request: impl IntoRequest<GenerateNetworkReportRequest>
) -> Result<Response<Streaming<GenerateNetworkReportResponse>>, Status>
Generates an AdMob Network report based on the provided report specification.
pub async fn generate_mediation_report(
&mut self,
request: impl IntoRequest<GenerateMediationReportRequest>
) -> Result<Response<Streaming<GenerateMediationReportResponse>>, Status>
pub async fn generate_mediation_report(
&mut self,
request: impl IntoRequest<GenerateMediationReportRequest>
) -> Result<Response<Streaming<GenerateMediationReportResponse>>, Status>
Generates an AdMob Mediation report based on the provided report specification.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for AdMobApiClient<T> where
T: RefUnwindSafe,
impl<T> Send for AdMobApiClient<T> where
T: Send,
impl<T> Sync for AdMobApiClient<T> where
T: Sync,
impl<T> Unpin for AdMobApiClient<T> where
T: Unpin,
impl<T> UnwindSafe for AdMobApiClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more