Class Offer

  • All Implemented Interfaces:

    
    public class Offer
    
                        
    • Constructor Detail

    • Method Detail

      • getScore

         double getScore()

        Gets the Offer score.

        Returns:

        double containing the Offer score.

      • displayed

         void displayed()

        Dispatches an event for the Edge network extension to send an Experience Event to the Edge network with the display interaction data for the given OptimizeProposition offer.

      • tapped

         void tapped()

        Dispatches an event for the Edge network extension to send an Experience Event to the Edge network with the tap interaction data for the given OptimizeProposition offer.

      • generateDisplayInteractionXdm

         Map<String, Object> generateDisplayInteractionXdm()

        Generates a map containing XDM-formatted data for the Experience Event - OptimizeProposition Display field group from this Offer instance.

        This method constructs a new OptimizeProposition object using the current offer and its associated proposition reference. If the scopeDetails of the referenced proposition are empty, the activity and placement maps are also included; otherwise, the simpler constructor is used.

        The returned XDM map contains the eventType decisioning.propositionDisplay.

        Note: The Edge sendEvent API can be used to dispatch this data as an Experience Event, along with any additional XDM, free-form data, and override dataset identifier.

        Returns:

        Map<String, Object> containing the XDM data for the proposition display interaction.

      • generateTapInteractionXdm

         Map<String, Object> generateTapInteractionXdm()

        Generates a map containing XDM-formatted data for the Experience Event - OptimizeProposition Interact field group from this Offer instance.

        This method constructs a new OptimizeProposition object using the current offer and its associated proposition reference. If the scopeDetails of the referenced proposition are empty, the activity and placement maps are also included; otherwise, the simpler constructor is used.

        The returned XDM map contains the eventType decisioning.propositionInteract.

        Note: The Edge sendEvent API can be used to dispatch this data as an Experience Event, along with any additional XDM, free-form data, and override dataset identifier.

        Returns:

        Map<String, Object> containing the XDM data for the proposition tap interaction.