class AccountsClients extends Resource (View source)

The "clients" collection of methods.

Typical usage is:

 $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
 $clients = $adexchangebuyer2Service->accounts_clients;

Methods

create(string $accountId, Client $postBody, array $optParams = [])

Creates a new client buyer. (clients.create)

get(string $accountId, string $clientAccountId, array $optParams = [])

Gets a client buyer with a given client account ID. (clients.get)

listAccountsClients(string $accountId, array $optParams = [])

Lists all the clients for the current sponsor buyer.

update(string $accountId, string $clientAccountId, Client $postBody, array $optParams = [])

Updates an existing client buyer. (clients.update)

Details

Client create(string $accountId, Client $postBody, array $optParams = [])

Creates a new client buyer. (clients.create)

Parameters

string $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)

Client $postBody
array $optParams

Optional parameters.

Return Value

Client

Exceptions

Exception

Client get(string $accountId, string $clientAccountId, array $optParams = [])

Gets a client buyer with a given client account ID. (clients.get)

Parameters

string $accountId

Numerical account ID of the client's sponsor buyer. (required)

string $clientAccountId

Numerical account ID of the client buyer to retrieve. (required)

array $optParams

Optional parameters.

Return Value

Client

Exceptions

Exception

ListClientsResponse listAccountsClients(string $accountId, array $optParams = [])

Lists all the clients for the current sponsor buyer.

(clients.listAccountsClients)

Parameters

string $accountId

Unique numerical account ID of the sponsor buyer to list the clients for.

array $optParams

Optional parameters.

Return Value

ListClientsResponse

Exceptions

Exception

Client update(string $accountId, string $clientAccountId, Client $postBody, array $optParams = [])

Updates an existing client buyer. (clients.update)

Parameters

string $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)

string $clientAccountId

Unique numerical account ID of the client to update. (required)

Client $postBody
array $optParams

Optional parameters.

Return Value

Client

Exceptions

Exception