API ReferenceAnnouncementsCommunity Discussion
API ReferenceCommunity DiscussionAnnouncementsSubscribeLog In
Community Discussion

Community Discussion

Ask a Question
Back to All

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.