Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

Admob Interstitial Ads not showing after published in playstore

$
0
0
I have create a Unity game, 1st I add an AdMob interstitial ads script on game object then try on my main camera when I tested on my mobile before publishing. It has worked like real time ads and mistakenly clicked it and earn 0.3$ so I create new ad unit placed it on my game then published on play store. But the ads are not showing in real time. No error was found in AdMob but 147 ad requests are shown in AdMob and ads are not visible when my game 1st scene opens. plz help me im trying and search many way but not help me .. im new in unity using UnityEngine; using System.Collections; using GoogleMobileAds.Api; public class AdmobScript : MonoBehaviour { private InterstitialAd interstitial; private void RequestInterstitial() { #if UNITY_ANDROID string adUnitId = "ca-app-pub-3129337025883034/9036322***"; #elif UNITY_IPHONE string adUnitId = "INSERT_IOS_INTERSTITIAL_AD_UNIT_ID_HERE"; #else string adUnitId = "unexpected_platform"; #endif // Create an interstitial. this.interstitial = new InterstitialAd(adUnitId); // Load an interstitial ad. this.interstitial.LoadAd(this.CreateAdRequest()); } // Returns an ad request private AdRequest CreateAdRequest() { return new AdRequest.Builder().Build(); } private void ShowInterstitial() { if (interstitial.IsLoaded()) { interstitial.Show(); } } public void Start() { RequestInterstitial(); } void Update() { ShowInterstitial(); } }

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>