BuzzBanner
BuzzBanner is a non-rewarded ad product that increases inventory revenue while taking the user experience into account. You can integrate BuzzBanner below Feed and the ad participation instructions page, or at any other location you choose.

Integrate BuzzBanner
Integrate below Feed and ad participation instructions
You can easily integrate BuzzBanner below Feed and the ad participation instructions page without code changes. Contact your Buzzvil representative to integrate it.
Integrate BuzzBanner at a custom location
Follow these steps to integrate BuzzBanner wherever you choose.
- Choose a BuzzBanner size.
BuzzBanner sizes
| Size | Enum |
|---|---|
| Banner 320 x 50 | BuzzAdBenefitBannerSize.w320h50 |
| Banner 320 x 100 | BuzzAdBenefitBannerSize.w320h100 |
| Banner dynamic | BuzzAdBenefitBannerSize.dynamic |
- Contact your Buzzvil representative to obtain a Placement ID and Banner Size for the integration.
| ID type | Description |
|---|---|
| Placement ID | A unique ID that identifies each ad placement. The banner size must match the Placement ID for ads to be allocated and displayed correctly. |
| Banner Size | Determines the size of the displayed BuzzBanner. |
- Add
BuzzAdBenefitBannerViewat the desired location.
import UIKit
import BuzzvilSDK
final class ViewController: UIViewController {
private lazy var bannerView: BuzzAdBenefitBannerView = {
let bannerView = BuzzAdBenefitBannerView(frame: .zero)
bannerView.delegate = self
return bannerView
}()
override func viewDidLoad() {
super.viewDidLoad()
let config = BuzzAdBenefitBannerConfig.Builder(placementID: placementID)
.setSize(.w320h50)
.build()
bannerView.setConfig(rootViewController: self, config: config)
view.addSubview(bannerView)
// ...
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
bannerView.requestAd()
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
bannerView.removeAd()
}
}
extension ViewController: BuzzAdBenefitBannerViewDelegate {
func bannerView(_ bannerView: BuzzAdBenefitBannerView, didLoadApid: String) {
// Banner에 광고가 할당 되었을 때 호출 됩니다.
}
func bannerView(_ bannerView: BuzzAdBenefitBannerView, didFailApid: String, error: NSError) {
// Banner에 광고 할당이 실패했을 때 호출 됩니다.
}
func bannerView(_ bannerView: BuzzAdBenefitBannerView, didClickApid: String) {
// Banner가 클릭되었을 때 호출 됩니다.
}
func bannerView(_ bannerView: BuzzAdBenefitSDK.BuzzAdBenefitBannerView, didRemoveApid: String) {
// Banner가 제거되었을 떄 호출 됩니다.
}
}
@import BuzzvilSDK;
@interface ViewController () <BuzzAdBenefitBannerViewDelegate>
@property (nonatomic, strong, readonly) BuzzAdBenefitBannerView *bannerView;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self setupView];
}
- (void)setupView {
BuzzAdBenefitBannerConfig * config = [BuzzAdBenefitBannerConfig configWithBlock:^(BuzzAdBenefitBannerConfigBuilder * _Nonnull builder) {
builder.placementID = @"YOUR_PLACEMENT_ID";
builder.size = BuzzAdBenefitBannerSizeW320h50;
}];
_bannerView = [[BuzzAdBenefitBannerView alloc] initWithFrame:CGRectZero];
[_bannerView setConfigWithRootViewController:self config:config];
[self.view addSubview:_bannerView];
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[_bannerView requestAd];
}
- (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
[_bannerView removeAd];
}
#pragma mark - BuzzAdBenefitBannerViewDelegate
- (void)bannerView:(BuzzAdBenefitBannerView * _Nonnull)bannerView didClickApid:(NSString * _Nonnull)didClickApid {
// Banner에 광고가 할당 되었을 때 호출 됩니다.
}
- (void)bannerView:(BuzzAdBenefitBannerView * _Nonnull)bannerView didFailApid:(NSString * _Nonnull)didFailApid error:(NSError * _Nonnull)error {
// Banner에 광고 할당이 실패했을 때 호출 됩니다.
}
- (void)bannerView:(BuzzAdBenefitBannerView * _Nonnull)bannerView didLoadApid:(NSString * _Nonnull)didLoadApid {
// Banner가 클릭되었을 때 호출 됩니다.
}
- (void)bannerView:(BuzzAdBenefitBannerView * _Nonnull)bannerView didRemoveApid:(NSString * _Nonnull)didRemoveApid {
// Banner가 제거되었을 떄 호출 됩니다.
}
@end