Community Discussion
Full authentication is required to access this resource
i am integrating create campaign api
Posted by Asm over 2 years ago
Taboola API
Hello
I am having problem with getting specifiec data from the api
I am trying to get" Peres Academic Center - SC" data
I got the Client ID and Client Secret and i got the token.
but in the response i get message: 'Unknown publisher'
what could be the problem?
Posted by shahar terem over 3 years ago
You can not target/block more than 1,500 sites even if I can see only half blocked
Hi Peter,
I'm receiving this error:
{"http_status":400,"message":"You can not target\/block more than 1,500 sites.","offending_field":""}
I know the limit is 1500 per campaign and 1500 per account limit. We have blocked 1121 blocked on the account level and 463 at the campaign level.
But I don't understand why we cannot block anymore at the campaign level as I can see that we blocked only 463. There are some cases where we request to block some publisher_id and I can't see it in the blocked list even if I received the OK message.
Campaign id: 4667401
https://www.screencast.com/t/rpQvZ4Vdm
Our account is: "[email protected]"
Thank you!
Posted by alexandru ciocan about 4 years ago
How to obtain client ID and client secret??
Hello. I have to use api to check the advertising cost. So, can I get a client ID and client secret so that I can use api?
Posted by [email protected] over 2 years ago
Issues connecting to API for new environment
Greetings,
We've worked with the backstage API a bit before, but for a new project, we had a sandbox environment set up for testing purposes.
We are having difficulty getting our API call to work, and the errors that are returning are not at all helpful. I really wish the API responded with more information to help troubleshoot.
If we use the numerical account ID provide by our account manager we get the following error:
{http_status: 403, message: "Requested action is forbiddenβ}
If we use the alpha string ID ie. "Your Account Sandbox Name" with letters and spaces we get the following error:
"Bad Request"
Our payload follows the JSON structure outlined here:
https://developers.taboola.com/backstage-api/reference#creating-a-batch-of-campaign-items
That is the method we are calling from our application, which submits the JSON object via an AJAX post.
Here is a section of our code to show what we are doing:
$url = 'https://backstage.taboola.com/backstage/oauth/token';
$data = array('client_id' => $taboolaCID, 'client_secret' => $taboolaSecret, 'grant_type' => 'client_credentials');
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data),
)
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
$taboolaAccessToken = json_decode($result)->{'access_token'};
$ch = curl_init('https://backstage.taboola.com/backstage/api/1.0/'.$taboolaAccount.'/campaigns/'.$campaign_id.'/items/mass' );
$payload = json_encode($collection, JSON_UNESCAPED_SLASHES);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, βOur Application Name');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload );
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'cache-control: no-cache',
'Authorization: Bearer ' . $taboolaAccessToken
));
$data = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
Any assistance would be greatly appreciated.
Thanks!
Posted by Chris Ellerby about 4 years ago
Rate limits and blacklisting
Hi there,
2 questions related to the API:
1. Are there any formal API rate limits? We have not bumped into any limits, but are about to ramp up our ingest of performance data and want to make sure we are good citizens.
2. I have found API docs for the campaign-level blacklisting (https://backstage-api.readme.io/reference#patching-targeted-publishers) but no docs for an account-level blacklist. However, in the backstage UI if I go to Campaign Summary -> By Site, there does appear to be the ability to manually blacklist sites for my account. Is there a way to ingest or update this list via the API?
Thanks!
Cleve
Posted by Cleve Pasarell over 4 years ago
Access Taboola API with R
Has anyone tried this and can provide information and recommendations? Which R package did you use? How did you go about it?
I tried the httr package and used the code below:
url = 'https://ads.taboola.com//backstage/api/1.0/[account_id]/campaigns/'
r <- GET(url = 'https://ads.taboola.com//backstage/oauth/token',
config = list(username, password, type = "basic")))
data <- r$content
The account ID was not alphabetical, it was numerical. and the username and password are for the ad campaigns account. I did not get any media fields, even though the response showed 200 - which confirmed some sort of connection was made.
Posted by Senan Mele over 3 years ago
Unable to retrieve API Key and Secret
Where can I find my Client ID, API Key anad API Secret?
I have mailed [email protected] multiple times, however haven't gotten any reposnse.
Attaching reference ID's below
Reference ID #: ref:_00Dd0eHCX._5003o1PZwBS:ref
Reference ID #: ref:_00Dd0eHCX._5003o1PZAg4:ref
Reference ID #: ref:_00Dd0eHCX._5003o1PZobE:ref
Reference ID #: ref:_00Dd0eHCX._5003o1PZvF4:ref
Posted by Kapil Bahadur almost 4 years ago