Can anyone get relevant ads from the AdMob server when setting up keywords or a search query? My application runs on Android, and I manage to download ads from the AdMob server.
I try several solutions, but they don't seem to work.
Solution 1: use the setKeywords( String keywords ) or setSearchQuery( String searchQuery ) from the AdView class, and then call requestFreshAd() . When the request is currently being executed, the call to requestFreshAd() generates the following log message:
"WARN / AdMobSDK (2541): Ignoring requestFreshAd () because we are requesting an ad right now."
.
Thus, I am trying to call requestFreshAd() when the request is not executing, but it is no longer working.
Solution 2: In the XML layout, use the myapp:keywords="myKeywords" in the AdView element. These attributes were previously declared in the attrs.xml file.
source share