channels
messenger
campaigns-messenger

Create campaign

Create a new Facebook Messenger marketing campaign to send marketing messages to opted-in users. The campaign is associated with your ad account and Facebook page.

post/messenger/1/campaigns

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token
    • or API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic

Request body

namestring required

Campaign name.

dailyBudgetinteger

Daily budget for the campaign in cents. At least one of dailyBudget or lifetimeBudget must be provided.

lifetimeBudgetinteger

Lifetime budget for the campaign in cents. At least one of dailyBudget or lifetimeBudget must be provided.

adAccountIdstring required

Facebook ad account ID associated with the campaign.

pageIdstring required

Facebook page ID associated with the campaign.

Example request

{
  "name": "Summer Sale Campaign",
  "dailyBudget": 10000,
  "lifetimeBudget": 100000,
  "adAccountId": "ACT_123456789",
  "pageId": "111111111111111"
}

Response

Campaign created successfully.

idstring

Unique campaign ID.

namestring

Campaign name.

adAccountIdstring

Facebook ad account ID associated with the campaign.

pageIdstring

Facebook page ID associated with the campaign.

Example response

{
  "id": "120213234151570",
  "name": "Summer Sale Campaign",
  "adAccountId": "ACT_123456789",
  "pageId": "111111111111111"
}

Changes

No recorded changes to this operation across all 1 revision of this API.