Hi,
Thanks for your quick reply on this support issue and sharing the useful information with us, but by any other way is it possible to get required details by parsing Ads response and get these details (advertiserId, campaignId, creativeId and lineItemId ). Because these details would help us to track DFP native ads purposely.
this is the small snippet of code through which we are rendering a NativeAppInstallAd:
NativeAppInstallAd.OnAppInstallAdLoadedListener appInstallAdListener =
new NativeAppInstallAd.OnAppInstallAdLoadedListener() {
@Override
public void onAppInstallAdLoaded(NativeAppInstallAd ad) {
mAppInstallAd = ad;
AppInstallAdViewHolder holder = mPlacement.getAppInstallAdViewHolder();
holder.populateView(context, mAppInstallAd);
}
};
if (mAdLoader == null) {
mAdLoader = new AdLoader.Builder(context, mAdUnitId)
.forAppInstallAd(appInstallAdListener)
.withAdListener(new AdListener() {
@Override
public void onAdFailedToLoad(int errorCode) {
if (mPlacement.getCurrentViewHolder() != null) {
mPlacement.getCurrentViewHolder().hideView();
}
Log.e(TAG, "Multi-Format Ad Failed to load: " + errorCode);
}
}).build();
}
mAdLoader.loadAd(new PublisherAdRequest.Builder().build());
Please let me know if further information required on the same.
kind Regards,
Ashish Bhandari