Een plaatsing maken
Laatst bijgewerkt: 18 oktober 2023
- Onderwerpen:
- Besluitbeheer
- API
Gemaakt voor:
- Ervaren
- Ontwikkelaar
U kunt een plaatsing tot stand brengen door een verzoek van de POST aan Offer Library API.
Kopteksten van het type Inhoud accepteren
In de volgende tabel worden de geldige waarden weergegeven waaruit de Inhoudstype veld in de aanvraagkoptekst:
Naam koptekst | Waarde |
---|---|
Inhoudstype | application/json |
API-indeling
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
}
}'
Antwoord
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 gebruiken id
in recentere zelfstudies 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