question

Brian Barrett avatar image
Brian Barrett asked

NO_FILL with enableTesting true

Hello I'm struggling to implement the Amazon Mobile Ads. Below is the log.cat for my app. It seems to be talking with the API correctly, but I am getting a NO_FILL message. I have both of the following in my activity onCreate: AdRegistration.enableTesting(true); AdRegistration.enableLogging(true); 02-13 00:56:34.535: D/AmazonMobileAds AdLayout(16096): Initializing AdLayout. 02-13 00:56:34.535: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LAYOUT_INITIALIZATION 02-13 00:56:34.535: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LAYOUT_INITIALIZATION 02-13 00:56:34.540: D/AmazonMobileAds AdLayout(16096): Ad size to be determined automatically. 02-13 00:56:34.540: E/AmazonMobileAds AdController(16096): An ad is currently loading. Please wait for the ad to finish loading and showing before loading another ad. 02-13 00:56:34.565: D/AmazonMobileAds AdLayout(16096): Skipping ad layout preparation steps because the layout is already prepared. 02-13 00:56:34.565: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LATENCY_TOTAL 02-13 00:56:34.565: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LATENCY_TOTAL_FAILURE 02-13 00:56:34.565: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LATENCY_TOTAL_SUCCESS 02-13 00:56:34.565: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LOAD_LATENCY_LOADAD_TO_FETCH_THREAD_REQUEST_START 02-13 00:56:34.565: D/AmazonMobileAds AdController(16096): Changing AdState from READY_TO_LOAD to LOADING 02-13 00:56:34.580: V/AmazonMobileAds GooglePlayServicesAdapter(16096): The Google Play Services Advertising Identifier was successfully retrieved. 02-13 00:56:34.580: D/AmazonMobileAds AdvertisingIdentifier(16096): No transition detected. 02-13 00:56:34.585: V/AmazonMobileAds GooglePlayServicesAdapter(16096): The Google Play Services Advertising Identifier was successfully retrieved. 02-13 00:56:34.585: D/AmazonMobileAds AdvertisingIdentifier(16096): No transition detected. 02-13 00:56:34.600: V/AmazonMobileAds GooglePlayServicesAdapter(16096): The Google Play Services Advertising Identifier was successfully retrieved. 02-13 00:56:34.600: D/AmazonMobileAds AdvertisingIdentifier(16096): No transition detected. 02-13 00:56:34.600: V/AmazonMobileAds GooglePlayServicesAdapter(16096): The Google Play Services Advertising Identifier was successfully retrieved. 02-13 00:56:34.600: D/AmazonMobileAds AdvertisingIdentifier(16096): No transition detected. 02-13 00:56:34.600: D/AmazonMobileAds MetricsCollector(16096): METRIC Increment AD_COUNTER_IDENTIFIED_DEVICE 02-13 00:56:34.600: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LOAD_LATENCY_LOADAD_TO_FETCH_THREAD_REQUEST_START 02-13 00:56:34.600: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LOAD_LATENCY_FETCH_THREAD_SPIN_UP 02-13 00:56:34.605: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LOAD_LATENCY_FETCH_THREAD_SPIN_UP 02-13 00:56:34.605: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LOAD_LATENCY_FETCH_THREAD_START_TO_AAX_GET_AD_START 02-13 00:56:34.605: D/AmazonMobileAds MetricsCollector(16096): METRIC Publish ASSETS_ENSURED_LATENCY 02-13 00:56:34.605: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LOAD_LATENCY_CREATE_AAX_GET_AD_URL 02-13 00:56:34.610: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LOAD_LATENCY_CREATE_AAX_GET_AD_URL 02-13 00:56:34.610: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LOAD_LATENCY_FETCH_THREAD_START_TO_AAX_GET_AD_START 02-13 00:56:34.610: D/AmazonMobileAds MetricsCollector(16096): METRIC Increment TLS_ENABLED 02-13 00:56:34.610: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AAX_LATENCY_GET_AD 02-13 00:56:34.610: D/AmazonMobileAds AdRequest WebRequest HttpURLConnectionWebRequest(16096): POST http://aax-eu.amazon-adsystem.com/e/msdk/ads 02-13 00:56:34.610: D/AmazonMobileAds AdRequest WebRequest HttpURLConnectionWebRequest(16096): Request Body: {"appId":" ","oo":false,"slots":[{"slotId":1,"slot":"portrait","sz":"auto","video":{"minAdDuration":0,"maxAdDuration":30000},"supportedMediaTypes":["DISPLAY","VIDEO"],"mxsz":"0x0"}],"dinfo":{"screenSize":"720x1280","scalingFactor":"2.0","orientation":"portrait","os":"Android","model":"HTC One X","osVersion":"4.1.1","connectionType":"Wifi","carrier":" ","language":"en","make":"HTC","country":"GB"},"pkg":{"v":"19","lbl":"Float","vn":"2.0.3","pn":"com.cloudforge.svn.bbarrett.floattiles"},"ua":"Dalvik\/1.6.0 (Linux; U; Android 4.1.1; HTC One X Build\/JRO03C) AmazonAdSDK-Android\/5.4.235","ad-id":"A43iYhFElULToVj3sRxnnVE","isTest":true,"adsdk":"amznAdSDK-android-5.4.235","idfa":"134af371-58b6-4ce1-bf28-b932f1f632e1"} 02-13 00:56:34.895: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AAX_LATENCY_GET_AD 02-13 00:56:34.895: D/AmazonMobileAds WebRequest(16096): Response: 200 OK 02-13 00:56:34.895: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LOAD_LATENCY_AAX_GET_AD_END_TO_FETCH_THREAD_END 02-13 00:56:34.910: D/AmazonMobileAds ResponseReader AdRequest WebRequest HttpURLConnectionWebRequest(16096): Response Body: {"errorMessage":"no results","status":"error","errorCode":"503","instrPixelURL":" http://aax-eu.amazon-adsystem.com/x/px/p/qYa1OEPPNU1bdX2JUcDg8g/"} 02-13 00:56:34.910: W/AmazonMobileAds AdLoader(16096): Server Message: no results; code: 503 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LOAD_LATENCY_AAX_GET_AD_END_TO_FETCH_THREAD_END 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LOAD_LATENCY_FINALIZE_FETCH_SPIN_UP 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LOAD_LATENCY_FINALIZE_FETCH_SPIN_UP 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Start AD_LOAD_LATENCY_FINALIZE_FETCH_START_TO_FAILURE 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LATENCY_TOTAL 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LOAD_LATENCY_FINALIZE_FETCH_START_TO_FAILURE 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LATENCY_TOTAL_FAILURE 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Increment AD_LOAD_FAILED 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Stop AD_LATENCY_RENDER_FAILED 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Increment WIFI_PRESENT 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Set CARRIER_NAME: Orange 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Increment ADLAYOUT_HEIGHT_ZERO 02-13 00:56:34.910: D/AmazonMobileAds MetricsCollector(16096): METRIC Set VIEWPORT_SCALE: n 02-13 00:56:34.910: D/AmazonMobileAds AdController(16096): Changing AdState from LOADING to READY_TO_LOAD 02-13 00:56:34.910: D/AmazonMobileAds AdLayout(16096): Default ad listener called - Ad Failed to Load. Error code: NO_FILL, Error Message: Server Message: no results 02-13 00:56:34.910: D/AmazonMobileAds Metrics(16096): METRIC Submit and Reset 02-13 00:56:34.930: D/AmazonMobileAds WebRequest(16096): GET http://aax-eu.amazon-adsystem.com/x/px/p/qYa1OEPPNU1bdX2JUcDg8g/%22car%22%3A%22Orange%22%2C%22tl%22%3A345%2C%22ahz%22%3A1%2C%22tfl%22%3A345%2C%22lfsasl%22%3A5%2C%22c%22%3A%22msdk%22%2C%22tls%22%3A1%2C%22lffsfl%22%3A0%2C%22vs%22%3A%22n%22%2C%22lael%22%3A0%2C%22id%22%3A1%2C%22lffsul%22%3A1%2C%22al%22%3A285%2C%22v%22%3A%225.4.235%22%2C%22wifi%22%3A1%2C%22lcaul%22%3A5%2C%22lfsul%22%3A2%2C%22lf%22%3A1%2C%22llfsl%22%3A36%2C%22laefel%22%3A14 02-13 00:56:35.035: D/AmazonMobileAds WebRequest(16096): Response: 200 OK Any help would be greatly appreciated. Thanks
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.

1 Answer

Ross@Amazon avatar image
Ross@Amazon answered
A NO_FILL error can occur if the app is trying to load an auto-sized ad in a container whose dimensions are WRAP_CONTENT x WRAP_CONTENT. This will cause an Auto Ad Size failure and result in no ads being returned. Generally, if this is a screen-width ad then our recommendation for this case would be to change the AdLayout's layout params dimensions to be MATCH_PARENT x WRAP_CONTENT. Auto Ad Size should not be used if a specific ad size is required. Instructions and guidelines for ad sizes can be found here: https://developer.amazon.com/public/apis/earn/mobile-ads/android/docs/concepts#Ad%20Sizes.
10 |5000

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