DFPBannerView* vAdBanner = [[DFPBannerView alloc] initWithAdSize:kGADAdSizeBanner];[vAdBanner setBackgroundColor:[UIColor greenColor]];[vAdBanner setRootViewController:self];[vAdBanner setAdUnitID:@"...."];[vAdBanner setDelegate:self];[vAdBanner setAdSizeDelegate:self];[vAdBanner setAppEventDelegate:self];[self.view addSubview:vAdBanner];
{ CGRect rect = vAdBanner.frame; rect.origin.x = 50; rect.origin.y = 50; [vAdBanner setFrame:rect];}
NSMutableArray *validSizes = [NSMutableArray array];[validSizes addObject:[NSValue valueWithBytes:&GADAdSizeFromCGSize(CGSizeMake(320, 96)) objCType:@encode(GADAdSize)]];
[vAdBanner setValidAdSizes:validSizes];
GADRequest *request = [GADRequest request];
GADExtras* extras = [[GADExtras alloc] init];extras.additionalParameters = [NSDictionary dictionaryWithObjectsAndKeys:@"....", @"....", nil];[request registerAdNetworkExtras:extras];
[vAdBanner loadRequest:request];--
---
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/jQ3oZG4s0OI/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, I cannot find the option so send you via Email.-----Ad ID: "/1706002/Mobile-320x50”Additional Parameters:[NSDictionary dictionaryWithObjectsAndKeys:@"Wing", @"isDemo",nil];-----I also found that the ad banner URL should use “https" instead of “http”, otherwise the ad banner will not be display, even the callback says received the ad.thanks,Wing Chan
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.
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.
hi Vu Chau,I’ve attached my sample project used for testing, hope it helps.Remind that I’m using Xcode 7.0.1 and run with iPhone 6 plus.thanks,Wing Chan


[validSizes addObject:[NSValue valueWithBytes:&GADAdSizeFromCGSize(CGSizeMake(320, 96))objCType:@encode(GADAdSize)]];
[vAdBanner setValidAdSizes:validSizes];GADRequest *request = [GADRequest request];GADExtras* extras = [[GADExtras alloc] init];extras.additionalParameters = [NSDictionary dictionaryWithObjectsAndKeys:@"....", @"....", nil];[request registerAdNetworkExtras:extras];[vAdBanner loadRequest:request];
--
---
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/jQ3oZG4s0OI/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.
For more options, visit https://groups.google.com/d/optout.
--
---
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/jQ3oZG4s0OI/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.
For more options, visit https://groups.google.com/d/optout.
--
---
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/jQ3oZG4s0OI/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.
<Wing+Chan.png><Sample+DFPBanner.png>
hi, I’ve tried the supported method with the same testing project, the result is cannot display the banner, and the log shows this error msg:"<Google> Unable to set adSize property. Not enough space to show ad with custom size, {320, 96}. Please use a size the fits the current screen bounds of {0, 0}.”Attached photo shows my code changes.————————————————————Apart from this, the supported method seems only support one fixed size of banner, but the final goal of my testing is to support dynamic banner size (eg. 320x50, 320x96, 320x200), which’s work normally in our apps that publish with Xcode 6.4.Dynamic banner size method we’ve using in our apps:————————————————————Please let me know if there’s any solution.thanks,Wing Chan
...
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.
hi, the banner size I'm requesting is 320x96, and the banner I actually want to display is 320x96, only the ad unit ID using text of “320x50” 😛 (which is our minimum size of the multiple size banners).For your remarked method for displaying multiple banner size, I think this is the method I’m using in our live apps (not in the testing project). We’d like to fix the buffer problem first.thanks,Wing Chan
...