Class WinLossBeaconHandlerKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String notifyWin(AdComponent adComponent, Double minBidToWin) Notify that the bid for this ad was won.
      final static String notifyLoss(AdComponent adComponent, Integer lossReason, Double auctionPrice) Notify that the bid for this ad was lost.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • notifyWin

         final static String notifyWin(AdComponent adComponent, Double minBidToWin)

        Notify that the bid for this ad was won.

        This top-level function:

        • Ensures it's called only once per AdComponent via atomic flag

        • Retrieves WIN_BEACON trackers from the AdComponent's AdContext

        • Replaces auction macros with actual values

        • Fires beacons via ClickManager

        • Validates parameters

        Parameters:
        adComponent - The AdComponent containing the ad context and logger
        minBidToWin - The minimum bid amount required to win the auction
        Returns:

        An error message string if the notification failed, null if successful

      • notifyLoss

         final static String notifyLoss(AdComponent adComponent, Integer lossReason, Double auctionPrice)

        Notify that the bid for this ad was lost.

        This top-level function:

        • Ensures it's called only once per AdComponent via atomic flag

        • Retrieves LOSS_BEACON trackers from the AdComponent's AdContext

        • Replaces auction macros with actual values

        • Fires beacons via ClickManager

        • Validates parameters

        Parameters:
        adComponent - The AdComponent containing the ad context and logger
        lossReason - The reason code for losing the auction
        auctionPrice - The price of the winning bid in the auction
        Returns:

        An error message string if the notification failed, null if successful