Share your feedback about the Google Ads (AdWords) API. Take the 2021 AdWords API and Google Ads API Annual Survey.

The AdWords API will sunset on April 27, 2022. Migrate to the Google Ads API to take advantage of the latest Google Ads features.

type CustomAffinityToken (v201809)

A token of custom affinity audience. A token can be a keyword or placement. It is immutable, that is, it can only be created or removed but not changed.


Namespace
https://adwords.google.com/api/adwords/rm/v201809

Field

customAffinityId

xsd:long

CustomAffinityId can be a dummy value when token is ADDed together with CustomAffinity.

This field is required and should not be null.

customAffinityTokenId

xsd:long

The ID of this custom affinity token. In REMOVE operation, this field or [type, parameter] pair is required.

This field is read only and will be ignored when sent to the API for the following Operators: ADD.

tokenType

CustomAffinityToken.TokenType

The type of custom affinity token, KEYWORD or URL.


Enumerations
UNKNOWN
KEYWORD
URL

This field is required and should not be null when it is contained within Operators : ADD.

parameter

xsd:string

Keyword when token type is KEYWORD or URL string when token type is URL.

This field is required and should not be null when it is contained within Operators : ADD.
This string must not be empty, (trimmed).