So i'm adding the banner to the view as a subView - here is the code I'm using - when I do this, it left aligns it, is there something I'm doing wrong you can see?
- (void)viewDidLoad {
[super viewDidLoad];
_dfpADBannerAd = [[DFPBannerView alloc] initWithAdSize:kGADAdSizeSmartBannerPortrait];
_dfpADBannerAd.center = CGPointMake(_dfpADBannerAd.bounds.size.width / 2,
_dfpADBannerAd.bounds.size.height / 2);
_dfpADBannerAd.delegate = self;
_dfpADBannerAd.adUnitID = @"/26591627/AppAd320x50Mobile";
_dfpADBannerAd.rootViewController = self;
[_dfpADBannerAd loadRequest:[DFPRequest request]];
[[self view] addSubview:_dfpADBannerAd];
}
--
---
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/2EXRmdEcYPw/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.

Ron Franczyk
Red Foundry, Inc.
1608 S. Ashland Ave.
Chicago, IL 60608
Direct Line: 630.791.0301
Office: 888.406.1099
Email: r...@redfoundry.com
Web: www.redfoundry.com
Skype: rfranczyk
Twitter: @rfranczyk
self.bannerView = [[DFPBannerView alloc] initWithAdSize:kGADAdSizeBanner];
bannerView.rootViewController = self;
[bannerView setAdUnitID:@"/26591627/AppAd320x50Mobile"];
bannerView.delegate = self;
[self.view addSubview:bannerView];
bannerView.translatesAutoresizingMaskIntoConstraints = NO;
[self.view addConstraint:[NSLayoutConstraint constraintWithItem:bannerView
attribute:NSLayoutAttributeBottom
relatedBy:NSLayoutRelationEqual
toItem:self.view
attribute:NSLayoutAttributeBottom
multiplier:1
constant:0]];
[self.view addConstraint:[NSLayoutConstraint constraintWithItem:bannerView
attribute:NSLayoutAttributeCenterX
relatedBy:NSLayoutRelationEqual
toItem:self.view
attribute:NSLayoutAttributeCenterX
multiplier:1
constant:0]];
DFPRequest *request = [DFPRequest request];
[self.bannerView loadRequest:request];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.
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.
--
Ron Franczyk
Red Foundry, Inc.
1608 S. Ashland Ave.
Chicago, IL 60608
Direct Line: 630.791.0301
Office: 888.406.1099
Email: r...@redfoundry.com
Web: www.redfoundry.com
Skype: rfranczyk
Twitter: @rfranczyk
--
---
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/2EXRmdEcYPw/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.
_bannerView = [[DFPBannerView alloc] initWithAdSize:kGADAdSizeSmartBannerPortrait];
self.bannerView.adSize = kGADAdSizeSmartBannerPortrait;
self.bannerView.adUnitID = @"/26591627/AppAd320x50Mobile";
self.bannerView.rootViewController = self;
[self.view addSubview:_bannerView];
_bannerView.translatesAutoresizingMaskIntoConstraints = NO;
[self.view addConstraint:[NSLayoutConstraint constraintWithItem:_bannerView
attribute:NSLayoutAttributeBottom
relatedBy:NSLayoutRelationEqual
toItem:self.view
attribute:NSLayoutAttributeBottom
multiplier:1
constant:0]];
[self.view addConstraint:[NSLayoutConstraint constraintWithItem:_bannerView
attribute:NSLayoutAttributeCenterX
relatedBy:NSLayoutRelationEqual
toItem:self.view
attribute:NSLayoutAttributeCenterX
multiplier:1
constant:0]];
[self.view addConstraint:[NSLayoutConstraint constraintWithItem:_bannerView
attribute:NSLayoutAttributeWidth
relatedBy:NSLayoutRelationEqual
toItem:nil
attribute:NSLayoutAttributeNotAnAttribute
multiplier:1
constant:320]];
[self.view addConstraint:[NSLayoutConstraint constraintWithItem:_bannerView
attribute:NSLayoutAttributeHeight
relatedBy:NSLayoutRelationEqual
toItem:nil
attribute:NSLayoutAttributeNotAnAttribute
multiplier:1
constant:50]];
[self.bannerView loadRequest:[DFPRequest request]];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.
--
Ron Franczyk
Red Foundry, Inc.
1608 S. Ashland Ave.
Chicago, IL 60608
Direct Line: 630.791.0301
Office: 888.406.1099
Email: r...@redfoundry.com
Web: www.redfoundry.com
Skype: rfranczyk
Twitter: @rfranczyk
--
---
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/2EXRmdEcYPw/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.