CustomTargeting

Represents the top level targeting expression for custom key/values, audience segments, and/or CMS metadata.

JSON representation
{
  "customTargetingClauses": [
    {
      object (CustomTargetingClause)
    }
  ]
}
Fields
customTargetingClauses[]

object (CustomTargetingClause)

Optional. These clauses are all ORed together.

CustomTargetingClause

Represents a logical AND of individual custom targeting expressions.

JSON representation
{
  "customTargetingLiterals": [
    {
      object (CustomTargetingLiteral)
    }
  ],
  "audienceSegmentTargetings": [
    {
      object (AudienceSegmentTargeting)
    }
  ],
  "cmsMetadataTargetings": [
    {
      object (CmsMetadataTargeting)
    }
  ]
}
Fields
customTargetingLiterals[]

object (CustomTargetingLiteral)

Optional. Leaf targeting expressions for custom key/values.

audienceSegmentTargetings[]

object (AudienceSegmentTargeting)

Optional. Leaf targeting expressions for audience segments.

cmsMetadataTargetings[]

object (CmsMetadataTargeting)

Optional. Leaf targeting expressions for cms metadata.

CustomTargetingLiteral

Represents targeting for custom key/values. The values are ORed together.

JSON representation
{
  "customTargetingValues": [
    string
  ],
  "negative": boolean,
  "customTargetingKey": string
}
Fields
customTargetingValues[]

string

Optional. The resource names of the targeted CustomValues.

negative

boolean

Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.

customTargetingKey

string

Optional. The resource name of the targeted CustomKey.

AudienceSegmentTargeting

Represents targeting for audience segments. The values are combined in a logical OR.

JSON representation
{
  "audienceSegments": [
    string
  ],
  "negative": boolean
}
Fields
audienceSegments[]

string

Optional. The targeted audience segments.

This is either the resource name of a first-party audience segment or an alias to the effective third-party audience segment. Third-party audience segment resource names containing ~direct or ~global will be normalized by the server. For example, networks/1234/audienceSegments/4567~direct will be normalized to networks/1234/audienceSegments/4567.

negative

boolean

Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.

CmsMetadataTargeting

Represents targeting for CMS metadata. The values are ORed together.

JSON representation
{
  "cmsMetadataValues": [
    string
  ],
  "negative": boolean
}
Fields
cmsMetadataValues[]

string

Optional. The resource names of the targeted CMS metadata values.

negative

boolean

Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.