Skip to content

Commit

Permalink
Fix some linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sporiff committed Feb 22, 2024
1 parent 8e01779 commit 5fc011e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 98 deletions.
95 changes: 2 additions & 93 deletions src/content/docs/sdk/android/plugins/criteo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ Once you have set up your environment, you can start recording Criteo events wit

### View listing

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

Expand All @@ -41,14 +38,8 @@ AdjustCriteo.injectViewListingIntoEvent(event, productIds);
Adjust.trackEvent(event);
```

</Tab>
</Tabs>

### View product

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

Expand All @@ -57,14 +48,8 @@ AdjustCriteo.injectViewProductIntoEvent(event, "productId1");
Adjust.trackEvent(event);
```

</Tab>
</Tabs>

### Cart

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

Expand All @@ -78,14 +63,8 @@ AdjustCriteo.injectCartIntoEvent(event, products);
Adjust.trackEvent(event);
```

</Tab>
</Tabs>

### Transaction confirmed

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

Expand All @@ -99,14 +78,8 @@ AdjustCriteo.injectTransactionConfirmedIntoEvent(event, products, "transactionId
Adjust.trackEvent(event);
```

</Tab>
</Tabs>

### User level

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

Expand All @@ -115,14 +88,8 @@ AdjustCriteo.injectUserLevelIntoEvent(event, 1);
Adjust.trackEvent(event);
```

</Tab>
</Tabs>

### User status

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

Expand All @@ -131,31 +98,18 @@ AdjustCriteo.injectUserStatusIntoEvent(event, "uiStatusValue");
Adjust.trackEvent(event);
```

</Tab>
</Tabs>

### Achievement unlocked

<Tabs>
<Tab title="Java">

````java
```java
import com.adjust.sdk.plugin.AdjustCriteo;

AdjustEvent event = new AdjustEvent("{achievementUnlockedEventToken}");
AdjustCriteo.injectAchievementUnlockedIntoEvent(event, "AchievementUnlocked");
Adjust.trackEvent(event);
```t.trackEvent(event);
````

</Tab>
</Tabs>
```

### Custom event

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

Expand All @@ -164,14 +118,8 @@ AdjustCriteo.injectCustomEventIntoEvent(event, "uiDataValue");
Adjust.trackEvent(event);
```

</Tab>
</Tabs>

### Custom event 2

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

Expand All @@ -180,68 +128,44 @@ AdjustCriteo.injectCustomEvent2IntoEvent(event, "uiData2Value", 3);
Adjust.trackEvent(event);
```

</Tab>
</Tabs>

### Hashed email

You can attach a hashed email to every Criteo event. To do this, call the `injectHashedEmailIntoCriteoEvents` method. The SDK will send a hashed email with every Criteo event throughout the app lifecycle. This means it will need to be set again when the app is re-launched. You can remove the hashed email by setting the `injectHashedEmailIntoCriteoEvents` value to `nil`.

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

AdjustCriteo.injectHashedEmailIntoCriteoEvents("8455938a1db5c475a87d76edacb6284e");
```

</Tab>
</Tabs>

### Search dates

You can attach a check-in and check-out date to every Criteo event. To do this, call the `injectViewSearchDatesIntoCriteoEvent` method. The SDK will send the dates with every Criteo event throughout the app lifecycle. This means you will need to set them again when the app is re-launched.

You can remove the search dates by setting the `injectViewSearchDatesIntoCriteoEvent` values to `nil`.

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

AdjustCriteo.injectViewSearchDatesIntoCriteoEvents("2015-01-01", "2015-01-07");
```

</Tab>
</Tabs>

### Partner ID

You can attach a partner ID to every Criteo event. To do this, call the `injectPartnerIdIntoCriteoEvents` method. The SDK will send the partner ID with every Criteo throughout the app lifecycle. This means you will need to set it again when the app is re-launched.

You can remove the partner ID by setting the `injectPartnerIdIntoCriteoEvents` value to null.

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

AdjustCriteo.injectPartnerIdIntoCriteoEvents("{CriteoPartnerId}");
```

</Tab>
</Tabs>

### Send deep link

You can add deep link information to Criteo events. To do this, call the `injectDeeplinkIntoEvent` method with the event and URL.

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

Expand All @@ -257,41 +181,26 @@ protected void onCreate(Bundle savedInstanceState) {
}
```

</Tab>
</Tabs>

### Customer ID

You can attach a customer ID to every Criteo event. To do this, call the `injectCustomerIdIntoCriteoEvents` method. The SDK will send the customer ID with every Criteo event throughout the app lifecycle. This means you will need to set them again when the app is re-launched.

You can remove the customer ID by setting the `injectCustomerIdIntoCriteoEvents` value to nil.

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

AdjustCriteo.injectCustomerIdIntoCriteoEvents("{CriteoCustomerId}");
```

</Tab>
</Tabs>

### User segment

You can attach the user segment to every Criteo event. To do this, call the `injectUserSegmentIntoCriteoEvents` method. The SDK will send the user segment with every Criteo event throughout the app lifecycle. This means you will need to set it again when the app is re-launched.

You can remove the user segment by setting the `injectUserSegmentIntoCriteoEvents` value to nil.

<Tabs>
<Tab title="Java">

```java
import com.adjust.sdk.plugin.AdjustCriteo;

AdjustCriteo.injectUserSegmentIntoCriteoEvents("{CriteoUserSegment}");
```

</Tab>
</Tabs>
12 changes: 8 additions & 4 deletions src/content/docs/sdk/android/plugins/facebook-pixel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Follow Facebook's guide on how to integrate the Facebook pixel. The Javascript c
<script>
!function(f,b,e,v,n,t,s)
...
fbq('init', <YOUR_PIXEL_ID>);
fbq('init', {YOUR_PIXEL_ID});
fbq('track', 'PageView');
</script>
...

Check warning on line 54 in src/content/docs/sdk/android/plugins/facebook-pixel.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] src/content/docs/sdk/android/plugins/facebook-pixel.mdx#L54

[Microsoft.Ellipses] In general, don't use an ellipsis.
Raw output
{"message": "[Microsoft.Ellipses] In general, don't use an ellipsis.", "location": {"path": "src/content/docs/sdk/android/plugins/facebook-pixel.mdx", "range": {"start": {"line": 54, "column": 1}}}, "severity": "WARNING"}
Expand All @@ -57,9 +57,13 @@ Follow Facebook's guide on how to integrate the Facebook pixel. The Javascript c

Next, update your Facebook pixel code. You can find the instructions in the [Hybrid Mobile App Events guide](https://developers.facebook.com/docs/app-events/hybrid-app-events) under **Update Your Pixel**.

```js
fbq('init', <YOUR_PIXEL_ID>);
fbq('set', 'mobileBridge', <YOUR_PIXEL_ID>, <YOUR_FB_APP_ID>);
```html
<script>
!function(f,b,e,v,n,t,s)
...
fbq('init', {YOUR_PIXEL_ID});
fbq('set', 'mobileBridge', {YOUR_PIXEL_ID}, {YOUR_FB_APP_ID});
</script>
```

<Callout type="important">
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/sdk/android/plugins/oaid-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Open Anonymous Device Identifier (OAID) is a unique identifier for Android d

The OAID plugin provides the OAID of a device. The SDK will continue to use other identifiers as well as the OAID. The OAID is readable on all devices using the MSA SDK or Huawei Mobile Service (HMS) Core SDK on Huawei devices.

## Add the OAID plugin to your app
## Add the plugin to your app

### Maven

Expand Down

0 comments on commit 5fc011e

Please sign in to comment.