Community Discussion
Using 'hour_of_day' dimension
Hi, do you know what 'API endpoint URL' I could use to pull hourly statistics for a particular data range? I've tried this
<https://backstage.taboola.com/backstage/api/1.0/stats/campaigns/performance?dimensions=hour_of_day&start_date=2023-0113&end_date=2023-01-13>
but it returns the following error:
{
"http_status": 400,
"message": "The requested operation failed since the API server cannot parse the request",
"message_code": "api.action.bad_request.null"
}
Thanks!
Posted by Steward 5 months ago
Get a campaign problem
Hello! I try to get some specific campaign information using 'Get a campaign' API. I tried using following url. 'https://backstage.taboola.com/backstage/api/1.0/bagelcode-network/campaigns/18217840/' and also I used accurate access token. But I got '404 Resource not found'. How can I solve this issue? Thanks :)
Posted by HyeongKyu Park about 1 year ago
Duplicate campaigns to different advertiser (within the same account)
Hello,
In taboola UI:
When we select "network" in advertiser selection in top right corner and then duplicate campaign (by click the last icon in campaign management) we have option to select advertiser on the next screen (its called provider).
However if we select specific advertiser we can duplicate only to the same advertiser - "provider" selection is grayed out.
We try to use the first behavior via API, duplicate campaign to different advertiser.
This is attempt to duplicate to different advertiser from network level as its done in UI:
https://backstage.taboola.com/backstage/api/1.0/webfoxconetwork/campaigns/5159895/duplicate
RES
{
"http_status": 404,
"message": "Resource not found"
}
This is attempt to duplicate to different advertiser (we not expected this will work as its not working in taboola UI)
https://backstage.taboola.com/backstage/api/1.0/bleacherbreaker-sc/campaigns/5159895/duplicate
BODY:
{
"advertiser_id": "bleacherbreaker-m-sc",
"name": "wuz-d-uk-c-0-p3-200623-bb-tb-0--dev"
}
RES
{
"http_status": 400,
"message": "Trying to modify a read-only field",
"offending_field": "advertiser_id"
}
Without passing "advertiser_id" duplication works fine.
Can we somehow duplicate to different advertiser_id from API as its done from taboola UI?
This can help us to avoid manual operations/error and reduce usage of taboola UI.
Thanks,
Misha
Posted by Misha Makarevsky almost 3 years ago
Duplicate a campaign to another advertiser
Hey,
Is there an option to choose a different provider (advertiser) when using a "duplicate campaign API"?
For example, if I have "demo-advertiser" (that contains campaign 123) and "another-advertiser", can I do something like:
curl --request POST \
--url https://backstage.taboola.com/backstage/api/1.0/demo-advertiser/campaigns/123/duplicate \
--header 'content-type: application/json' \
--data '{"name":"Copy to another", "advertiser": "another-advertiser"}'
Thanks!
Posted by Sasha about 3 years ago
Duplicate A Campaign
## H3 Looks like something went wrong!
**Our server reports an error occurring while preparing this page. Please try again later once we have solved the problem.**
---
Every time [duplicate API](https://developers.taboola.com/backstage-api/reference#duplicate-a-campaign) is executed, 200 OK status with above error msg is received in HTML. Is this API ready to be used or is the sample call (below) constructed incorrectly?
https://backstage.taboola.com/backstage/api/1.0/`{{account id}}`/campaigns/`{{campaign id}}`/duplicate
with JSON body:
`{"name":"duplicate-or-clone-this-campaign"}`
Posted by Melody Song about 3 years ago