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();
}
Aggregations