Community Discussion
Not able to aceess placement data.
I am getting below error when i try to get the placement data. Please check once and help me.
ERROR: Invalid response. Array ( [url] => <https://backstage.taboola.com/backstage/api/1.0/inmobi-searcharb-ccsalesnew-sc/reports/campaign-summary/dimensions/campaign_site_day_breakdown?start_date=2023-12-05&end_date=2023-12-05> [code] => 403 [response] => {"http_status":403,"message":"Requested action is forbidden","message_code":"api.action.forbidden"} )
Thanks
Posted by sreenu 4 months ago
Campaign budget type missing in API response
Hello,
is there any way to get the budget type along with the budget value from the API?
At the moment all we can see is that the budget value is being reported under the "daily_cap", but there is no flag that indicates if this budget is "Daily", "Monthly" or "Entire Campaign".
Is this information available?
Thank you for your help.
Posted by Ervin Hoxha 5 months ago
Client ID & Client Secret
Hallo,
I would like to get Client IT und Client Secret for our account 1398182 LK Regionmarketing Carinthia.
How can i do this?
Thanks, Yana
Posted by Yana Holzkecht 5 months ago
403 error when creating campaign
Good Morning
I am trying to create a campaign with a POST call with the following url:
<https://backstage.taboola.com/backstage/api/1.0/prisma-voici-sc/campaigns/>
with the following parameters:
**{
"name": "PMO_voi_article_mobile_android_flux_tag_famille_test_dupli_auto",
"branding_text": "Voici",
"tracking_code": "utm_source=taboola&utm_medium=cpc&utm_campaign=PMO_voi_article_mobile_android_flux_tag_famille_test_dupli_auto_1&utm_term={campaign_id}|{site}|{campaign_item_id}",
"cpc": 0.01,
"daily_cap": 20,
"daily_ad_delivery_model": "STRICT",
"spending_limit": null,
"spending_limit_model": "NONE",
"cpa_goal": 0,
"min_expected_conversions_for_cpa_goal": null,
"country_targeting": {
"type": "INCLUDE",
"value": [
"BE",
"FR",
"CH",
"CA"
],
"href": null
},
"sub_country_targeting": {
"type": "ALL",
"value": \[],
"href": null
},
"dma_country_targeting": {
"type": "ALL",
"value": \[],
"href": null
},
"region_country_targeting": {
"type": "ALL",
"value": \[],
"href": null
},
"city_targeting": {
"type": "ALL",
"value": \[],
"href": null
},
"contextual_targeting": {
"type": "ALL",
"value": \[],
"href": null
},
"platform_targeting": {
"type": "INCLUDE",
"value": [
"PHON",
"TBLT"
],
"href": null
},
"publisher_targeting": {
"type": "EXCLUDE",
"value": [
"ladpche-web",
"midi-libre-web"
],
"href": null
},
"auto_publisher_targeting": {
"type": "ALL",
"value": \[],
"href": null
},
"os_targeting": {
"type": "INCLUDE",
"value": \[
{
"os_family": "Android",
"sub_categories": \[]
}
],
"href": null
},
"connection_type_targeting": {
"type": "ALL",
"value": \[],
"href": null
},
"campaign_profile": null,
"comments": "",
"bid_type": "FIXED",
"bid_strategy": "FIXED",
"traffic_allocation_mode": "OPTIMIZED",
"external_brand_safety": {
"type": "NONE",
"values": \[]
},
"campaign_groups": null,
"target_cpa": null,
"conversion_rules": {
"rules": \[]
},
"funnel_template": null,
"traffic_allocation_ab_test_end_date": null,
"approval_state": "APPROVED",
"is_active": true,
"contextual_segments_targeting": {
"state": "ALL",
"value": null,
"href": "https\:\\\/\\\/backstage.taboola.com\\\/backstage\\\/api\\\/1.0\\\/prisma-voici-sc\\\/campaigns\\\/30742854\\\/targeting\\\/contextual_segments"
},
"custom_contextual_targeting": {
"state": "ALL",
"value": null,
"href": "https\:\\\/\\\/backstage.taboola.com\\\/backstage\\\/api\\\/1.0\\\/prisma-voici-sc\\\/campaigns\\\/30742854\\\/targeting\\\/custom_contextual_segments"
},
"custom_audience_targeting": {
"state": "ALL",
"value": null,
"href": "https\:\\\/\\\/backstage.taboola.com\\\/backstage\\\/api\\\/1.0\\\/prisma-voici-sc\\\/campaigns\\\/30742854\\\/targeting\\\/custom_audience"
},
"segments_targeting": {
"AGE": {
"type": "ALL",
"value": \[],
"href": "https\:\\\/\\\/backstage.taboola.com\\\/backstage\\\/api\\\/1.0\\\/prisma-voici-sc\\\/campaigns\\\/30742854\\\/targeting\\\/age_segments"
},
"GENDER": {
"type": "ALL",
"value": \[],
"href": "https\:\\\/\\\/backstage.taboola.com\\\/backstage\\\/api\\\/1.0\\\/prisma-voici-sc\\\/campaigns\\\/30742854\\\/targeting\\\/gender_segments"
}
},
"segments_multi_targeting": null,
"marketing_objective": "DRIVE_WEBSITE_TRAFFIC",
"verification_pixel": null,
"viewability_tag": null,
"activity_schedule": {
"mode": "ALWAYS",
"rules": \[],
"time_zone": "Europe\\\/Paris"
},
"browser_targeting": {
"type": "ALL",
"value": \[],
"href": null
},
"type": "PAID",
"is_spend_guard_active": "ACTIVE"
}**
and i am always having this error:
**Erreur : {"http_status":403,"message":"Requested action is forbidden","message_code":"api.action.forbidden"}**
i am using a user id provider for my account and our liaison in Taboola confirs that the user have the editing campaign rights
Thank you
**Bouraoui Mejri Prima Media IT development department**
Posted by Bouraoui Mejri 5 months ago
Cannot use campaign filter in campaign_site_day_breakdown
Hi! Trying to filter by campaign in campaign_site_day_breakdown report, but getting "Filter 'campaign' has invalid value"
My query: <https://backstage.taboola.com/backstage/api/1.0/campaign-name/reports/campaign-summary/dimensions/campaign_site_day_breakdown?start_date=2023-11-28&end_date=2023-11-29&campaign=12345678>
(changed real IDs with similar)
Posted by Oleksandr 5 months ago
Top Campaign Content Report for current day
We have a system in place that runs the `reports/top-campaign-content/dimensions/item_breakdown?start_date={date}&end_date={date}` each day at 13:00 UTC and we pass the previous days date. We've expanded this recently in an attempt to bring in today's data incrementally but it seems like the API does not return data when we pass in today's date.
Is there a way to get the data this report offers for the _current day_? I see that the Campaign Summary Report has a mention of timestamps being supported when using the hourly dimension. Is there such a thing for this endpoint/report?
Thanks in advance.
Posted by Patrick K 5 months ago
Error when trying to create an item in campaign
Hi,
I'm trying to create an item in an existing campaign, and I keep getting the following error:
{
"http_status": 404,
"message": "Resource not found",
"message_code": "api.action.resource_not_found"
}
the post request is sent to the following :
<https://backstage.taboola.com/backstage/api/1.0/${account_id}/campaigns/${account_id}/items/>
according to the documentation in this link: <https://developers.taboola.com/backstage-api/reference/create-a-campaign-item>
both the campaign and the account are valid, Do you have any Idea what can be the problem?
Thanks
Posted by Gal B 5 months ago
campaign_hour_breakdown seems 23rd/0th hour issue
Hi,
I am using campaign_hour_breakdown dimension for campaign/date/hour metrics.
But it seems the metrics between 23rd hour one one day to 0th hour of next day is attributing to 0th hour of next day.
But since those metrics are from 23rd to 0th of first day it should be there.
Because of this if we take daily counts from Portal and sum campaign_hour_breakdown metrics to date level, it is not matching
Is there any fix to resolve it.
Posted by Tara Devi 5 months ago
Taboola Access Token invalid 401
When I request a new access token, I always get the same access token. It never returns a new one. Even after days and this access token is invalid, except for 1 request.
All the other requests return 401
==== How I request the access token:
encodedParams.set('client_id', process.env.TABOOLA_CLIENT_ID);
encodedParams.set('client_secret', process.env.TABOOLA_CLIENT_SECRET);
encodedParams.set('grant_type', 'client_credentials');
const url = '<https://backstage.taboola.com/backstage/oauth/token'>;
const options = {
method: 'POST',
headers: {'content-type': 'application/x-www-form-urlencoded'},
body: encodedParams
};
==== Response I get, same token even after days
{
access_token: 'same_access_token',
token_type: 'bearer',
expires_in: 43199
}
==== Only that request is working, but it is returning old data. New campaigns aren't returned. Just adding ?fetch_level=R to the url, returns 401
const accountId = process.env.TABOOLA_ACCOUNT_ID
const accessToken = process.env.TABOOLA_ACCESS_TOKEN // I console logged this the taboola account id and the access token and they are correct
const url = `https://backstage.taboola.com/backstage/api/1.0/${accountId}/campaigns/`;
const options = {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + accessToken,
'Content-Type': 'application/json'
}
};
Posted by Daniel 5 months ago
504 gateway timeout error:- Campaign upload
hey I was uploading campaigns using the campaign upload endpoint.It uploaded some campaigns but after that it started giving me 504 error.
Posted by Sarvasva khare 5 months ago