Beslissingsitems weergeven list-decision-items
Met Journey Optimizer kunt u marketingaanbiedingen maken, ook wel 'beslissingsitems' genoemd, die u kunt maken en indelen in een gecentraliseerde catalogus en verzamelingen. Ze bestaan uit standaard- en aangepaste kenmerken die precies op uw behoeften zijn afgestemd. Bovendien, nemen zij profielbeperkingen op die u toestaan om te bepalen aan wie een besluitpunt kan worden getoond.
U kunt een lijst van alle besluitvormingspunten bekijken door één enkel GET verzoek aan de Bibliotheek API van de Aanbieding uit te voeren.
API formaat
GET /{ENDPOINT_PATH}/offer-items?{QUERY_PARAMS}
{ENDPOINT_PATH}https://platform.adobe.io/data/core/dps{QUERY_PARAMS}limit=2Query-parameters gebruiken using-query-parameters
U kunt queryparameters gebruiken om de resultaten te filteren en te pagineren wanneer u bronnen weergeeft.
Paginering paging
De gemeenschappelijkste vraagparameters voor het pagineren omvatten:
propertyEen optioneel eigenschapsfilter:
- De eigenschappen worden gegroepeerd door EN-bewerking.
- De parameters kunnen als zo worden herhaald: property= {PROPERTY_EXPR}[&property= {PROPERTY_EXPR2}… ] of property= {PROPERTY_EXPR1}[, {PROPERTY_EXPR2}… ]
- Eigenschapexpressies hebben de notatie
[ !]field[op]valueen ondersteunenopin[==,!=,<=,>=,<,>,~]reguliere expressies.
property=name!=abc&property=id~.*1234.*&property=description equivalent with property=name!=abc,id~.*1234.*,description.orderByorderby=field1[,-fields2,field3,...]orderby=id, -namelimitlimit=5Verzoek
curl -X GET '<https://platform.adobe.io/data/core/dps/offer-items?limit=2>' \
-H 'Accept: *,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}' \
-H 'x-schema-id: {SCHEMA_ID}'
Reactie
Een succesvolle reactie retourneert een lijst met aangeboden objecten waartoe u toegang hebt. Het knooppunt _<imsOrg> bevat kenmerken voor aangepaste beslissingsitems.
{
"results": [
{
"created": "2024-06-10T16:00:34.014Z",
"modified": "2024-07-09T22:59:21.507Z",
"etag": 1,
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"id": "offerItem5678",
"_experience": {
"decisioning": {
"offeritem": {
"fCapConstraintsLastIndex": 0,
"lifecycleStatus": "draft"
},
"decisionitem": {
"itemCalendarConstraints": {
"endDate": "2030-12-31T08:00:00.000Z",
"startDate": "2024-06-10T04:00:00.000Z"
},
"itemCatalogID": "itemCatalong1234",
"itemConstraints": {
"eligibilityRule": "rule1234",
"profileConstraintType": "eligibilityRule"
},
"itemDescription": "Offer item description",
"itemID": "offerItem5678",
"itemLabels": [],
"itemName": "Offer Item One",
"itemPriority": 1,
"itemTags": []
}
}
},
"_<imsOrg>": {
"some_field": "some value"
}
},
{
"created": "2024-06-04T17:51:52.849Z",
"modified": "2024-06-28T18:29:27.951Z",
"etag": 5,
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"id": "offerItem1234",
"_experience": {
"decisioning": {
"offeritem": {
"frequencyCappingConstraints": [],
"fCapConstraintsLastIndex": 0,
"lifecycleStatus": "approved"
},
"decisionitem": {
"itemCalendarConstraints": {
"endDate": "2030-12-31T08:00:00.000Z",
"startDate": "2024-06-01T07:00:00.000Z"
},
"itemCatalogID": "itemCatalong1234",
"itemConstraints": {
"profileConstraintType": "none"
},
"itemDescription": "Offer item description",
"itemID": "offerItem1234",
"itemLabels": [],
"itemName": "Offer Item Two",
"itemPriority": 2,
"itemTags": []
}
}
},
"YOUR_CUSTOM_ATTRIBUTES": {
"some_field": "some value",
"some_boolean_field": true
}
}
],
"count": 2,
"total": 844,
"_links": {
"self": {
"href": "/offer-items?orderby=-modified&limit=2",
"type": "application/json"
},
"next": {
"href": "/offer-items?orderby=-modified&limit=2&start=2024-06-28T03:44:15.630Z",
"type": "application/json"
}
}
}