ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
499 stars 214 forks source link

How to know your Google Mobile Ads SDK version #149

Open CodedCloudz opened 6 years ago

CodedCloudz commented 6 years ago

Hi, I just received the below notice in my Admob dashboard:

Starting January 23, 2018, we will no longer be supporting Android and iOS Google Mobile Ads SDKs lower than version 7.0.0. To continue serving ads from AdMob after this date, please upgrade to the latest Google Mobile Ads SDK.

Please how can I check and detect the Google Mobile Ads SDK version in this plugin. I am using the below versions in all my apps: cordova-admob-sdklibs version = 2.1.4

cordova-plugin-admob-simple = 3.1.8

Hope to hear from you soon

Reactor13 commented 6 years ago

+1

jakeydevs commented 6 years ago

The Google Mobile Ads SDK for Android is now a part of the Google Play services platform. It is no longer available as a standalone SDK. Therefore if you have the latest version of Google Play services you should be fine and dandy.

Just an FYI - version 7.0.0 of the Android Mobile SDK was released in March 2015, so I am sure the version you are running is a lot later than that

hellyeah0 commented 6 years ago

@JakePrice86 I fear this update will breaks everything, because new ver of admob require new entity AppId that doesn't supported by this plugin. See google example https://github.com/googleads/googleads-mobile-android-examples/blob/master/java/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MyActivity.java

jakeydevs commented 6 years ago

No - I don't think it will. As Google report, they will force you to use version 7, not the version you have quoted here.

hellyeah0 commented 6 years ago

@JakePrice86 well, I have updated admob account to 2.0 and it breaks - no more ads showing. I only guess that it related with MobileAds.initialize func which missing in java code of plugin.

jakeydevs commented 6 years ago

I have also updated to the newest version of the admob account last month, and I still have adverts displaying

hellyeah0 commented 6 years ago

Good for you :(

prantikv commented 6 years ago

Is there a way to check and make sure of the version? or We just have to go by the date March 2015?

wo-github commented 6 years ago

Please have a look here https://github.com/ratson/cordova-plugin-admob-free/issues/144 The admob appId is a required field and this plugin doesn`t support this. Could you add this value?

jakeydevs commented 6 years ago

Not sure if this helps at all - but there is one way to check what version of the SDK you are using as far as I can tell:

  1. Open devtools when you have your debug code running
  2. Look for a webpage starting with "https://googleads.g.doubleclick.net" on your device. Thats your advert being loaded in
  3. Inspect it
  4. Re-request an advert, and you'll get a new network request. In the query string parameters it'll give you a version. For example, my version is showing me v:4-production-admob_sdk_javascript_20180103_RC00
jakeydevs commented 6 years ago

I have found another way to check what version gets compiled when Gradle merges files together. First, compile and run on device. Then go this file: platforms/android/build/outputs/logs/manifest-merger-debug-report.txt

Next, search for this line: "com.google.android.gms:play-services-ads:" the number after is the SDK that gets imported to your project. For example, I am using version 0.12.0 of this plugin, and the SDK appears to be 11.0.2 that gets used.

jakeydevs commented 6 years ago

Now the fated January 23rd is here has anyone's adverts turned off?

shuhikari commented 6 years ago

Mine won't show, already changed the banner id codes, but nothing so far.