Struct google_adexchangebuyer2_v2_beta1::AccountMethods [−][src]
pub struct AccountMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on account resources.
It is not used directly, but through the AdExchangeBuyerII
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_adexchangebuyer2_v2_beta1 as adexchangebuyer2_v2_beta1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use adexchangebuyer2_v2_beta1::AdExchangeBuyerII; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), <MemoryStorage as Default>::default(), None); let mut hub = AdExchangeBuyerII::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `clients_create(...)`, `clients_get(...)`, `clients_invitations_create(...)`, `clients_invitations_get(...)`, `clients_invitations_list(...)`, `clients_list(...)`, `clients_update(...)`, `clients_users_get(...)`, `clients_users_list(...)`, `clients_users_update(...)`, `creatives_create(...)`, `creatives_deal_associations_add(...)`, `creatives_deal_associations_list(...)`, `creatives_deal_associations_remove(...)`, `creatives_get(...)`, `creatives_list(...)`, `creatives_stop_watching(...)`, `creatives_update(...)` and `creatives_watch(...)` // to build up your call. let rb = hub.accounts();
Methods
impl<'a, C, A> AccountMethods<'a, C, A>
[src]
impl<'a, C, A> AccountMethods<'a, C, A>
pub fn creatives_deal_associations_add(
&self,
request: AddDealAssociationRequest,
account_id: &str,
creative_id: &str
) -> AccountCreativeDealAssociationAddCall<'a, C, A>
[src]
pub fn creatives_deal_associations_add(
&self,
request: AddDealAssociationRequest,
account_id: &str,
creative_id: &str
) -> AccountCreativeDealAssociationAddCall<'a, C, A>
Create a builder to help you perform the following task:
Associate an existing deal with a creative.
Arguments
request
- No description provided.accountId
- The account the creative belongs to.creativeId
- The ID of the creative associated with the deal.
pub fn creatives_list(
&self,
account_id: &str
) -> AccountCreativeListCall<'a, C, A>
[src]
pub fn creatives_list(
&self,
account_id: &str
) -> AccountCreativeListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists creatives.
Arguments
accountId
- The account to list the creatives from. Specify "-" to list all creatives the current user has access to.
pub fn creatives_watch(
&self,
request: WatchCreativeRequest,
account_id: &str,
creative_id: &str
) -> AccountCreativeWatchCall<'a, C, A>
[src]
pub fn creatives_watch(
&self,
request: WatchCreativeRequest,
account_id: &str,
creative_id: &str
) -> AccountCreativeWatchCall<'a, C, A>
Create a builder to help you perform the following task:
Watches a creative. Will result in push notifications being sent to the topic when the creative changes status.
Arguments
request
- No description provided.accountId
- The account of the creative to watch.creativeId
- The creative ID to watch for status changes. Specify "-" to watch all creatives under the above account. If both creative-level and account-level notifications are sent, only a single notification will be sent to the creative-level notification topic.
pub fn clients_update(
&self,
request: Client,
account_id: &str,
client_account_id: &str
) -> AccountClientUpdateCall<'a, C, A>
[src]
pub fn clients_update(
&self,
request: Client,
account_id: &str,
client_account_id: &str
) -> AccountClientUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates an existing client buyer.
Arguments
request
- No description provided.accountId
- Unique numerical account ID for the buyer of which the client buyer is a customer; the sponsor buyer to update a client for. (required)clientAccountId
- Unique numerical account ID of the client to update. (required)
pub fn clients_users_get(
&self,
account_id: &str,
client_account_id: &str,
user_id: &str
) -> AccountClientUserGetCall<'a, C, A>
[src]
pub fn clients_users_get(
&self,
account_id: &str,
client_account_id: &str,
user_id: &str
) -> AccountClientUserGetCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves an existing client user.
Arguments
accountId
- Numerical account ID of the client's sponsor buyer. (required)clientAccountId
- Numerical account ID of the client buyer that the user to be retrieved is associated with. (required)userId
- Numerical identifier of the user to retrieve. (required)
pub fn clients_invitations_get(
&self,
account_id: &str,
client_account_id: &str,
invitation_id: &str
) -> AccountClientInvitationGetCall<'a, C, A>
[src]
pub fn clients_invitations_get(
&self,
account_id: &str,
client_account_id: &str,
invitation_id: &str
) -> AccountClientInvitationGetCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves an existing client user invitation.
Arguments
accountId
- Numerical account ID of the client's sponsor buyer. (required)clientAccountId
- Numerical account ID of the client buyer that the user invitation to be retrieved is associated with. (required)invitationId
- Numerical identifier of the user invitation to retrieve. (required)
pub fn clients_list(&self, account_id: &str) -> AccountClientListCall<'a, C, A>
[src]
pub fn clients_list(&self, account_id: &str) -> AccountClientListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all the clients for the current sponsor buyer.
Arguments
accountId
- Unique numerical account ID of the sponsor buyer to list the clients for.
pub fn creatives_get(
&self,
account_id: &str,
creative_id: &str
) -> AccountCreativeGetCall<'a, C, A>
[src]
pub fn creatives_get(
&self,
account_id: &str,
creative_id: &str
) -> AccountCreativeGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets a creative.
Arguments
accountId
- The account the creative belongs to.creativeId
- The ID of the creative to retrieve.
pub fn creatives_create(
&self,
request: Creative,
account_id: &str
) -> AccountCreativeCreateCall<'a, C, A>
[src]
pub fn creatives_create(
&self,
request: Creative,
account_id: &str
) -> AccountCreativeCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a creative.
Arguments
request
- No description provided.accountId
- The account that this creative belongs to. Can be used to filter the response of the creatives.list method.
pub fn creatives_stop_watching(
&self,
request: StopWatchingCreativeRequest,
account_id: &str,
creative_id: &str
) -> AccountCreativeStopWatchingCall<'a, C, A>
[src]
pub fn creatives_stop_watching(
&self,
request: StopWatchingCreativeRequest,
account_id: &str,
creative_id: &str
) -> AccountCreativeStopWatchingCall<'a, C, A>
Create a builder to help you perform the following task:
Stops watching a creative. Will stop push notifications being sent to the topics when the creative changes status.
Arguments
request
- No description provided.accountId
- The account of the creative to stop notifications for.creativeId
- The creative ID of the creative to stop notifications for. Specify "-" to specify stopping account level notifications.
pub fn clients_users_update(
&self,
request: ClientUser,
account_id: &str,
client_account_id: &str,
user_id: &str
) -> AccountClientUserUpdateCall<'a, C, A>
[src]
pub fn clients_users_update(
&self,
request: ClientUser,
account_id: &str,
client_account_id: &str,
user_id: &str
) -> AccountClientUserUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates an existing client user. Only the user status can be changed on update.
Arguments
request
- No description provided.accountId
- Numerical account ID of the client's sponsor buyer. (required)clientAccountId
- Numerical account ID of the client buyer that the user to be retrieved is associated with. (required)userId
- Numerical identifier of the user to retrieve. (required)
pub fn clients_invitations_create(
&self,
request: ClientUserInvitation,
account_id: &str,
client_account_id: &str
) -> AccountClientInvitationCreateCall<'a, C, A>
[src]
pub fn clients_invitations_create(
&self,
request: ClientUserInvitation,
account_id: &str,
client_account_id: &str
) -> AccountClientInvitationCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates and sends out an email invitation to access an Ad Exchange client buyer account.
Arguments
request
- No description provided.accountId
- Numerical account ID of the client's sponsor buyer. (required)clientAccountId
- Numerical account ID of the client buyer that the user should be associated with. (required)
pub fn clients_users_list(
&self,
account_id: &str,
client_account_id: &str
) -> AccountClientUserListCall<'a, C, A>
[src]
pub fn clients_users_list(
&self,
account_id: &str,
client_account_id: &str
) -> AccountClientUserListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all the known client users for a specified sponsor buyer account ID.
Arguments
accountId
- Numerical account ID of the sponsor buyer of the client to list users for. (required)clientAccountId
- The account ID of the client buyer to list users for. (required) You must specify either a string representation of a numerical account identifier or the-
character to list all the client users for all the clients of a given sponsor buyer.
pub fn clients_create(
&self,
request: Client,
account_id: &str
) -> AccountClientCreateCall<'a, C, A>
[src]
pub fn clients_create(
&self,
request: Client,
account_id: &str
) -> AccountClientCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a new client buyer.
Arguments
request
- No description provided.accountId
- Unique numerical account ID for the buyer of which the client buyer is a customer; the sponsor buyer to create a client for. (required)
pub fn clients_get(
&self,
account_id: &str,
client_account_id: &str
) -> AccountClientGetCall<'a, C, A>
[src]
pub fn clients_get(
&self,
account_id: &str,
client_account_id: &str
) -> AccountClientGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets a client buyer with a given client account ID.
Arguments
accountId
- Numerical account ID of the client's sponsor buyer. (required)clientAccountId
- Numerical account ID of the client buyer to retrieve. (required)
pub fn creatives_deal_associations_list(
&self,
account_id: &str,
creative_id: &str
) -> AccountCreativeDealAssociationListCall<'a, C, A>
[src]
pub fn creatives_deal_associations_list(
&self,
account_id: &str,
creative_id: &str
) -> AccountCreativeDealAssociationListCall<'a, C, A>
Create a builder to help you perform the following task:
List all creative-deal associations.
Arguments
accountId
- The account to list the associations from. Specify "-" to list all creatives the current user has access to.creativeId
- The creative ID to list the associations from. Specify "-" to list all creatives under the above account.
pub fn creatives_update(
&self,
request: Creative,
account_id: &str,
creative_id: &str
) -> AccountCreativeUpdateCall<'a, C, A>
[src]
pub fn creatives_update(
&self,
request: Creative,
account_id: &str,
creative_id: &str
) -> AccountCreativeUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a creative.
Arguments
request
- No description provided.accountId
- The account that this creative belongs to. Can be used to filter the response of the creatives.list method.creativeId
- The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method.
pub fn creatives_deal_associations_remove(
&self,
request: RemoveDealAssociationRequest,
account_id: &str,
creative_id: &str
) -> AccountCreativeDealAssociationRemoveCall<'a, C, A>
[src]
pub fn creatives_deal_associations_remove(
&self,
request: RemoveDealAssociationRequest,
account_id: &str,
creative_id: &str
) -> AccountCreativeDealAssociationRemoveCall<'a, C, A>
Create a builder to help you perform the following task:
Remove the association between a deal and a creative.
Arguments
request
- No description provided.accountId
- The account the creative belongs to.creativeId
- The ID of the creative associated with the deal.
pub fn clients_invitations_list(
&self,
account_id: &str,
client_account_id: &str
) -> AccountClientInvitationListCall<'a, C, A>
[src]
pub fn clients_invitations_list(
&self,
account_id: &str,
client_account_id: &str
) -> AccountClientInvitationListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all the client users invitations for a client with a given account ID.
Arguments
accountId
- Numerical account ID of the client's sponsor buyer. (required)clientAccountId
- Numerical account ID of the client buyer to list invitations for. (required) You must either specify a string representation of a numerical account identifier or the-
character to list all the invitations for all the clients of a given sponsor buyer.
Trait Implementations
impl<'a, C, A> MethodsBuilder for AccountMethods<'a, C, A>
[src]
impl<'a, C, A> MethodsBuilder for AccountMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send for AccountMethods<'a, C, A>
impl<'a, C, A> !Send for AccountMethods<'a, C, A>
impl<'a, C, A> !Sync for AccountMethods<'a, C, A>
impl<'a, C, A> !Sync for AccountMethods<'a, C, A>