v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13253679.9 KB
accounts

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.

post/v2/{+parent}/customchannels

Path parameters

parentstring required

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

Request body

activeboolean

Whether the custom channel is active and collecting data. See https://support.google.com/adsense/answer/10077192.

namestring

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

reportingDimensionIdstring

Output only. Unique ID of the custom channel as used in the CUSTOM_CHANNEL_ID reporting dimension.

displayNamestring

Required. Display name of the custom channel.

Response

Successful response