InMobi / sdk-sample-code-ios

This repository contains InMobi iOS SDK sample code for different ad-formats, which publishers can use to incorporate in their apps
MIT License
18 stars 12 forks source link

iOS ad not request success #64

Open ZYHshao opened 3 days ago

ZYHshao commented 3 days ago

I devlep a new app, it's not online now, I have create a banner ad,and use it in code with the document,but the code is not work,the banner load failed,the log:

Error Domain=com.inmobi.ads.requeststatus Code=6 "The SDK encountered an internal error." UserInfo={NSLocalizedDescription=The SDK encountered an internal error.}

my code: banner = IMBanner(frame: CGRect(x: 0, y: 0, width: view.frame.width, height: 50), placementId: xxxxxx) banner?.delegate = self view.addSubview(banner!) banner?.load() // Use this API to enable or disable auto refresh banner?.shouldAutoRefresh(true)

please tell me how to use it, thanks

ZYHshao commented 3 days ago

add some other info: Task <9DF74677-99A1-4E73-A316-71C2BB4D4013>.<1> HTTP load failed, 0/0 bytes (error code: -1003 [12:8]) Task <9DF74677-99A1-4E73-A316-71C2BB4D4013>.<1> finished with error [-1003] Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=8, NSUnderlyingError=0x300470240 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, _NSURLErrorNWResolutionReportKey=Resolved 0 endpoints in 95ms using unknown from cache, _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0[802.11], ipv4, dns, uses wifi}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <9DF74677-99A1-4E73-A316-71C2BB4D4013>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <9DF74677-99A1-4E73-A316-71C2BB4D4013>.<1>" ), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://ads.inmobi.com/sdk, NSErrorFailingURLKey=https://ads.inmobi.com/sdk, _kCFStreamErrorDomainKey=12}