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.
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.
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.
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