appsflyer-unity-adrevenue-generic-connector
๐ In order for us to provide optimal support, we would kindly ask you to submit any issues to [email protected]
When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , production steps, logs, code snippets and any additional relevant information.
Table of content
๐ฒ Installation
This plugin requires the AppsFlyer Unity plugin version >= 4.22.x.
- Clone / download this repository.
- Import appsflyer-unity-adrevenue-plugin-x.x.x.unitypackage into your Unity project.
- Go to Assets >> Import Package >> Custom Package
- Select appsflyer-unity-adrevenue-plugin-x.x.x.unitypackage.
Note: You must have the AppsFlyer Unity plugin already in your project. In addition, make sure to init AppsFlyer SDK before AppsFlyerAdRevenue.
๐ Initialization
using AppsFlyerSDK;
public class AppsFlyerObjectScript : MonoBehaviour
{
void Start()
{
AppsFlyerAdRevenue.start();
/* AppsFlyerAdRevenue.setIsDebug(true); */
}
....
Dictionary<string, string> dic = new Dictionary<string, string>();
dic.Add("custom", "foo");
dic.Add("custom_2", "bar");
dic.Add("af_quantity", "1");
AppsFlyerAdRevenue.logAdRevenue("facebook", AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeGoogleAdMob, 0.026, "USD", dic);
}
๐ API
Check out the API here.