public async void playAdForInMobiInstance(String placement) { AdConfig adConfig = new AdConfig(); adConfig.Orientation = DisplayOrientations.Landscape; adConfig.SoundEnabled = true; await inmobiProvider.PlayAdAsync(adConfig, placement); }
private async void ChangeProgressState() { if (GameGlobal.IsShowVideoAds) { progressRing.IsActive = false; GameGlobal.IsShowVideoAds = false; await sdkInstance.PlayAdAsync(new AdConfig { Incentivized = true }); } }
private async void PlayAD_Click(object sender, RoutedEventArgs e) { click_times += 1; if (click_times >= 10) { Frame.Navigate(typeof(WebPage)); } await sdkInstance.PlayAdAsync(new AdConfig { SoundEnabled = false }, interst); }
private async void DefaultConfigButton_Click(object sender, RoutedEventArgs e) { // Play ad with default configuration await sdkInstance.PlayAdAsync(new AdConfig()); }
private async void PlayPlacement1_Click(Object sender, RoutedEventArgs e) { //Play ad for placement1 await sdkInstance.PlayAdAsync(new AdConfig(), placement1); }
public async void PlayAd(string placementID) { await m_vungle.PlayAdAsync(new AdConfig(), placementID); }