Community Discussion
API returns 200 OK, but contents are not being created on Taboola
Hello,
a few of our users are running into an issue recently when creating campaigns and contents via API.
What is happening is that even though our system is getting a 200 OK response, and also getting back the MD5 value for all uploaded images (which basically means that the contents have been created successfully), when looking at the campaign on Taboola dashboard some contents have not been created (sometimes none of the contents have been created).
Unfortunately it is not easy to reproduce it because it does not seem to be happening regularly, but what we noticed is that for the missing contents, we get only the image MD5 as a response after creation but not the image URL.
And when we try to access that image by replacing the MD% into your image cdn url, it says permission denied.
For example: https://cdn.taboola.com/libtrc/static/thumbnails/3bed5cd3dc88c900d92f3b8a7d495ed8.jpg
One example we were able to isolate from our logs is the one below:
campaign id: 20870526
content id: 3563247174
image md5: 3bed5cd3dc88c900d92f3b8a7d495ed8
We would really appreciate your input on this.
Hopefully the info above can help to debug the issue.
Posted by [email protected] over 1 year ago
Pull publisher (ex. msn.com) level metrics
I'm trying to find an API endpoint that allows me to pull down publisher (ex. weather.com or msn.com) level spend by day, would you be able to guide me as to which endpoint would return this?
Posted by David R over 1 year 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 over 1 year ago
Include site and platform in API report
Hi!
We assign utm_medium ({platform}) and utm_term ({site}) using Dynamics Values. Top Campaign Content api reports url dimension in raw form. Is it possible to include site and platform dimensions in the Top Campaign Content report?
Posted by Mark Wise over 1 year ago
Bulk Update for Bid Modifier?
Hi everyone, as the title suggests, I'm trying to see if it's possible to do a bulk update for publisher_bid_modifer. Looking at https://developers.taboola.com/backstage-api/reference/bulk-update-campaigns, publisher_bid_modifier is.... not an option, but when having to do thousands of sites individually as PATCH operations... At some point it may be so long that the cronjob won't be finished before it kicks off again 24 hours later.
I don't know if it's possible, BUT... if it is, I'm POSTing to:
https://backstage.taboola.com/backstage/api/1.0/{$accountId}/campaigns/bulk-update
and my payload looks something like:
{"campaigns":[12345],"update":{"publisher_bid_modifier":{"values":[{"target":"abc123","cpc_modification":1.5}]}}}
Whenever I post it, I get back a 400, the error is usually something like:
{"http_status":400,"message":"Bad request","message_code":"api.action.bad_request.null"}
So... Is this possible, or do I have to patch? What's wrong with my payload that I'm posting, IF this is something we're able to do? Thank you!
Posted by James Taylor over 1 year ago
Curl inside container doesn't work
Hello, I'm using PHP in a docker container with curl to use Taboola API. Everything worked fine few months but today I get issues to run a curl request to backstage.taboola.com both in php using curl module and in the terminal inside container.
For example:
[root@e9dbea93b1cd www]# curl --location --request POST 'https://backstage.taboola.com/backstage/oauth/token?client_id=123&client_secret=123&grant_type=client_credentials' --header 'header: Content-Type: application/x-www-form-urlencoded' -v
* About to connect() to backstage.taboola.com port 443 (#0)
* Trying 151.101.1.44...
* Connected to backstage.taboola.com (151.101.1.44) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* Operation timed out after 300270 milliseconds with 0 out of 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 300270 milliseconds with 0 out of 0 bytes received
The same curl request works fine locally via the host terminal or Postman for example.
It looks like a blocking. Can you help me with it please?
Posted by Lex Pal over 1 year ago
Placement Null in API
Hello,
I'm currently using the Backstage API to extract Revenue reports using the day_site_placement_cou
ntry_platform_breakdown in the Revenue Summary Report and I noticed that there were rows in which the column "placement" was null.
What does placement = null means in this context?
Posted by [email protected] over 1 year ago
Trying to retrieve access token
Hello, I recently got my credentials from Taboola.
I try to get the access token using the description in your documentation, in C#.
The response I get is an HTML page, not JSON.
Would you know why?
var client = new RestClient("https://backstage.taboola.com/backstage/oauth/token");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("application/x-www-form-urlencoded", "client_id=MY_ID&client_secret=MY_SECRET&grant_type=client_credentials", ParameterType.RequestBody);
var response = client.Execute(request);
Posted by Rom Raviv over 1 year ago
Uploading Customer List?
Does anyone know where the Customer List upload button is? I don't see it populated in the Audience section.
Posted by Angelo Lozano over 1 year ago
How to get data about the site level configured bid via API?
Hi,
I found how to modify site level bids via API, but I can't find how to get the current bid configuration data.
When I change the bid in your interface, then in the response body it is in the "configured_cpc" field.
How can I get the current site level bid configuration data via API?
Posted by Ruslan Lenkov over 1 year ago