Ranking formulas allow you to define rules that will determine which offer should be presented first for a given placement, rather than taking into account the offers’ priority scores.
Ranking formulas are expressed in PQL syntax and can leverage profile attributes, context data and offer attributes. For more on how to use the PQL syntax, refer to the dedicated documentation.
Once a ranking formula has been created, you can assign it to a placement in a decision (previously known as offer activity). For more on this, see Configure offers selection in decisions.
To create a ranking formula, follow the steps below:
Access the Components menu, then select the Rankings tab.
Click Create formula to create a new ranking formula.
Specify the ranking formula name, description, and formula.
In this example, we want to boost the priority of all offers with the “hot” attribute if the actual weather is hot. To do this, the contextData.weather=hot was passed in the decisioning call.
Click Save. Your ranking formula is created, you can select it from the list to get details and edit or delete it.
It is now ready to be used in a decision to rank eligible offers for a placement (see Configure offers selection in decisions).