Follow

How to Set Up AdMob as an Ad Source

Ad Source Details:

Requirements:

  • AerServ SDK (iOS | Android)
  • Android requires updating the Android Manifest and gradle.build file

 

 

How to Set Up the AdMob Ad Source

 

 

Step 1:   Log on to http://platform.aerserv.com/ and click on the Ad Sources link at the top of the page.

Step 2:   Click the + or the Add New Ad Source button on the page.

Step 3:   Enter a Name for the ad source (example: AdMob Interstitial).

Step 4:   Select AdMob (SDK) as the ad source.

Step 5:   Select Interstitial HTML, Banner HTML, Video, SmartBanner, or Rewarded Video in the Ad Type drop down menu.

 
Please Note: Android SDK versions 3.1.2 and higher & iOS SDK versions 3.1.2.1 and higher support AdMob Rewarded Video through the "Video" Ad Type.

 

Step 6:   Enter the following fields that are specific to the AdMob ad source:

 

FIELD DESCRIPTION REQUIRED/OPTIONAL
Ad Unit ID

A unique ID number assigned to each of your ad units when they're created in AdMob. The ad unit ID is added to your apps code and used to identify ad requests from the ad unit.

Required

 

Step 7: Enter in the appropriate banner size in "AdMob Banner Size" field if you chose "Banner HTML" as the Ad Type.

Step 8: Enter estimated CPM (e.g. 3.50). This value is used as the default CPM, not the floor.

Step 9: Select desired Placement.

Step 10: Select Country or DMA targeting.

Step 11: Select Device targeting.

Step 12: Click Save.

 

Locating the AdMob Credentials 

credentials_admob.png

Step 1: On your AdMob dashboard, click Apps in the sidebar

Step 2: Click the name of the app associated with the ad unit. Note: If you don't see it in the list of recent apps, you can click View All Apps, then click the name of the app

Step 3: Click Ad units in the sidebar

Step 4: Click the Copy icon in the Ad unit ID (1) column to copy the ID of the ad unit

 

Android 

icon_android-on.png
AerServ SDK
download-sdk.png

 

Step 1. Add the following settings inside your application's build.gradle


dependencies {
    compile 'com.google.android.gms:play-services-ads:10.2.1'
}
 
If you are using Android Studio and don't have the following version of play-services, the SDK Manager will prompt you to download the version. 

Step 2.   Add the following activity to your AndroidManifest.xml

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

 

iOS 

image.jpg
AerServ SDK
download-sdk.png

 

Step 1.   Add the AdMob SDK in the folder network-support/AdMob/GoogleMobileAds.framework into your project frameworks.

Add the following libraries and frameworks to Target > Build Phases > Link Binary With Libraries:

AdSupport.framework (Set to Optional)
AudioToolbox.framework
AVFoundation.framework
CoreGraphics.framework
CoreMedia.framework
CoreMotion.framework CoreTelephony.framework
CoreVideo.framework EventKit.framework
EventKitUI.framework
GoogleMobilesAds.framework
GLKit.framework JavaScriptCore.framework (Set to Optional) MediaPlayer.framework
MessageUI.framework
OpenGLES.framework SafariServices.framework (Set to Optional) StoreKit.framework SystemConfiguration.framework
MobileCoreServices.framework

Step 2.   Add the following entry into your info.plist: 

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoadsForMedia</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments