Applying Condition on a metric while passing the Request in Twitter Ads API



Hi ,

I want to retrieve requests only which have impressions > 0. is it possible to do this while we pass the parameters for the request only?



Hi @TheNightBefore! That’s not possible, as far as I know. But you could get stats only for the periods that the ad was active. For each ad, you could keep the paused date in the database, and if that paused date is older than X days, say 7, you could skip it and save an API call. This is what I’ve done.