appsflyer-unity-adrevenue-plugin
๐ 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 minumium AppsFlyer Unity plugin version >= 4.22.x.
โ ๏ธ There are breaking changes when upgrading from version 1.x to 2.x
Starting from v2.x, the plugin uses the The External Dependency Manager for Unity.
To support these changes first remove all the files from v1.x and only after that add the v2.x unity package.
- 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 SDK 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(AppsFlyerAdRevenueType.MoPub);
/* AppsFlyerAdRevenue.setIsDebug(true); */
}
}
๐ API
Check out the API here.
Note: AppsFlyerAdRevenue currently supports MoPub only