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

-adViewDidFailLoading:error: not called! #12

Closed
staskochkin opened this issue Jun 27, 2017 · 8 comments
Closed

-adViewDidFailLoading:error: not called! #12

staskochkin opened this issue Jun 27, 2017 · 8 comments

Comments

@staskochkin
Copy link

Method from YMAAdViewDelegate protocol adViewDidFailLoading: error: never called. I double check my integration. If banner is successfully loaded i get callback adViewDidLoad:, but if ad server return no content (see it in Charles) nothing happened.
Also I reproduce it on your demo app (from this repository)

@kanstantsin
Copy link

Hi!
Sorry, can't reproduce your issue with SDK 2.7.0 in our demo app.
Can you provide your SDK version, block ID, sample code and Charles report to reproduce it? Any of those would we helpful.

@staskochkin
Copy link
Author

Hello! Thanks for fast reply!
I use SDK 2.7.0.
Integration code - it's just your demo with additional logging (to see view controller life time). Also contains my block ID:
https://pastebin.com/dvQza4pN

Log for unsuccessful session:
https://pastebin.com/uJED8Pn6

Charles session:
https://s3-eu-west-1.amazonaws.com/uploads-eu.hipchat.com/35497/2440054/UVWy43Q0zeSSfsq/yandex_banner.chls

@kanstantsin
Copy link

Sorry, still can't reproduce the issue, even after pasting your code, running it on iOS 8, 9, 10.3 Simulator, iOS 10.3.2 device, replacing response with one you provided. The adViewDidFailLoading:error: delegate method is being called with YMAAdErrorCodeNoFill error code.

Do you experience same issue on other iOS versions, devices or simulators?
Do you experience same issue with other block IDs?
Is it 100% reproducible on your side? You can check it by making an ad unit with very high CPM floor so, that it's very likely that SDK can't fetch ad for it. You can try to make a couple of ad requests and watch how many times delegate methods are called.

@staskochkin
Copy link
Author

Ok, I continue to research this issue on my side. I reproduce it on iOS 10 on simulator and device (iPhone 7). This reproduce also with older versions of SDK.
Maybe it some server (look at https://mobile.yandexadexchange.net) response processing issue?

@kanstantsin
Copy link

We tried getting real 204 from backend (by using high CPM floor) and replacing server response with Charles. In both cases delegate method was called.
The only idea I have right now is that it's some proxy issue (response doesn't come back to app) or specific app state. But it's quite weird that we're using same SDK and application code for debug, same response text, but get different behavior.
Did you encounter this issue before or did it appear after any update of SDK or ad units?

@staskochkin
Copy link
Author

I firstly integrate YandexMobileAds. In response that SDK received from ad exchange returned 204 code, but response also contains headers fields
Content-Encoding: gzip
Content-Length: 20

And it's strange

@kanstantsin
Copy link

I tried different versions of Charles. Indeed, when using Charles 3 connection hangs forever in case of 204 response. But with Charles 4 everything is fine. It's also fine with no proxy connected.

@staskochkin
Copy link
Author

Thanks! I update Charles to 4 version and everything works fine!

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

2 participants