class AccountsAdclients extends Resource (View source)

The "adclients" collection of methods.

Typical usage is:

 $adsenseService = new Google\Service\Adsense(...);
 $adclients = $adsenseService->accounts_adclients;

Methods

get(string $name, array $optParams = [])

Gets the ad client from the given resource name. (adclients.get)

getAdcode(string $name, array $optParams = [])

Gets the AdSense code for a given ad client. This returns what was previously known as the 'auto ad code'. This is only supported for ad clients with a product_code of AFC. For more information, see About the AdSense code.

listAccountsAdclients(string $parent, array $optParams = [])

Lists all the ad clients available in an account.

Details

AdClient get(string $name, array $optParams = [])

Gets the ad client from the given resource name. (adclients.get)

Parameters

string $name

Required. The name of the ad client to retrieve. Format: accounts/{account}/adclients/{adclient}

array $optParams

Optional parameters.

Return Value

AdClient

Exceptions

Exception

AdClientAdCode getAdcode(string $name, array $optParams = [])

Gets the AdSense code for a given ad client. This returns what was previously known as the 'auto ad code'. This is only supported for ad clients with a product_code of AFC. For more information, see About the AdSense code.

(adclients.getAdcode)

Parameters

string $name

Required. Name of the ad client for which to get the adcode. Format: accounts/{account}/adclients/{adclient}

array $optParams

Optional parameters.

Return Value

AdClientAdCode

Exceptions

Exception

ListAdClientsResponse listAccountsAdclients(string $parent, array $optParams = [])

Lists all the ad clients available in an account.

(adclients.listAccountsAdclients)

Parameters

string $parent

Required. The account which owns the collection of ad clients. Format: accounts/{account}

array $optParams

Optional parameters.

Return Value

ListAdClientsResponse

Exceptions

Exception