Community Discussion
view conversion/clicks conversion/purchase conversion how to get?
There are differences in the data returned when obtaining the above indicator data through this apiοΌ<https://developers.taboola.com/backstage-api/reference/top-campaign-content-reportοΌ>.
Posted by sheldon about 1 month ago
Recommendations API blocked by CORS
Hello,
I am tring to implement the recommendations API request on my application (<https://developers.taboola.com/recommendations-api/reference/welcome>).
The problem is when i use fetch browser API it will be blocked by CORS policy.
Following an example that works with Postman but not on Chrome.
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"placements": [
{
"name": "Placement-1-1",
"recCount": 1,
"organicType": "mix",
"thumbnail": {
"width": 300,
"height": 200
}
}
],
"user": {
"session": "init",
"device": "5bfebde9-c03c-47cd-8f04-2dbe1179b44d",
"languages": [
"IT"
]
},
"app": {
"type": "DESKTOP",
"apiKey": "xxxxxxxxxxxxxxxx",
"name": "test",
"origin": "CLIENT"
},
"view": {
"id": "e8a42862-7437-4b36-826a-9aeb6d8ce5a3"
},
"source": {
"type": "HOME",
"id": "/test_sw.html",
"url": "http\://localhost:8004/test_sw.html"
}
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("<https://api.taboola.com/2.0/json/xxxxxxxxxxxx/recommendations.get">, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
Is there a way to bypass the CORS check?
Thanks.
Posted by null about 1 month ago
Bulk campaign creation via API
Good afternoon,
we're trying to create campaigns in bulk via APIs and we're receiving this error
"You have exceeded the maximal number of active campaigns per account (200)"
Is this number (200) related to a specific period? In some subaccounts we do have more then 200 active campaigns.
Thank you in advance for your atrtention.
Best regards,
Posted by Chiara Como about 1 month ago
Site list
Could you please provide a list of site and site_id to download? We save the site_id parameter and need to trace it back to the site.
Posted by Barbara about 2 months ago
Preview Links Ads not Redirecting
Hey All, the Preview tool in Taboola shows our ads but doesn't redirect to our site. We get a 406 error. Ads net to it from Elle, etc seem to work fine. Is this the correct behavior? I ask bc we've had significant issues with our ads performing; clicks are 90% higher than what we're seeing in GA. And advice would be welcome here.
Here are the two URLs from the preview:
<br />
<https://trc.taboola.com/feed/log/3/click?pi=%2Ftaboola-feed-new&ri=a1b3607c4c298e5d900bb56024bf94aa&sd=v2_6038296676c54d3de6720a9ecdc3862c_027ca67d-41d3-4f18-b75d-3e8cb84b5a9b-tuctbc6c637_1717601150_1717601150_CIi3jgYQj_9AGOrMhsj-MSABKAMw4QE4kaQOQL31DkibrdsDUPQDWABghhJo4bPYid_-4reGAXAA&ui=027ca67d-41d3-4f18-b75d-3e8cb84b5a9b-tuctbc6c637&it=video&ii=~~V1~~6960096600418858701~~z3Uk4tM9A-T7uvlJjwaP0D4uuydsllQG7kuJaUVezi9PEff0eMgqAQJGufmzhgmad6jmx7wIIc2Oz4tlWs8YLLCyv10UYqd-ZnnxXlijqUTj23-w8ntdrfuwSvZ0lA-Q4z4c_P3dWW7NrRiahHRhuMbhAcrJV45XLmnsWa3mokvMD_vf6PYoeJqdwJNF0RgolSuJbAgqkT_adwxMrEMydw&pt=text&li=rbox-t2m&sig=0f9c447f6d56ae578abc8aa04283659276d8e07c42d7&redir=%23&vi=1717601150570&p=taboola-showcase&r=14&tvi48=9598&tvi50=17093>\<i=deflated&ppb=CPcD&cpb=EhIyMDI0MDYwNC00LVJFTEVBU0UYiRIgACoZY2gudGFib29sYXN5bmRpY2F0aW9uLmNvbTIIdHJjODAzNTg4gLbgnwRAkaQOSL31DlCbrdsDWPQDYwjQNxD-ShgwZGMI6mYQxYUBGDJkYwjXFhDVHxgjZGMI3AoQoBAYFmRjCJYUEJscGBhkYwjSAxDgBhgIZGMI_0YQi2YYHWRjCJ5oEKCHARg9ZGMIgFUQsnAYPmRjCPQUEJ4dGB9kYwikJxCKNRgvZGMIhUIQqVcYD2R4AYAB3q8BiAGAjtnZApABF5gB_82GyP4x2wEKJHktTThwY2FtMUUydUlWbXd0c0Iua2tYVmhQWDguQ2ZuWjF-QRAA3AE&vct=36.41
<https://trc.taboola.com/feed/log/3/click?pi=%2Ftaboola-feed-new&ri=a1b3607c4c298e5d900bb56024bf94aa&sd=v2_6038296676c54d3de6720a9ecdc3862c_027ca67d-41d3-4f18-b75d-3e8cb84b5a9b-tuctbc6c637_1717601150_1717601150_CIi3jgYQj_9AGOrMhsj-MSABKAMw4QE4kaQOQL31DkibrdsDUPQDWABghhJo4bPYid_-4reGAXAA&ui=027ca67d-41d3-4f18-b75d-3e8cb84b5a9b-tuctbc6c637&it=video&ii=~~V1~~4679579409051409928~~e8DdPfPy17LINp0BUQ3g3HgEqsl8ynEPWU6g_gQg9GWKANNcaafC-0QP27WPePejjH--1UEjjtAre7DPxMrFqvN7u8K4VmiptASo7Q1yqzb0VsVaaIrP6i8oakHwbOqmqMgYNsBCZGeuXbfaHtwuBPZN9ntatAAGYU16L2szcHDFxPDdvDLGOclCTStW6kOmwRku67Z5bnd-coEBSUKEbA&pt=text&li=rbox-t2m&sig=75a3ea847647aa61869c4f5bd8b67180abeffe60192a&redir=http%3A%2F%2Fwww.elle.com%2Faccessories%2Fbags-shoes-jewelry%2Ffruit-bags-jewelry%3Fsrc%3Drss%26utm_source%3Dtaboola%26utm_medium%3Dreferral%26tblci%3DGiAqDoc6mU5laWwGYcgIRJ1tc1TnXLTNwFwavJHJMreMMCC5BCigsZ_Jr53c6YUBMI**QA%23tblciGiAqDoc6mU5laWwGYcgIRJ1tc1TnXLTNwFwavJHJMreMMCC5BCigsZ_Jr53c6YUBMI**QA&vi=1717601150570&p=taboola-showcase&r=35&tvi48=9598&tvi50=17093>\<i=deflated&ppb=CPcD&cpb=EhIyMDI0MDYwNC00LVJFTEVBU0UYiRIgACoZY2gudGFib29sYXN5bmRpY2F0aW9uLmNvbTIIdHJjODAzNTg4gLbgnwRAkaQOSL31DlCbrdsDWPQDYwjQNxD-ShgwZGMI6mYQxYUBGDJkYwjXFhDVHxgjZGMI3AoQoBAYFmRjCJYUEJscGBhkYwjSAxDgBhgIZGMI_0YQi2YYHWRjCJ5oEKCHARg9ZGMIgFUQsnAYPmRjCPQUEJ4dGB9kYwikJxCKNRgvZGMIhUIQqVcYD2R4AYAB3q8BiAGAjtnZApABF5gB_82GyP4x2wEKJHktTThwY2FtMUUydUlWbXd0c0Iua2tYVmhQWDguQ2ZuWjF-QRAA3AE&vct=53.70
Posted by Christen da Costa about 2 months ago
Is there a deduplication way for offline conversion?
Is there a deduplication way for offline conversion? Or a method for modification?
Posted by gwsee 2 months ago
No custom conversion data returned from API call for Top Campaign Content Report
I was trying to extract the Top Campaign Content Report via the API and include custom conversion data by applying the
```
include_multi_conversions=true
```
flag in the HTTP request, but no relevant data was returned; specifically, the **"dynamic_field" **field in both the metadata object and results array, which should be returned when the above flag was applied, was not present.
Any idea on what might be the issue? Thanks!
Posted by John 2 months ago
Fail uploading image to CDN
Hello, what could be the problem if we get error 400 failed to upload image to CDN api.action.bad_request.null?
It happens in around 20% of the requests. Not randomly, just certain images seem not to be able to be uploaded. The images follow the guidelines in extension, size and weight.
Thank you in advance
Posted by Gabriel Giner 2 months ago
JSON Error when calling API in Python
Hey all,
New to this API and testing it out, but I'm having some issues returning some fairly basic data from my account using Python and reading it via a json command. Here's a very simple code and the error I'm getting:
```
account_id = account_response.json()['results'][0]['id']
account_url = url + "/api/1.0/api/1.0/{account_id}/campaigns/base".format(account_id = account_id)
campaigns_response = requests.get(account_url, headers=headers)
campaigns_response.json()
```
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I'm not sure why this is happening, as when I run campaigns_response.ok, I get a 'True' return. Also, when I run a simple call to get my account details:
```
headers = {'Authorization': f'Bearer {access_token}'}
account_response = requests.get(url + '/backstage/api/1.0/users/current/allowed-accounts/', headers=headers)
```
This runs fine.
Any help/insight would be much appreciated.
Thanks!
Posted by Miguel 2 months ago
Can i update target_cpa using api?
i am trying to update target_cpa via api but every time getting 400 error. How can i update target_cpa using api?
Posted by Masum 2 months ago