Geniee Mediation Integration For Android AdMob English - Hiroaki-Shinoda/Geniee-Android-SDK GitHub Wiki

Admob Ad Delivery via Geniee SDK

You can deliver Admob Ads from Geniee SDK by using AdMob Adapter For Geniee Mediation. To start AdMob Adapter For Geniee Mediation, please follow the instructions below;

  1. Introduction of Geniee SDK for Android
    Install Geniee SDK

  2. Geniee SDK implementation of banner ads
    Geniee SDK implementation of banner ads

  3. Introduction of AdMob SDK
    Install AdMob SDK

Implementation to deliver Admob advertising via Geniee SDK

  1. Create Geniee Ad Source

    You create Ad Source for the AdMob ad delivery at Geniee management screen.
    Set information of Tag in Ad Source.
    Input contents of Tag column

    <!--geniee_sdk_tagtype_mediation
    {
        "label":"GNAd-Mediation-Admob",
        "class":"jp.co.geniee.gnadsdk.mediation.GNAdMediationAdmobAdapter",
        "parameter":"YOUR_ADMOB_AD_UNIT_ID"
    }
    geniee_sdk_tagtype_mediation-->
    
    • label : Advertising SDK identification label, can be arbitrarily set. Example: GNAd-Mediation-Admob
    • class : jp.co.geniee.gnadsdk.mediation.GNAdMediationAdmobAdapter
    • parameter : It will be information of Admob SDK ad request, and ad unit ID of Admob.
  2. AdActivity declaration of Admob Ads SDK ads

    • Declare "com.google.android.gms.ads.AdActivity" with AndroidManifest.xml.
    <activity android:name="com.google.android.gms.ads.AdActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
    

Specify devices to receive the test ads (optional)

To verify SDK has been incorporated into the appropriate; please add device to be tested and then click test ads that are displayed.

  1. In logcat log, and then output identifier of devices in following manner.

  2. Set outputted DEVICE_IDENTIFIER to "AdmobTestDevice" Key value of GNAdView.requestExtra.

    builder.addTestDevice("5BBF86B841D6ED58B0730E884FA23022") to get test ads on this device.
    
    Bundle requestExtra = new Bundle();
    requestExtra.putString("AdmobTestDevice", "5BBF86B841D6ED58B0730E884FA23022");
    adView.setRequestExtra(requestExtra);