how to use contextual attributes in creating a ranking formula | Community
Skip to main content
Adobe Employee
June 2, 2025
Question

how to use contextual attributes in creating a ranking formula

  • June 2, 2025
  • 1 reply
  • 520 views

Hi

I am trying to use contextual attributes like current temp in a ranking formula to assign ranking score to offers using offer decisioning. I am using AEP Tags to send event with contextual data  to AEP, and the event is being sent correctly. But I think the current temp value in the ranking formula is always null. The screenshot from AEP debugger shows the contextual data that is being sent from AEP Tags

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SatheeskannaK
Community Advisor
Community Advisor
June 3, 2025
Thanks, Sathees
Adobe Employee
June 4, 2025

yes, I have followed that documentation. I was able to select the context data in my formual ranking builder  if ( context.datastream.event.`305db7ad21287bf3e904ed956d6d8008526e5433b625e71d`._techmarketingdemos.temperature > 65, 100, 0 ).

The rule is not working as expected, as it is assigning a score of 0 to offers. That means the temperature field value is not being passed correctly 

SatheeskannaK
Community Advisor
Community Advisor
June 4, 2025

@workflowuser I'm curious if you've tried with other contextual attributes like Humidity, city name, and so on. Is that working for you?

Thanks, Sathees