class AccountsAdclientsCustomchannels extends Resource (View source)

The "customchannels" collection of methods.

Typical usage is:

 $adsenseService = new Google\Service\Adsense(...);
 $customchannels = $adsenseService->accounts_adclients_customchannels;

Methods

create(string $parent, CustomChannel $postBody, array $optParams = [])

Creates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by AdSense for Platforms publishers.

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

Deletes a custom channel. This method can be called only by a restricted set of projects, which are usually owned by AdSense for Platforms publishers.

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

Gets information about the selected custom channel. (customchannels.get)

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

Lists all the custom channels available in an ad client.

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

Lists all the ad units available for a custom channel.

patch(string $name, CustomChannel $postBody, array $optParams = [])

Updates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by AdSense for Platforms publishers.

Details

CustomChannel create(string $parent, CustomChannel $postBody, array $optParams = [])

Creates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by AdSense for Platforms publishers.

Contact your account manager if you need to use this method. (customchannels.create)

Parameters

string $parent

Required. The ad client to create a custom channel under. Format: accounts/{account}/adclients/{adclient}

CustomChannel $postBody
array $optParams

Optional parameters.

Return Value

CustomChannel

Exceptions

Exception

AdsenseEmpty delete(string $name, array $optParams = [])

Deletes a custom channel. This method can be called only by a restricted set of projects, which are usually owned by AdSense for Platforms publishers.

Contact your account manager if you need to use this method. (customchannels.delete)

Parameters

string $name

Required. Name of the custom channel to delete. Format: accounts/{account}/adclients/{adclient}/customchannels/{customchannel}

array $optParams

Optional parameters.

Return Value

AdsenseEmpty

Exceptions

Exception

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

Gets information about the selected custom channel. (customchannels.get)

Parameters

string $name

Required. Name of the custom channel. Format: accounts/{account}/adclients/{adclient}/customchannels/{customchannel}

array $optParams

Optional parameters.

Return Value

CustomChannel

Exceptions

Exception

ListCustomChannelsResponse listAccountsAdclientsCustomchannels(string $parent, array $optParams = [])

Lists all the custom channels available in an ad client.

(customchannels.listAccountsAdclientsCustomchannels)

Parameters

string $parent

Required. The ad client which owns the collection of custom channels. Format: accounts/{account}/adclients/{adclient}

array $optParams

Optional parameters.

Return Value

ListCustomChannelsResponse

Exceptions

Exception

ListLinkedAdUnitsResponse listLinkedAdUnits(string $parent, array $optParams = [])

Lists all the ad units available for a custom channel.

(customchannels.listLinkedAdUnits)

Parameters

string $parent

Required. The custom channel which owns the collection of ad units. Format: accounts/{account}/adclients/{adclient}/customchannels/{customchannel}

array $optParams

Optional parameters.

Return Value

ListLinkedAdUnitsResponse

Exceptions

Exception

CustomChannel patch(string $name, CustomChannel $postBody, array $optParams = [])

Updates a custom channel. This method can be called only by a restricted set of projects, which are usually owned by AdSense for Platforms publishers.

Contact your account manager if you need to use this method. (customchannels.patch)

Parameters

string $name

Output only. Resource name of the custom channel. Format: accounts/{account}/adclients/{adclient}/customchannels/{customchannel}

CustomChannel $postBody
array $optParams

Optional parameters.

Return Value

CustomChannel

Exceptions

Exception