BidderMethods

Struct BidderMethods 

Source
pub struct BidderMethods<'a, C>
where C: 'a,
{ /* private fields */ }
Expand description

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

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_realtimebidding1 as realtimebidding1;

use realtimebidding1::{RealTimeBidding, FieldMask, hyper_rustls, hyper_util, yup_oauth2};

let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
    .with_native_roots()
    .unwrap()
    .https_only()
    .enable_http2()
    .build();

let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
    secret,
    yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    yup_oauth2::client::CustomHyperClientBuilder::from(
        hyper_util::client::legacy::Client::builder(executor).build(connector),
    ),
).build().await.unwrap();

let client = hyper_util::client::legacy::Client::builder(
    hyper_util::rt::TokioExecutor::new()
)
.build(
    hyper_rustls::HttpsConnectorBuilder::new()
        .with_native_roots()
        .unwrap()
        .https_or_http()
        .enable_http2()
        .build()
);
let mut hub = RealTimeBidding::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `creatives_list(...)`, `creatives_watch(...)`, `endpoints_get(...)`, `endpoints_list(...)`, `endpoints_patch(...)`, `get(...)`, `list(...)`, `pretargeting_configs_activate(...)`, `pretargeting_configs_add_targeted_apps(...)`, `pretargeting_configs_add_targeted_publishers(...)`, `pretargeting_configs_add_targeted_sites(...)`, `pretargeting_configs_create(...)`, `pretargeting_configs_delete(...)`, `pretargeting_configs_get(...)`, `pretargeting_configs_list(...)`, `pretargeting_configs_patch(...)`, `pretargeting_configs_remove_targeted_apps(...)`, `pretargeting_configs_remove_targeted_publishers(...)`, `pretargeting_configs_remove_targeted_sites(...)`, `pretargeting_configs_suspend(...)`, `publisher_connections_batch_approve(...)`, `publisher_connections_batch_reject(...)`, `publisher_connections_get(...)` and `publisher_connections_list(...)`
// to build up your call.
let rb = hub.bidders();

Implementations§

Source§

impl<'a, C> BidderMethods<'a, C>

Source

pub fn creatives_list(&self, parent: &str) -> BidderCreativeListCall<'a, C>

Create a builder to help you perform the following task:

Lists creatives as they are at the time of the initial request. This call may take multiple hours to complete. For large, paginated requests, this method returns a snapshot of creatives at the time of request for the first page. lastStatusUpdate and creativeServingDecision may be outdated for creatives on sequential pages. We recommend Google Cloud Pub/Sub to view the latest status.

§Arguments
  • parent - Required. Name of the parent buyer that owns the creatives. The pattern for this resource is either buyers/{buyerAccountId} or bidders/{bidderAccountId}. For buyers/{buyerAccountId}, the buyerAccountId can be one of the following: 1. The ID of the buyer that is accessing their own creatives. 2. The ID of the child seat buyer under a bidder account. So for listing creatives pertaining to the child seat buyer (456) under bidder account (123), you would use the pattern: buyers/456. 3. The ID of the bidder itself. So for listing creatives pertaining to bidder (123), you would use buyers/123. If you want to access all creatives pertaining to both the bidder and all of its child seat accounts, you would use bidders/{bidderAccountId}, for example, for all creatives pertaining to bidder (123), use bidders/123.
Source

pub fn creatives_watch( &self, request: WatchCreativesRequest, parent: &str, ) -> BidderCreativeWatchCall<'a, C>

Create a builder to help you perform the following task:

Watches all creatives pertaining to a bidder. It is sufficient to invoke this endpoint once per bidder. A Pub/Sub topic will be created and notifications will be pushed to the topic when any of the bidder’s creatives change status. All of the bidder’s service accounts will have access to read from the topic. Subsequent invocations of this method will return the existing Pub/Sub configuration.

§Arguments
  • request - No description provided.
  • parent - Required. To watch all creatives pertaining to the bidder and all its child seat accounts, the bidder must follow the pattern bidders/{bidderAccountId}.
Source

pub fn endpoints_get(&self, name: &str) -> BidderEndpointGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a bidder endpoint by its name.

§Arguments
  • name - Required. Name of the bidder endpoint to get. Format: bidders/{bidderAccountId}/endpoints/{endpointId}
Source

pub fn endpoints_list(&self, parent: &str) -> BidderEndpointListCall<'a, C>

Create a builder to help you perform the following task:

Lists all the bidder’s endpoints.

§Arguments
  • parent - Required. Name of the bidder whose endpoints will be listed. Format: bidders/{bidderAccountId}
Source

pub fn endpoints_patch( &self, request: Endpoint, name: &str, ) -> BidderEndpointPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a bidder’s endpoint.

§Arguments
  • request - No description provided.
  • name - Output only. Name of the endpoint resource that must follow the pattern bidders/{bidderAccountId}/endpoints/{endpointId}, where {bidderAccountId} is the account ID of the bidder who operates this endpoint, and {endpointId} is a unique ID assigned by the server.
Source

pub fn pretargeting_configs_activate( &self, request: ActivatePretargetingConfigRequest, name: &str, ) -> BidderPretargetingConfigActivateCall<'a, C>

Create a builder to help you perform the following task:

Activates a pretargeting configuration.

§Arguments
  • request - No description provided.
  • name - Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Source

pub fn pretargeting_configs_add_targeted_apps( &self, request: AddTargetedAppsRequest, pretargeting_config: &str, ) -> BidderPretargetingConfigAddTargetedAppCall<'a, C>

Create a builder to help you perform the following task:

Adds targeted apps to the pretargeting configuration.

§Arguments
  • request - No description provided.
  • pretargetingConfig - Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Source

pub fn pretargeting_configs_add_targeted_publishers( &self, request: AddTargetedPublishersRequest, pretargeting_config: &str, ) -> BidderPretargetingConfigAddTargetedPublisherCall<'a, C>

Create a builder to help you perform the following task:

Adds targeted publishers to the pretargeting config.

§Arguments
  • request - No description provided.
  • pretargetingConfig - Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Source

pub fn pretargeting_configs_add_targeted_sites( &self, request: AddTargetedSitesRequest, pretargeting_config: &str, ) -> BidderPretargetingConfigAddTargetedSiteCall<'a, C>

Create a builder to help you perform the following task:

Adds targeted sites to the pretargeting configuration.

§Arguments
  • request - No description provided.
  • pretargetingConfig - Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Source

pub fn pretargeting_configs_create( &self, request: PretargetingConfig, parent: &str, ) -> BidderPretargetingConfigCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a pretargeting configuration. A pretargeting configuration’s state (PretargetingConfig.state) is active upon creation, and it will start to affect traffic shortly after. A bidder may create a maximum of 10 pretargeting configurations. Attempts to exceed this maximum results in a 400 bad request error.

§Arguments
  • request - No description provided.
  • parent - Required. Name of the bidder to create the pretargeting configuration for. Format: bidders/{bidderAccountId}
Source

pub fn pretargeting_configs_delete( &self, name: &str, ) -> BidderPretargetingConfigDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes a pretargeting configuration.

§Arguments
  • name - Required. The name of the pretargeting configuration to delete. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Source

pub fn pretargeting_configs_get( &self, name: &str, ) -> BidderPretargetingConfigGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a pretargeting configuration.

§Arguments
  • name - Required. Name of the pretargeting configuration to get. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Source

pub fn pretargeting_configs_list( &self, parent: &str, ) -> BidderPretargetingConfigListCall<'a, C>

Create a builder to help you perform the following task:

Lists all pretargeting configurations for a single bidder.

§Arguments
  • parent - Required. Name of the bidder whose pretargeting configurations will be listed. Format: bidders/{bidderAccountId}
Source

pub fn pretargeting_configs_patch( &self, request: PretargetingConfig, name: &str, ) -> BidderPretargetingConfigPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates a pretargeting configuration.

§Arguments
  • request - No description provided.
  • name - Output only. Name of the pretargeting configuration that must follow the pattern bidders/{bidder_account_id}/pretargetingConfigs/{config_id}
Source

pub fn pretargeting_configs_remove_targeted_apps( &self, request: RemoveTargetedAppsRequest, pretargeting_config: &str, ) -> BidderPretargetingConfigRemoveTargetedAppCall<'a, C>

Create a builder to help you perform the following task:

Removes targeted apps from the pretargeting configuration.

§Arguments
  • request - No description provided.
  • pretargetingConfig - Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Source

pub fn pretargeting_configs_remove_targeted_publishers( &self, request: RemoveTargetedPublishersRequest, pretargeting_config: &str, ) -> BidderPretargetingConfigRemoveTargetedPublisherCall<'a, C>

Create a builder to help you perform the following task:

Removes targeted publishers from the pretargeting config.

§Arguments
  • request - No description provided.
  • pretargetingConfig - Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Source

pub fn pretargeting_configs_remove_targeted_sites( &self, request: RemoveTargetedSitesRequest, pretargeting_config: &str, ) -> BidderPretargetingConfigRemoveTargetedSiteCall<'a, C>

Create a builder to help you perform the following task:

Removes targeted sites from the pretargeting configuration.

§Arguments
  • request - No description provided.
  • pretargetingConfig - Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Source

pub fn pretargeting_configs_suspend( &self, request: SuspendPretargetingConfigRequest, name: &str, ) -> BidderPretargetingConfigSuspendCall<'a, C>

Create a builder to help you perform the following task:

Suspends a pretargeting configuration.

§Arguments
  • request - No description provided.
  • name - Required. The name of the pretargeting configuration. Format: bidders/{bidderAccountId}/pretargetingConfig/{configId}
Source

pub fn publisher_connections_batch_approve( &self, request: BatchApprovePublisherConnectionsRequest, parent: &str, ) -> BidderPublisherConnectionBatchApproveCall<'a, C>

Create a builder to help you perform the following task:

Batch approves multiple publisher connections.

§Arguments
  • request - No description provided.
  • parent - Required. The bidder for whom publisher connections will be approved. Format: bidders/{bidder} where {bidder} is the account ID of the bidder.
Source

pub fn publisher_connections_batch_reject( &self, request: BatchRejectPublisherConnectionsRequest, parent: &str, ) -> BidderPublisherConnectionBatchRejectCall<'a, C>

Create a builder to help you perform the following task:

Batch rejects multiple publisher connections.

§Arguments
  • request - No description provided.
  • parent - Required. The bidder for whom publisher connections will be rejected. Format: bidders/{bidder} where {bidder} is the account ID of the bidder.
Source

pub fn publisher_connections_get( &self, name: &str, ) -> BidderPublisherConnectionGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a publisher connection.

§Arguments
  • name - Required. Name of the publisher whose connection information is to be retrieved. In the pattern bidders/{bidder}/publisherConnections/{publisher} where {bidder} is the account ID of the bidder, and {publisher} is the ads.txt/app-ads.txt publisher ID. See publisherConnection.name.
Source

pub fn publisher_connections_list( &self, parent: &str, ) -> BidderPublisherConnectionListCall<'a, C>

Create a builder to help you perform the following task:

Lists publisher connections for a given bidder.

§Arguments
  • parent - Required. Name of the bidder for which publishers have initiated connections. The pattern for this resource is bidders/{bidder} where {bidder} represents the account ID of the bidder.
Source

pub fn get(&self, name: &str) -> BidderGetCall<'a, C>

Create a builder to help you perform the following task:

Gets a bidder account by its name.

§Arguments
  • name - Required. Name of the bidder to get. Format: bidders/{bidderAccountId}
Source

pub fn list(&self) -> BidderListCall<'a, C>

Create a builder to help you perform the following task:

Lists all the bidder accounts that belong to the caller.

Trait Implementations§

Source§

impl<'a, C> MethodsBuilder for BidderMethods<'a, C>

Auto Trait Implementations§

§

impl<'a, C> Freeze for BidderMethods<'a, C>

§

impl<'a, C> !RefUnwindSafe for BidderMethods<'a, C>

§

impl<'a, C> Send for BidderMethods<'a, C>
where C: Sync,

§

impl<'a, C> Sync for BidderMethods<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for BidderMethods<'a, C>

§

impl<'a, C> !UnwindSafe for BidderMethods<'a, C>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more