Thank you Marco,
In fact, it was enough to change the initialization code.
Now the test ads are visible for e.g. adsID "ca-app-pub-3940256099942544/9214589741", but when changing to the real banner ID the ad is still not visible. Is it because the application is not approved or connected to the store?
Correct. Your app needs to be on the store to view the ads. It's also
forbidden to show real ads during tests and Google might suspend or cancel
your account doing this. This is why you should always use test ads Ids or
insert your device id as test device.
Anyway if the test ads work, then the normal ads will work as well.
On Mon, 15 Apr 2024, 23:02 ekontro, @.***> wrote:
Thank you Marco,
In fact, it was enough to change the initialization code.
Now the test ads are visible for e.g. adsID
"ca-app-pub-3940256099942544/9214589741", but when changing to the real
banner ID the ad is still not visible. Is it because the application is not
approved or connected to the store?
Hi, I created a test application adding the required entries:
In the MainActivity.cs file: protected override void OnCreate(Bundle? savedInstanceState) { base.OnCreate(savedInstanceState); MobileAds.Initialize(this); }
In the MainPage.xaml file: xmlns:controls="clr-namespace:Plugin.MauiMTAdmob.Controls;assembly=Plugin.MauiMTAdmob"
and
Hi.
You don't need to initialise the mobile ads, but you need to initialise the plugin in the platform code.
You can check the sample code to see how to initialise it.
On Mon, 15 Apr 2024, 20:45 ekontro, @.***> wrote:
Thank you Marco, In fact, it was enough to change the initialization code. Now the test ads are visible for e.g. adsID "ca-app-pub-3940256099942544/9214589741", but when changing to the real banner ID the ad is still not visible. Is it because the application is not approved or connected to the store?
I'm glad it worked.
Correct. Your app needs to be on the store to view the ads. It's also forbidden to show real ads during tests and Google might suspend or cancel your account doing this. This is why you should always use test ads Ids or insert your device id as test device. Anyway if the test ads work, then the normal ads will work as well.
On Mon, 15 Apr 2024, 23:02 ekontro, @.***> wrote:
Thank you very much Marco for your help :)