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

Where i need to put RewardedInterstitial #132

Open
scascalesp opened this issue May 21, 2023 · 3 comments
Open

Where i need to put RewardedInterstitial #132

scascalesp opened this issue May 21, 2023 · 3 comments

Comments

@scascalesp
Copy link

scascalesp commented May 21, 2023

Hello
Where i need to put RewardedInterstitial?

Here in net standard project?

public partial class AboutPage : ContentPage { protected override void OnAppearing() { base.OnAppearing();
     CrossMTAdmob.Current.LoadRewardedInterstitial("ca-app-pub-xxxxxxxxxxxxx");
     CrossMTAdmob.Current.ShowRewardedInterstitial();
  }
  }

I don't see in wikis
Thx

@marcojak
Copy link
Owner

Don't call ShowRewardedInterstitial just after LoadRewardedInterstitial because you need to give time to load the interstitial.
There are events you can use to check when the ad has been loaded.

Where you load an interstitial, is up to your logic, OnAppearing might be ok if this is what you prefer for your app

@scascalesp
Copy link
Author

scascalesp commented May 24, 2023

Hello. Moved to

  public AboutPage()
  {
     InitializeComponent();

     CrossMTAdmob.Current.LoadRewardedInterstitial("ca-app-pub-xxxxxx");
}

  private async void Button2_Clicked(object sender, EventArgs e)
  {
     CrossMTAdmob.Current.ShowRewardedInterstitial();
 }

}

On emulator nothing happends but said in console: Reward not loaded
Thx

@Kebechet
Copy link

@marcojak the package readme contains They are implemented but currently they are not working. Probably something in the Admob SDK. I'm investigating it. for Rewarded Interstitial.
Is this already resolved ?

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

3 participants