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 속성은 정해진 형식을 정확히 사용해야 합니다.이 페이지가 도움이 되었나요?