changedInput schema / properties / body / properties / audience / allOf
Previous value: -[
- {
- "properties": {
- "ageMax": {
- "description": "Maximum age for targeting",
- "example": 65,
- "type": "number"
- },
- "ageMin": {
- "description": "Minimum age for targeting",
- "example": 18,
- "type": "number"
- },
- "genders": {
- "description": "Gender targeting (1 = male, 2 = female)",
- "example": [
- 1,
- 2
- ],
- "items": {
- "type": "number"
- },
- "type": "array"
- },
- "geoLocations": {
- "description": "Geographic locations to target or exclude",
- "example": [
- {
- "key": "US",
- "name": "United States",
- "selectionType": "include",
- "type": "country"
- },
- {
- "key": "2421836",
- "name": "New York",
- "radius": 25,
- "radiusUnit": "mile",
- "selectionType": "include",
- "type": "city"
- }
- ],
- "items": {
- "properties": {
- "geometry": {
- "allOf": [
- {
- "properties": {
- "location": {
- "description": "Geographic coordinates",
- "example": {
- "lat": 40.7128,
- "lng": -74.006
- },
- "type": "object"
- },
- "locationType": {
- "description": "Geocoding result type",
- "example": "APPROXIMATE",
- "type": "string"
- }
- },
- "required": [
- "location",
- "locationType"
- ],
- "type": "object"
- }
- ],
- "description": "Geometry data for address-based targeting",
- "example": {
- "location": {
- "lat": 40.7128,
- "lng": -74.006
- },
- "locationType": "APPROXIMATE"
- }
- },
- "key": {
- "description": "Facebook location key",
- "example": "US",
- "type": "string"
- },
- "name": {
- "description": "Location display name",
- "example": "United States",
- "type": "string"
- },
- "radius": {
- "description": "Targeting radius around the location (for city/address types)",
- "example": 25,
- "type": "number"
- },
- "radiusUnit": {
- "description": "Unit for the targeting radius",
- "enum": [
- "km",
- "mi"
- ],
- "example": "mi",
- "type": "string"
- },
- "selectionType": {
- "description": "Whether the location is included or excluded from targeting",
- "enum": [
- "include",
- "exclude"
- ],
- "example": "include",
- "type": "string"
- },
- "type": {
- "description": "Geographic location type",
- "enum": [
- "country",
- "city",
- "region",
- "country_group",
- "geo_market",
- "large_geo_area",
- "medium_geo_area",
- "small_geo_area",
- "subcity",
- "neighborhood",
- "zip",
- "address"
- ],
- "example": "country",
- "type": "string"
- }
- },
- "required": [
- "key",
- "name",
- "type",
- "selectionType"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "interests": {
- "description": "Interest-based targeting criteria",
- "example": [
- {
- "id": "6003139266461",
- "name": "Fitness and wellness",
- "type": "interests"
- }
- ],
- "items": {
- "properties": {
- "id": {
- "description": "Interest ID",
- "example": "6003139266461",
- "type": "string"
- },
- "name": {
- "description": "Interest name",
- "example": "Fitness and wellness",
- "type": "string"
- },
- "type": {
- "description": "Interest category type (defaults to \"interests\" if omitted)",
- "example": "interests",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "locales": {
- "description": "Language locales to target",
- "example": [
- {
- "key": 6,
- "name": "English (US)"
- }
- ],
- "items": {
- "properties": {
- "key": {
- "description": "Facebook locale key",
- "example": 6,
- "type": "number"
- },
- "name": {
- "description": "Locale display name",
- "example": "English (US)",
- "type": "string"
- }
- },
- "required": [
- "name",
- "key"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "lookalike": {
- "description": "Lookalike audiences to target",
- "example": [
- {
- "id": "23851234567890",
- "name": "Lookalike - Website Visitors"
- }
- ],
- "items": {
- "properties": {
- "id": {
- "description": "Custom audience ID",
- "example": "23851234567890",
- "type": "string"
- },
- "name": {
- "description": "Custom audience name",
- "example": "Website Visitors - Last 30 Days",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "placementType": {
- "description": "Placement strategy — \"auto\" lets Facebook choose, \"manual\" uses the placements config",
- "enum": [
- "auto",
- "manual"
- ],
- "example": "auto",
- "type": "string"
- },
- "placements": {
- "allOf": [
- {
- "properties": {
- "facebook": {
- "description": "Facebook placement positions",
- "example": [
- "feed",
- "right_hand_column",
- "marketplace"
- ],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "instagram": {
- "description": "Instagram placement positions",
- "example": [
- "stream",
- "story",
- "explore"
- ],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "messenger": {
- "description": "Messenger placement positions",
- "example": [
- "messenger_home"
- ],
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "type": "object"
- }
- ],
- "description": "Ad placement positions per platform (only used when placementType is \"manual\")",
- "example": {
- "facebook": [
- "feed"
- ],
- "instagram": [
- "story"
- ],
- "messenger": [
- "messenger_home"
- ]
- }
- },
- "retargeting": {
- "description": "Retargeting custom audiences to target",
- "example": [
- {
- "id": "23851234567891",
- "name": "Website Visitors - Last 30 Days"
- }
- ],
- "items": {
- "properties": {
- "id": {
- "description": "Custom audience ID",
- "example": "23851234567890",
- "type": "string"
- },
- "name": {
- "description": "Custom audience name",
- "example": "Website Visitors - Last 30 Days",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "geoLocations"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "ageMax": {
+ "description": "Maximum age for targeting",
+ "example": 65,
+ "type": "number"
+ },
+ "ageMin": {
+ "description": "Minimum age for targeting",
+ "example": 18,
+ "type": "number"
+ },
+ "genders": {
+ "description": "Gender targeting (1 = male, 2 = female)",
+ "example": [
+ 1,
+ 2
+ ],
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "geoLocations": {
+ "description": "Geographic locations to target or exclude",
+ "example": [
+ {
+ "key": "US",
+ "name": "United States",
+ "selectionType": "include",
+ "type": "country"
+ },
+ {
+ "key": "2421836",
+ "name": "New York",
+ "radius": 25,
+ "radiusUnit": "mile",
+ "selectionType": "include",
+ "type": "city"
+ }
+ ],
+ "items": {
+ "properties": {
+ "countryCode": {
+ "description": "ISO 3166-1 alpha-2 code of the country the location is in. Used to declare Meta regional regulated categories (e.g. Singapore, Taiwan).",
+ "example": "US",
+ "type": "string"
+ },
+ "countryName": {
+ "description": "Name of the country the location is in",
+ "example": "United States",
+ "type": "string"
+ },
+ "geometry": {
+ "allOf": [
+ {
+ "properties": {
+ "location": {
+ "description": "Geographic coordinates",
+ "example": {
+ "lat": 40.7128,
+ "lng": -74.006
+ },
+ "type": "object"
+ },
+ "locationType": {
+ "description": "Geocoding result type",
+ "example": "APPROXIMATE",
+ "type": "string"
+ }
+ },
+ "required": [
+ "location",
+ "locationType"
+ ],
+ "title": "AudienceLocationGeometry",
+ "type": "object"
+ }
+ ],
+ "description": "Geometry data for address-based targeting",
+ "example": {
+ "location": {
+ "lat": 40.7128,
+ "lng": -74.006
+ },
+ "locationType": "APPROXIMATE"
+ }
+ },
+ "key": {
+ "description": "Facebook location key",
+ "example": "US",
+ "type": "string"
+ },
+ "name": {
+ "description": "Location display name",
+ "example": "United States",
+ "type": "string"
+ },
+ "radius": {
+ "description": "Targeting radius around the location (for city/address types)",
+ "example": 25,
+ "type": "number"
+ },
+ "radiusUnit": {
+ "description": "Unit for the targeting radius",
+ "enum": [
+ "km",
+ "mi"
+ ],
+ "example": "mi",
+ "type": "string"
+ },
+ "selectionType": {
+ "description": "Whether the location is included or excluded from targeting",
+ "enum": [
+ "include",
+ "exclude"
+ ],
+ "example": "include",
+ "type": "string"
+ },
+ "type": {
+ "description": "Geographic location type",
+ "enum": [
+ "country",
+ "city",
+ "region",
+ "country_group",
+ "geo_market",
+ "large_geo_area",
+ "medium_geo_area",
+ "small_geo_area",
+ "subcity",
+ "neighborhood",
+ "zip",
+ "address"
+ ],
+ "example": "country",
+ "type": "string"
+ }
+ },
+ "required": [
+ "key",
+ "name",
+ "type",
+ "selectionType"
+ ],
+ "title": "AudienceLocationDTO",
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "interests": {
+ "description": "Interest-based targeting criteria",
+ "example": [
+ {
+ "id": "6003139266461",
+ "name": "Fitness and wellness",
+ "type": "interests"
+ }
+ ],
+ "items": {
+ "properties": {
+ "id": {
+ "description": "Interest ID",
+ "example": "6003139266461",
+ "type": "string"
+ },
+ "name": {
+ "description": "Interest name",
+ "example": "Fitness and wellness",
+ "type": "string"
+ },
+ "type": {
+ "description": "Interest category type (defaults to \"interests\" if omitted)",
+ "example": "interests",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "title": "AudienceInterestDTO",
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "locales": {
+ "description": "Language locales to target",
+ "example": [
+ {
+ "key": 6,
+ "name": "English (US)"
+ }
+ ],
+ "items": {
+ "properties": {
+ "key": {
+ "description": "Facebook locale key",
+ "example": 6,
+ "type": "number"
+ },
+ "name": {
+ "description": "Locale display name",
+ "example": "English (US)",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "key"
+ ],
+ "title": "AudienceLocaleDTO",
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "lookalike": {
+ "description": "Lookalike audiences to target",
+ "example": [
+ {
+ "id": "23851234567890",
+ "name": "Lookalike - Website Visitors"
+ }
+ ],
+ "items": {
+ "properties": {
+ "id": {
+ "description": "Custom audience ID",
+ "example": "23851234567890",
+ "type": "string"
+ },
+ "name": {
+ "description": "Custom audience name",
+ "example": "Website Visitors - Last 30 Days",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "title": "AudienceCustomAudienceItemDTO",
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "placementType": {
+ "description": "Placement strategy — \"auto\" lets Facebook choose, \"manual\" uses the placements config",
+ "enum": [
+ "auto",
+ "manual"
+ ],
+ "example": "auto",
+ "type": "string"
+ },
+ "placements": {
+ "allOf": [
+ {
+ "properties": {
+ "facebook": {
+ "description": "Facebook placement positions",
+ "example": [
+ "feed",
+ "right_hand_column",
+ "marketplace"
+ ],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "instagram": {
+ "description": "Instagram placement positions",
+ "example": [
+ "stream",
+ "story",
+ "explore"
+ ],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "messenger": {
+ "description": "Messenger placement positions",
+ "example": [
+ "messenger_home"
+ ],
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "title": "AudiencePlacementsDTO",
+ "type": "object"
+ }
+ ],
+ "description": "Ad placement positions per platform (only used when placementType is \"manual\")",
+ "example": {
+ "facebook": [
+ "feed"
+ ],
+ "instagram": [
+ "story"
+ ],
+ "messenger": [
+ "messenger_home"
+ ]
+ }
+ },
+ "retargeting": {
+ "description": "Retargeting custom audiences to target",
+ "example": [
+ {
+ "id": "23851234567891",
+ "name": "Website Visitors - Last 30 Days"
+ }
+ ],
+ "items": {
+ "properties": {
+ "id": {
+ "description": "Custom audience ID",
+ "example": "23851234567890",
+ "type": "string"
+ },
+ "name": {
+ "description": "Custom audience name",
+ "example": "Website Visitors - Last 30 Days",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "title": "AudienceCustomAudienceItemDTO",
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "geoLocations"
+ ],
+ "title": "FacebookAudienceDTO",
+ "type": "object"
+ }
+]