Admob possible with LCB ?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
sphere
Posts: 1086
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Admob possible with LCB ?

Post by sphere » Sun Jan 12, 2020 6:58 pm

Hi,

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:
https://developers.google.com/admob/and ... 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.

Regards,
JJS

sphere
Posts: 1086
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Admob possible with LCB ?

Post by sphere » Tue Feb 04, 2020 1:24 pm

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 fyber.com google told me. https://quality.livecode.com/show_bug.cgi?id=22561

created feature request to integrate google admob and amazon mobileads support.
https://quality.livecode.com/show_bug.cgi?id=22562

sphere
Posts: 1086
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: Admob possible with LCB ?

Post by sphere » Sun Feb 09, 2020 8:35 pm

I'm trying to look into this myself.
Exploring the com.google.android.gms.ads 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: https://developer.amazon.com/docs/mobile-ads

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.

Post Reply

Return to “Android Deployment”