class AdvertisersChannels extends Resource (View source)

The "channels" collection of methods.

Typical usage is:

 $displayvideoService = new Google\Service\DisplayVideo(...);
 $channels = $displayvideoService->advertisers_channels;

Methods

create(string $advertiserId, Channel $postBody, array $optParams = [])

Creates a new channel. Returns the newly created channel if successful.

get(string $advertiserId, string $channelId, array $optParams = [])

Gets a channel for a partner or advertiser. (channels.get)

listAdvertisersChannels(string $advertiserId, array $optParams = [])

Lists channels for a partner or advertiser.

patch(string $advertiserId, string $channelId, Channel $postBody, array $optParams = [])

Updates a channel. Returns the updated channel if successful.

Details

Channel create(string $advertiserId, Channel $postBody, array $optParams = [])

Creates a new channel. Returns the newly created channel if successful.

(channels.create)

Parameters

string $advertiserId

The ID of the advertiser that owns the created channel.

Channel $postBody
array $optParams

Optional parameters.

Return Value

Channel

Exceptions

Exception

Channel get(string $advertiserId, string $channelId, array $optParams = [])

Gets a channel for a partner or advertiser. (channels.get)

Parameters

string $advertiserId

The ID of the advertiser that owns the fetched channel.

string $channelId

Required. The ID of the channel to fetch.

array $optParams

Optional parameters.

Return Value

Channel

Exceptions

Exception

ListChannelsResponse listAdvertisersChannels(string $advertiserId, array $optParams = [])

Lists channels for a partner or advertiser.

(channels.listAdvertisersChannels)

Parameters

string $advertiserId

The ID of the advertiser that owns the channels.

array $optParams

Optional parameters.

Return Value

ListChannelsResponse

Exceptions

Exception

Channel patch(string $advertiserId, string $channelId, Channel $postBody, array $optParams = [])

Updates a channel. Returns the updated channel if successful.

(channels.patch)

Parameters

string $advertiserId

The ID of the advertiser that owns the created channel.

string $channelId

Output only. The unique ID of the channel. Assigned by the system.

Channel $postBody
array $optParams

Optional parameters.

Return Value

Channel

Exceptions

Exception