Use the API to delete (expire) a deal from the InMobi platform using its unique ID. This action marks the deal as inactive and prevents it from being served.
DELETE https://apis.demand.ssp.inmobi.com/v1/deals?deal_id=<deal_id>
| 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 |
| Field Name | Type | Is mandatory (Y/N)? | Description |
|---|---|---|---|
deal.id |
String | Y | The unique ID of the deal to be deleted. |
curl -X DELETE "https://apis.demand.ssp.inmobi.com/v1/deals?deal_id=4263509453" \
-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": "4263509453",
"message": "Deleted successfully"
}
}
This confirms the deal was successfully marked as inactive and removed from active use.
For more information, see Error Codes.
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