Integration Guide - Inmobi Adtracker Plugin

Platforms: Android & iOS
Plugin version: 1.2.0
AdTracker iOS SDK version: 2.5.4
AdTracker Android SDK version: 2.5.2

Generally you don't have to dive into the documentation from Inmobi, simply follow a few steps below to get the plugin integrated in your App in minutes:

[1] Import the InmobiAdtracker[Android|IOS|Universal].unitypackage file to your unity project;

[2] Follow the instructions below to configure the plugin.

· >>> For Android platform, click on the menu item of Unity top menu bar: NeatPlug -> InmobiAdtracker -> Patch Android Configuration. This is for generating a valid AndroidManifest.xml or patching the existing file with InmobiAdtracker support.


· >>> For iOS platform, click on the menu item of Unity top menu bar: NeatPlug -> InmobiAdtracker -> Patch iOS Configuration. This is for automatically adding iOS SDK frameworks, libraries or patching the Info.plist file (if needed) as long as the Xcode project is generated by Unity.

[3] Find InmobiAdtrackerAgent Prefab in Assets/Plugins/NeatPlug/Analytics/InmobiAdtracker/Prefabs/, open the first scene of your game, drag & drop the prefab into the scene.

[4] Okay, the integration is done here. Now set up Inmobi AdTracker by filling in a few properties of the InmobiAdtrackerAgent gameObject which you just dropped in the Hierarchy window. To do this, simply select that gameObject, and look at its properties in the Inspector window, you need to fill in:

   · App Id [Android|IOS] - The App ID of your App (You can get it from Inmobi adtracker site).

   · Debug Mode - Set this to true if you want to enable debug mode.

Now it's the time to do reporting!

[5] Call below functions to log an event, error or pageview:

   · InmobiAdtracker.Instance().Init(string appId, ... ) - Required if you don't apply "App Id" property value for InmobiAdtrackerAgent.

   · InmobiAdtracker.Instance().ReportAppDownloadGoal() - Report an App download goal.

   · InmobiAdtracker.Instance().ReportCustomGoal(string goal) - Report a customized goal.

  There are other useful public methods that InmobiAdtracker provides, to use them, call InmobiAdtracker.Instance().method().
Show All   
public void Init(string appId, bool debugMode)
/**
 * Initialization.
 * 
 * @param appId
 *            string - Your App ID, it can be got from Inmobi Adtracker Site.
 * 
 * @param debugMode
 *            bool - True for debug mode on, false for off.
 * 
 */
public void Init(string appId, bool debugMode)
public void ReportAppDownloadGoal()
/**
 * Report App Download Goal.	 
 */
public void ReportAppDownloadGoal()
public void ReportCustomGoal(string goal)
/**
 * Report custom goal.
 * 
 * @param goal
 *          string - The name of the goal.
 *                 
 */
public void ReportCustomGoal(string goal)

[6] Build your App now. To compile for iOS platform, you need to have Xcode 4.5 (with iOS SDK v6) or above installed.

[7] Test and verify if events can be logged on Inmobi's servers as expected, generally reports will appear in your Inmobi adtracker account instantly. If you encounter any exceptions, it would be helpful for you to address issues if you take a look at the logcat output (Android) or xcode debug console (iOS) to find the debug / error / warning messages.

[EOF] Should you have any questions or encounter any problems while integrating the plugin, please do not hesitate to shoot us an email at support@neatplug.com, we will be more than happy to help you. Thanks for choosing NeatPlug solutions!