Home > Supply Side Platform > New Features > How to create mapping for API integration

How to create mapping for API integration

In order to be able to fetch external numbers correctly, parameters correspondence needs to be created. System needs to understand, which external parameter to take data from and which internal one to map it with. 

Let's take a look at the example. The result of API call looks like:

{
  "status": "success",
  "message": "",
  "data": {
    "statistics": [
      {
        "date": "2024-04-20",
        "impressions": "227828",
        "adrequests": "57804134",
        "money": 12.5431
      }
    ],
  }
}

We see that partner responds with the following fields:

  • date
  • impressions
  • adrequests
  • money 

Based on this, we need to map them with our internal ones: 

The correspondence will be:

  • Impressions - impressions
  • Revenue - money
  • Ad Requests - adrequests