Date Formats

A few of the Adbeat API methods allow you to specify a date or a date range as part of their parameters. Here's how to properly format those parameters.

Date Format

Dates should be in the YYYY-MM-DD format (e.g., 2014-12-31).

Date Range Format

Date ranges should be specified in this format: [YYYY-MM-DD TO YYYY-MM-DD].

In most methods, the maximum span allowed between dates is 8 days.

Usage Examples

To have the adMetrics method only return results for ads that started running on Dec. 24, 2012 do this:

http://api.adbeat.com/v3/{api-key}/adMetrics?firstSeen=2012-12-24

To have the adMetrics method only return results for ads that started running during the 7 day date range Dec. 24, 2012 to Dec. 31, 2012 do this:

http://api.adbeat.com/v3/{api-key}/adMetrics?firstSeen=[2012-12-24%20TO%202012-12-31]