Deprecated: Due to the possibility of ambiguity, accounts with both an AdSense publisher account and an AdExchange account will throw an error when trying to use the default account. Always use accounts.list
to check if there's more than one account and let the user choose in that case. After that, specify the account ID on every call using the /accounts/
namespace.
For a list of methods for this resource, see the end of this page.
Resource representations
{ "kind": "adsense#customChannel", "id": string, "code": string, "name": string, "targetingInfo": { "adsAppearOn": string, "location": string, "description": string, "siteLanguage": string } }
Property name | Value | Description | Notes |
---|---|---|---|
code |
string |
Code of this custom channel, not necessarily unique across ad clients. | |
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. | |
kind |
string |
Kind of resource this is, in this case adsense#customChannel. | |
name |
string |
Name of this custom channel. | |
targetingInfo |
object |
The targeting information of this custom channel, if activated. | |
targetingInfo.adsAppearOn |
string |
The name used to describe this channel externally. | |
targetingInfo.description |
string |
The external description of the channel. | |
targetingInfo.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.
Acceptable values are:
|
|
targetingInfo.siteLanguage |
string |
The language of the sites ads will be displayed on. |
Methods
- get
Deprecated: Due to the possibility of ambiguity, accounts with both an AdSense publisher account and an AdExchange account will throw an error when trying to use the default account. Always use
accounts.list
to check if there's more than one account and let the user choose in that case. After that, specify the account ID on every call using the/accounts/
namespace.Get the specified custom channel from the specified ad client.
- list
- List all custom channels in the specified ad client for this AdSense account.