Remove an ad account
curl --request DELETE \
--url https://api.1-news.app/v1/projects/{projectId}/ads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>"
}
'const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>'})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/ads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/ads"
payload = { "provider": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"ok": true
}Ads
Remove an ad account
Remove one advertising account from a newsroom.
DELETE
/
v1
/
projects
/
{projectId}
/
ads
Remove an ad account
curl --request DELETE \
--url https://api.1-news.app/v1/projects/{projectId}/ads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>"
}
'const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>'})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/ads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/ads"
payload = { "provider": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"ok": true
}