개인화된 오퍼 만들기 create-personalized-offer

맞춤형 오퍼는 자격 규칙 및 제한에 따라 사용자 정의 가능한 마케팅 메시지입니다.

에 POST 요청을 하여 개인화된 오퍼를 만들 수 있습니다. Offer Library API.

Accept 및 Content-Type 헤더 accept-and-content-type-headers

다음 표는 다음을 구성하는 유효한 값을 보여줍니다. Content-Type 요청 헤더의 필드:

헤더 이름
Content-Type
application/json

API 형식

POST /{ENDPOINT_PATH}/offers/{ID}?offer-type=personalized
매개변수
설명
{ENDPOINT_PATH}
지속성 API의 끝점 경로입니다.
https://platform.adobe.io/data/core/dps/

요청

curl -X POST 'https://platform.adobe.io/data/core/dps/offers?offer-type=personalized' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {IMS_ORG}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '{
    "name": "Test personalized offer with frequency constraint",
    "status": "draft",
    "representations": [
        {
            "channel": "https://ns.adobe.com/xdm/channel-types/web",
            "placement": "offerPlacement1234",
            "components": [
                {
                    "type": "html",
                    "format": "text/html",
                    "language": [
                        "en-us"
                    ],
                    "content": "Hello You qualify for our Discount of 60%"
                }
            ]
        }
    ],
    "selectionConstraint": {
        "startDate": "2022-07-27T05:00:00.000+00:00",
        "endDate": "2023-07-29T05:00:00.000+00:00",
        "profileConstraintType": "none"
    },
    "rank": {
        "priority": 0
    },
    "cappingConstraint": {},
    "frequencyCappingConstraints": [
        {
            "enabled": false,
            "limit": 1,
            "startDate": "2023-05-15T14:25:49.622+00:00",
            "endDate": "2023-05-25T14:25:49.622+00:00",
            "scope": "global",
            "entity": "offer",
            "repeat": {
                "enabled": false,
                "unit": "month",
                "unitCount": 1
            }
        }
    ]
}'

응답

성공적인 응답은 ID를 포함하여 새로 생성된 개인화된 오퍼의 세부 정보를 반환합니다. 다음을 사용할 수 있습니다. id 개인화된 오퍼를 업데이트하거나 삭제하는 이후 단계.

{
    "etag": 1,
    "createdBy": "{CREATED_BY}",
    "lastModifiedBy": "{MODIFIED_BY}",
    "id": "{ID}",
    "sandboxId": "{SANDBOX_ID}",
    "createdDate": "2023-05-31T15:09:11.771Z",
    "lastModifiedDate": "2023-05-31T15:09:11.771Z",
    "createdByClientId": "{CREATED_CLIENT_ID}",
    "lastModifiedByClientId": "{MODIFIED_CLIENT_ID}"
}

제한 사항 limitations

오퍼 표시 및 일부 오퍼 제한 사항은 현재 모바일에서 지원되지 않습니다. Experience Edge 워크플로(예: ) Capping. 다음 Capping 필드 값은 모든 사용자에게 오퍼를 제공할 수 있는 횟수를 지정합니다. 자세한 내용은 오퍼 자격 규칙 및 제한 설명서.

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76