Een plaatsing maken create-placement
U kunt een plaatsing maken door een POST-aanvraag in te dienen bij de Offer Library API.
Kopteksten van het type Inhoud accepteren accept-and-content-type-headers
De volgende lijst toont de geldige waarden die uit het inhoud-Type gebied in de verzoekkopbal bestaan:
Naam koptekst
Waarde
Inhoudstype
application/jsonAPI formaat
POST /{ENDPOINT_PATH}/placements
Parameter
Beschrijving
Voorbeeld
{ENDPOINT_PATH}Het eindpuntpad voor persistentie-API's.
https://platform.adobe.io/data/core/dps/Verzoek
curl -X POST 'https://platform.adobe.io/data/core/dps/placements' \
-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": "New placement",
"description": "Placement description",
"componentType": "html",
"channel": "https://ns.adobe.com/xdm/channel-types/email",
"itemCount": 1,
"allowDuplicatePlacements": false,
"returnContent": true,
"returnMetaData": {
"decisionName": false,
"offerName": false,
"offerAttributes": false,
"offerPriority": false,
"placementName": false,
"channelType": false,
"contentType": false
}
}'
Reactie
Een geslaagde reactie retourneert de details van de nieuwe plaatsing en plaatsing id . U kunt de volgende stappen gebruiken om uw plaatsing bij te werken of te verwijderen. U kunt uw unieke plaatsing id in recentere zelfstudies gebruiken om besluiten, besluitvormingsregels, en reserveaanbiedingen tot stand te brengen.
{
"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}"
}
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76