Android Application Conversion Tracking and Device ID

From QuattroWiki

Jump to: navigation, search

Conversion Tracking

Conversion tracking is the tool used by application owners to track the number of downloads / new installations that occur as a result of advertisements on Quattro’s Ad Network. If the application uses Quattro’s Android SDK, then the application is already setup to support conversion tracking.

The application should call the following method from Quattro’s SDK during the initialization of the application:

com.qwapi.adclient.android.AdApiRegistration.registerApplication(context);    

This method runs in the background thread and registers the application with Quattro. It then sets an application preference so that the registration happens only once.

If the application does not call this method during the install, it will be called when the first ad is requested via Quattro’s SDK.

Device ID

Quattro SDK uses the Android ID as the unique device ID to track the requests from the device. The following code is used to get the Android ID:

androidId = android.provider.Settings.System.getString(ctx.getContentResolver(),System.ANDROID_ID);

For More Information

Personal tools