Adwords Mobile Apps Conversion Tracking and Remarketing For Unity
For a tutorial/usage guide, please check this link.
Static Public Member Functions
AdWordsConversionReporter Class Reference

Static Public Member Functions

static void Init (string androidTrackingID, bool enableTracking, string iOSTrackingID, string iOSInstallTrackingLabel, string iOSInstallTrackingValue)
 This function sets the ios and android tracking ids and report install to Adwords Make sure to call this as early as possible after app launch and before you call any other method on AdWordsConversionReporter class. More...
 
static void disableAutomatedUsageReporting ()
 You do not have to call this directly as the Init function has enableTracking parameter which you can set to false to disable automated usage reporting You can also call directly More...
 
static void enableAutomatedUsageReporting ()
 You do not have to call this directly as the Init function has enableTracking parameter which you can set to true to enable automated usage reporting You can also call directly More...
 
static void reportConversionIOS (string label, string value, bool repeatable)
 Report an iOS app conversion to Adwords. Do not use this for install conversion, as the Init method do this for you. The function will be ignored in Android so you can call this method along with reportConversionAndroid method for the same conversion without the hassle of #f UNITY_IOS like this More...
 
static void reportConversionAndroid (string label, string value, bool repeatable)
 Report an Android app conversion to Adwords. Do not use this for install conversion, as the Init method do this for you. The function will be ignored for iOS so you can call this method along with reportConversionIOS method for the same conversion without the hassle of #f UNITY_ANDROID like this More...
 
static void reportRemarketing (Dictionary< string, string > parameters)
 Report a remarketing tag to Adworsd More...
 

Member Function Documentation

static void AdWordsConversionReporter.disableAutomatedUsageReporting ( )
inlinestatic

You do not have to call this directly as the Init function has enableTracking parameter which you can set to false to disable automated usage reporting You can also call directly

static void AdWordsConversionReporter.enableAutomatedUsageReporting ( )
inlinestatic

You do not have to call this directly as the Init function has enableTracking parameter which you can set to true to enable automated usage reporting You can also call directly

static void AdWordsConversionReporter.Init ( string  androidTrackingID,
bool  enableTracking,
string  iOSTrackingID,
string  iOSInstallTrackingLabel,
string  iOSInstallTrackingValue 
)
inlinestatic

This function sets the ios and android tracking ids and report install to Adwords Make sure to call this as early as possible after app launch and before you call any other method on AdWordsConversionReporter class.

Parameters
androidTrackingIDThe Adwrods Android app tracking id
enableTrackingChoose whether to enable or disable automated usage reporting for adwords
iOSTrackingIDThe Adwrods ios app tracking id
iOSInstallTrackingLabelThe label you get for ios app download conversion
iOSInstallTrackingValueThe value you get for ios app download conversion
static void AdWordsConversionReporter.reportConversionAndroid ( string  label,
string  value,
bool  repeatable 
)
inlinestatic

Report an Android app conversion to Adwords. Do not use this for install conversion, as the Init method do this for you. The function will be ignored for iOS so you can call this method along with reportConversionIOS method for the same conversion without the hassle of #f UNITY_ANDROID like this

//report in app puchase conversion AdWordsConversionReporter.reportConversionIOS(ios_inapp_purchase_label, ios_inapp_purchase_value, true or false depending on your code) AdWordsConversionReporter.reportConversionAndroid(android_inapp_purchase_label, android_inapp_purchase_value, true or false depending on your code)

Parameters
labelThe label for the conversion (provided by admob or adwords)
valueThe value for the conversion (provided by admob or adwords)
repeatableThe repetable parameter for the conversion (provided by admob or adwords)
static void AdWordsConversionReporter.reportConversionIOS ( string  label,
string  value,
bool  repeatable 
)
inlinestatic

Report an iOS app conversion to Adwords. Do not use this for install conversion, as the Init method do this for you. The function will be ignored in Android so you can call this method along with reportConversionAndroid method for the same conversion without the hassle of #f UNITY_IOS like this

//report in app puchase conversion AdWordsConversionReporter.reportConversionIOS(ios_inapp_purchase_label, ios_inapp_purchase_value, true or false depending on your code) AdWordsConversionReporter.reportConversionAndroid(android_inapp_purchase_label, android_inapp_purchase_value, true or false depending on your code)

Parameters
labelThe label for the conversion (provided by admob or adwords)
valueThe value for the conversion (provided by admob or adwords)
repeatableThe repetable parameter for the conversion (provided by admob or adwords)
static void AdWordsConversionReporter.reportRemarketing ( Dictionary< string, string >  parameters)
inlinestatic

Report a remarketing tag to Adworsd

Parameters
parametersA key value dictionary with the remarketing report contents