Skip to content

Commit a835933

Browse files
authored
Merge pull request #223 from adjust/docs_update
Docs update
2 parents c2e4b5d + 7eee46b commit a835933

File tree

3 files changed

+99
-0
lines changed

3 files changed

+99
-0
lines changed

doc/english/sdk-to-sdk/admob.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Track AdMob ad revenue with Adjust SDK
2+
3+
[Adjust Unity SDK README][unity-readme]
4+
5+
Minimum SDK version required for this feature:
6+
7+
- **Adjust SDK v4.29.0**
8+
9+
> Note: In order to enable this feature, please reach out to your Google point of contact. Your point of contact will be able to activate the feature for you to access it.
10+
11+
If you want to track your ad revenue with the Admob SDK, you can use our SDK-to-SDK integration to pass this information to the Adjust backend. To do this, you will need to construct an Adjust ad revenue object containing the information you wish to record, then pass the object to the `trackAdRevenue` method.
12+
13+
> Note: If you have any questions about ad revenue tracking with Admob, please contact your dedicated account manager or send an email to [[email protected]](mailto:[email protected]).
14+
15+
### Example
16+
17+
```cs
18+
private void RequestRewardedAd()
19+
{
20+
// create a rewarded ad
21+
this.rewardedAd = new RewardedAd(<your-ad-unit-id>);
22+
// register for ad paid events
23+
this.rewardedAd.OnPaidEvent += this.HandleAdPaidEvent;
24+
// load a rewarded ad
25+
this.rewardedAd.LoadAd(new AdRequest.Builder().Build());
26+
}
27+
// register for ad paid events
28+
this.rewardedAd.OnPaidEvent += this.HandleAdPaidEvent;
29+
public void HandleAdPaidEvent(object sender, AdValueEventArgs args)
30+
{
31+
// ...
32+
AdValue adValue = args.AdValue;
33+
// send ad revenue info to Adjust
34+
AdjustAdRevenue adRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceAdMob);
35+
adRevenue.setRevenue(adValue.Value / 1000000, adValue.CurrencyCode);
36+
Adjust.trackAdRevenue(adRevenue);
37+
}
38+
```
39+
40+
[unity-readme]: ../../../README.md
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Track AppLovin MAX ad revenue with Adjust SDK
2+
3+
[Adjust Unity SDK README][unity-readme]
4+
5+
Minimum SDK version required for this feature:
6+
7+
- **Adjust SDK v4.29.0**
8+
9+
If you want to track your ad revenue with the AppLovin MAX SDK, you can use our SDK-to-SDK integration to pass this information to the Adjust backend. To do this, you will need to construct an Adjust ad revenue object containing the information you wish to record, then pass the object to the `trackAdRevenue` method.
10+
11+
> Note: If you have any questions about ad revenue tracking with AppLovin MAX, please contact your dedicated account manager or send an email to [[email protected]](mailto:[email protected]).
12+
13+
### Example
14+
15+
```cs
16+
public static void OnInterstitialAdRevenuePaidEvent(string adUnitId)
17+
{
18+
var info = MaxSdk.GetAdInfo(adUnitId);
19+
20+
var adRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceAppLovinMAX);
21+
adRevenue.setRevenue(info.Revenue, "USD");
22+
adRevenue.setAdRevenueNetwork(info.NetworkName);
23+
adRevenue.setAdRevenueUnit(info.AdUnitIdentifier);
24+
adRevenue.setAdRevenuePlacement(info.Placement);
25+
26+
Adjust.trackAdRevenue(adRevenue);
27+
}
28+
```
29+
30+
[unity-readme]: ../../../README.md

doc/english/sdk-to-sdk/ironsource.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Track ironSource ad revenue with Adjust SDK
2+
3+
[Adjust Unity SDK README][unity-readme]
4+
5+
Minimum SDK version required for this feature:
6+
7+
- **Adjust SDK v4.29.0**
8+
9+
If you want to track your ad revenue with the ironSource SDK, you can use our SDK-to-SDK integration to pass this information to the Adjust backend. To do this, you will need to construct an Adjust ad revenue object containing the information you wish to record, then pass the object to the `trackAdRevenue` method.
10+
11+
> Note: If you have any questions about ad revenue tracking with ironSource, please contact your dedicated account manager or send an email to [[email protected]](mailto:[email protected]).
12+
13+
### Example
14+
15+
```cs
16+
private void ImpressionSuccessEvent(IronSourceImpressionData impressionData)
17+
{
18+
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceIronSource);
19+
adjustAdRevenue.setRevenue(impressionData.revenue, "USD");
20+
// optional fields
21+
adjustAdRevenue.setAdRevenueNetwork(impressionData.adNetwork);
22+
adjustAdRevenue.setAdRevenueUnit(impressionData.adUnit);
23+
adjustAdRevenue.setAdRevenuePlacement(impressionData.placement);
24+
// track Adjust ad revenue
25+
Adjust.trackAdRevenue(adjustAdRevenue);
26+
}
27+
```
28+
29+
[unity-readme]: ../../../README.md

0 commit comments

Comments
 (0)