Geniee Mediation Integration For iOS AdMob english - unigeniee/Geniee-iOS-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;
-
Start Geniee SDK
Geniee SDK StartGuide -
Implementation of Geniee SDK Banner Ads
Implementation of Geniee SDK Banner Ads -
Start AdMob SDK
AdMob SDK StartGuide
-
Create Geniee's Ad Source
Create AdSourcers for AdMob AdsDelivery from the SSP dashboard.
Set Tag Information in Ad Source.
Input the contents of the Tag column:<!--geniee_sdk_tagtype_mediation { "label":"GNAd-Mediation-Admob", "class":"GNAdMediationAdmobAdapter", "parameter":"YOUR_ADMOB_AD_UNIT_ID" } geniee_sdk_tagtype_mediation-->
- label : Advertising SDK identification label, it is possible to set up any content. Example:GNAd-Mediation-Admob
- class :
GNAdMediationAdmobAdapter
- parameter : This is Information of Admob SDK's ads request, and Admob's ads unit ID.
-
Add GNAdMediationAdmobAdapter library
Add project to
libGNAdMediationAdmobAdapter.a
under libAdsMediation/GNAdMediation/Admob.
Add link to project "Build Phases" → "Link Binary With Libraries". -
Specify
-ObjC
at "Other Linker Flags" in Build-SettingAdd
-ObjC
to "Other Linker Flags" in App target Build-Setting.
Please specify device to receive test ads to prevent waste of impressions. This property is only used on development stage.
To verify SDK has been incorporated into the appropriate; please add device to be tested and then click test ads that are displayed.
-
In console log and then output the identifier of the device in the following manner.
-
Set DEVICE_IDENTIFIER outputted to "AdmobTestDevice" Key Value of GNAdView.requestExtra.
<Google> To get test ads on this device, call: request.testDevices = @[ @"2485df3f43e3e4b6e311cfa7a7821335" ];
// MyViewController.m NSMutableDictionary *requestExtra = [NSMutableDictionary dictionary]; requestExtra[@"AdmobTestDevice"] = [NSArray arrayWithObjects: @"YOUR_SIMULATOR_IDENTIFIER", @"YOUR_DEVICE_IDENTIFIER", nil]; _adView.requestExtra = requestExtra;