No ad to show - Google Native Express ad

186 views
Skip to first unread message

Ashish Ramani

unread,
Mar 1, 2017, 1:26:07 AM3/1/17
to Google Mobile Ads SDK Developers
I want to show native express ad in my app, where i have table view and i want to put this ad on every 15 posts

viewNativeAds.adUnitID = "ca-app-pub-3940256099942544/3986624511" // This is test ID but still i am not able to load ads

viewNativeAds.rootViewController = self

viewNativeAds.delegate = self

let request = GADRequest()

request.testDevices = [kGADSimulatorID]

viewNativeAds.load(request)



and it calls every time below method only

func nativeExpressAdView(_ nativeExpressAdView: GADNativeExpressAdView, didFailToReceiveAdWithError error: GADRequestError)

{

    print(error.localizedDescription)

}

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Mar 1, 2017, 3:48:46 AM3/1/17
to Google Mobile Ads SDK Developers
Hi Ashish,

It looks like you are using a Native Advanced Ad Unit ID on a Native Express Ad implementation, which may explain why ads are not showing in your end. 
You can use this Ad Unit ID to test Native Express Ads in your application.

Additionally, if your own Ad Unit ID is not receiving any ads in your end, you may provide it here together with your complete error logs so we may investigate further.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Ashish Ramani

unread,
Mar 1, 2017, 11:49:28 PM3/1/17
to Google Mobile Ads SDK Developers

I used the test id that you suggested but still always shows the below error


Error Domain=com.google.ads Code=1 "Request Error: No ad to show." UserInfo={NSLocalizedDescription=Request Error: No ad to show., NSLocalizedFailureReason=Request Error: No ad to show.}


<Google:HTML> You are currently using version 7.16.0 of the SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. The latest SDK can be downloaded from http://goo.gl/iGzfsP. A full list of release notes is available at https://developers.google.com/admob/ios/rel-notes.



Joshua Lagonera (Mobile Ads SDK Team)

unread,
Mar 2, 2017, 12:56:28 AM3/2/17
to Google Mobile Ads SDK Developers
Hi Ashish,

In the case of Native Express Ads, there are a lot of factors as to why a "No Ad to show" error might show. 
One of which is that the size that your GADNativeExpressAdView might not be enough for the template you chose for your Ad Unit ID. You can consult our official documentation on what sizes are available for each Native Express Ad Template.

That said, the Test Ad Unit ID I provided you uses a Large Template, which requires a width of at least 280 and a height of at least 250, as shown here.
Would you be able to try to increase the size of your GADNativeExpressAdView to fit within the specified ranges for each respective template and try again?
Additionally, may we ask that you provide us your Ad Unit ID so we may investigate further?

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Ashish Ramani

unread,
Mar 5, 2017, 1:02:14 AM3/5/17
to Google Mobile Ads SDK Developers
This is my app ad unit id

"ca-app-pub-3646086603041218/1329970887"

Still i am getting no ad to show

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Mar 5, 2017, 9:46:41 PM3/5/17
to Google Mobile Ads SDK Developers
Hi Ashish,

Thank you for providing me your Ad Unit ID. Upon using it on our sample app, I was able to receive ads successfully using your Ad Unit ID.
Upon further investigation, it seems that you are using a Medium Template for your Native Express Ad, as I was able to replicate your error when using a height of less than 131, which is below the allowable size for Medium Templates. After adjusting the height to 132 and above, I was able to receive ads.

Would you be able to try your Ad Unit ID on our sample app with a height of 132 and above and verify if you can still replicate the issue? Make sure the width is also at least 280.
If you are still not able to receive ads with the aforementioned sizes and using our sample app, then may we request for the following information to investigate further:
  • Complete error logs
  • Logs from Charles' Proxy with SSL Proxying Enabled
Regards,
Joshua Lagonera
Mobile Ads SDK Team

Reply all
Reply to author
Forward
0 new messages