> For the complete documentation index, see [llms.txt](https://docs.prodegeads.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prodegeads.com/publisher-apis/user-based-api-v1/store-mobile-advertising-id.md).

# Store Mobile Advertising Id

This endpoint stores the Mobile Advertising ID (GAID for Android or IDFA for iOS) for a new user in the system.\
By collecting this identifier, AdGate Media can:

* Exclude offers the user has already installed.
* Improve offer targeting to increase engagement and conversion rates.

**Method:** POST\
**Base URL:** [**https://api.adgatemedia.com/v1/user-based-api/store-maid**](https://api.adgatemedia.com/v1/user-based-api/store-maid)

### **Request Parameters**

| Parameter   | Description                                               | Type    | Required |
| ----------- | --------------------------------------------------------- | ------- | -------- |
| `aff_id`    | Your affiliate ID. Can be found on the Offers API page.   | Integer | Yes      |
| `api_key`   | Your API key. Can be found on the Offers API page.        | String  | Yes      |
| `wall_code` | Wall code that can be found on the AdGate Rewards page.   | String  | Yes      |
| `user_id`   | The affiliate's unique user ID (max length 255 bytes).    | String  | Yes      |
| `MAID`      | The device’s Mobile Advertising ID (GAID or IDFA).        | String  | Yes      |
| `type`      | The type of ID provided. Accepted values: `gaid`, `idfa`. | String  | Yes      |
