Getting reports

Adfox provides ready-to-use fixed reports for all partners. If you need specific data, you can also use the report builder to design and save your own custom reports right in the interface.

Generating a report involves several steps.

If the report is saved as fixed or custom:

  1. Request a list of reports:

    GET /api/v2/reports/list
    
  2. Retrieve report parameters (only available for custom reports; it won't return a field list for fixed reports):

    GET /api/v2/reports/report-info/{reportName}
    
  3. Select the report period:

    GET /available-dates
    
  4. Send a request to generate the report and save result.taskId:

    POST /api/v2/reports/{reportName}
    
  1. Retrieve and cache the lists dimensions, metrics, filters, and limits:

    GET /metadata
    
  2. If needed, retrieve the allowed date range for the report:

    GET /available-dates
    
  3. Send a request with a valid body and save result.taskId:

    POST /reports
    

Next:

  1. Poll the endpoint until you receive one of the following statuses:

    • SUCCESS
    • FAILURE
    • EXPIRED
    GET /reports/{taskId}
    
  2. Set a timeout before retrying the request.

  3. When the status is SUCCESS, retrieve the report results:

    GET /reports/{taskId}/result