Skip to content

Commit cd1c316

Browse files
authored
Merge pull request #553 from adjust/docs_update
Docs update
2 parents 14a6d8b + c2dde3d commit cd1c316

File tree

3 files changed

+86
-0
lines changed

3 files changed

+86
-0
lines changed

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Track AdMob ad revenue with Adjust SDK
2+
3+
[Adjust iOS SDK README][ios-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+
### Example
15+
16+
```objc
17+
- (void)requestRewardedAd {
18+
self.rewardedAd = [[GADRewardedAd alloc] initWithAdUnitID:@"ad unit ID"];
19+
ViewController *strongSelf = weakSelf;
20+
self.rewardedAd.paidEventHandler = ^void(GADAdValue *_Nonnull value) {
21+
// ...
22+
// send ad revenue info to Adjust
23+
ADJAdRevenue *adRevenue = [[ADJAdRevenue alloc] initWithSource:ADJAdRevenueSourceAdMob];
24+
[adRevenue setRevenue:value.value currency:value.currencyCode];
25+
[Adjust trackAdRevenue:adRevenue];
26+
}
27+
};
28+
```
29+
30+
[ios-readme]: ../../../README.md
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Track AppLovin MAX ad revenue with Adjust SDK
2+
3+
[Adjust iOS SDK README][ios-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+
```objc
16+
- (void)didPayRevenueForAd:(MAAd *)ad {
17+
ADJAdRevenue *adjustAdRevenue = [[ADJAdRevenue alloc] initWithSource:ADJAdRevenueSourceAppLovinMAX];
18+
19+
adjustAdRevenue.setRevenue(ad.revenue, "USD");
20+
adjustAdRevenue.setAdRevenueNetwork(ad.networkName);
21+
adjustAdRevenue.setAdRevenueUnit(ad.adUnitIdentifier);
22+
adjustAdRevenue.setAdRevenuePlacement(ad.placement);
23+
24+
Adjust.trackAdRevenue(adjustAdRevenue);
25+
}
26+
```
27+
28+
[ios-readme]: ../../../README.md
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Track ironSource ad revenue with Adjust SDK
2+
3+
[Adjust iOS SDK README][ios-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+
```objc
16+
- (void)impressionDataDidSucceed:(ISImpressionData *)impressionData {
17+
ADJAdRevenue *adjustAdRevenue = [[ADJAdRevenue alloc] initWithSource:ADJAdRevenueSourceIronSource];
18+
[adjustAdRevenue setRevenue:impressionData.revenue currency:@"USD"];
19+
// optional fields
20+
[adjustAdRevenue setAdRevenueNetwork:impressionData.ad_network];
21+
[adjustAdRevenue setAdRevenueUnit:impressionData.ad_unit];
22+
[adjustAdRevenue setAdRevenuePlacement:impressionData.placement];
23+
// track Adjust ad revenue
24+
[Adjust trackAdRevenue:adjustAdRevenue];
25+
}
26+
```
27+
28+
[ios-readme]: ../../../README.md

0 commit comments

Comments
 (0)