Ads data
GET
https://us-central1-appgregator.cloudfunctions.net/facebook/adaccounts/ads-data/
Query Parameters
Name
Type
Description
name*
ft-4
connection_name*
String
fbads-01
Headers
Name
Type
Description
x-api-key*
String
U2Fsd...
{
"adaccounts": {
"data": [
{
"ads": {
"data": [
{
"id": "23852124768900549",
"account_id": "1514519918873559",
"name": "[19/09/2022] Mempromosikan Lahan bagus",
"campaign": {
"id": "23852124768350549"
},
"campaign_id": "23852124768350549",
"effective_status": "ACTIVE",
"created_time": "2022-09-19T20:31:57+0700",
"status": "ACTIVE"
},
{
"id": "23851629832700549",
"account_id": "1514519918873559",
"name": "Iklan Situs Web yang Sedang Berjalan",
"campaign": {
"id": "23851629832580549"
},
"campaign_id": "23851629832580549",
"effective_status": "ACTIVE",
"created_time": "2022-08-04T11:28:46+0700",
"status": "ACTIVE"
},
{
"id": "23851629142940549",
"account_id": "1514519918873559",
"name": "Iklan Situs Web yang Sedang Berjalan",
"campaign": {
"id": "23851629142770549"
},
"campaign_id": "23851629142770549",
"effective_status": "ACTIVE",
"created_time": "2022-08-04T09:50:53+0700",
"status": "ACTIVE"
}
],
"paging": {
"cursors": {
"before": "QVFIUk42T3ZA1bGpXNXJDN013V0J4aW5rTHNrZA0FBU1RQamh6aUxVRms5bEVFVGQ0OFhxYzRsUjB4RVdDcTdySzBZANlBPVTd3akdkaWZAHM0h2ZAmZANeEVQb0FB",
"after": "QVFIUkdMQ0M5VDJpT1ZAfYU9WNXBxeXBXcDZAJQXY1QXBoYlgzMjdrWVZAYajRsU0xyNnpSWGdaVmhmbDBzMHk4ODdZAWlJVMjc1OFp5T0hCWVBESUlwaE1JRi1n"
}
}
},
"id": "act_1514519918873559"
},
{
"id": "act_1217648562383717"
}
],
"paging": {
"cursors": {
"before": "MjM4NDI2MTA0NTYyODA1NDkZD",
"after": "MjM4NTAyNzk3MTI0ODA2ODQZD"
}
}
},
"id": "3305578009767732"
}
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/facebook/adaccounts/ads-data?name=ft-4&connection_name=fbads-01' \
--header 'x-api-key: U2Fsd...'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://us-central1-appgregator.cloudfunctions.net/facebook/adaccounts/ads-data?name=ft-4&connection_name=fbads-01',
headers: {
'x-api-key': 'U2Fsd...'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/facebook/adaccounts/ads-data?name=ft-4&connection_name=fbads-01',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-key: U2Fsd...'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated