{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-components-schema-targeting-schema.json",
  "title": "components_schema_targeting",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reddit-bid-suggestions-api-openapi.yml#/components/schemas/components_schema_targeting",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "carriers": {
      "description": "The [mobile carriers](https://ads-api.reddit.com/docs/v3/operations/List%20Carriers) to target.",
      "type": [
        "array",
        "null"
      ],
      "minItems": 0,
      "maxItems": 100,
      "items": {
        "type": "string",
        "enum": [
          "ATT_WIRELESS_US",
          "SPRINT_US",
          "TMOBILE_US",
          "VERIZON_US",
          "EE_UK",
          "VODAFONE_UK",
          "O2_UK",
          "THREE_UK",
          "SKY_MOBILE_UK",
          "BT_MOBILE_UK",
          "TALKTALK_UK",
          "VIRGIN_MEDIA_UK",
          "ROGERS_WIRELESS_CA",
          "BELL_MOBILITY_CA",
          "VIRGIN_MOBILE_CA",
          "BELL_MTS_CA",
          "TELUS_MOBILITY_CA",
          "SHAW_MOBILE_CA",
          "HI3G_ACCESS_AB_SE",
          "BOUYGUES_TELECOM",
          "FREE_MOBILE_SAS",
          "TELE2_SWEDEN",
          "SWISSCOM",
          "SOUTHERN_PHONE_COMPANY",
          "EXETEL",
          "TDC_DANMARK",
          "ODIDO_NETHERLANDS",
          "TELENOR_SVERIGE",
          "ICE_NORWAY",
          "OPTUS",
          "HI3G_ACCESS_AB_DK",
          "BELONG",
          "ORANGE_BELGIUM",
          "O2_DEUTSCHLAND",
          "BREDBAND2_AB",
          "SFR",
          "TELIA_NORGE_AS",
          "TELIA_FINLAND",
          "ELISA",
          "VODAFONE_AUSTRALIA",
          "ELISA_MOBILE",
          "TELENOR_AS",
          "PROXIMUS",
          "DNA_OYJ",
          "TELENOR_SVERIGE_AB",
          "EWETEL",
          "SPINTEL",
          "AUSSIE_BROADBAND",
          "ZIGGO",
          "VODAFONE_GERMANY",
          "IINET_LIMITED",
          "WILHELMTEL",
          "SUPERLOOP",
          "TELIA_SE",
          "TELSTRA_INTERNET",
          "ORANGE",
          "TELIA_DK",
          "TMOBILE_NETHERLANDS",
          "WIRELINE",
          "TPG_INTERNET",
          "SALT_MOBILE",
          "VOO",
          "TELIA_NORGE",
          "TELENOR_NORGE",
          "TELIA_MOBILE",
          "TELENET",
          "DEUTSCHE_TELEKOM_AG",
          "SUNRISE",
          "KPN",
          "BOOST_MOBILE",
          "COMCAST",
          "US_CELLULAR"
        ]
      }
    },
    "communities": {
      "description": "The [Reddit communities (\"subreddits\")](https://ads-api.reddit.com/docs/v3/operations/List%20Communities) to target.",
      "type": "array",
      "minItems": 0,
      "items": {
        "type": "string"
      }
    },
    "custom_audience_ids": {
      "description": "The [custom audiences](https://ads-api.reddit.com/docs/v3/operations/List%20User%20Custom%20Audiences) to target.",
      "type": "array",
      "minItems": 0,
      "items": {
        "type": "string"
      }
    },
    "devices": {
      "description": "The [devices](https://ads-api.reddit.com/docs/v3/operations/List%20Devices) to target. Exactly one device must be targeted for `APP_INSTALLS` campaigns.",
      "type": "array",
      "minItems": 0,
      "maxItems": 100,
      "items": {
        "$ref": "#/$defs/components_schema_device_target"
      }
    },
    "excluded_communities": {
      "description": "The communities (\"subreddits\") to exclude from targeting. Ads won't be eligible for auctions in these communities.",
      "type": "array",
      "minItems": 0,
      "items": {
        "type": "string"
      }
    },
    "excluded_custom_audience_ids": {
      "description": "The custom audiences to exclude from targeting.",
      "type": "array",
      "minItems": 0,
      "items": {
        "type": "string"
      }
    },
    "excluded_geolocations": {
      "description": "The geolocations to exclude from targeting.",
      "type": "array",
      "minItems": 0,
      "maxItems": 20000,
      "items": {
        "$ref": "#/$defs/id-4"
      }
    },
    "excluded_interests": {
      "description": "The interests to exclude from targeting.",
      "deprecated": true,
      "type": "array",
      "minItems": 0,
      "maxItems": 200,
      "items": {
        "type": "string"
      }
    },
    "excluded_keywords": {
      "description": "The keywords to exclude from targeting.",
      "type": "array",
      "minItems": 0,
      "maxItems": 2000,
      "items": {
        "type": "string"
      }
    },
    "expand_targeting": {
      "description": "Allow Reddit to expand your targeting options. Learn about [automated targeting](https://business.reddithelp.com/s/article/automated-targeting).",
      "type": [
        "boolean",
        "null"
      ]
    },
    "gender": {
      "description": "The gender group to target.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "FEMALE",
        "MALE",
        null
      ]
    },
    "geolocations": {
      "description": "The [geolocations](https://ads-api.reddit.com/docs/v3/operations/List%20Geolocations) to target.",
      "type": "array",
      "minItems": 0,
      "maxItems": 20000,
      "items": {
        "$ref": "#/$defs/id-4"
      }
    },
    "interests": {
      "description": "The [interests](https://ads-api.reddit.com/docs/v3/operations/List%20Interests) to target.",
      "type": "array",
      "minItems": 0,
      "maxItems": 200,
      "items": {
        "type": "string"
      }
    },
    "keywords": {
      "description": "The keywords to target.",
      "type": "array",
      "minItems": 0,
      "maxItems": 1000,
      "items": {
        "type": "string"
      }
    },
    "locations": {
      "description": "The client location to place the advertisement. For collections ads, only `FEED` is supported.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/components_enums_placements"
      }
    },
    "platforms": {
      "description": "The platforms to show the advertisement on. At least 1 mobile type must be targeted for `APP_INSTALLS` campaigns.",
      "type": "array",
      "minItems": 0,
      "maxItems": 7,
      "items": {
        "type": "string",
        "x-enumDescriptions": {
          "DESKTOP_LEGACY": "Legacy desktop; deprecated and no longer supported."
        },
        "enum": [
          "ALL",
          "DESKTOP",
          "DESKTOP_LEGACY",
          "MOBILE_NATIVE",
          "MOBILE_WEB",
          "MOBILE_WEB_3X",
          "SHREDTOP"
        ]
      }
    },
    "suppression_event_types": {
      "description": "The suppression event types.",
      "type": "array",
      "minItems": 0,
      "maxItems": 11,
      "items": {
        "type": "string",
        "const": "ALL_FEATURES"
      }
    },
    "view_modes": {
      "description": "The layouts the ad can be placed in.",
      "type": "array",
      "minItems": 0,
      "maxItems": 5,
      "items": {
        "type": "string",
        "enum": [
          "ALL",
          "CARD",
          "CLASSIC",
          "COMPACT",
          "IMMERSIVE"
        ]
      }
    },
    "languages": {
      "description": "The [languages](https://ads-api.reddit.com/docs/v3/operations/List%20Languages) to target ([ISO 639-1](https://www.loc.gov/standards/iso639-2/php/code_list.php)).",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/components_enum_targeting_language_codes"
      }
    }
  },
  "$defs": {
    "components_enum_targeting_language_codes": {
      "type": "string",
      "title": "TargetingLanguageCodes",
      "description": "The language's code ([ISO 639-1](https://www.loc.gov/standards/iso639-2/php/code_list.php)).",
      "enum": [
        "AR",
        "CS",
        "DA",
        "DE",
        "EL",
        "EN",
        "ES",
        "FI",
        "FR",
        "HU",
        "IT",
        "JA",
        "KO",
        "NL",
        "NO",
        "PL",
        "PT",
        "RO",
        "SV",
        "VI",
        "ZH"
      ]
    },
    "components_enums_placements": {
      "description": "Enum representing the placement of a creative.",
      "type": "string",
      "enum": [
        "FEED",
        "COMMENTS_PAGE"
      ]
    },
    "components_schema_device_target": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "label_map": {
          "description": "The device models selected by label to target, organized by make.",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "type": "array"
          }
        },
        "max_version": {
          "description": "The maximum major OS version to target.",
          "type": [
            "string",
            "null"
          ]
        },
        "min_version": {
          "description": "The minimum major OS version to target. Must be at least `14` for iOS devices.",
          "type": [
            "string",
            "null"
          ]
        },
        "os": {
          "description": "The device OS to target.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "ANDROID",
            "IOS",
            null
          ]
        },
        "type": {
          "description": "The device type to target.",
          "type": "string",
          "enum": [
            "DESKTOP",
            "MOBILE"
          ]
        }
      }
    },
    "id-4": {
      "description": "The geolocation ID.",
      "type": "string",
      "readOnly": true
    }
  }
}