This metadata API returns the list of ad types supported by InMobi, along with their internal id, name, and broad externalName classification. These IDs are required for configuring ad type targeting in deals.
GET https://apis.demand.ssp.inmobi.com/v1/meta/ad-type
| Field Name | Type | Is mandatory (Y/N)? | Description |
|---|---|---|---|
| Authorization | String | Y | Bearer token for authentication (Bearer <token>) |
| X-USER-ID | String | Y | The ID of the user making the request |
| X-INMOBI-ORG-ID | String | Y | The organization ID associated with the user |
| Content-Type | String | Y | Specifies the media type of the request body. Use: application/json |
curl -X GET "https://apis.demand.ssp.inmobi.com/v1/meta/ad-type" \
-H "Authorization: Bearer <your bearer token>" \
-H "X-USER-ID: <test app>" \
-H "X-INMOBI-ORG-ID: <your org id>" \
-H "Content-Type: application/json"
{
"data": [
{
"id": 0,
"name": "Banner/Interstitial",
"externalName": "Display"
},
{
"id": 1,
"name": "Interstitial Video",
"externalName": "Video"
},
{
"id": 6,
"name": "Native",
"externalName": "Native"
},
{
"id": 10,
"name": "Audio Banner",
"externalName": "Audio"
}
// ...more ad types
]
}
By installing this SDK update, you agree that your Children Privacy Compliance setting remains accurate or that you will update that setting, whenever there is a change in your app's audience. You may update the app's Children Privacy Compliance settings at https://publisher.inmobi.com/my-inventory/app-and-placements.
Support Center