Community Discussion
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
Taboola OAuth: Taboola Service Unavailable
Hi all,
we're trying to implement the OAuth authentication to gain access to the Backstage API, but whenever we try the redirect we receive the Error:
Taboola Service Unavailable
It's a HTTP 503
According to Taboola support our redirect URL is white-listed, but for some reason it doesn't seem to work and we don't have any clues as to what we're doing wrong. Any help greatly appreciated!
KR
Frank
Posted by [email protected] over 1 year ago
Network ID
Hello!
I am looking for a dynamic way of fetching the Network ID from an API or something similar.
Would you please advise?
Thanks!
Posted by Liran Zinger almost 2 years ago
Video Ads
Hi,
A few questions regarding video ads:
1. Do video ads need to be added to video campaigns or can they be added to usual campaigns?
2. Do video ads show up in the Top Campaign Content Report or do they only show up in the new Video Campaign Summary Report?
Thanks in advance
Posted by Jorge almost 2 years ago
Custom audience targeting update failure
Hello,
I've been unsuccessfully trying to update the audience targeting of a campaign to make it include a custom audience. The steps I've taken follow:
1) I've successfully created a campaign through the Taboola API and set aside its id.
2) I've successfully created a new conversion through the Taboola UI. To be more specific:
- I reached the "Tracking" section
- I clicked "New Conversion"
- I set the "Type" field as "Event", the "Based on" field as "Custom" and filled all the remaining fields.
I managed to set aside its id extracting it from the created conversion page's URL.
I know that this is not probably the proper way to accomplish the task, but was just meant as a temporary workaround while waiting for another question (https://developers.taboola.com/backstage-api/discuss/61d5df7ae026df01f3680a81) to be answered.
3) I've tried to update the targeting of the campaign by issuing a POST request to
https://backstage.taboola.com/backstage/api/1.0/my_account_id/campaigns/the_campaign_id/targeting/custom_audience
with this JSON body:
{
"collection": [{
"collection": [the_conversion_id],
"type": "INCLUDE"
}]
}
The API responds with an error:
{
"http_status": 400,
"message": "Collection contains invalid rule ids for targeting: [1]",
"offending_field": "custom_audience_targeting.collection[0].collection",
"message_code": "campaign.unip.retargeting.rules.invalid.ids"
}
Am I doing something wrong?
I supposed that creating a new custom conversion through the UI and creating a new custom audience rule through the API (https://developers.taboola.com/backstage-api/reference#create-a-custom-audience-rule) were interchangeable operations. Perhaps this is not the way it works but I could not make it clear reading the documentation and/or using the UI.
Thanks is advance for your support.
Posted by Francesco Orazini almost 2 years ago
Failing conversion rule creation
Hello.
I've been recently trying to create a conversion rule through the Taboola Backstage API, as specified in the appropriate section of the documentation (https://developers.taboola.com/backstage-api/reference#create-a-conversion-rule).
In order to create the rule, I've been issuing a POST request to the following endpoint,
https://backstage.taboola.com/backstage/api/1.0/{my_account_id}/universal_pixel/conversion_rule/
with a correctly generated Access Token (I've been using it to call several other API endpoints as well and it worked in those circumstances).
My JSON body is:
{
"event_name": "test_pixel",
"display_name": "test_pixel",
"include_in_total_conversions": false,
"category": "SEARCH",
"status": "ACTIVE",
"type": "EVENT_BASED",
"condition": [],
"exclude_from_campaigns": false,
"look_back_window": 30
}
Even though there seems to be no inconsistency with the documentation (all fields seems to be correctly configured and no required field is missing, apparently), the API responds with an error:
{
"http_status": 400,
"message": "Bad request",
"message_code": "api.action.bad_request.null"
}
No meaningful message is associated with the response and I don't know how to make this work.
Thanks in advance for your support.
Posted by Francesco Orazini almost 2 years ago
Why Do I get an error when posting a new ad (item)?
I'm trying to make a post request in order to submit a new item (ad), but. But when I do so I get a 400 error:
http_status: 400,
message: "Unknown field name 'url'",
message_code: 'api.action.bad_request.null'
This is the code:
const url = 'https://backstage.taboola.com/backstage/api/1.0/'+accountID+'/campaigns/'+cID+'items/';
const options = {
method: 'POST',
headers: {
Authorization: "Bearer" + await getToken(),
Accept: 'application/json',
'Content-Type': 'application/json'},
body: JSON.stringify({
url: landingPage,
thumbnail_url: image,
title: adTitle
})
}
const respose = await fetch(url, options);
Posted by null almost 2 years ago
Full authentication is required to access this resource
i am integrating create campaign api
Posted by Asm about 2 years ago
Authentication for API development requirements
I am starting development of a daily backend service to run the campaign summaries api. I'm having a little trouble following the 4 authentication types and use cases. It sounds like the Client Authentication flow is what is preferred, but it only generates a 12 hour token for us meaning we would have to grab a new token everytime the application runs.
We have typically used refresh tokens in the past for longer access tokens and a secondary service to refresh our token on a monthly interval. I am having trouble finding documentation on how to generate the initial refresh token to use with the 4th authentication method "refresh token".
If we code the service to pull a new key based on the client id and client secret multiple times a day, will this be a problem? What are the daily key generation limits using the preferred method 1 listed in documentation?
Posted by John B. about 2 years ago