Overview

OMGLibrary is a library which is used to track the installs of application. This document shows how the developer will integrate OmgSdk Library in his Application.

Add OmgLibrary.dll

Add a reference to the OMGLibrary Project.

winphosdk1

Click on OK button.

winphosdk2

Next you’ll need to create an Object of OMGSDK. The following code sample outlines how this can be done:

OMGLibrary.OMGClass Obj = new OMGLibrary.OMGClass();

After that call the Method httpRequest() with these parameters:

str_ApplicationKey,
int_MID,
int_PID,
string_APPID,
string_Ext1,
string_Ext2,
string_Ext3,
string_Ext4,
string_Ext5

Parameter Data Type Description
ApplicationKey String The application key of the App. Log in to your account to get your ApplicationKey
MID Integer Your unique MerchantID or MID
AppID String Pass a uniqueID for the install event – this could be the AdvertiserID
PID Integer Your unique ProductID or PID
EX1 String Extended Data 1. Pass any additional variable you would like to capture
EX2 String Extended Data 2. Pass any additional variable you would like to capture
EX3 String Extended Data 3. Pass any additional variable you would like to capture
EX4 String Extended Data 4. Pass any additional variable you would like to capture
EX5 String Extended Data 5. Pass any additional variable you would like to capture

Getting Device Unique ID

You’ll now need to open the WMAppManifest.xml file.

winphosdk3

Then go to the Capabilities Tab.

winphosdk4

Click on ID_CAP_IDENTITY_DEVICE then build the application.

Once complete redeploy your application to your chosen device and test using the details provided by your OMG Account Manager.

Note: When Deploying the device should be connected with the Computer.