Search in sources :

Example 1 with AdDetails

use of org.prebid.mobile.rendering.models.AdDetails in project prebid-mobile-android by prebid.

the class AdViewManager method processTransaction.

private void processTransaction(Transaction transaction) {
    List<CreativeFactory> creativeFactories = transaction.getCreativeFactories();
    if (!creativeFactories.isEmpty()) {
        mCurrentCreative = creativeFactories.get(0).getCreative();
        mCurrentCreative.createOmAdSession();
    }
    try {
        final AdDetails adDetails = new AdDetails();
        adDetails.setTransactionId(transaction.getTransactionState());
        mAdViewListener.adLoaded(adDetails);
        trackAdLoaded();
    } catch (Exception e) {
        LogUtil.error(TAG, "adLoaded failed: " + Log.getStackTraceString(e));
    }
    handleAutoDisplay();
}
Also used : AdDetails(org.prebid.mobile.rendering.models.AdDetails) CreativeFactory(org.prebid.mobile.rendering.loading.CreativeFactory) AdException(org.prebid.mobile.rendering.errors.AdException)

Aggregations

AdException (org.prebid.mobile.rendering.errors.AdException)1 CreativeFactory (org.prebid.mobile.rendering.loading.CreativeFactory)1 AdDetails (org.prebid.mobile.rendering.models.AdDetails)1