Endpoint for retrieving campaigns
This is what I'm seeing and I wanted to understand if I'm using the best endpoint for this. We want to pull the campaign data and ad cost from yesterday so I can push the data cost to Wicked Reports. That's going to be a scheduled task that runs daily. **Endpoint**: <https://developers.taboola.com/backstage-api/reference/get-all-campaigns> What I'm seeing right now: <https://share.cleanshot.com/f0QrGhdv> Not sure why this is empty. Also, I should be able to use start_date and end_date to filter, right? I also tried using the endpoint below and that gives me more data but then I can't see dates. **Endpoint**: <https://developers.taboola.com/backstage-api/reference/get-all-campaigns-across-network> !(https://share.cleanshot.com/f0QrGhdv) !(https://files.readme.io/fd71741-CleanShot_2023-04-04_at_12.16.152x.png) So, that's it, I'm trying to pull daily ad cost so we can forward that to other systems. The way we do it today is we pull all the campaigns, we pull the ads for each campaign and then we push that into Wicked.
Posted by Abraão 8 months ago
How can we restrict get all campaigns using Java Client SDK?
Can we achieve similar kind of restriction for getting all campaigns using Java Client SDK? In Back stage API we have option like below: Get all campaigns Using the the optional fetch_level param, you have 3 options: Fetch a list of all campaigns for the specified account (fetch_level param is omitted). Fetch recent campaigns for the specified account (fetch_level = R). Returns all recent, non-paused campaigns that have not been deleted. In this context, recent means: a. Created within the last 30 days (regardless of status) Or b. status = APPROVED (regardless of creation date) Fetch recent and paused campaigns for the specified account (fetch_level = RAP). Returns the same as previous - but also includes paused campaigns.
Posted by rakesh over 3 years ago