Hello Team,
I'm currently working on implementing the Mobile Ads SDK (ad manager, not admob). My goal is to use a simple banner (can be html5) with an click through URL action. I want to launch the playstore on a click or the app itself if it is already installed. By using the default behaviour provide by the SDK when a click is perform, I just get a message that said "No application can handle this action".
But I manage to get it work by using the AppEventListener feature.
HTML:
Android:
adView.appEventListener = object : com.google.android.gms.ads.admanager.AppEventListener {
override fun onAppEvent(name: kotlin.String, info: kotlin.String) {
println("maxdebug $name - $info")
if(name == "clickAction"){
th...@MainActivity.openPackage(this@MainActivity, info)
I would like to know if it is a proper way of using the SDK?
And does it break some Google policy?
Is there is any better way of implementing this feature?
Thanks in advance
Regards
Max