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"
}
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は成功{
"code": 0,
"msg": "OK"
}
| キー | 値の例 | 形式 |
|---|---|---|
BIRTH | 2024 | yyyy(年のみ) |
BIRTH | 202401 | yyyyMM(年月) |
BIRTH | 20240101 | yyyyMMdd(完全な日付) |
| キー | 値 | 意味 |
|---|---|---|
GDR | M | 男性(Male) |
GDR | F | 女性(Female) |
GDR | O | その他(Other) |
| キー | 値 | 説明 |
|---|---|---|
* | U | すべての属性で「不明」を表す場合に使用 |
BIRTH、GDRconst properties = {
// プリセット属性
BIRTH: '19931225',
GDR: 'M',
// カスタム属性(コンソールで定義)
membership: 'premium',
lastPurchaseDate: '2024-01-15',
favoriteCategory: 'electronics'
};
contextIdパラメータを追加します。
contextIdパラメータを使用GET 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' // コンソールで作成したコンテキストID
},
headers: {
'Authorization': 'YOUR_APP_KEY'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
uidを使用してください。一貫したIDは正確なターゲティングの鍵です。/propertyエンドポイントを呼び出して更新してください。BIRTHとGDR属性は、定められた形式を正確に使用する必要があります。このページは役に立ちましたか?