addedInput schema / properties / targeting
Added value: +{
+ "additionalProperties": false,
+ "description": "Meta: replaces the ad set's whole targeting.",
+ "properties": {
+ "advantageAudience": {
+ "default": false,
+ "type": "boolean"
+ },
+ "ageMax": {
+ "maximum": 65,
+ "minimum": 13,
+ "type": "integer"
+ },
+ "ageMin": {
+ "maximum": 65,
+ "minimum": 13,
+ "type": "integer"
+ },
+ "behaviors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "pattern": "^\\d+$",
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 200,
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "customAudiences": {
+ "items": {
+ "pattern": "^\\d+$",
+ "type": "string"
+ },
+ "maxItems": 100,
+ "type": "array"
+ },
+ "demographics": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "pattern": "^\\d+$",
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "life_events",
+ "family_statuses",
+ "industries",
+ "income",
+ "education_statuses",
+ "relationship_statuses",
+ "work_positions",
+ "work_employers",
+ "education_schools",
+ "education_majors",
+ "user_adclusters"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ],
+ "type": "object"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "excludedCustomAudiences": {
+ "items": {
+ "pattern": "^\\d+$",
+ "type": "string"
+ },
+ "maxItems": 100,
+ "type": "array"
+ },
+ "excludedLocations": {
+ "additionalProperties": false,
+ "properties": {
+ "cities": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "distanceUnit": {
+ "enum": [
+ "mile",
+ "kilometer"
+ ],
+ "type": "string"
+ },
+ "key": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "radius": {
+ "maximum": 80,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "type": "object"
+ },
+ "maxItems": 250,
+ "type": "array"
+ },
+ "countries": {
+ "items": {
+ "pattern": "^[A-Z]{2}$",
+ "type": "string"
+ },
+ "maxItems": 250,
+ "type": "array"
+ },
+ "regions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "key": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "type": "object"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "zips": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "key": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "type": "object"
+ },
+ "maxItems": 2500,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "gender": {
+ "default": "all",
+ "enum": [
+ "all",
+ "male",
+ "female"
+ ],
+ "type": "string"
+ },
+ "interests": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "pattern": "^\\d+$",
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 200,
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "languages": {
+ "items": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "locations": {
+ "additionalProperties": false,
+ "properties": {
+ "cities": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "distanceUnit": {
+ "enum": [
+ "mile",
+ "kilometer"
+ ],
+ "type": "string"
+ },
+ "key": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ },
+ "radius": {
+ "maximum": 80,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "type": "object"
+ },
+ "maxItems": 250,
+ "type": "array"
+ },
+ "countries": {
+ "items": {
+ "pattern": "^[A-Z]{2}$",
+ "type": "string"
+ },
+ "maxItems": 250,
+ "type": "array"
+ },
+ "regions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "key": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "type": "object"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "zips": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "key": {
+ "maxLength": 100,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "type": "object"
+ },
+ "maxItems": 2500,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "placements": {
+ "anyOf": [
+ {
+ "const": "automatic",
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "audienceNetworkPositions": {
+ "items": {
+ "enum": [
+ "classic",
+ "rewarded_video"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "devicePlatforms": {
+ "items": {
+ "enum": [
+ "mobile",
+ "desktop"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "facebookPositions": {
+ "items": {
+ "enum": [
+ "feed",
+ "right_hand_column",
+ "marketplace",
+ "video_feeds",
+ "story",
+ "search",
+ "instream_video",
+ "facebook_reels",
+ "facebook_reels_overlay",
+ "profile_feed",
+ "notification"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "instagramPositions": {
+ "items": {
+ "enum": [
+ "stream",
+ "story",
+ "explore",
+ "explore_home",
+ "reels",
+ "profile_feed",
+ "ig_search",
+ "profile_reels"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "messengerPositions": {
+ "items": {
+ "enum": [
+ "messenger_home",
+ "sponsored_messages",
+ "story"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "publisherPlatforms": {
+ "items": {
+ "enum": [
+ "facebook",
+ "instagram",
+ "audience_network",
+ "messenger",
+ "threads"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "publisherPlatforms"
+ ],
+ "type": "object"
+ }
+ ],
+ "default": "automatic"
+ }
+ },
+ "required": [
+ "locations"
+ ],
+ "type": "object"
+}