Delivery API | Community
Skip to main content
August 8, 2022
Solved

Delivery API

  • August 8, 2022
  • 1 reply
  • 863 views

Hello, 

 

I was trying to use the Delivery API to inform Adobe Target which products were seen by the user, in order to feed the criterial.

 

I've created some products and categories specially for testing this API. 

 

I found out the notification parameters could work for me, but after doing several tries sending the product.id and product.category , the recomendation is not showing the new category. 

This are the parameters sent:

 

  "notifications" : [{
      "id" : "12345145",
      "product" : {
          "id" : "id2",
          "categoryId" : "categoryApi2"
      },
      "type" : "display",
      "timestamp" : "1659095248961"
  }]
The criterial is "Most Viewed based on Favorite Category on Multiple Pages".
 
How can I send the product information to Adobe Target?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaurav_Singh_02

@luziav have you tried passing the entity attributes as mboxParams as demonstrated under this document : https://experienceleague.adobe.com/docs/target/using/recommendations/entities/custom-entity-attributes.html?lang=en .

 

Another option could be to use "window.adobe.target.getOffer()" function . Details are listed here : https://developer.adobe.com/target/implement/client-side/atjs/atjs-functions/adobe-target-getoffer/?lang=en 

 

Both these options will help you in passing the entity attribute value dynamically on the page which you could utilize for criteria algo's.

Hope this helps.

1 reply

Gaurav_Singh_02Adobe EmployeeAccepted solution
Adobe Employee
August 10, 2022

@luziav have you tried passing the entity attributes as mboxParams as demonstrated under this document : https://experienceleague.adobe.com/docs/target/using/recommendations/entities/custom-entity-attributes.html?lang=en .

 

Another option could be to use "window.adobe.target.getOffer()" function . Details are listed here : https://developer.adobe.com/target/implement/client-side/atjs/atjs-functions/adobe-target-getoffer/?lang=en 

 

Both these options will help you in passing the entity attribute value dynamically on the page which you could utilize for criteria algo's.

Hope this helps.

LuziaVAuthor
August 30, 2022

@gaurav_singh_02 thanks for your response!

I've took a look into the documentation. 
There's a way that should work for me, sending the entities as an mbox parameter, but I cannot see the recommendations changing... how could I check that the implementation is working propertily?

Thank you!