curl

Correct use of the Appnexus API


For a reporting tool we are building we are retrieving data from the AppNexus(Xandr) API. Currently we are retrieving all Insertion Orders, Line Items and Creatives every night because we could not find a way to retrieve only items with a modified date after our last pull.

I did find that i should be able to filter on the field last_modified however when i enter a date like '2019-08-01' i do not get any results. I was expecting to get all items after the date set.

Is this the intended way or is there a better way to pull less data?


Solution

  • the correct way to call the api after a specified date, is to use nmin or to use min_last_modified and the format should be YYYY-MM-DD+HH:MM:SS reference

    url = "https://api.appnexus.com/placement?min_last_modified=2024-08-01+00:00:00"