Admob Adapter Integration For iOS english - Hiroaki-Shinoda/Geniee-iOS-SDK GitHub Wiki

Geniee Ad Delivery via AdMob SDK

You can deliver Geniee Ads from AdMob SDK by using AdMob-Mediation-Adapter.

Features ;

  • Add Geniee AdNetwork to AdMob Advertising mediation
  • Display delivered Ads from Geniee-AdServers in the AdMob SDK
  • Setting Geniee App ID in AdMob ManagementScreen
  • Display ClickCounts, Ads delivered from Geniee in AdMob-Reporting page.

AdMob-Mediation-Adapter specifications

  • Size Banner Ads
    320×50
    320x100
    300x250

  • Refresh Ads
    Refresh ads according to refresh-seconds setting in AdMob.

  • How to operate Ads
    Tapped Ads and move to Ad's link forward.

  • Start how to Ad's link forward
    Start from Default Browser App.

Set up to Install

o AdMob Adapter installation of SDK is required for installation;

  1. Introduction AdMob SDK
    AdMob SDK StartGuide

  2. Implementation of AdMob SDK banner ads
    Implementation of AdMob SDK banner ads

  3. Introduction Geniee SDK
    Geniee SDK StartGuide

Implementation of Geniee Ads Delivery via AdMob SDK

  1. Setting AdMob Mediation

    Set AdMob Mediation from AdMob-ManagementScreen.
    How to operate:Setting AdMob Mediation

  2. Create custom events in AdMob Mediation

    Create custom events from AdMob-ManagementScreen.
    Set Adapter Information to custom events.
    How to operate:Create Custom Events

    • Label : Ad network identification name, any setting possible. Example:Geniee
    • Class Name : GNAdMediationAdapter
    • Parameter : Geniee AppID,Log output flag (A comma-separated and part of ",Log output flag" is optional)
  3. Add GNAdMediationAdapter library

    Add libGNAdMediationAdapter-(version_number).a under libAdsMediation/GNAdAdMobAdapter to project.
    Add link to project's "Build Phases" → "Link Binary With Libraries"

  4. Select -ObjC in "Other Linker Flags" of Build Setting.

    Add -ObjC to "Other Linker Flags" in App target's build-setting.

Example Implementation for AdMob SDK banner ads

  • It is possible to deliver Mediation-Ads by implementating AdMob SDK banner ads.

    //  MyViewController.h
    
    #import <UIKit/UIKit.h>
    @class GADBannerView;
    @class GADBannerViewDelegate;
    
    @interface ViewController : UIViewController <GADBannerViewDelegate> {
        GADBannerView *bannerView_;
    }
    @end
    //  MyViewController.m
    @import GoogleMobileAds;
    
    #import "ViewController.h"
    
    @implementation MyViewController
    
    - (void)viewDidLoad
    {
        [super viewDidLoad];
        
        // Create a view of the standard size at the top of the screen.
        _bannerView = [[GADBannerView alloc] initWithFrame:CGRectMake(0.0,20.0,
                                                         GAD_SIZE_320x50.width,
                                                         GAD_SIZE_320x50.height)];
    
        // Change the ad unit ID to AdMob_Mediation_ID.
        _bannerView.adUnitID = @"YOUR_ADMOB_BANNER_UNIT_ID";
        _bannerView.delegate = self;
        _bannerView.rootViewController = self;
        [self.view addSubview:_bannerView];
    
        _bannerView.center = CGPointMake(self.view.center.x, _bannerView.center.y);
        // Load the ads with a general ad request.
        [_bannerView loadRequest:[GADRequest request]];
    }
    
    #pragma mark GADBannerViewDelegate impl
    
    // We've received an ad successfully.
    - (void)adViewDidReceiveAd:(GADBannerView *)adView {
        NSLog(@"Received ad successfully");
    }
    
    - (void)adView:(GADBannerView *)view

didFailToReceiveAdWithError:(GADRequestError *)error { NSLog(@"Failed to receive ad with error: %@", [error localizedFailureReason]); }

@end
⚠️ **GitHub.com Fallback** ⚠️