Skip to content

Commit

Permalink
Updated articles according to feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ivosam3 committed Nov 17, 2023
1 parent a25a3ab commit f7ba12a
Show file tree
Hide file tree
Showing 19 changed files with 57 additions and 1,256 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ If you want to use the external device ID in your business analytics, you can pa

<Callout type="seealso">

See [Session parameters](/android/recording/session-parameters.md) for more information.
See [Session parameters](/en/sdk/android/features/session-parameters) for more information.

</Callout>

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/en/sdk/android/features/ad-revenue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Add callback parameters to your event by calling the <Tooltip>`addCallbackParame

The Adjust SDK measures the event and sends a request to your URL with the callback parameters. For example, if you register the URL `https://www.mydomain.com/callback`, your callback looks like this:

```http
```http "key=value" "foo=bar"
https://www.mydomain.com/callback?key=value&foo=bar
```

Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/en/sdk/android/features/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Add callback parameters to your event by calling the <Tooltip>`addCallbackParame

The Adjust SDK measures the event and sends a request to your URL with the callback parameters. For example, if you register the URL `https://www.mydomain.com/callback`, your callback looks like this:

```http
```http "key=value" "foo=bar"
https://www.mydomain.com/callback?key=value&foo=bar
```

Expand Down Expand Up @@ -115,7 +115,7 @@ This example demonstrates how to record an event with the token `g3mfiw` wheneve

The resulting callback URL looks like this:

```http
```http "event_token=g3mfiw" "revenue_amount=0.05"
http://www.mydomain.com/callback?event_token=g3mfiw&revenue_amount=0.05
```
<AddCallbackParameterExample />
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/en/sdk/android/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ If your app doesn't target the Google Play Store, add the following permission t

The Adjust SDK includes the `com.google.android.gms.AD_ID` permission by default. If you need to make your app <Abbr>COPPA (Children's Online Privacy Protection Act)</Abbr> compliant or if your app doesn't target the Google Play Store, you must remove this permission using a `remove` directive.

```xml
```xml "tools:node="remove""
<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/>
```

Expand Down Expand Up @@ -116,7 +116,7 @@ An install referrer is a unique identifier used to attribute an install to a sou

The Google Play Referrer API is available to apps that target the Google Play Store.

To support the Google Play Referrer API, add the following to your {file}`build.gradle` file:
To support the Google Play Referrer API, add the following to your `build.gradle` file:

```groovy
dependencies {
Expand Down
22 changes: 0 additions & 22 deletions src/content/docs/en/sdk/android/integrations/admob.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,5 @@ adRequest, new RewardedAdLoadCallback(){
});
```

</Tab>
<Tab>

### C#

```c#
this.rewardedAd.OnPaidEvent += this.HandleAdPaidEvent;
public void HandleAdPaidEvent(object sender, AdValueEventArgs args)
{
// for more information, please check AdMob official docs at:
// https://developers.google.com/admob/unity/impression-level-ad-revenue
AdValue adValue = args.AdValue;
AdapterResponseInfo loadedAdapterResponseInfo = rewardedAd.GetResponseInfo().GetLoadedAdapterResponseInfo();

// send ad revenue info to Adjust
AdjustAdRevenue adRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceAdMob);
adRevenue.setRevenue(adValue.Value / 1000000f, adValue.CurrencyCode);
adRevenue.setAdRevenueNetwork(loadedAdapterResponseInfo.AdSourceName)
Adjust.trackAdRevenue(adRevenue);
}
```

</Tab>
</Tabs>
18 changes: 0 additions & 18 deletions src/content/docs/en/sdk/android/integrations/applovin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,6 @@ public void onAdRevenuePaid(final MaxAd ad) {
}
```

</Tab>
<Tab>

### C#

```c#
private void OnRewardedAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo)
{
var adRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceAppLovinMAX);
adRevenue.setRevenue(adInfo.Revenue, "USD");
adRevenue.setAdRevenueNetwork(adInfo.NetworkName);
adRevenue.setAdRevenueUnit(adInfo.AdUnitIdentifier);
adRevenue.setAdRevenuePlacement(adInfo.Placement);

Adjust.trackAdRevenue(adRevenue);
}
```

</Tab>
</Tabs>

Expand Down
28 changes: 0 additions & 28 deletions src/content/docs/en/sdk/android/integrations/batch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,33 +51,5 @@ config.setOnAttributionChangedListener(new OnAttributionChangedListener() {
Adjust.onCreate(config);
```

</Tab>
<Tab>

### Swift

```swift
func adjustAttributionChanged(_ attribution: ADJAttribution?) {
// initiate Batch user editor to set new attributes
let editor = BatchUser.editor()

if attribution?.network != nil {
editor?.setAttribute(attribution?.network, forKey: "adjust_network")
}
if attribution?.campaign != nil {
editor?.setAttribute(attribution?.campaign, forKey: "adjust_campaign")
}
if attribution?.adgroup != nil {
editor?.setAttribute(attribution?.campaign, forKey: "adjust_adgroup")
}
if attribution?.creative != nil {
editor?.setAttribute(attribution?.creative, forKey: "adjust_creative")
}

// send new attribute to Batch servers
editor.save()
}
```

</Tab>
</Tabs>
24 changes: 0 additions & 24 deletions src/content/docs/en/sdk/android/integrations/helium.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,5 @@ public void ilrdObserver (final HeliumImpressionData impData) {
Adjust.trackAdRevenue(adjustAdRevenue);
}
```
</Tab>
<Tab>

### C#

```c#
void DidReceiveImpressionLevelRevenueData(string placement, Hashtable impressionData)
{
var json = HeliumJSON.Serialize(impressionData);

ParsedJsonObject parsedJsonObject = foobar.parse(json); //app developer defined function to parse Helium impressionData JSON string
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceHeliumChartboost);
adjustAdRevenue.setRevenue(parsedJsonObject.ad_revenue, parsedJsonObject.currency_type);

// optional fields
adjustAdRevenue.setAdRevenueNetwork(parsedJsonObject.network_name); // Helium demand network name
adjustAdRevenue.setAdRevenueUnit(parsedJsonObject.placement_name); // Helium placement name
adjustAdRevenue.setAdRevenuePlacement(parsedJsonObject.line_item_name); // Helium line item name
// track Adjust ad revenue
Adjust.trackAdRevenue(adjustAdRevenue);
}
```

</Tab>
</Tabs>
20 changes: 0 additions & 20 deletions src/content/docs/en/sdk/android/integrations/ironsource.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,5 @@ public void onImpressionSuccess (ImpressionData impressionData) {
Adjust.trackAdRevenue(adjustAdRevenue);
}
```
</Tab>
<Tab>

### C#

```c#
IronSourceEvents.onImpressionDataReadyEvent += ImpressionDataReadyEvent;
private void ImpressionDataReadyEvent(IronSourceImpressionData impressionData)
{
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceIronSource);
adjustAdRevenue.setRevenue(impressionData.revenue, "USD");
// optional fields
adjustAdRevenue.setAdRevenueNetwork(impressionData.adNetwork);
adjustAdRevenue.setAdRevenueUnit(impressionData.adUnit);
adjustAdRevenue.setAdRevenuePlacement(impressionData.placement);
// track Adjust ad revenue
Adjust.trackAdRevenue(adjustAdRevenue);
}
```

</Tab>
</Tabs>
42 changes: 0 additions & 42 deletions src/content/docs/en/sdk/android/integrations/mixpanel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,47 +70,5 @@ public class YourApplicationClass extends Application {
}
```

</Tab>
<Tab>

### Swift

```swift
func adjustAttributionChanged(_ attribution: ADJAttribution?) {
let mixpanel = Mixpanel.sharedInstance()

// The adjust properties will be sent
// with all future track calls.
if attribution?.network != nil {
if let network = attribution?.network {
mixpanel?.registerSuperProperties([
"[Adjust]Network": network
])
}
}
if attribution?.campaign != nil {
if let campaign = attribution?.campaign {
mixpanel?.registerSuperProperties([
"[Adjust]Campaign": campaign
])
}
}
if attribution?.adgroup != nil {
if let adgroup = attribution?.adgroup {
mixpanel?.registerSuperProperties([
"[Adjust]Adgroup": adgroup
])
}
}
if attribution?.creative != nil {
if let creative = attribution?.creative {
mixpanel?.registerSuperProperties([
"[Adjust]Creative": creative
])
}
}
}
```

</Tab>
</Tabs>
26 changes: 0 additions & 26 deletions src/content/docs/en/sdk/android/integrations/unity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,5 @@ ImpressionEventPublisher.subscribe(impressionListener);
// unsubscribe the impression listener from the impression event publisher
ImpressionEventPublisher.unsubscribe(impressionListener);
```
</Tab>
<Tab>

### C#

```c#
static void OnImpression(object sender, ImpressionEventArgs e)
{
var impressionData = e.ImpressionData != null ? JsonUtility.ToJson(e.ImpressionData, true) : "null";
Debug.Log($"Impression event from ad unit id {e.AdUnitId} : {impressionData}");

// send impression data to Adjust
if (e.ImpressionData != null)
{
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceUnity);
adjustAdRevenue.setRevenue(e.ImpressionData.PublisherRevenuePerImpression, e.ImpressionData.Currency);
// optional fields
adjustAdRevenue.setAdRevenueNetwork(e.ImpressionData.AdSourceName);
adjustAdRevenue.setAdRevenueUnit(e.ImpressionData.AdUnitId);
adjustAdRevenue.setAdRevenuePlacement(e.ImpressionData.AdSourceInstance);
// track Adjust ad revenue
Adjust.trackAdRevenue(adjustAdRevenue);
}
}
```

</Tab>
</Tabs>
Loading

0 comments on commit f7ba12a

Please sign in to comment.