Create Boosted Page Campaign from Preset
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
"1"
"107226870964400"
"50"
JSON-encoded Facebook AdSet targeting spec (merged on top of the preset's audience_targeting). See https://developers.facebook.com/docs/marketing-api/audiences/reference/targeting-specs
{
"geo_locations": {
"countries": ["US"],
"cities": [
{
"key": "2418779",
"name": "New York",
"region": "New York",
"country": "US",
"radius": 25,
"distance_unit": "mile"
}
],
"location_types": ["home", "recent"]
},
"age_min": 21,
"age_max": 55,
"genders": [1, 2],
"locales": [6],
"flexible_spec": [
{
"interests": [
{ "id": "6003107902433", "name": "Travel" },
{
"id": "6003397425735",
"name": "Outdoor recreation"
}
],
"behaviors": [
{
"id": "6002714895372",
"name": "Frequent Travelers"
}
]
}
],
"exclusions": {
"interests": [
{
"id": "6003020834693",
"name": "Business travel"
}
]
},
"publisher_platforms": ["facebook", "instagram"],
"facebook_positions": ["feed", "video_feeds"],
"instagram_positions": ["stream", "story", "reels"],
"device_platforms": ["mobile", "desktop"],
"targeting_automation": { "advantage_audience": 0 }
}17841433491511988
"#ad1"
Array of Facebook post IDs to boost. Only these posts will be boosted.
Call-to-action button type
Call-to-action destination URL
Create Facebook dark-post creatives. Defaults to never.
never, when_needed, always "when_needed"
Campaign end date (timestamp)
Response
Returns true when campaign was successfully created
The response is of type boolean.