Android Retrieve :- advertiserId, campaignId, creativeId and lineItemId

82 views
Skip to first unread message

ashish....@accedo.tv

unread,
Jan 23, 2018, 6:14:36 AM1/23/18
to Google Mobile Ads SDK Developers
Hi,

In regards to DFP native custom rendering ads on Android is it possible to retrieve the advertiserIdcampaignIdcreativeId and lineItemId from response as what I can see there is no such method or any callback exposed to get these details.




mobileadssdk-a...@google.com

unread,
Jan 23, 2018, 3:11:16 PM1/23/18
to ashish....@accedo.tv, Google Mobile Ads SDK Developers
Hi Ashish, 

Thank you for contacting us. It is currently not possible to get the mentioned parameters from the request/response. Please keep an eye out on our blog for more information on upcoming releases or announcements. 

Regards,
Bharani, Mobile Ads SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Ashish Bhandari

unread,
Jan 23, 2018, 11:24:36 PM1/23/18
to mobileadssdk-a...@google.com, Google Mobile Ads SDK Developers, Aqdas Husain
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 (advertiserIdcampaignIdcreativeId 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
--
Ashish Bhandari
Software Developer L2
M: +91 98 710 53 724  •  
Connaught Place, Delhi - 110001, India
Skype: ashish.bhandari_3

mobileadssdk-a...@google.com

unread,
Jan 24, 2018, 12:18:00 PM1/24/18
to Ashish Bhandari, Aqdas Husain, Google Mobile Ads SDK Developers
Hello Ashish, 

Thank you for adding more details. It is not possible to track these parameters through the Mobile Ads SDK. However, I could think of DFP API which could give these parameters. You may refer to this guide to see if that might help in your scenario. 

Regards,
Bharani, Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages