curl --request POST \
--url https://api-v2.adrop.io/property \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"uid": "<string>",
"value": "<string>",
"platform": "<string>",
"adid": "<string>"
}
'{
"code": 0,
"msg": "OK"
}
Learn how to configure user properties and context targeting using the REST API.
curl --request POST \
--url https://api-v2.adrop.io/property \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"uid": "<string>",
"value": "<string>",
"platform": "<string>",
"adid": "<string>"
}
'{
"code": 0,
"msg": "OK"
}
application/jsonweb, android, ios0 indicates success.{
"code": 0,
"msg": "OK"
}
| Key | Example Value | Format |
|---|---|---|
BIRTH | 2024 | yyyy (year only) |
BIRTH | 202401 | yyyyMM (year and month) |
BIRTH | 20240101 | yyyyMMdd (full date) |
| Key | Value | Meaning |
|---|---|---|
GDR | M | Male |
GDR | F | Female |
GDR | O | Other |
| Key | Value | Description |
|---|---|---|
* | U | Use to represent “unknown” for any property |
BIRTH, GDRconst properties = {
// Preset properties
BIRTH: '19931225',
GDR: 'M',
// Custom properties (defined in console)
membership: 'premium',
lastPurchaseDate: '2024-01-15',
favoriteCategory: 'electronics'
};
contextId parameter to ad requests.
contextId parameter when requesting adsGET https://api-v2.adrop.io/request?unit=YOUR_UNIT_ID&contextId=sport
const axios = require('axios');
const config = {
method: 'get',
baseURL: 'https://api-v2.adrop.io',
url: '/request',
params: {
unit: 'YOUR_UNIT_ID',
uid: 'USER_ID',
pf: 'web',
contextId: 'sport' // Context ID created in console
},
headers: {
'Authorization': 'YOUR_APP_KEY'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
uid for the same user. Consistent IDs are key to accurate targeting./property endpoint immediately when user information changes.BIRTH and GDR properties.Was this page helpful?