ChannelService_Data

Data object for a channel.

Fields

Field nameField typeField description
id long
The unique identifier of this channel. This is provided by ChannelService.createChannel and may not be changed after channel creation.
name string
The name of the channel.

For "Custom" Type channels, this may be changed after creation, but the UTF-8 encoding must not be more than 30 characters.

For "URL" Type channels, this may not be changed after creation, and the UTF-8 encoding must not be more than 255 characters.

status ChannelService_Status
The status of the channel.

Values are:

  • Active - Channel is active. Statistics are gathered for active channels.
  • Inactive - Channel is inactive. Statistics are not gathered for inactive channels.
  • Removed - Channel is removed. Statistics are not gathered for removed channels. Removed channels are are not visible in the AdSense Frontend.

synServiceId string
The syndication service ID corresponding to the AFC or AFS service. For an AFC channel, this would be the ID of the AFC service for the publisher; for an AFS channel, this would be the ID of the AFS service for the publisher.

It contains a value similar to the client_id header. For example, partner-pub-1231232132. This value may not be changed after channel creation.

type ChannelService_Type
The Type of this channel. This may not be changed after channel creation.

AFS supports only Custom channels.

Values are:

  • Url - Channel is a URL channel
  • Custom - Channel is a custom channel