类 TPNotification

java.lang.Object
com.tradplus.ads.mgr.TPNotification

public class TPNotification extends Object
  • 构造器详细资料

    • TPNotification

      public TPNotification()
  • 方法详细资料

    • sendWinOrDisplayNotification

      public static void sendWinOrDisplayNotification(String adUnitId, double winPrice, double secondPrice, String adSourcePlacementId)
      参数:
      adUnitId - 需要开启win/loss的广告位Id (必填)
      winPrice - 胜出价格,必须大于0(必填)
      secondPrice - 二价格(可选)
      adSourcePlacementId - 广告源id,tpadinfo里返回的adSourcePlacementId(必填)
    • sendLosNotification

      public static void sendLosNotification(String adUnitId, double price, String adSourcePlacementId)
      发送 los 通知(旧方法,保留兼容性)
      参数:
      adUnitId - 广告位ID
      price - 价格
      adSourcePlacementId - 广告源ID