sevalx@gmail.com 0 Posted June 10 On 5/30/2024 at 12:27 AM, Dave Nottage said: No, since one is an application id, and the other is an ad unit id. By setting the AdUnitId property of those you have ids for. You set these up in the AdMob web interface .The most likely cause is that you need to configure GDPR and IDFA messages, here. I still have an error. Consent error from: ConsentInfoUpdate - 3: Publisher misconfiguration: Failed to read publisher's account configuration; no form(s) configured for the input app ID. Verify that you have configured one or more forms for this application and try again. Received app ID: `ca-app-pub-3285XXXXXX~XXXXX" I've changed <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-3285XXXXXX~96437XXXXX" /> <service android:name="com.google.android.gms.metadata.ModuleDependencies" android:enabled="false" android:exported="false" In unit1.pas add AdMobBannerAd1.AdUnitID:='ca-app-pub-3285XXXXXX/21205XXXXX' advertising format identifier - banner . Is there anything else that needs to be changed for the test application? Share this post Link to post
Dave Nottage 538 Posted June 10 2 hours ago, sevalx@gmail.com said: I still have an error. Consent error from: ConsentInfoUpdate - 3: Publisher misconfiguration... Which is the same error as last time, where I advised: 2 hours ago, sevalx@gmail.com said: The most likely cause is that you need to configure GDPR and IDFA messages, here. Have you configured the GDPR and IDFA messages? 2 hours ago, sevalx@gmail.com said: Is there anything else that needs to be changed for the test application? Not in the application itself. See above. Share this post Link to post
sevalx@gmail.com 0 Posted June 11 21 hours ago, Dave Nottage said: Have you configured the GDPR and IDFA messages? I have added GDPR messages. I don't use IDFA. No, I’m writing applications for the iPhone. Now the test application does not display any messages at all. It closes when you press the button. But when I press other buttons, nothing happens. Share this post Link to post
Dave Nottage 538 Posted June 11 27 minutes ago, sevalx@gmail.com said: Now the test application does not display any messages at all. It closes when you press the button I assume by "close" you mean it crashes? At this point I can only suggest adding logging to the app to see exactly where it is failing. Share this post Link to post
sevalx@gmail.com 0 Posted June 12 22 hours ago, Dave Nottage said: I assume by "close" you mean it crashes? At this point I can only suggest adding logging to the app to see exactly where it is failing. I sent the log in a private message. and I also wanted to ask... is it possible to show ads with this component without enabling GDPR and IDFA, or does the component only work when GDPR and IDFA are enabled? For example, countries where this does not apply. This is necessary for an application that is intended for only one country, for example. Share this post Link to post
Dave Nottage 538 Posted June 12 1 hour ago, sevalx@gmail.com said: I sent the log in a private message Here is the problem: 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime FATAL EXCEPTION: Thread-6 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime Process: com.embarcadero.AdTestD12, PID: 12847 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/R$string; 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime at com.google.android.gms.measurement.internal.zzga.zza(com.google.android.gms:play-services-measurement-base@@20.1.2:1) 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime at com.google.android.gms.internal.measurement.zzee.<init>(com.google.android.gms:play-services-measurement-sdk-api@@20.1.2:8) 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime at com.google.android.gms.internal.measurement.zzee.zzg(com.google.android.gms:play-services-measurement-sdk-api@@20.1.2:2) 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime at com.google.android.gms.measurement.api.AppMeasurementSdk.getInstance(com.google.android.gms:play-services-measurement-sdk-api@@20.1.2:3) 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime at com.google.android.gms.internal.ads.zzbnq.run(com.google.android.gms:play-services-ads-lite@@22.2.0:10) 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime at java.lang.Thread.run(Thread.java:1012) 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.R$string" on path: DexPathList[[zip file "/data/app/~~aO0p4K6Hjy9h4IY8lEyzVQ==/com.embarcadero.AdTestD12-AUBcLSpltNJ395APPGwSJA==/base.apk"],nativeLibraryDirectories=[/data/app/~~aO0p4K6Hjy9h4IY8lEyzVQ==/com.embarcadero.AdTestD12-AUBcLSpltNJ395APPGwSJA==/lib/arm, /data/app/~~aO0p4K6Hjy9h4IY8lEyzVQ==/com.embarcadero.AdTestD12-AUBcLSpltNJ395APPGwSJA==/base.apk!/lib/armeabi-v7a, /system/lib, /system/system_ext/lib]] 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259) 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime at java.lang.ClassLoader.loadClass(ClassLoader.java:379) 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime at java.lang.ClassLoader.loadClass(ClassLoader.java:312) 2024.06.12 22:02:52.452 E com.embarcadero.AdTestD12 12847 15753 AndroidRuntime ... 6 more Not sure why this was not happening before. I see from your first post about this you are using an emulator? I strongly advise to use a real device. If you are unable to, make sure the emulator system image includes "Play Store": Share this post Link to post
sevalx@gmail.com 0 Posted June 17 On 6/12/2024 at 11:41 PM, Dave Nottage said: Here is the problem: Not sure why this was not happening before. I see from your first post about this you are using an emulator? I strongly advise to use a real device. If you are unable to, make sure the emulator system image includes "Play Store": I use real mobile phone Share this post Link to post
Dave Nottage 538 Posted June 17 2 hours ago, sevalx@gmail.com said: I use real mobile phone What make/model? And what version of Android is on it? Share this post Link to post
sevalx@gmail.com 0 Posted June 25 On 6/17/2024 at 1:34 PM, Dave Nottage said: What make/model? And what version of Android is on it? Samsung A31.android 12 Share this post Link to post
Dave Nottage 538 Posted June 25 7 minutes ago, sevalx@gmail.com said: Samsung A31.android 12 Is this using the demo, unaltered, following all of the instructions? In which version of Delphi? Share this post Link to post
sevalx@gmail.com 0 Posted June 29 On 6/25/2024 at 11:14 AM, Dave Nottage said: Is this using the demo, unaltered, following all of the instructions? In which version of Delphi? Maybe you can post an apk application with your built-in advertising (of all types) so that I can install it and see how advertising will work. This may not work due to sanctions and restrictions in some countries. Although it doesn’t work with VPN either. Share this post Link to post
Dave Nottage 538 Posted July 1 On 6/29/2024 at 3:34 PM, sevalx@gmail.com said: Maybe you can post an apk application with your built-in advertising (of all types) so that I can install it and see how advertising will work. Posted a 64-bit APK built with Delphi 12 here. Share this post Link to post
sevalx@gmail.com 0 Posted July 1 1 hour ago, Dave Nottage said: Posted a 64-bit APK built with Delphi 12 here. Share this post Link to post
Dave Nottage 538 Posted July 1 2 minutes ago, sevalx@gmail.com said: Does this happen also on a real device? Regardless, do any of these answers help? Share this post Link to post
sevalx@gmail.com 0 Posted July 1 yes I only use a real phone. samsung a31 (android 12). If it doesn’t start with your data, then there’s no point in looking for an error in the code. But why does my application close, but yours starts and does not close itself? have you added error and exception handling? Share this post Link to post
Dave Nottage 538 Posted July 1 3 hours ago, sevalx@gmail.com said: yes I only use a real phone Your screenshot looks very much like it is from an emulator 3 hours ago, sevalx@gmail.com said: But why does my application close, but yours starts and does not close itself? I don't know, because you never really answered this question: On 6/25/2024 at 4:44 PM, Dave Nottage said: Is this using the demo, unaltered, following all of the instructions? In which version of Delphi? 3 hours ago, sevalx@gmail.com said: have you added error and exception handling? No - it is built direct from the demo app, with no alterations, using Delphi 12.1 Share this post Link to post