Hello -- I am stuck trying to validate that my ios integration works with a real ad manager ad unit. Everything works fine with the test ad unit. I am not able to get my ad unit to load in the AdManagerBannerExample either.
Below is the log from the example app and the code.
Thanks in advance.
Google Mobile Ads SDK version: afma-sdk-i-v7.40.0
2019-02-25 08:42:17.439077-0500 AdManagerBannerExample[66189:3466991] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/nayan9/Library/Developer/CoreSimulator/Devices/E77CCC20-28B9-4087-9121-819951FB8DC3/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-02-25 08:42:17.442735-0500 AdManagerBannerExample[66189:3466991] [MC] Reading from private effective user settings.
2019-02-25 08:42:17.463399-0500 AdManagerBannerExample[66189:3467057] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.463581-0500 AdManagerBannerExample[66189:3467057] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.463595-0500 AdManagerBannerExample[66189:3467051] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.463701-0500 AdManagerBannerExample[66189:3467051] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service na2019-02-25 08:42:17.463710-0500 AdManagerBannerExample[66189:3467052] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.463933-0500 AdManagerBannerExample[66189:3467052] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
med com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.464423-0500 AdManagerBannerExample[66189:3467052] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.464466-0500 AdManagerBannerExample[66189:3467057] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.464518-0500 AdManagerBannerExample[66189:3467052] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.464566-0500 AdManagerBannerExample[66189:3467051] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.465364-0500 AdManagerBannerExample[66189:3467052] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.465445-0500 AdManagerBannerExample[66189:3467051] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.465589-0500 AdManagerBannerExample[66189:3467052] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.465748-0500 AdManagerBannerExample[66189:3467051] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:18.813890-0500 AdManagerBannerExample[66189:3467065] WF: === Starting WebFilter logging for process AdManagerBannerExample
2019-02-25 08:42:18.814085-0500 AdManagerBannerExample[66189:3467065] WF: _userSettingsForUser : (null)
2019-02-25 08:42:18.814172-0500 AdManagerBannerExample[66189:3467065] WF: _WebFilterIsActive returning: NO
adView:didFailToReceiveAdWithError: Request Error: No ad to show.
import GoogleMobileAds
import UIKit
class ViewController: UIViewController, GADBannerViewDelegate {
/// The AdManager banner view.
@IBOutlet weak var bannerView: DFPBannerView!
override func viewDidLoad() {
super.viewDidLoad()
print("Google Mobile Ads SDK version: \(DFPRequest.sdkVersion())")
bannerView.adUnitID = (redacted my adUnitId) // doesn't work
// bannerView.adUnitID = "/6499/example/banner" // works
bannerView.rootViewController = self
let request = DFPRequest()
request.testDevices = [ kGADSimulatorID, "380da1fadb8ab775d2a6451488972faf" ]
bannerView.load(request)
bannerView.delegate = self
}
func adView(_ bannerView: GADBannerView,
didFailToReceiveAdWithError error: GADRequestError) {
print("adView:didFailToReceiveAdWithError: \(error.localizedDescription)")
}
}