Aug 12, 2019 Replies: 42 Google has added a few new requirements to AdMob implementation. You must make these changes if you are using the latest versions of Android SDK libraries (firebase-ads 18.1.1+). Instructions: 2. Find your AdMob app id and add it to the manifest editor: Code: 'This is a sample AdMob app id. You need to change it to your id. AddReplacement($ADMOB_APP_ID$, ca-app-pub-3940256099942544~3347511713) How to find the id: https://support.google.com/admob/answer/7356431?hl=en 3. Initialize MobileAds in Service_Create of the starter service: Code: Dim MobileAds As MobileAds MobileAds.Initialize 4. Open Tools - B4A Sdk Manager and update all the recommended items. If the app immediately crashes then it is likely that the app id is wrong. Start with the sample app id and then change it to your app id. Library is included as an internal library. Last edited: Jun 21, 2020 Click to expand...
Google has added a few new requirements to AdMob implementation. You must make these changes if you are using the latest versions of Android SDK libraries (firebase-ads 18.1.1+). Instructions: 2. Find your AdMob app id and add it to the manifest editor: Code: 'This is a sample AdMob app id. You need to change it to your id. AddReplacement($ADMOB_APP_ID$, ca-app-pub-3940256099942544~3347511713) How to find the id: https://support.google.com/admob/answer/7356431?hl=en 3. Initialize MobileAds in Service_Create of the starter service: Code: Dim MobileAds As MobileAds MobileAds.Initialize 4. Open Tools - B4A Sdk Manager and update all the recommended items. If the app immediately crashes then it is likely that the app id is wrong. Start with the sample app id and then change it to your app id. Library is included as an internal library.
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2019 #21 angel_ said: #ExcludeClasses: ads Click to expand... It should be .ads otherwise it will not do anything. I expect it to work if you are not using ads. You need to try it.
angel_ said: #ExcludeClasses: ads Click to expand... It should be .ads otherwise it will not do anything. I expect it to work if you are not using ads. You need to try it.
Multiverse app Active Member Licensed User Longtime User Aug 18, 2019 #22 are any additional changes required if using Native ads https://www.b4x.com/android/forum/threads/solved-native-ads-advanced-with-mediaview.96873/#content ?
are any additional changes required if using Native ads https://www.b4x.com/android/forum/threads/solved-native-ads-advanced-with-mediaview.96873/#content ?
angel_ Well-Known Member Licensed User Longtime User Aug 18, 2019 #23 Erel said: It should be .ads otherwise it will not do anything. I expect it to work if you are not using ads. You need to try it. Click to expand... It doesn't work, crash without logs
Erel said: It should be .ads otherwise it will not do anything. I expect it to work if you are not using ads. You need to try it. Click to expand... It doesn't work, crash without logs
DonManfred Expert Licensed User Longtime User Aug 19, 2019 #24 angel_ said: crash without logs Click to expand... check the unfiltered log. There is no crash in android without log.
angel_ said: crash without logs Click to expand... check the unfiltered log. There is no crash in android without log.
Erel B4X founder Staff member Licensed User Longtime User Aug 19, 2019 #25 Multiverse app said: are any additional changes required if using Native ads https://www.b4x.com/android/forum/threads/solved-native-ads-advanced-with-mediaview.96873/#content ? Click to expand... No.
Multiverse app said: are any additional changes required if using Native ads https://www.b4x.com/android/forum/threads/solved-native-ads-advanced-with-mediaview.96873/#content ? Click to expand... No.
angel_ Well-Known Member Licensed User Longtime User Aug 19, 2019 #26 DonManfred said: check the unfiltered log. There is no crash in android without log. Click to expand... It does not get to start the application, close it as soon as it starts, there are not logs
DonManfred said: check the unfiltered log. There is no crash in android without log. Click to expand... It does not get to start the application, close it as soon as it starts, there are not logs
Erel B4X founder Staff member Licensed User Longtime User Aug 20, 2019 #27 See the first post: If the app immediately crashes then it is likely that the app id is wrong. Start with the sample app id and then change it to your app id.
See the first post: If the app immediately crashes then it is likely that the app id is wrong. Start with the sample app id and then change it to your app id.
Computersmith64 Well-Known Member Licensed User Longtime User Sep 2, 2019 #28 Just wondering why this library update was required? I was already using firebase-ads v18.2.0 & added: Code: <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/> to the manifest - which all seemed to work fine. Are there other changes that necessitated the new FirebaseAdMob library? - Colin.
Just wondering why this library update was required? I was already using firebase-ads v18.2.0 & added: Code: <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/> to the manifest - which all seemed to work fine. Are there other changes that necessitated the new FirebaseAdMob library? - Colin.
iz0ndg Active Member Licensed User Longtime User Sep 3, 2019 #29 Is it normal that, after following the instructions for using the FirebaseAdMob v1.6 library, I recompiled the app, I get 99% of the time the error code 3? (1 of 100 advertising appears). The old app, which is also on the PlayStore, works.
Is it normal that, after following the instructions for using the FirebaseAdMob v1.6 library, I recompiled the app, I get 99% of the time the error code 3? (1 of 100 advertising appears). The old app, which is also on the PlayStore, works.
Computersmith64 Well-Known Member Licensed User Longtime User Sep 3, 2019 #30 iz0ndg said: Is it normal that, after following the instructions for using the FirebaseAdMob v1.6 library, I recompiled the app, I get 99% of the time the error code 3? (1 of 100 advertising appears). The old app, which is also on the PlayStore, works. Click to expand... I wondered about that too. I had the same issue with a test build of an app on one of my devices, but the ads worked ok on a different device with the same build. I thought it was a bit strange. - Colin.
iz0ndg said: Is it normal that, after following the instructions for using the FirebaseAdMob v1.6 library, I recompiled the app, I get 99% of the time the error code 3? (1 of 100 advertising appears). The old app, which is also on the PlayStore, works. Click to expand... I wondered about that too. I had the same issue with a test build of an app on one of my devices, but the ads worked ok on a different device with the same build. I thought it was a bit strange. - Colin.
Erel B4X founder Staff member Licensed User Longtime User Sep 3, 2019 #31 Computersmith64 said: to the manifest - which all seemed to work fine. Are there other changes that necessitated the new FirebaseAdMob library? Click to expand... Yes. Google instructs developers to call: Code: Dim MobileAds As MobileAds MobileAds.Initialize iz0ndg said: Is it normal that, after following the instructions for using the FirebaseAdMob v1.6 library, I recompiled the app, I get 99% of the time the error code 3? (1 of 100 advertising appears). The old app, which is also on the PlayStore, works. Click to expand... It looks like Google is more aggressive in preventing ads from being displayed during development.
Computersmith64 said: to the manifest - which all seemed to work fine. Are there other changes that necessitated the new FirebaseAdMob library? Click to expand... Yes. Google instructs developers to call: Code: Dim MobileAds As MobileAds MobileAds.Initialize iz0ndg said: Is it normal that, after following the instructions for using the FirebaseAdMob v1.6 library, I recompiled the app, I get 99% of the time the error code 3? (1 of 100 advertising appears). The old app, which is also on the PlayStore, works. Click to expand... It looks like Google is more aggressive in preventing ads from being displayed during development.
asales Expert Licensed User Longtime User Sep 4, 2019 #32 I want to test the B4A 9.50 beta, but I have several apps with ads and I don't want update it now. I can use this version 1.60 with the old version of Firebase (< 18.1.1), without made the modifications? Or I need install the B4A 9.50 and replace the internal FirebaseAdmod 1.60 with the previous version 1.55?
I want to test the B4A 9.50 beta, but I have several apps with ads and I don't want update it now. I can use this version 1.60 with the old version of Firebase (< 18.1.1), without made the modifications? Or I need install the B4A 9.50 and replace the internal FirebaseAdmod 1.60 with the previous version 1.55?
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2019 #33 Yes, use the old FirebaseAdMob libraries (copy them to the internal libraries folder).
S skaliwag Member Licensed User Longtime User Sep 5, 2019 #34 Can anyone point me to where Google instructs us to do this please?
Erel B4X founder Staff member Licensed User Longtime User Sep 5, 2019 #35 Here: https://developers.google.com/admob/android/quick-start And also here: https://firebase.google.com/docs/admob/android/quick-start
Here: https://developers.google.com/admob/android/quick-start And also here: https://firebase.google.com/docs/admob/android/quick-start
S skaliwag Member Licensed User Longtime User Sep 5, 2019 #36 Erel said: It looks like Google is more aggressive in preventing ads from being displayed during development. Click to expand... This is driving me nuts. How are we supposed to check if ads are working correctly if Google won't serve them during development?
Erel said: It looks like Google is more aggressive in preventing ads from being displayed during development. Click to expand... This is driving me nuts. How are we supposed to check if ads are working correctly if Google won't serve them during development?
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2019 #38 Release mode will not change the behavior. You can use the test ids.
B Balint New Member Licensed User Sep 14, 2019 #39 Hi Guys, Can you help me, please? I receive the following error message. Attachments Error.JPG 39.5 KB · Views: 830