Follow

How to Set Up AdMob as an Ad Source

Requirements:

  • AerServ SDK (iOS | Android)
  • AdMob Ad Unit ID (to enter in AerServ UI)
  • Android requires updating the Android Manifest and gradle.build file

 

Ad Source Details:

 

 

  

How to Set Up the AdMob Ad Source


 

Step 1:  Create your account for AdMob

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

Step 3:   Click the + or the Add New Ad Source button on the page (assuming that this ad-line is active on AdMob side, create an ad source on AerServ with the Ad Unit ID given from AdMob e.g. '012345ca-6789-1234-1234-123456789123')

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

Step 5:   Select AdMob as the ad source

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

 

FIELD DESCRIPTION REQUIRED/OPTIONAL EXAMPLE
AdMob ID The Ad Unit ID assigned by AdMob Required app185a7e71e1714831a49ec7

 

 

 

Android


 

icon_android-on.png

AerServ SDK 

download-sdk.png

 

 

  1. Download the Android SDK from the links above or log on to the AerServ platform here
  2. Click the SDKs & TAGs tab on the top menu
  3. Click the Download SDK button
  4. Unzip the AerServ SDK

 

 
1. In the build.gradle for your app, add the Play-Services-Ads library under dependencies. (Note: There are two build.gradle inside your project, a project build.gradle and a app build.gradle. You will want to add the following line inside your app build.gradle.) 
 
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. 
 
2. Add the following to your AndroidManifest.xml:

<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>        

<!-- AdMob adapter -->
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> 

 

 

 

iOS 


 

image.jpg
AerServ SDK
download-sdk.png

 

  1. Download the iOS SDK from the links above or log on to the AerServ platform here
  2. Click the SDKs & TAGs tab on the top menu
  3. Click the Download SDK button
  4. Unzip the AerServ SDK

 

 

If you already have the latest AdMob iOS SDK, there is no need to do anything additional.

If you don't have the latest AdMob iOS SDK, we have included it in the SDK download.

  1. Open Xcode and click on the + sign on Linked frameworks & libraries  
  2. File directory: aerserv-ios-sdk/network-support/Admob/GooglemobileIOSSDKframework
  3. The SDK depends on the following iOS development frameworks which may not already be part of your project:
    • AdSupport
    • AudioToolbox
    • AVFoundation
    • CoreGraphics
    • CoreMedia
    • CoreTelephony
    • EventKit
    • EventKitUI
    • MessageUI
    • StoreKit
    • SystemConfiguration
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk