Community Discussion
Blocking publishers at business account level
Hi
Is it possible to block multiple publishers from all accounts under a specific business account?
Thanks
Posted by Amit 4 months ago
Requested action is forbidden
I am trying to block a publisher and when executing the request I receive the error Requested action is forbidden
```php,php
$url = "https://backstage.taboola.com/backstage/api/1.0/$account_id/campaigns/$campaign_id/";
$body = json_encode([
"patch_operation" => "ADD",
"publisher_targeting" => [
"publishers"=> [$site]
]
]);
$client = new GuzzleHttp();
try {
$response = $client->request('PATCH', $url, [
'headers' => [
'authorization' => "Bearer $token",
'accept' => 'application/json',
'content-type' => 'application/json',
],
'body' => $body,
]);
$response_curl->status=1;
}catch (\Exception $e) {
$response = $e->getResponse();
}
```
Posted by alfon 5 months ago
Can't block publishers on some campaigns
I'm trying to block some publisher on a campaign, but even though the API call is successful, the publishers are still not blocked.
This is the request body:
{
"publisher_targeting":{
"type":"EXCLUDE",
"value":[
"investing-placements-24",
"kueez-placements-251",
"9gag-placements-251",
"mobitech-tn-launcher2",
"fronthb",
"rcs-gazzetta",
"mobitech-tn-launcher",
"ume-wangxin-web",
"salesfrontier-elecbean",
"salesfrontier-play2048",
"erowz-coolstreaming",
"lotustechnologies-hirugossip",
"pushpros-health",
"carsandyachts-n",
"omgstudios-doctorreport"
]
}
}
Am I missing something?
Posted by Andrea Salvadori 5 months ago
Sites pause/unpause specific campaign only
Hi, I'm trying to pause sites on a specific campaign with this endpoint:
https://backstage.taboola.com/backstage/api/1.0/{network-account-name}/campaigns/{campaign-id}
I can see sites paused (they are reflected after 20 min to dashboard) but they result blocked as "Account Level" and I can't unpause them with backstage.
How could I block sites for that campaign only?
Furthermore how could now unblock sites blocked on Account Level?
Thanks
Posted by Albert about 1 year ago
Can't exclude Network publisher
Hello,
while trying to block campaigns at the account level, I get this message:
{
"http_status": 400,
"message": "Can't exclude Network publisher",
"message_code": "api.action.bad_request.null"
}
this is what I sent:
POST https://backstage.taboola.com/backstage/api/1.0/ACCOUNTID/block-publisher\
Body:
{
"sites": [
"indiatoday-businesstoday",
"indiatoday-wonderwoman",
"indiatoday-cosmo"
]
}
The account I am sending the request for is not a network account. What could be the problem?
Thanks,
Amoir
Posted by [email protected] about 1 year ago
API Error: site does not belong to campaign targetting
Hello,
we are getting this error when trying to block some site via API.
The problem is that these sites do belong to the campaign and are also currently getting traffic. There are multiple examples but below I'm sending just one:
Campaign id: 9761652
Sites we're trying to block: nbcsports-probasketballtalk, tegna-wxia
Posted by Ervin about 2 years ago