Im trying to implement the Native ads for unity, but its not working. I have managed to implement the banner and Interstitial ads and they work as expected, but the native ads don't load or fail.
public void Start()
{
// Initialize the Google Mobile Ads SDK.
MobileAds.Initialize(initStatus => { });
RequestNativeAd();
}
private void RequestNativeAd()
{
string adUnitId = "ca-app-pub-3940256099942544/
2247696110";
AdLoader adLoader = new AdLoader.Builder(adUnitId)
.ForNativeAd()
.Build();
adLoader.OnNativeAdLoaded += this.HandleNativeAdLoaded;
adLoader.OnAdFailedToLoad += this.HandleAdFailedToLoad;
adLoader.LoadAd(new AdRequest.Builder().Build());
}
private void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs e)
{
}
private void HandleNativeAdLoaded(object sender, NativeAdEventArgs e)
{
}