I'm using AdMob to display ads in my app. I implemented my ads as "Smart Banner" ... Everything seems to be working fine but my problem is the black fill spaces that the banner has when it has to adapt to the new dimensions ...
Is there a way to cover these black spaces with another color?
This is my implementation
- (void)viewDidLoad {
[super viewDidLoad];
_banner = [[GADBannerView alloc] initWithAdSize:kGADAdSizeSmartBannerPortrait];
_banner.translatesAutoresizingMaskIntoConstraints = NO;
_banner.adUnitID = @"ca-app-pub-3940256099942544/2934735716";
_banner.rootViewController = self;
[_banner loadRequest:[GADRequest request]];
[self.view addSubview:_banner];
UILayoutGuide *guide = self.view.safeAreaLayoutGuide;
[NSLayoutConstraint activateConstraints:@[
[guide.leftAnchor constraintEqualToAnchor:_banner.leftAnchor],
[guide.rightAnchor constraintEqualToAnchor:_banner.rightAnchor],
[guide.bottomAnchor constraintEqualToAnchor:_banner.bottomAnchor]
]];
}