Android Question third-party advertising (no Admob), B4A V6/New G.play Services

DavideV

Active Member
Licensed User
Longtime User
Hi guys,
due to changes in google play services and with B4A V6.00 i don't know how to correctly integrate ADS from others than Admob.
I added the new google play services base strings in manifest following this thread:
https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/#content

but wich is the correct google play JAR file to include in
#AdditionalJar: com.google.android.gms: ???

In the (updated) SDK i see:
play-services-ads
play-services-ads-lite

Thanks in advance
Davide
 

DavideV

Active Member
Licensed User
Longtime User
Which SDK are you integrating? Do you see any error message?

Hi Erel,
Google play services is 9.0.2 ( version 30 in the android SDK)

i tried this:
#AdditionalJar: com.google.android.gms: play-services-ads-lite

the app compiles without errors and run just fine as before,but i'm not sure if it is correct. i'm using Leadbolt Ads:

 
Last edited:
Upvote 0

DavideV

Active Member
Licensed User
Longtime User

Unfortunately using 'play-services' the compile fails:
 
Upvote 0

DavideV

Active Member
Licensed User
Longtime User
You need to use a more recent android.jar (Tools - Configure Paths).

with android.jar from platform V23 i get a different error now:

the list was too long , i removed some items but i think the relevant error is:

trouble writing output: Too many method references: 71848; max is 65536.
 
Upvote 0

DavideV

Active Member
Licensed User
Longtime User
This is what i'm doing:
B4X:
#if Playstore
    #AdditionalJar: com.google.android.gms:play-services
#end if

Here is the full error list

 
Upvote 0

DavideV

Active Member
Licensed User
Longtime User
My mistake. Remove the #AdditionalJar and compile your app. Do you get any error message?

Yes i get this error now:

 
Upvote 0

DavideV

Active Member
Licensed User
Longtime User

Thanks Erel,
after further searches i see that, with your string, my decompiled app contains the required class for retrieving advertising ID and limits using play services (as requested from Google).
Looking into the Leadbolt SDK using JDGUI i can't find anything related to calls to these Play services methods/class import (such as retrieving the advertising ID and limits) so it should work with or without play services.
i'll ask them clarifications
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…