pub struct PretargetingConfigMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on pretargetingConfig resources.
It is not used directly, but through the AdExchangeBuyer
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_adexchangebuyer1d3 as adexchangebuyer1d3;
use std::default::Default;
use adexchangebuyer1d3::{AdExchangeBuyer, 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 = AdExchangeBuyer::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 `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)`
// to build up your call.
let rb = hub.pretargeting_config();
Implementations§
source§impl<'a, S> PretargetingConfigMethods<'a, S>
impl<'a, S> PretargetingConfigMethods<'a, S>
sourcepub fn delete(
&self,
account_id: i64,
config_id: i64
) -> PretargetingConfigDeleteCall<'a, S>
pub fn delete( &self, account_id: i64, config_id: i64 ) -> PretargetingConfigDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes an existing pretargeting config.
§Arguments
accountId
- The account id to delete the pretargeting config for.configId
- The specific id of the configuration to delete.
sourcepub fn get(
&self,
account_id: i64,
config_id: i64
) -> PretargetingConfigGetCall<'a, S>
pub fn get( &self, account_id: i64, config_id: i64 ) -> PretargetingConfigGetCall<'a, S>
Create a builder to help you perform the following task:
Gets a specific pretargeting configuration
§Arguments
accountId
- The account id to get the pretargeting config for.configId
- The specific id of the configuration to retrieve.
sourcepub fn insert(
&self,
request: PretargetingConfig,
account_id: i64
) -> PretargetingConfigInsertCall<'a, S>
pub fn insert( &self, request: PretargetingConfig, account_id: i64 ) -> PretargetingConfigInsertCall<'a, S>
Create a builder to help you perform the following task:
Inserts a new pretargeting configuration.
§Arguments
request
- No description provided.accountId
- The account id to insert the pretargeting config for.
sourcepub fn list(&self, account_id: i64) -> PretargetingConfigListCall<'a, S>
pub fn list(&self, account_id: i64) -> PretargetingConfigListCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a list of the authenticated user’s pretargeting configurations.
§Arguments
accountId
- The account id to get the pretargeting configs for.
sourcepub fn patch(
&self,
request: PretargetingConfig,
account_id: i64,
config_id: i64
) -> PretargetingConfigPatchCall<'a, S>
pub fn patch( &self, request: PretargetingConfig, account_id: i64, config_id: i64 ) -> PretargetingConfigPatchCall<'a, S>
Create a builder to help you perform the following task:
Updates an existing pretargeting config. This method supports patch semantics.
§Arguments
request
- No description provided.accountId
- The account id to update the pretargeting config for.configId
- The specific id of the configuration to update.
sourcepub fn update(
&self,
request: PretargetingConfig,
account_id: i64,
config_id: i64
) -> PretargetingConfigUpdateCall<'a, S>
pub fn update( &self, request: PretargetingConfig, account_id: i64, config_id: i64 ) -> PretargetingConfigUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates an existing pretargeting config.
§Arguments
request
- No description provided.accountId
- The account id to update the pretargeting config for.configId
- The specific id of the configuration to update.