Skip to main content
POST
Create Boosted Page Campaign from Preset

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
preset_id
integer
required
Example:

"1"

page_id
integer
required
Example:

"107226870964400"

budget
number<float>
required
Example:

"50"

targeting
string
required

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

Example:
instagram_id
integer
Example:

17841433491511988

hashtag
string
Example:

"#ad1"

post_ids
string[]

Array of Facebook post IDs to boost. Only these posts will be boosted.

cta
string

Call-to-action button type

cta_url
string

Call-to-action destination URL

dark_posts
enum<string>

Create Facebook dark-post creatives. Defaults to never.

Available options:
never,
when_needed,
always
Example:

"when_needed"

end_date
string

Campaign end date (timestamp)

Response

200 - application/json

Returns true when campaign was successfully created

The response is of type boolean.