Tutorials

Getting Statistics via Aitarget API ~1 min

Authorisation

All API methods demand authorisation. Learn more about how to authorise using Aitarget API in Authorisation.

Getting statistics via Aitarget API

To get all the statistics you first need to get the access to the API. To do this, you need to request access by writing to info@aitarget.com. As soon as you get access you can see the methods descriptions here.

The algorithm for getting statistics

  1. Getting the accounts list.
  2. Getting the campaigns/ad sets/creative list.
  3. Getting the available statistics fields.
  4. Getting the statistics. Here you need to transfer the object from point 2 and point 3 with id_ prefix separated by commas, for example: id_2,id_5,id_100, etc.