Geniee Mediation Integration For Android AdMob english - Hiroaki-Shinoda/Geniee-Android-SDK GitHub Wiki
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;
-
Introduction of Geniee SDK for Android
Install Geniee SDK -
Geniee SDK implementation of banner ads
Geniee SDK implementation of banner ads -
Introduction of AdMob SDK
Install AdMob SDK
-
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.
-
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"/>
To verify SDK has been incorporated into the appropriate; please add device to be tested and then click test ads that are displayed.
-
In logcat log, and then output identifier of devices in following manner.
-
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);