AdLoader adLoader = new AdLoader.Builder(adContainer.getContext(), adTag.tag)
.forCustomTemplateAd("10004520",
new DfpNativeContentAdDataAdapter(adContainer, mediationCallback), null)
.forCustomTemplateAd("10004400",
new DfpNativeAppInstallAdDataAdapter(adContainer, mediationCallback), null)
.withAdListener(new AdListener() {
@Override
public void onAdFailedToLoad(int errorCode) {
mediationCallback.onAdFailed();
}
})
.withNativeAdOptions(new NativeAdOptions.Builder()
.setReturnUrlsForImageAssets(true)
.build())
.build();
Is this approach possible or are we forced to use the NativeContentAdView classes inside our layouts with system defined formats?
Best regards,
Thomas