Create an Ad

The ad set and the ad creative come together to create the ad itself.

You create the ad by sending a POST request to the /act_<AD_ACCOUNT_ID>/ads endpoint along with parameters such as the adset_id and creative details.

Example API Request:

curl -X POST \
  https://graph.facebook.com/v21.0/act_<AD_ACCOUNT_ID>/ads \
  -F 'name=My Ad' \
  -F 'adset_id=AD_SET_ID' \
  -F 'creative={"creative_id": "<CREATIVE_ID>"}' \
  -F 'status=ACTIVE' \
  -F 'access_token=<ACCESS_TOKEN>'

Required Parameters

NameDescription

adset_id

The ID of the ad set under which the ad will run.

creative

Contains the creative ID for the ad.

status

Set to ACTIVE to launch the ad immediately.