class Customchannels extends Resource (View source)

The "customchannels" collection of methods.

Typical usage is:

 $adsensehostService = new Google\Service\AdSenseHost(...);
 $customchannels = $adsensehostService->customchannels;

Methods

delete(string $adClientId, string $customChannelId, array $optParams = [])

Delete a specific custom channel from the host AdSense account.

get(string $adClientId, string $customChannelId, array $optParams = [])

Get a specific custom channel from the host AdSense account.

insert(string $adClientId, CustomChannel $postBody, array $optParams = [])

Add a new custom channel to the host AdSense account. (customchannels.insert)

listCustomchannels(string $adClientId, array $optParams = [])

List all host custom channels in this AdSense account.

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

Update a custom channel in the host AdSense account. This method supports patch semantics. (customchannels.patch)

update(string $adClientId, CustomChannel $postBody, array $optParams = [])

Update a custom channel in the host AdSense account. (customchannels.update)

Details

CustomChannel delete(string $adClientId, string $customChannelId, array $optParams = [])

Delete a specific custom channel from the host AdSense account.

(customchannels.delete)

Parameters

string $adClientId

Ad client from which to delete the custom channel.

string $customChannelId

Custom channel to delete.

array $optParams

Optional parameters.

Return Value

CustomChannel

Exceptions

Exception

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

Get a specific custom channel from the host AdSense account.

(customchannels.get)

Parameters

string $adClientId

Ad client from which to get the custom channel.

string $customChannelId

Custom channel to get.

array $optParams

Optional parameters.

Return Value

CustomChannel

Exceptions

Exception

CustomChannel insert(string $adClientId, CustomChannel $postBody, array $optParams = [])

Add a new custom channel to the host AdSense account. (customchannels.insert)

Parameters

string $adClientId

Ad client to which the new custom channel will be added.

CustomChannel $postBody
array $optParams

Optional parameters.

Return Value

CustomChannel

Exceptions

Exception

CustomChannels listCustomchannels(string $adClientId, array $optParams = [])

List all host custom channels in this AdSense account.

(customchannels.listCustomchannels)

Parameters

string $adClientId

Ad client for which to list custom channels.

array $optParams

Optional parameters.

Return Value

CustomChannels

Exceptions

Exception

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

Update a custom channel in the host AdSense account. This method supports patch semantics. (customchannels.patch)

Parameters

string $adClientId

Ad client in which the custom channel will be updated.

string $customChannelId

Custom channel to get.

CustomChannel $postBody
array $optParams

Optional parameters.

Return Value

CustomChannel

Exceptions

Exception

CustomChannel update(string $adClientId, CustomChannel $postBody, array $optParams = [])

Update a custom channel in the host AdSense account. (customchannels.update)

Parameters

string $adClientId

Ad client in which the custom channel will be updated.

CustomChannel $postBody
array $optParams

Optional parameters.

Return Value

CustomChannel

Exceptions

Exception