B4A Library AdMob library

Discussion in 'Additional libraries, classes and official updates' started by Erel, Jan 12, 2011.

  1. sorex

    sorex Expert Licensed User

    I have some bizarre issue here.

    On my test device I suddenly get a lot of crashes AFTER the (interstitial) ad has been loaded (it's not auto displaying)
    It can't be trapped with TRY/CATCH either.


    it seems to go away by adding that #addtionalJar line in the main module.

    What is causing this and why didn't the crashes happen before during the last months?

    Could it be that a specific type of pulled in ad requires more than the others?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    I recommend you to switch to FirebaseAdMob and make sure to remove any usage of #ExcludeClass. It will fix such dependency issues.
     
  3. sorex

    sorex Expert Licensed User

    ok I will have a look at it.

    It's just that compilation without the exclude takes a lot longer.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    In B4A v6.0 it is no longer required when you compile with libraries that use the new format as only the required parts will be included.
     
  5. Davin

    Davin Member Licensed User

    anyone get this email ? and are the current lib need to updated too ?



    Hi,
    AdMob is committed to providing you the most effective monetization solutions. As we innovate, it’s important that we leverage the latest technologies to bolster our platform. As part of this movement, we are deprecating versions 6.4.1 and lower of the Android Google Mobile Ads SDK on September 15th, 2016.
    In order to ensure that your ads continue to serve after September 15th, 2016, please upgrade to Google Mobile Ads SDK 7.0.0 or higher.

     
  6. AndrewKing

    AndrewKing Member Licensed User

    I got this email too.

    What should we do?
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    yiankos1 likes this.
  8. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    Is that the only answer Erel? It appears that both the AdMob library & the mwAdmobInterstital2 library use Google Play Services for ads, so would they also be fine to use once the AdMob SDK v6.4.1 is deprecated? Does Google Play Services use the AdMob SDK, or is it completely separate?
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    The correct solution is to switch to FirebaseAdMob.

    AdMob references Google-Play-Services.jar. Google has stopped updating this package.
     
  10. quique

    quique Member Licensed User

    Hi Erel! Sorry to somewhat repeat the question / concern:

    Is it necessary to perform all the integration steps on this new "firebase" platform ... like "2. Register with Firebase and create a new project: https://firebase.google.com/docs/ Make sure that the package name matches your app's package name." ?

    This sounds like a ton of work, to replicate into each app, just to be compliant with the "new admob" requirements.

    I am a bit appalled about this apparently mandatory "google twist" ...

    Regards, Enrique.
     
  11. Pendrush

    Pendrush Well-Known Member Licensed User

    It's take you only few minutes to configure firebase project.
     
  12. quique

    quique Member Licensed User

    ... plus the code changes, plus compiling, plus testing .... multiplied by nn or even nnn apps.
     
  13. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    Yes - I'm also concerned about where this leaves those of us who use Google Play Services for leaderboards, achievements, etc... From my testing of a Firebase integration for ads yesterday, there appears to be a conflict between Firebase & the version of Google Play Services that I need to use for leaderboards & achievements & it doesn't appear that Firebase supports Google Play Games Services. I'm going to look into it more today & see if I can find a solution that doesn't require migrating all my apps to Android Studio. I'll comment on here once I know more.

    - Colin.
     
  14. Davin

    Davin Member Licensed User

    if we dont update this thing. are we affected by the updates ? ( not getting any ads ) ?
     
  15. Erel

    Erel Administrator Staff Member Licensed User

    I don't see how it will help. You will still need to update the SDK.

    Based on Google mail, yes. Note that switching to FirebaseAdmob is very simple.
     
  16. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    Well the problem is that B4A doesn't have any "native" support for Google Play Games Services & using Firebase for ads breaks the leaderboard & achievement functionality in my apps. Moving to Android Studio would enable me to implement AdMob & Google Play Games functionality without having to rely on 3rd party wrappers that get broken when Google makes a change to one of the libraries they use. B4A is a great development tool & it beats Android Studio hands-down when it comes to building layouts, but it also has a major shortcoming in that it doesn't support all of the Android functionality out-of-the-box. As I said in another post, I make my living from my apps - so I can't afford to suddenly find myself having to make a decision to either have zero revenue (because ads stop working), or remove a big chunk of functionality (because Google Play Games Services stops working) & negatively impact my user base. If I could find a solution that allows me to keep using B4A (& I'm still trying to see if I can modify the existing GPGS wrappers) then I'd happily keep using B4A, but if I can't then I'm not going to have any choice.
     
  17. Computersmith64

    Computersmith64 Well-Known Member Licensed User

    As a follow-up to the Mobile Ads SDK v6.4.1 & earlier deprecation, a couple of points:

    1) The deprecation date has now been pushed from September 16th to October 17th;
    2) Any apps that use Google Play Services to serve ads will not be affected. It is only the stand-alone versions of the Mobile Ads SDK that will be deprecated.

    So while it might ultimately be better to update to Firebase Ads, it's not absolutely necessary if you are using the versions of the SDK that are integrated into Google Play Services - which I think is the case with both the AdMob library (v2.0) & the mwAdmobInterstitial2 library. Too late for me though, as I have already updated to Firebase Ads... :)
     
    yiankos1 and tpakis like this.
  18. tpakis

    tpakis Active Member Licensed User

    Thanks for the info! No need to hurry then.
     
    Computersmith64 likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice