-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
161 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
title: AD(X) SDK integration | ||
description: Use the Ad(X) integration to pass AD(X) information to Adjust's servers. | ||
slug: en/sdk/android/integrations/adx | ||
--- | ||
|
||
<MinorVersion added="v4.36.0"> | ||
|
||
You can use the Adjust SDK to send AD(X) data to Adjust as an `AdjustAdRevenue` instance. To do this: | ||
|
||
</MinorVersion> | ||
|
||
1. Create a new function that triggers when the `rewardedAd.OnPaidEvent` method is called in the AD(X) SDK. This function should receive the eCPM (Effective Cost Per Mille) amount as an argument. | ||
2. Instantiate an [`AdjustAdRevenue` object](/en/sdk/android/features/ad-revenue) with the source `AdjustConfig.AdRevenueSourceAdx`. | ||
3. Fill in the details of your `AdjustAdRevenue` object. Divide the `ecpm` value by 1000 to return the estimated revenue for the ad. | ||
4. Send the ad revenue information to Adjust by calling the `trackAdRevenue` method. | ||
|
||
## Example | ||
|
||
<Tabs> | ||
<Tab title="Kotlin"> | ||
|
||
```kotlin | ||
override fun onPaidEvent(double ecpm) { | ||
double revenue = ecpm / 1000 | ||
|
||
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue(AdjustConfig.AD_REVENUE_ADX) | ||
adjustAdRevenue.setRevenue(revenue, "USD") | ||
adjustAdRevenue.setAdRevenueUnit("ADX Rewarded Ad") | ||
|
||
Adjust.trackAdRevenue(adjustAdRevenue) | ||
} | ||
|
||
``` | ||
|
||
</Tab> | ||
<Tab title="Java"> | ||
|
||
```java | ||
@Override | ||
public void onPaidEvent(double ecpm) { | ||
double revenue = ecpm / 1000; | ||
|
||
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue(AdjustConfig.AD_REVENUE_ADX); | ||
adjustAdRevenue.setRevenue(revenue, "USD"); | ||
adjustAdRevenue.setAdRevenueUnit("ADX Rewarded Ad"); | ||
|
||
Adjust.trackAdRevenue(adjustAdRevenue); | ||
} | ||
``` | ||
|
||
</Tab> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
title: AD(X) SDK integration | ||
description: Use the Ad(X) integration to pass AD(X) information to Adjust's servers. | ||
slug: en/sdk/ios/integrations/adx | ||
--- | ||
|
||
<MinorVersion added="v4.35.3"> | ||
|
||
You can use the Adjust SDK to send AD(X) data to Adjust as an `AdjustAdRevenue` instance. To do this: | ||
|
||
</MinorVersion> | ||
|
||
1. Create a new function that triggers when the `rewardedAd.OnPaidEvent` method is called in the AD(X) SDK. This function should receive the eCPM (Effective Cost Per Mille) amount as an argument. | ||
2. Instantiate an [`ADJAdRevenue` object](/en/sdk/ios/features/ad-revenue) with the source `ADJAdRevenueSourceADX`. | ||
3. Fill in the details of your `AdjustAdRevenue` object. Divide the `ecpm` value by 1000 to return the estimated revenue for the ad. | ||
4. Send the ad revenue information to Adjust by calling the `trackAdRevenue` method. | ||
|
||
## Example | ||
|
||
<Tabs> | ||
<Tab title="Swift"> | ||
|
||
```swift | ||
func rewardedAd.paidEventHandler(ecpm: double) { | ||
let revenue: double = ecpm / 1000; | ||
|
||
let adjustAdRevenue = AJDAdRevenue(source: ADJAdRevenueSourceADX); | ||
adjustAdRevenue.setRevenue(revenue, currency: "USD"); | ||
adjustAdRevenue.setAdRevenueUnit("ADX Rewarded Ad"); | ||
|
||
Adjust.trackAdRevenue(adjustAdRevenue); | ||
} | ||
``` | ||
|
||
</Tab> | ||
<Tab title="Objective-C"> | ||
|
||
```objc | ||
rewardedAd.paidEventHandler = ^(double ecpm) { | ||
double revenue = ecpm / 1000; | ||
|
||
ADJAdRevenue *adjustAdRevenue = [[ADJAdRevenue alloc] initWithSource: ADJAdRevenueSourceADX]; | ||
[adjustAdRevenue setRevenue:revenue currency:@"USD"]; | ||
[adjustAdRevenue setAdRevenueUnit:@"ADX Rewarded Ad"]; | ||
|
||
[Adjust trackAdRevenue: adjustAdRevenue]; | ||
}; | ||
``` | ||
|
||
</Tab> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: AD(X) SDK integration | ||
description: Use the Ad(X) integration to pass AD(X) information to Adjust's servers. | ||
slug: en/sdk/unity/integrations/adx | ||
--- | ||
|
||
<MinorVersion added="v4.36.0"> | ||
|
||
You can use the Adjust SDK to send AD(X) data to Adjust as an `AdjustAdRevenue` instance. To do this: | ||
|
||
</MinorVersion> | ||
|
||
1. Create a new function that triggers when the `rewardedAd.OnPaidEvent` method is called in the AD(X) SDK. This function should receive the eCPM (Effective Cost Per Mille) amount as an argument. | ||
2. Instantiate an [`AdjustAdRevenue` object](/en/sdk/unity/features/ad-revenue) with the source `AdjustConfig.AdRevenueSourceAdx`. | ||
3. Fill in the details of your `AdjustAdRevenue` object. Divide the `ecpm` value by 1000 to return the estimated revenue for the ad. | ||
4. Send the ad revenue information to Adjust by calling the `trackAdRevenue` method. | ||
|
||
<Callout type="seealso"> | ||
|
||
For more information about the `rewardedAd.OnPaidEvent` method, see [AD(X)'s rewarded ad documentation](https://docs.adxcorp.kr/unity/sdk-integration/ad-formats/rewarded-ad/ad-x#id-4.-a-d-revenue-onpaidevent) | ||
|
||
</Callout> | ||
|
||
## Example | ||
|
||
```cs | ||
rewardedAd.OnPaidEvent += RewardedAd_OnPaidEvent; | ||
|
||
void RewardedAd_OnPaidEvent(double ecpm) | ||
{ | ||
double revenue = ecpm / 1000f; | ||
|
||
AdjustAdRevenue adRevenue = new AdjustAdRevenue(AdjustConfig.AdRevenueSourceAdx); | ||
adRevenue.setRevenue(revenue, "USD"); | ||
adRevenue.setAdRevenueUnit("ADX Rewarded Ad"); | ||
|
||
Adjust.trackAdRevenue(adRevenue); | ||
} | ||
``` |