question

jianghuafan avatar image
jianghuafan asked

InterstitialAd can not work well in US and Japan(EnableTesting =false)

I used AmazonMobileAds.unitypackage plugin. EnableTesting =true InterstitialAd and BannerAd is work well. When I set EnableTesting = false and Used US VPN (in China) InterstitialAd can not work well, But BannerAd is work well When I set EnableTesting = false and Used Japan VPN(in China) InterstitialAd and BannerAd can not work well. Error Message: AmazonMobileAdsCPTPlugin AmazonMobileAdListener Ad failed to load: NO_FILL - Server Message: no results. Try again in 10 seconds Code: using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using com.amazon.mas.cpt.ads; public class AmazonAdsTest : MonoBehaviour { IAmazonMobileAds mobileAds = AmazonMobileAdsImpl.Instance; ApplicationKey key = new ApplicationKey(); ShouldEnable shouldEnable = new ShouldEnable(); void Start () { key.StringValue = "5eb95488d856445d800eccdc6c9d234f"; shouldEnable.BooleanValue = true; mobileAds.SetApplicationKey (key); mobileAds.EnableLogging (shouldEnable); shouldEnable.BooleanValue = false; mobileAds.EnableTesting (shouldEnable); //Optional mobileAds.EnableGeoLocation(shouldEnable); } void OnGUI () { //Create a new slot for interstitial if(GUI.Button(new Rect(100,100,100,100), "Create Ads")) { Ad interstialAd = mobileAds.CreateInterstitialAd(); string adType = interstialAd.AdType.ToString(); long identifier = interstialAd.Identifier; Debug.Log (identifier + " " + adType); } // Load interstitial if(GUI.Button(new Rect(100,300,100,100), "Load Ads")) { LoadingStarted response = mobileAds.LoadInterstitialAd(); bool loadingStarted = response.BooleanValue; Debug.Log (loadingStarted); } // Display interstitial if(GUI.Button(new Rect(100,500,100,100), "Show Ads")) { AdShown shownInterstitialAd = mobileAds.ShowInterstitialAd(); bool adShown = shownInterstitialAd.BooleanValue; Debug.Log("adShown: " + adShown); } if(GUI.Button(new Rect(100,900,100,100), "BannerAd")) { Placement placement = new Placement(); // Set input value placement.Dock = Dock.TOP; placement.HorizontalAlign = HorizontalAlign.CENTER; placement.AdFit = AdFit.FIT_AD_SIZE; // Call method, passing in required input structure // This method returns an Ad object, which you must save and keep track of Ad response = mobileAds.CreateFloatingBannerAd(placement); // Get return values string adType = response.AdType.ToString(); long identifier = response.Identifier; LoadingStarted responseLoad = mobileAds.LoadAndShowFloatingBannerAd(response); bool loadingStarted = responseLoad.BooleanValue; Debug.Log ("LoadBannerAd: " + loadingStarted); } } }
mobile ads
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jianghuafan avatar image
jianghuafan answered
My Colleague test it in US. (not use vpn) EnableTesting = false InterstitialAd can not work well.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

justin avatar image
justin answered
Hi jianghuafan, I've just tested your example code and was unable to find any fill rate issues as you've described, and both interstitials and banner ads worked as desired. Your ID may have not propagated the data that the time of your tests, but please let us know if you're still having issues. Thanks!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.