Page 1 of 1

Admob possible with LCB ?

Posted: Sun Jan 12, 2020 6:58 pm
by sphere

i've seen a few threads about Admob from years ago. It seems there is still no viable solution.
Has anyone tried to get this done via LCB? Together probably with a piece of AdroidManifest merging?
I have an account at Google Admob and made an app project which generates a token to include in the app.
Seeing this: ... le_ads_sdk

There must be more devs wanting to include ads in their apps, be it via Android Studio or Livecode or any other dev tool.
I assume this can be a feature which could gain more new devs wanting to use Livecode when people can make some extra income via ads.

Thanks for any replies.


Re: Admob possible with LCB ?

Posted: Tue Feb 04, 2020 1:24 pm
by sphere
Made a bug report because the mobilead commands and functions are no longer working or supported. they are based on inneractive which is acquired by google told me.

created feature request to integrate google admob and amazon mobileads support.

Re: Admob possible with LCB ?

Posted: Sun Feb 09, 2020 8:35 pm
by sphere
I'm trying to look into this myself.
Exploring the classes and reading several LCB files to see how this binding to handlers or commands in classes works.
The Google Admob sdk is if i'm correct this play-services-ads-11.0.4.aar. but i'm not sure also if AAR is already supported in the code/jvm-android folder.
Could also use Firebase, but it seems it uses the same AAR sdk.
Amazon uses amazon-ads-5.9.0.jar, thus a jar files which is supported.

So if it succeeds which will not be a small or easy task as i have no idea yet how many classes/handler wil be suffiecient to use it, i wat to create 2 libraries. One for Google Admob and one for Amazon Ads. Both have the possibility to use mediation, meaning it can use the sdk from another provider to show their ads.

Info about Google's sdk and classes can be found, when you have Android Studio installed, here: Android/Sdk/extras/google/google_play_services/reference/com/google/android/gms/ads

Amazon's info and docs can be found here: Amazon\AmazonMobileAds_Android\docs\API-Reference\, after you download & unzip the sdk from here:

There are nice html files so it's easy to explore.
Now back to understanding how to bind it in lcb, to be continued. any tips are welcome.