Class TransactionManager

java.lang.Object
org.prebid.mobile.rendering.loading.TransactionManager
All Implemented Interfaces:
AdLoadListener, Transaction.Listener

public class TransactionManager extends Object implements AdLoadListener, Transaction.Listener
  • Constructor Details

  • Method Details

    • onCreativeModelReady

      public void onCreativeModelReady(CreativeModelsMaker.Result result)
      Specified by:
      onCreativeModelReady in interface AdLoadListener
    • onFailedToLoadAd

      public void onFailedToLoadAd(AdException e, String vastLoaderIdentifier)
      Specified by:
      onFailedToLoadAd in interface AdLoadListener
    • onTransactionSuccess

      public void onTransactionSuccess(Transaction transaction)
      Specified by:
      onTransactionSuccess in interface Transaction.Listener
    • onTransactionFailure

      public void onTransactionFailure(AdException e, String identifier)
      Specified by:
      onTransactionFailure in interface Transaction.Listener
    • fetchBidTransaction

      public void fetchBidTransaction(AdUnitConfiguration adConfiguration, BidResponse bidResponse)
      Initiates the process of creating creative model and transaction from parsed bid response
      Parameters:
      adConfiguration - - AdConfiguration
      bidResponse - - parsed bid response
    • fetchVideoTransaction

      public void fetchVideoTransaction(AdUnitConfiguration adConfiguration, String vastXml)
    • getCurrentTransaction

      public Transaction getCurrentTransaction()
      Returns the transaction that should be displayed right now.
      Returns:
      first transaction
    • dismissCurrentTransaction

      public Transaction dismissCurrentTransaction()
      Removes the current transaction from internal cache
      Returns:
      the next transactions in the list
    • getCurrentCreative

      public AbstractCreative getCurrentCreative()
    • hasNextCreative

      public boolean hasNextCreative()
    • resetState

      public void resetState()
    • hasTransaction

      public boolean hasTransaction()
    • destroy

      public void destroy()
    • incrementCreativesCounter

      public void incrementCreativesCounter()