Community Discussion
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 almost 3 years ago
How to get client_id and client_secret for API access
Hello all. I have requested via email, several times, access to the API but no one is responding to me. Does anyone know a method I could use in order to get my client_id and client_secret so I can gain access to the API? Thanks in advance.
Posted by Chris over 3 years ago
Authorisation Code method redirect issue
Iβm hoping someone can help with a stumbling block Iβm facing with our auth flow. Iβm trying to use the Authorisation Code method outlined in the api docs (https://developers.taboola.com/backstage-api/reference#authorization-code) as follows:
This flow is similar to Implicit Grant (above), but involves an additional step:
User clicks on Connect within your App.
Your App redirects the user to a Taboola login page:
[authentication_domain]/authentication/oauth/authorize/?client_id=[client_id]&redirect_uri=[redirect-uri]&response_type=code
Note: set authentication_domain = 'https://authentication.taboola.comβ
Iβve built the Taboola login url as outlined above using our client id and desired redirect however when I test the URL and subsequent login process there is no redirect back to our app, instead the user is taken to this page within Taboola that asks whether I want to go to backstage or newsroom, both of which keep the user in Taboola.
Anyone know why I canβt redirect back out to our app to complete the authors flow?
Posted by Matt almost 4 years ago
Where do I obtain my client_id and client_secret?
Per the Taboola Backstage API documentation:
"Ask your Taboola account manager for a client_id and client_secret"
It isn't clear if the account manager is an individual with Taboola or the actual Taboola account owner. At any rate- we need our client_id and client_secret and we're don't know where to generate these values.
Could you please point me in the right direction to obtaining these?
Posted by Michael Petruniak over 3 years ago
Trying to get my access Token via Password Credentials flow but receive error "false"
Hello,
As stated in the topic, I am trying to get the access token that will allow me to manipulate the Backstage API but when trying the Password Credentials flow I am receiving the error "False".
Here is the function to fetch the token:
const credentials = {
this is where my credentials are registered
}
function fetchTaboolaAccessToken() {
const options = {};
options.method = 'post';
options.headers = {
'Content-Type': '"application/x-www-form-urlencoded"'
};
options.body = {
client_id: credentials.client_id,
client_secret: credentials.client_secret,
username: credentials.username,
password: credentials.password,
grant_type: 'password'
};
const result = fetchUrl('https://backstage.taboola.com/backstage/oauth/token', options)
console.log("Result", result);
}
Can someone tell me what is wrong in my function for this error to be logged ?
jsdata_studio_connectorx-www-form-urlencodedoauth2client_credentials401google_scriptbasic_authenticationjavascriptfull_authentication
Posted by Alexandre Macrel almost 3 years ago
Exceed Number of Campaigns per account
Hi, I'm getting this error trying to create a campaign through API: Failed to perform API call with response code [400]. Response payload status [400], message [You have exceeded the maximal number of active campaigns per account].
According to our research on this topic, the maximum is 3000, but so far we have created only 554 campaigns in one of our accounts. Can you please let me know the real threshold.
Posted by Gabriel Diaz almost 4 years ago
Taboola to Google Sheet Script
Hi there,
Is there a script available that I can use within Google Sheets to import campaign data such as costs on an hourly/daily basis from my Taboola Ad account? If so I'd be very grateful if someone could share this with me :)
Posted by Matt Seldon over 2 years ago
Blocking limit
Hi there,
Can you tell me what is the limit for blocking on the account and campaign level through the API? This is slightly urgent and we need to know this by Friday, Feb 28th.
Thanks in advance,
Sandra
Posted by Sandra Wu about 4 years ago
"top_campaign_content_report" API returning NULL for certain items
We are receiving a null value for 'item' in the "top_campaign_content_report" table. We have made the primary key for the table "top_campaign_content_report", which is a hash value of item, date, item_name, campaign_id fields. Sometimes, we get a null value for the item field in the response, for eg:
curl -H 'Authorization: Bearer XXX' -A 'Jesey/2.25.1' 'https://backstage.taboola.com/backstage/api/1.0/xxxxxxxxxx/reports/top-campaign-content/dimensions/item_breakdown?end_date=2019-09-21&campaign=898661&start_date=2019-09-21' | jq
Returns:
{
"item": null,
"item_name": "xxxxxxxxx",
"thumbnail_url": "xxxxxxx",
"url": "xxxxxxxx",
"campaign": "898661",
"campaign_name": "xxxxxxxx",
"content_provider": "1121684",
"content_provider_name": "xxxxxxxx",
"impressions": 1371,
"visible_impressions": 376,
"ctr": 0.15,
"vctr": 0.53,
"clicks": 2,
"cpc": 0.108,
"cvr": 50.00,
"cvr_clicks": 50.00,
"cvr_views": 0.00,
"cpa": 0.22,
"cpa_clicks": 0.22,
"cpa_views": 0.00,
"actions": 1,
"actions_num_from_clicks": 1,
"actions_num_from_views": 0,
"cpm": 0.16,
"vcpm": 0.57,
"spent": 0.22,
"conversions_value": 0.00,
"roas": 0.00,
"currency": "USD"
},
The same request executed on a different date sometimes returns a valid 'item' and the hash value will get changed and this causes us to add duplicate records while upserting the data.
We do not expect to be getting a null value because the item value is the same as id in the "campaign_item" table, and we do not see any null id value in the campaign_item table.
After more discovery, we found that these values are being returned as 'null' because that item has been deleted from the campaign history.
Can everything be paused instead of deleted to try overcome this data integrity issue?
Posted by Sean about 4 years ago
API for blocking pubs at account level
Hello,
We would like to use the Taboola API to block publishers at account level through it - we would want to block the publishers based on a "contains" query (e.g. all those containing "noticias" in the name.
Does anyone know if this is possible? I've seen this endpoint could be used: https://developers.taboola.com/backstage-api/reference#get-blocked-publishers-for-account
Thanks!
Radu
Posted by Radu Parvu almost 4 years ago