Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS ad not request success #64

Open
ZYHshao opened this issue Nov 21, 2024 · 1 comment
Open

iOS ad not request success #64

ZYHshao opened this issue Nov 21, 2024 · 1 comment

Comments

@ZYHshao
Copy link

ZYHshao commented Nov 21, 2024

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
Copy link
Author

ZYHshao commented Nov 21, 2024

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant