Community Discussion
GET 403 from getting campaign summary
{'http_status': 403, 'message': 'Requested action is forbidden'}
Posted by terry.hung over 3 years ago
Filtering Inactive subaccounts
Hello,
We are currently pulling campaign data using the backstage api and are receiving a 403 response for specific accounts.
Our current process is the following:
1. Get the account_ids by making the GET request to https://backstage.taboola.com/backstage/api/1.0/users/current/allowed-accounts
2. Get the campaigns by making the GET request to
https://backstage.taboola.com/backstage/api/1.0/{account_id}/campaigns/
After some troubleshooting on our end, we see that the accounts that are giving us the 403 error, are actually inactive in the backstage ui. We would like to know if there is a way to filter out the inactive accounts via the API?
Posted by Rene almost 3 years ago
Retroactively changing data
Hi everyone!
Thereβs the following note in API guide:
βItβs important to note that data in Taboola reports can (and will) change retroactively during the Taboola billing cycle.
This means that when fetching report data from Taboola for a data warehouse or BI solution, the data for the entire billing cycle (current calendar month + previous calendar month up to the 5th in any given month) should be periodically refreshed.β
Does it mean that if we update report data daily, then today (for example) we need to request data for the period 5th of Jan - today?
2. There is a field βlast_used_rawdata_update_timeβ in response. What does this value stand for? Does it indicate the date when the report was lastly updated? So if today we get a report with last_used_rawdata_update_time = 6th of Feb then we donβt need to update our DWH as nothing changed since this date?
Posted by Ivan Korsakov about 4 years ago
{"http_status":403,"message":"Requested action is forbidden","message_code":"api.action.forbidden"}
Hi,
I am trying the following API call to get a list of available account ids:
https://backstage.taboola.com/backstage/api/1.0/users/current/allowed-accounts
This gives a list of 4 PARTNER accounts and 1 NETWORK account. I then try the following:
https://backstage.taboola.com/backstage/api/1.0/NETWORK_ACCOUNT_ID/reports/campaign-summary/dimensions/day
Which gives the following error:
{"http_status":403,"message":"Requested action is forbidden","message_code":"api.action.forbidden"}
Please could you advise?
Posted by Matthew over 2 years ago
Duplicate a campaign after 6pm EST fails with "Start Date cannot be set in the past" error
When duplicating a campaign from an account A to account B after 6pm EST fails with "Start Date cannot be set in the past" error. The POST endpoint with JSON body is attached below :
------------------------------------------------------------------
https://backstage.taboola.com/backstage/api/1.0/{account_A}/campaigns/{campaignId}/duplicate?destination_account={account_B}
{'tracking_code': 'parameter=1234', 'branding_text': 'Search', 'spending_limit': 40, 'name': 'this_is_the_campaign_name', 'daily_cap': 20, 'platform_targeting': {'type': 'INCLUDE', 'value': ['DESK']}, 'cpc': 0.5, 'country_targeting': {'type': 'INCLUDE', 'value': ['US']}, 'spending_limit_model': 'MONTHLY', 'marketing_objective': 'DRIVE_WEBSITE_TRAFFIC'}
------------------------------------------------------------------
Any recommendation on how to be able to duplicate without start date error?
Posted by Melody Song about 3 years ago
Custom conversion
Hi,
I'm doing call <https://backstage.taboola.com/backstage/api/1.0/XX/reports/campaign-summary/dimensions/day?start_date=2023-01-18&end_date=2023-01-18&campaign=XX&include_multi_conversions=true>
I see all conversion but i have an ID not the name of conversion, how can i associate the id of the conversion to the name of the conversion i created on backstage?
Thanks,
Jacopo
Posted by Jacopo Cappelli about 1 year ago
Reporting delay through API
Hi, is there any delay in reporting through API for clicks / spend that took place ?
For example, if there's click / spend event that takes place now, how soon is this information available for the reporting API ?
Thanks
Posted by Jack Qian almost 4 years ago
Block Publishers at Campaign Level Via Numeric Site IDs
Hi,
Is it possible to block publishers via the API using the numeric site IDs or by using the exact site name as they appear in the platform UI?
Example here: https://prnt.sc/10tjolm
Posted by Kunal about 3 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 about 2 years ago