v1.4 of the AdSense Management API is now deprecated. This version will stop returning data on October 12, 2021. Please migrate to v2 as soon as possible.

REST Resource: accounts.customchannels

Resource: CustomChannel

JSON representation
{
  "id": string,
  "code": string,
  "name": string,
  "kind": string,
  "targetingInfo": {
    object (TargetingInfo)
  }
}
Fields
id

string

Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.

code

string

Code of this custom channel, not necessarily unique across ad clients.

name

string

Name of this custom channel.

kind

string

Kind of resource this is, in this case adsense#customChannel.

targetingInfo

object (TargetingInfo)

The targeting information of this custom channel, if activated.

TargetingInfo

JSON representation
{
  "adsAppearOn": string,
  "location": string,
  "description": string,
  "siteLanguage": string
}
Fields
adsAppearOn

string

The name used to describe this channel externally.

location

string

The locations in which ads appear. (Only valid for content and mobile content ads (deprecated)). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads (deprecated) are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.

description

string

The external description of the channel.

siteLanguage

string

The language of the sites ads will be displayed on.

Methods

get

Get the specified custom channel from the specified ad client for the specified account.

list

List all custom channels in the specified ad client for the specified account.