"Tried to obtain the web lock from a thread other than the main thread or the web thread"
Is there a way to load admob ads in such a way that they don't tie up the UI thread ?
[self performSelectorInBackground:@selector(loadAdInBackground:) withObject:nil];
- (void)loadAdInBackground:(id) sender
{
CCLOG(@" making call to loadRequest ..");
[_adBannerView loadRequest:_adRequest];
CCLOG(@" finished making call to loadRequest ..");
}
--
--
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
window_ = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
CGRect adviewSize = [[UIScreen mainScreen] bounds];
adviewSize.size.height = 50;
adview = [[UIView alloc] initWithFrame:adviewSize];
[window_ addSubview:adview];
CGRect gameViewSize = [[UIScreen mainScreen] bounds];
gameViewSize.size.height = gameViewSize.size.height - 50.0f;
gameViewSize.origin.y = 50;
CCGLView *glView = [CCGLView viewWithFrame:gameViewSize
pixelFormat:kEAGLColorFormatRGB565
depthFormat:0
preserveBackbuffer:NO
sharegroup:nil
multiSampling:NO
numberOfSamples:0];