Admob Rewarded video cannot be loaded on device

606 views
Skip to first unread message

Joshua Pong

unread,
Mar 27, 2017, 1:42:51 AM3/27/17
to Google Mobile Ads SDK Developers
Hi, I have been testing out AdMob Rewarded Videos.

I'm using the test I found in this post AdUnitId: "ca-app-pub-3940256099942544/1712485313"

Everything works fine, the ad gets loaded when I'm testing it out on the simulator.
But when I'm testing it on a real device, I keep on getting this error: No ad returned from any ad server.

Does it have something to do with me being in China? But the simulator works just fine even without vpn running on my computer.

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Mar 27, 2017, 2:16:43 AM3/27/17
to Google Mobile Ads SDK Developers
Hi Joshua,

This sounds like a serving issue on your side. However, as previously mentioned by this post, Rewarded Video Ad Unit IDs are platform specific:
  • iOS - ca-app-pub-3940256099942544/1712485313
  • Android - ca-app-pub-3940256099942544/5224354917
That said, you seem to be using the Android Ad Unit ID instead of the one for iOS. Would you be able to try the one for iOS and check if you can still replicate the issue?
I would like to point out that the error "No ad returned from any ad server" is a generic error where there is no ad available to be displayed. This is to be expected at times. However, are you experiencing the error constantly, even when using our sample apps?
Can you also provide to us the following information?
  • A sample code snippet on how you are requesting and displaying your Ads.
  • Complete warning/error logs
  • Logs from Charles' Proxy with SSL Proxying Enabled
Regards,
Joshua Lagonera
Mobile Ads SDK Team

Joshua Pong

unread,
Mar 27, 2017, 2:31:20 AM3/27/17
to Google Mobile Ads SDK Developers

As in the tutorial, I use

        GADRewardBasedVideoAd.sharedInstance().delegate = self

        let request = GADRequest()

        GADRewardBasedVideoAd.sharedInstance().load(request, withAdUnitID: "ca-app-pub-3940256099942544/1712485313")

In the AppDelegate's didFinishLaunchingWithOptions,

and present it in another view controller with

        if GADRewardBasedVideoAd.sharedInstance().isReady {

                GADRewardBasedVideoAd.sharedInstance().present(fromRootViewController: self)

            }


The problem is that it's working fine in the Xcode iPhone7 Plus simulator, 

but when I'm testing it out on my own phone, it just gives me the error.

Banner Ads and Interstitial Ads work both fine on the simulator and real device.

Joshua Pong

unread,
Mar 27, 2017, 2:32:48 AM3/27/17
to Google Mobile Ads SDK Developers
My rewarded video ad unit id is 

ca-app-pub-4971247298690132/9775537005

Joshua Pong

unread,
Mar 27, 2017, 2:45:00 AM3/27/17
to Google Mobile Ads SDK Developers
And yes, the error still persists when using the sample app.

It works fine on the Xcode simulator, but not on my phone.


On Monday, March 27, 2017 at 2:16:43 PM UTC+8, Joshua Lagonera (Mobile Ads SDK Team) wrote:

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Mar 27, 2017, 3:44:44 AM3/27/17
to Google Mobile Ads SDK Developers
Hi Joshua,

I was able to constantly receive ads using your Ad Unit ID when using the sample apps.
Are you able to show ads when you try another device? Would you be able to provide us the following information?
Regards,
Joshua Lagonera
Mobile Ads SDK Team

Joshua Pong

unread,
Mar 27, 2017, 4:41:00 AM3/27/17
to google-adm...@googlegroups.com

This is the entire log:

2017-03-27 16:30:51.386 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS024000] Debug mode is on

2017-03-27 16:30:51.386 ParentReports[2570] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.3700000 started

2017-03-27 16:30:51.387 ParentReports[2570] <Notice> [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)

2017-03-27 16:30:51.387 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023009] Debug logging enabled

2017-03-27 16:30:51.450 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS029014] Successfully parsed a configuration. Version: 1490597939383000

2017-03-27 16:30:51.453 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023016] Firebase Analytics is ready to receive events

2017-03-27 16:30:51.466 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023026] No network. Upload task will not be scheduled

2017-03-27 16:30:51.488 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer

2017-03-27 16:30:51.488 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600

2017-03-27 16:30:51.489 ParentReports[2570] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled

2017-03-27 16:30:51.565 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS033003] Scheduling user engagement timer

2017-03-27 16:30:51.570 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS002003] Engagement timer canceled

2017-03-27 16:30:51.570 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600

2017-03-27 16:30:51.752 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS902004] Network status has changed. Code, status: 2, Connected

2017-03-27 16:30:51.752 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -101.7205621004105

2017-03-27 16:30:51.753 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -101.7205621004105

2017-03-27 16:30:51.753 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS002001] Measurement timer fired

2017-03-27 16:30:51.753 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled

2017-03-27 16:30:51.753 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023033] Starting data upload

2017-03-27 16:30:51.804 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 484

2017-03-27 16:30:51.804 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 35, 1490603348973

2017-03-27 16:30:51.886 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 319.3228738307953

2017-03-27 16:30:51.886 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1490603451876, <FIRAPBMeasurementBatch: 0x174013020>

2017-03-27 16:30:51.891 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a

2017-03-27 16:30:52.300 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a

Reward based video ad failed to load: No ad returned from any ad server.

2017-03-27 16:30:53.369 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, 0

2017-03-27 16:30:53.378 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -103.4049759507179

2017-03-27 16:30:53.379 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -103.4049759507179

2017-03-27 16:30:53.409 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled

2017-03-27 16:30:53.410 ParentReports[2570] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled

2017-03-27 16:31:51.674 ParentReports[2570] <Error> [Firebase/Core][I-NET901017] <Firebase/Network/ERROR> Encounter network error. Code, error: -1001, Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSErrorFailingURLKey=https://play.googleapis.com/log, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2103, NSLocalizedDescription=The request timed out.}

2017-03-27 16:31:51.686 ParentReports[2570] <Error> [Firebase/Core][I-COR000020] Error posting to Clearcut: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSErrorFailingURLKey=https://play.googleapis.com/log, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2103, NSLocalizedDescription=The request timed out.}, with Status Code: 0

I don't know why NSLog doesn't work when it fails to load the video.

The log is acquired from testing on my iPhone.

My current iOS version is 10.2

I'm not familiar with Charles' Proxy with SSL Proxying enabled.


--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/M6j_UcxPbUg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Shien-wei Joshua Pong

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Mar 27, 2017, 5:44:17 AM3/27/17
to Google Mobile Ads SDK Developers
Hi Joshua,

The logs doesn't seem to indicate anything suspicious. However, since I can't seem to replicate the issue you are experiencing, this may boil down to an issue with either your device or your connection.
That said, without logs from Charles Proxy with the aforementioned SSL Proxying, it would be difficult for us to find the root cause of the issue, and recommend a solution.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Joshua Pong

unread,
Mar 27, 2017, 5:47:57 AM3/27/17
to google-adm...@googlegroups.com
Hi Joshua,

I have added a third party(AdColony) in my code, with all the adaptors and everything and it started to work.
But I searched on the internet and it say that starting from March 2017, you can just use the AdMob Network without a third party network?

Anyways, thank you for your time, I really appreciate it.

To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Shien-wei Joshua Pong

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/M6j_UcxPbUg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Shien-wei Joshua Pong

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Mar 27, 2017, 5:55:11 AM3/27/17
to Google Mobile Ads SDK Developers
Hi Joshua,

I'm glad you were able to make it work.
As for your question, that would be correct. Currently, Rewarded Video ads can be served from the AdMob Network only. 

Regards,
Joshua Lagonera
Mobile Ads SDK Team

On Monday, March 27, 2017 at 5:47:57 PM UTC+8, Joshua Pong wrote:
Hi Joshua,

I have added a third party(AdColony) in my code, with all the adaptors and everything and it started to work.
But I searched on the internet and it say that starting from March 2017, you can just use the AdMob Network without a third party network?

Anyways, thank you for your time, I really appreciate it.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Shien-wei Joshua Pong

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/M6j_UcxPbUg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Shien-wei Joshua Pong
Reply all
Reply to author
Forward
0 new messages