Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Required for all reporting data requests must specify a date range. If you do not include fromDate and toDate parameters in the request, the server returns an error. Date values should be for a specific date by using the pattern YYYY-MM-DD.
Example; for example, fromDate=2014-01-01.

toDate

Required for all reporting data requests must specify a date range. If you do not include fromDate and toDate parameters in the request, the server returns an error. Date values should be for a specific date by using the pattern YYYY-MM-DD.
Example; for example, XA toDate=2014-01-31.

Dimensions

Optional.The dimensions parameter breaks down metrics by common criteria; for example, by siteId or  campaginId  While you can ask for the total number of impressions to your site, it might be more interesting to ask for the number of impressions broken down by site. In this case, you'll see the number of impressions from all sites; for example, dimensions=sitId,campaginId. See Reporting Glossary for a list of available dimensions.

...

Optional. A list of metrics and dimensions indicating the sorting order and sorting direction for the returned data.
Sorting direction defaults to ascending and can be changed but you can change it to descending by using a minus sign (-) prefix on the for a requested field.
Sorting the results of a query enables you to ask different questions about your data. For example, to address the question "What are my top sites, and which impressionsCount do they provide most with less zero bids?" you can make a query with the the following parameter; for example, : sort=-impressionCount,zeroBid.

...

Optional. The filters query string parameter restricts the data returned from your request. To use the filters parameter, supply a dimension or metric on which to filter, followed by the filter expression. For example, the following query requests impressionCount  grater impressionCount greater than 10000  10000 served by campaign name starts with the string xyz or end ends with abc.

&filters=impressionCount gt 10000&filters=campaignName like xyz*, campaignName like *abc

...