At a glance: Enhance data matching between Cost Center and MMP (especially Adjust) with this additional setup.
Note: Step 1, 2 and 4 are already implemented in CC-SDK since v1.4.1
Step 1: Get Attribution ID
AppsFlyer:
string attributionId = AppsFlyer.getAppsFlyerId();
Adjust (require SDK v5 and above):
Adjust.GetAdid(adid => {
string attributionId = adid;
});Singular:
string attributionId = System.Guid.NewGuid().ToString();
SingularSDK.SetCustomUserId(attributionId);
Step 2: Set Attribution ID to Firebase’s user properties with key “attribution_id”
Firebase.Analytics.FirebaseAnalytics.SetUserProperty("attribution_id", attributionId);
Step 3: Set Firebase App Instance ID into Level Play / Max Mediation User ID before the init request
IEnumerator SetMediationUserId() {
System.Threading.Tasks.Task<string> task = Firebase.Analytics.FirebaseAnalytics.GetAnalyticsInstanceIdAsync();
yield return new WaitUntil(() => task.IsCompleted);
string firebaseAppInstanceId = task.Result;
// For Level Play
IronSource.Agent.setUserId(firebaseAppInstanceId);
// For Max mediation
MaxSdk.SetUserId(firebaseAppInstanceId);
}
Step 4: Set Vendor ID to Firebase's user properties with key "vendor_id"
// Vendor ID is IDFV for iOS and ASID for Android
// Android:
// AppSetIdManager.Instance.GetAppSetId((appSetId) => {
// vendorId = appSetId;
// });
// iOS:
// vendorId = SystemInfo.deviceUniqueIdentifier;
Firebase.Analytics.FirebaseAnalytics.SetUserProperty("vendor_id", vendorId);
