Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adv is not showing in Android #101

Open
erossini opened this issue Sep 30, 2024 · 3 comments
Open

Adv is not showing in Android #101

erossini opened this issue Sep 30, 2024 · 3 comments

Comments

@erossini
Copy link

Just checking. After the update to Maui 8.0.42, the app doesn't show the advertisement in particular on Android.

Do you hace the same issue?

@marcojak
Copy link
Owner

I haven't seen any issues on 8.0.42.
Which ads aren't showing? Banners or what?
Do you see if they load fine and is a problem showing them or if the problem is loading them?

@erossini
Copy link
Author

erossini commented Oct 1, 2024

None of them. In my app I have banners and interstitials. I can't find out if there is any issue with Admob. The only text I can see is this one

[DOTNET] Consent not initialised. You need to initialise it using InitialiseConsent before loading an ad.

In the MainActivity.cs I added in the OnCreate this code as you explained

string deviceId = "";
bool enableOpenAds = false;
bool initialiseConsentAtStartup = false;
//If you have a license code:
CrossMauiMTAdmob.Current.Init(this, Constants.AndroidApp, Constants.MauiMTAdmobLicence, 
    Constants.AndroidNativeAds1, Constants.AndroidOpenAds1, enableOpenAds, 
    false, deviceId, true, Plugin.MauiMTAdmob.Extra.DebugGeography.DEBUG_GEOGRAPHY_EEA, initialiseConsentAtStartup);

Do I have to change initialiseConsentAtStartup with true? If it is false, when is the consent enabled?

@marcojak
Copy link
Owner

marcojak commented Oct 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants