-
Notifications
You must be signed in to change notification settings - Fork 17
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
Comments
I haven't seen any issues on 8.0.42. |
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
In the MainActivity.cs I added in the OnCreate this code as you explained
Do I have to change |
This is easy. You have chosen to not initialise the consent at startup so
the plugin doesn't show any ads until you initialise the consent.
The easiest thing is to set initialiseConsentAtStartup to true and the
plugin will take care of everything.
If you need to initialise the consent at a later stage (for example after
you show some screens to the user), then you keep that variable to false
and initialise the consent whenever it is suitable for you.
…On Tue, 1 Oct 2024, 10:42 Enrico Rossini, ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub
<#101 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUIPIQDK6UUW7XSXIDRSHDZZJU7TAVCNFSM6AAAAABPDT7EDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBVGMYDQNRXGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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?
The text was updated successfully, but these errors were encountered: