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.

CriterionCategoryAvailability

Information of category availability, per advertising channel.

JSON representation
{
  "channel": {
    object (CriterionCategoryChannelAvailability)
  },
  "locale": [
    {
      object (CriterionCategoryLocaleAvailability)
    }
  ]
}
Fields
channel

object (CriterionCategoryChannelAvailability)

Channel types and subtypes that are available to the category.

locale[]

object (CriterionCategoryLocaleAvailability)

Locales that are available to the category for the channel.

CriterionCategoryChannelAvailability

Information of advertising channel type and subtypes a category is available in.

JSON representation
{
  "availabilityMode": enum (CriterionCategoryChannelAvailabilityMode),
  "advertisingChannelType": enum (AdvertisingChannelType),
  "advertisingChannelSubType": [
    enum (AdvertisingChannelSubType)
  ],
  "includeDefaultChannelSubType": boolean
}
Fields
availabilityMode

enum (CriterionCategoryChannelAvailabilityMode)

Format of the channel availability. Can be ALL_CHANNELS (the rest of the fields will not be set), CHANNEL_TYPE (only advertisingChannelType type will be set, the category is available to all sub types under it) or CHANNEL_TYPE_AND_SUBTYPES (advertisingChannelType, advertisingChannelSubType, and includeDefaultChannelSubType will all be set).

advertisingChannelType

enum (AdvertisingChannelType)

Channel type the category is available to.

advertisingChannelSubType[]

enum (AdvertisingChannelSubType)

Channel subtypes under the channel type the category is available to.

includeDefaultChannelSubType

boolean

Whether default channel sub type is included. For example, advertisingChannelType being DISPLAY and includeDefaultChannelSubType being false means that the default display campaign where channel sub type is not set is not included in this availability configuration.

CriterionCategoryChannelAvailabilityMode

Enum containing the possible CriterionCategoryChannelAvailabilityMode.

Enums
UNSPECIFIED Not specified.
UNKNOWN Used for return value only. Represents value unknown in this version.
ALL_CHANNELS The category is available to campaigns of all channel types and subtypes.
CHANNEL_TYPE_AND_ALL_SUBTYPES The category is available to campaigns of a specific channel type, including all subtypes under it.
CHANNEL_TYPE_AND_SUBSET_SUBTYPES The category is available to campaigns of a specific channel type and subtype(s).

CriterionCategoryLocaleAvailability

Information about which locales a category is available in.

JSON representation
{
  "availabilityMode": enum (CriterionCategoryLocaleAvailabilityMode),
  "countryCode": string,
  "languageCode": string
}
Fields
availabilityMode

enum (CriterionCategoryLocaleAvailabilityMode)

Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and language will be empty), COUNTRY (only country will be set), LANGUAGE (only language wil be set), COUNTRY_AND_LANGUAGE (both country and language will be set).

countryCode

string

Code of the country.

languageCode

string

Code of the language.

CriterionCategoryLocaleAvailabilityMode

Enum containing the possible CriterionCategoryLocaleAvailabilityMode.

Enums
UNSPECIFIED Not specified.
UNKNOWN Used for return value only. Represents value unknown in this version.
ALL_LOCALES The category is available to campaigns of all locales.
COUNTRY_AND_ALL_LANGUAGES The category is available to campaigns within a list of countries, regardless of language.
LANGUAGE_AND_ALL_COUNTRIES The category is available to campaigns within a list of languages, regardless of country.
COUNTRY_AND_LANGUAGE The category is available to campaigns within a list of country, language pairs.