FailToReceiveAdWithError - NSError domain: @"com.google.ads" - code: 13

1,620 views
Skip to first unread message

Haozheng Jin

unread,
Nov 16, 2015, 10:49:50 AM11/16/15
to Google Mobile Ads SDK Developers
Hi,
I want to update a new version for my app. And I find admob cannot receive ads properly with the error code 13.
Anyone knows what does "code 13" mean?
Thanks in advance,
Jin


Vu Chau (MobileAds SDK Team)

unread,
Nov 16, 2015, 4:57:03 PM11/16/15
to Google Mobile Ads SDK Developers
Hi Haozheng,

It looks like the response received from the server was invalid.  Would you mind sharing your ad unit ID so we can try to replicate the issue on our end?

Vu Chau
Mobile Ads SDK Team

Haozheng Jin

unread,
Nov 16, 2015, 11:34:45 PM11/16/15
to Google Mobile Ads SDK Developers
Hi, thanks for the reply!  Here's my unit ID.  Ad unit ID: ca-app-pub-6601442696873249/4146389814  And I did open a new unit ID which is Ad unit ID: ca-app-pub-6601442696873249/5422801015. They both have the same issue.

Ritesh Malik

unread,
Nov 17, 2015, 5:58:41 AM11/17/15
to Google Mobile Ads SDK Developers
Hi,

     I too have the same issue but the banner ads are fine, i only have problem with the interstitial ads, it gives the same error "Interstitial loading error: Error Domain=com.google.ads Code=13 "Request Error: Received invalid response." UserInfo={NSLocalizedDescription=Request Error: Received invalid response., NSLocalizedFailureReason=Request Error: Received invalid response.}"

Thanks in Advance

Vu Chau (MobileAds SDK Team)

unread,
Nov 17, 2015, 4:37:21 PM11/17/15
to Google Mobile Ads SDK Developers
Hi all,

Please confirm if you are able to reproduce the error in our sample app (using your production ad unit ID, and our test ad).  If so, what are the steps that lead to it?  Feel free to provide us with as much relevant info as possible.

@Haozheng: I tested both your ad unit IDs in our sample app and I was able to get banner ads to serve (i.e. no error encountered).  See attached screenshot.
How often is this issue happening (do you see any banner at some point)? You may proxy traffic via Charles and debug it to see if the ad response you get is valid.

@Ritesh: Are you able to provide your interstitial ad unit IDs?  Is this issue happening for all interstitials, including our test ad?

Thanks,

Vu Chau
Mobile Ads SDK Team

Screen+Shot+2015-11-17+at+9.50.18+AM.png

Haozheng Jin

unread,
Nov 18, 2015, 11:26:37 AM11/18/15
to Google Mobile Ads SDK Developers
Hi, Vu Chau. Thanks for your support!  I checked your example project settings and found it's because IOS9 change of apple. Check App Transport Security @ https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13.
@Ritesh : Add the following lines to "info.plist" can solve the problem. 
<key>NSAppTransportSecurity</key><dict> 
<key>NSAllowsArbitraryLoads</key> 
<true/></dict>

Vu Chau (MobileAds SDK Team)

unread,
Nov 18, 2015, 12:28:07 PM11/18/15
to Google Mobile Ads SDK Developers
Hi all,

Glad that adding the exception to handle ATS resolves the issue!

Let us know if you need anything else,

Vu Chau
Mobile Ads SDK Team

Dmytro Rozumeyenko

unread,
Dec 13, 2015, 4:35:55 PM12/13/15
to Google Mobile Ads SDK Developers
I also have this problem with interstitial ads. 
AdUnitID ca-app-pub-5114831496236448/1060598617 
XCode 7.1, adMob 7.6.0, iOS 9.1 iPhone 6S and simulator.

I installed the test app and it turns out there's no problem there even with my AdUnitID.
I started experimenting and found that getting rid of libAdapterIAd.a from frameworks resolves the problem, I can see full screen banners as well.

Of course I get <Google> Cannot find an ad network adapter with the name(s): (

    GADMAdapterIAd

)

message in the console.

So probably mediation doesn't work, does it?


Can I get that GADMAdapterIAd  that doesn't contain the problem or what should I do to mediate the ad?



середа, 18 листопада 2015 р. 19:28:07 UTC+2 користувач Vu Chau (MobileAds SDK Team) написав:
Message has been deleted

Vu Chau (MobileAds SDK Team)

unread,
Dec 14, 2015, 9:59:20 AM12/14/15
to Google Mobile Ads SDK Developers
Hi Dmytro,

What was the error message you received when you were mediating with iAd?  I wasn't able to produce any errors.  Please see attached screenshot.

Thanks,

Vu Chau
Mobile Ads SDK Team

Screen+Shot+2015-12-14+at+9.45.53+AM.png
Screen+Shot+2015-12-14+at+9.53.14+AM.png
Message has been deleted

Dmytro Rozumeyenko

unread,
Dec 14, 2015, 12:54:37 PM12/14/15
to Google Mobile Ads SDK Developers
The error is:
"Interstitial loading error: Error Domain=com.google.ads Code=13 "Request Error: Received invalid response." UserInfo={NSLocalizedDescription=Request Error: Received invalid response., NSLocalizedFailureReason=Request Error: Received invalid response.}"

You have just repeated what I told — there's no problem if I get ad without mediation adapter GADMAdapterIAd like you did in your example.

Do I actually need this mediation adapter 'GADMAdapterIAd' in my Frameworks to mediate with iAd?

What screenshot you expect me to attach?

Vu Chau (MobileAds SDK Team)

unread,
Dec 14, 2015, 3:14:34 PM12/14/15
to Google Mobile Ads SDK Developers
Hi Dmytro,

Could you please send over your zipped project?  Make sure to include steps, if necessary, that result in this error.  If you prefer that we contact you directly, make a note in your response and I'll reach out to you offline.

Thanks,

Vu Chau
Mobile Ads SDK Team

Dmytro Rozumeyenko

unread,
Dec 14, 2015, 3:30:54 PM12/14/15
to Google Mobile Ads SDK Developers
Yeah. I'd prefer skype if it's possible, my iD is acitegrenys_10
I'll be online about 2 hrs now


понеділок, 14 грудня 2015 р. 22:14:34 UTC+2 користувач Vu Chau (MobileAds SDK Team) написав:

Xiaoqiong Rong

unread,
Jan 25, 2016, 5:03:21 AM1/25/16
to Google Mobile Ads SDK Developers
I have the same issue here with my unit id:ca-app-pub-1994772182862489/4030555456
I tried your sample id, it works fine. 
Can you check at your end?

SUDHIR PARDESHI

unread,
Jun 16, 2016, 2:45:02 AM6/16/16
to Google Mobile Ads SDK Developers
I also have same issue,

I have developed NATIVE adMob in my application by coping code from Sample Application given by google from below URL
https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Objective-C/admob/NativeExample

Problem:
I am getting Error by using my AdUnitID:
<GADAdLoader: 0x1799f250> failed with error: Request Error: No ad to show.

But when i use test key given in Google sample app than my application native ads are working fine.

So What is the problem with my native Ad unitId ?

Google Native AdUnitID : ca-app-pub-3940256099942544/3986624511
My App Native AdUnitID : ca-app-pub-3415315092173981/2210049154

Update: When i put "testDevices" with my application UnitID than my application native ads are working fine. but when i remove
"testDevices" than getting same error.

Vivek Vishwakarma

unread,
May 31, 2017, 7:54:21 AM5/31/17
to Google Mobile Ads SDK Developers
Hi Haozheng Jin,

I have same issue even after adding the keys in .plist file. Specifications are as follows:

Platform: Xamarin Forms iOS
iOS Version: 10.3
Device: iOS Simulator for 6, 6s plus, 7, 7s plus

Initially we thought it is a problem with iOS version 10.3 but same works on iPhone 5c with iOS version 10.3.

Thanks in advance.

Deepika Uragayala- MobileAds SDK team

unread,
May 31, 2017, 2:12:57 PM5/31/17
to Google Mobile Ads SDK Developers
Hi Vivek,

We do not provide support for Xamarin implementations. See if you are able to reproduce the issue with our sample apps and let us know. It sounds like a serving issue based on the original post.

Regards,
Deepika Uragayala
Mobile Ads SDK Team

Vivek Vishwakarma

unread,
Jun 1, 2017, 9:58:41 AM6/1/17
to Google Mobile Ads SDK Developers
Hi Deepika,

Thanks for your reply. 

I have followed this blog for integrating AdMob in my iOS app.


Let me know if there is anything missing in this blog.

Thanks,
Vivek Vishwakarma

Deepika Uragayala- MobileAds SDK team

unread,
Jun 1, 2017, 1:46:53 PM6/1/17
to Google Mobile Ads SDK Developers
Hi Vivek,

As previously mentioned, we do not provide support for Xamarin implementations. Our SDK team provide support to only native Android and iOS implementations.

Regards,
Deepika Uragayala
Mobile Ads SDK Team

Vivek Vishwakarma

unread,
Jun 2, 2017, 8:11:48 AM6/2/17
to Google Mobile Ads SDK Developers
Hi Deepika,

Thanks but could you please let me know if it is planned to provide support in near future? If yes then how long?

I would love to provide you a sample Xamarin Forms app with AdMob working if you want?

Thanks,
Vivek Vishwakarma

Deepika Uragayala- MobileAds SDK team

unread,
Jun 2, 2017, 11:22:29 AM6/2/17
to Google Mobile Ads SDK Developers
Hi Vivek,

We don't have any plans to provide support for Xamarin at this moment. However, I will share your interest with the rest of the team and you can monitor our blog for all kind of new updates.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
 

Reply all
Reply to author
Forward
0 new messages