Caution: You are viewing documentation for the API's REST interface. Most of our official client libraries use gRPC. See the REST Introduction for details.

REST Resource: customers.sharedCriteria

Resource: SharedCriterion

A criterion belonging to a shared set.

JSON representation
{
  "resourceName": string,
  "type": enum (CriterionType),
  "sharedSet": string,
  "criterionId": string,

  // Union field criterion can be only one of the following:
  "keyword": {
    object (KeywordInfo)
  },
  "youtubeVideo": {
    object (YouTubeVideoInfo)
  },
  "youtubeChannel": {
    object (YouTubeChannelInfo)
  },
  "placement": {
    object (PlacementInfo)
  },
  "mobileAppCategory": {
    object (MobileAppCategoryInfo)
  },
  "mobileApplication": {
    object (MobileApplicationInfo)
  }
  // End of list of possible types for union field criterion.
}
Fields
resourceName

string

Immutable. The resource name of the shared criterion. Shared set resource names have the form:

customers/{customerId}/sharedCriteria/{shared_set_id}~{criterionId}

type

enum (CriterionType)

Output only. The type of the criterion.

sharedSet

string

Immutable. The shared set to which the shared criterion belongs.

criterionId

string (int64 format)

Output only. The ID of the criterion.

This field is ignored for mutates.

Union field criterion. The criterion.

Exactly one must be set. criterion can be only one of the following:

keyword

object (KeywordInfo)

Immutable. Keyword.

youtubeVideo

object (YouTubeVideoInfo)

Immutable. YouTube Video.

youtubeChannel

object (YouTubeChannelInfo)

Immutable. YouTube Channel.

placement

object (PlacementInfo)

Immutable. Placement.

mobileAppCategory

object (MobileAppCategoryInfo)

Immutable. Mobile App Category.

mobileApplication

object (MobileApplicationInfo)

Immutable. Mobile application.

Methods

get

Returns the requested shared criterion in full detail.

mutate

Creates or removes shared criteria.