GADRequest *request = [self buildRequest];
[self.bannerView loadRequest:request];
We checked already the implementations of the GADBannerViewDelegate methods, all of them are coming back on the main thread. All other methods inside our cell are also called on the main thread. So we're blind there and rely on you guys, can you please have a look into it?
Thanks,
Johannes
It's a common but not consistent bug. We get about 1% to 2% of users with this bug daily.
dispatch_async(dispatch_get_main_queue(), ^{
[cell setUpAd];
});
--
---
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/_Pk6b8uQ7cg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,thanks for your response. It does fix the warning. However I find this solution a bit disturbing. I have also changed your recommendation slightly:This points out that there is something weird going on when creating a GADSearchBannerView object.So I'd really like to see this fix *inside* your SDK, please. A consumer of your API should not have to worry about this, right?Thanks,Johannes
On 7 October 2015 at 21:52, Tristan Emrich <mobileadssdk-advisor+tristan@google.com> wrote:
In your CollectionViewController.m file, try putting [cell setUpAd] in a background thread to avoid blocking the main thread (which is probably causing the warning):dispatch_async(dispatch_get_main_queue(), ^{
[cell setUpAd];
});
Let me know if you have any additional questions or issues.Thank you!Tristan
On Wednesday, October 7, 2015 at 11:59:10 AM UTC-7, Vu Chau (MobileAds SDK Team) wrote:Hi guys,Thanks for the code. I was able to reproduce the warning exactly as you reported. It looks like the exception comes from a WebThread, so there might be some operations on a WebView from a background thread. I'll speak with the rest of the team about this and see what we can do to rectify the issue.Thanks,Vu ChauMobile Ads SDK Team
On Wednesday, October 7, 2015 at 10:57:34 AM UTC-4, Jason McNeil wrote:There are many issues with admob doing layout while not running on the main thread.It's a common but not consistent bug. We get about 1% to 2% of users with this bug daily.
--
---
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/_Pk6b8uQ7cg/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.
Hi Johannes,Taking a closer look at your example, it appears you are creating a GADSearchBannerView and a GADSearchRequest every time setUpAd is called. You should only need to create each of them once. Attached a modified version of your AdCollectionViewCell implementation.Let me know if that helps.Thank you!
Tristan
On Wednesday, October 7, 2015 at 1:04:35 PM UTC-7, Johannes Plunien wrote:
Hi,thanks for your response. It does fix the warning. However I find this solution a bit disturbing. I have also changed your recommendation slightly:This points out that there is something weird going on when creating a GADSearchBannerView object.So I'd really like to see this fix *inside* your SDK, please. A consumer of your API should not have to worry about this, right?Thanks,Johannes
On 7 October 2015 at 21:52, Tristan Emrich <mobileadssdk-a...@google.com> wrote:
In your CollectionViewController.m file, try putting [cell setUpAd] in a background thread to avoid blocking the main thread (which is probably causing the warning):dispatch_async(dispatch_get_main_queue(), ^{
[cell setUpAd];
});
Let me know if you have any additional questions or issues.Thank you!Tristan
On Wednesday, October 7, 2015 at 11:59:10 AM UTC-7, Vu Chau (MobileAds SDK Team) wrote:Hi guys,Thanks for the code. I was able to reproduce the warning exactly as you reported. It looks like the exception comes from a WebThread, so there might be some operations on a WebView from a background thread. I'll speak with the rest of the team about this and see what we can do to rectify the issue.Thanks,Vu ChauMobile Ads SDK Team
On Wednesday, October 7, 2015 at 10:57:34 AM UTC-4, Jason McNeil wrote:There are many issues with admob doing layout while not running on the main thread.It's a common but not consistent bug. We get about 1% to 2% of users with this bug daily.
--
---
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/_Pk6b8uQ7cg/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-adm...@googlegroups.com.