Update ad rule
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
{
"success": true
}curl --location --request PUT 'https://us-central1-appgregator.cloudfunctions.net/facebook/adrules?name=ft-4&connection_name=fbads-01&rule_id=23852206730700549' \
--header 'x-api-key: U2Fsd...' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "ENABLED"
}'var axios = require('axios');
var data = JSON.stringify({
"status": "ENABLED"
});
var config = {
method: 'put',
url: 'https://us-central1-appgregator.cloudfunctions.net/facebook/adrules?name=ft-4&connection_name=fbads-01&rule_id=23852206730700549',
headers: {
'x-api-key': 'U2Fsd...',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Last updated