Skip to content

Commit

Permalink
Update ad_revenue_unity_connector.md
Browse files Browse the repository at this point in the history
1. Fix init code
2. Add additional parameters
  • Loading branch information
liaz-af authored Sep 13, 2023
1 parent 9269ae8 commit b599ba4
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions docs/ad_revenue_unity_connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ public class AppsFlyerObjectScript : MonoBehaviour
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);
}

```
Expand Down Expand Up @@ -122,9 +114,18 @@ Send ad revenue data from the impression payload to AppsFlyer regardless of the
*Example:*

```java
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.AppsFlyerAdRevenueMediationNetworkTypeMoPub., 0.026, "USD", dic);
```
Dictionary<string, string> additionalParams = new Dictionary<string, string>();
additionalParams.Add(AFAdRevenueEvent.COUNTRY, "US");
additionalParams.Add(AFAdRevenueEvent.AD_UNIT, "89b8c0159a50ebd1");
additionalParams.Add(AFAdRevenueEvent.AD_TYPE, "Banner");
additionalParams.Add(AFAdRevenueEvent.PLACEMENT, "place");
additionalParams.Add(AFAdRevenueEvent.ECPM_PAYLOAD, "encrypt");

additionalParams.Add("custom", "foo");
additionalParams.Add("custom_2", "bar");
additionalParams.Add("af_quantity", "1");
AppsFlyerAdRevenue.logAdRevenue("facebook",
AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeGoogleAdMob, 0.026,
"USD",
dic);
```

0 comments on commit b599ba4

Please sign in to comment.