Method: accounts.adclients.customchannels.create

  • This method is used to create a custom channel and can only be called by a restricted set of projects, typically owned by AdSense for Platforms publishers.

  • To create a custom channel, you need to make a POST request to the specified URL with the parent parameter indicating the ad client.

  • The request body should contain an instance of CustomChannel, and if successful, the response body will contain the newly created CustomChannel instance.

  • This method requires authorization with the https://www.googleapis.com/auth/adsense OAuth scope.

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.

HTTP request

POST https://adsense.googleapis.com/v2/{parent=accounts/*/adclients/*}/customchannels

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

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

Request body

The request body contains an instance of CustomChannel.

Response body

If successful, the response body contains a newly created instance of CustomChannel.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/adsense