Context is not an Activity. Chartboost requires an Activity context to load ads.

97 views
Skip to first unread message

Jun Gui

unread,
Nov 18, 2016, 12:23:50 AM11/18/16
to Google Mobile Ads SDK Developers
W/ChartboostAdapter: Chartboost ad location is empty, defaulting to Default. Please set the Ad Location parameter in your AdMob console.
W/ChartboostAdapter: Context is not an Activity. Chartboost requires an Activity context to load ads.


How to deal with these warnings?

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Nov 18, 2016, 1:14:50 AM11/18/16
to google-adm...@googlegroups.com
Hi Jun,

As stated in Chartboost's Mediation Help Site, the adapter automatically sets all named locations to Default if you do not set one in the AdMob Ad Review Center. The warning simply states that.

As for your second concern, the contructors for initializing ads requires a Context object from an Activity instance, as stated in the warning.
However, can you send us a sample code snippet on how you are implementing your ads so we can investigate further?

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Vu Dang

unread,
Jul 12, 2017, 10:18:20 AM7/12/17
to Google Mobile Ads SDK Developers
I'm getting the same error: Context is not an Activity. Chartboost requires an Activity context to load ads.  Were you able to get Chartboost to load ads on Android?
Reply all
Reply to author
Forward
0 new messages