Does anyone manage to get relevant advertisement from AdMob server when setting keywords or search query ? My application runs on Android and I manage to retrieve ads from the AdMob server.
I try several solutions but they do not seem to work.
Solution 1: use the methods setKeywords( String keywords )
or setSearchQuery( String searchQuery )
from the AdView class and then, call requestFreshAd()
. When a request is currently in progress, a call to requestFreshAd()
generate the following message in log :
"WARN/AdMobSDK(2541): Ignoring requestFreshAd() because we are requesting an ad right now already."
.
Thus, I try to call requestFreshAd()
when no request are in progress but it doesn't work anymore.
Solution 2: In the XML layout, use the attributes myapp:keywords="myKeywords"
on the AdView element. This attributes is previously declared in the attrs.xml file.