Ads
An ad object contains all of the information necessary to display an ad on Facebook, including the creative.
GET
https://us-central1-appgregator.cloudfunctions.net/facebook/adaccounts/ads/
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
fbads-01
adaccount_id*
String
act_1514519918873559
Headers
Name
Type
Description
x-api-key*
String
U2Fsd...
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1,
"fbtrace_id": "AVb9Jih2dsqdc0TI3CZSZDN"
}
}
curl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/facebook/adaccounts/ads?name=ft-4&connection_name=fbads-01&adaccount_id=act_1514519918873559' \
--header 'x-api-key: U2Fsd...' \
--header 'Content-Type: application/json' \
--data-raw '{
"name" : "My Ad",
"adset_id" : "23852148656900549",
"creative" : {
"creative_id": "23852150404470549"
},
"status" : "PAUSED"
}'
Last updated