Skip to content

Commit

Permalink
Merge pull request #150 from tenjin/release-1.15.1
Browse files Browse the repository at this point in the history
Release 1.15.1
  • Loading branch information
giraldogdiego authored Mar 19, 2024
2 parents 9e92f5a + a16d329 commit d05291c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ The Unity SDK for Tenjin. To learn more about Tenjin and our product offering, p
- [SKAdNetwork and Conversion Value][17]
- [SKAdNetwork iOS 15+ Postbacks][18]
- [GDPR][19]
- [Opt in/Opt out using CMP consents][72]
- [Purchase Events][20]
- [iOS IAP Validation][21]
- [Android IAP Validation][22]
Expand All @@ -40,7 +41,6 @@ The Unity SDK for Tenjin. To learn more about Tenjin and our product offering, p
- [LiveOps Campaigns][70]
- [Customer User ID][27]
- [Analytics Installation ID][71]
- [Opt in/Opt out using CMP consents][72]
- [Google DMA parameters][73]
- [Retry/cache events and IAP][69]
- [Impression Level Ad Revenue Integration][68]
Expand Down Expand Up @@ -439,6 +439,16 @@ instance.OptOutParams(optOutParams);
instance.Connect();
```

### <a id="optin-cmp"></a>Opt in/out using CMP
You can automatically opt in or opt out using your CMP consents (purpose 1) which are already saved in the user's device. The method returns a boolean to let you know if it's opted in or out.

`OptInOutUsingCMP()`

```csharp
BaseTenjin instance = Tenjin.getInstance("<SDK_KEY>");
optInOut = instance.OptInOutUsingCMP();
```

#### Device-Related Parameters

| Param | Description | Platform | Reference |
Expand Down Expand Up @@ -667,24 +677,22 @@ BaseTenjin instance = Tenjin.getInstance("<SDK_KEY>");
analyticsId = instance.GetAnalyticsInstallationId;
```

## <a id="optin-cmp"></a>Opt in/out using CMP
You can automatically opt in or opt out using your CMP consents (purpose 1) which are already saved in the user's device. The method returns a boolean to let you know if it's opted in or out.
## <a id="google-dma"></a>Google DMA parameters
If you already have a CMP integrated, Google DMA parameters will be automatically collected by the Tenjin SDK. There’s nothing to implement in the Tenjin SDK if you have a CMP integrated.
If you want to override your CMP, or simply want to build your own consent mechanisms, you can use the following:

`OptInOutUsingCMP()`
`SetGoogleDMAParameters(bool, bool)`

```csharp
BaseTenjin instance = Tenjin.getInstance("<SDK_KEY>");
optInOut = instance.OptInOutUsingCMP();
instance.SetGoogleDMAParameters(adPersonalization, adUserData);
```

## <a id="google-dma"></a>Google DMA parameters
Tenjin automatically sends Google DMA parameters (`ad_personalization` and `ad_user_data`) if you use a CMP in your app based in user's consents. If you'd like to override those parameters or you don't use a CMP 'you can use the following method:

`SetGoogleDMAParameters(bool, bool)`
To explicitly manage the collection of Google DMA parameters, you have the flexibility to opt in or opt out at any time. While the default setting is to opt in, you can easily adjust your preferences using the OptInGoogleDMA or OptOutGoogleDMA methods, ensuring full control over your data privacy settings:

```csharp
BaseTenjin instance = Tenjin.getInstance("<SDK_KEY>");
instance.SetGoogleDMAParameters(adPersonalization, adUserData);
instance.OptInGoogleDMA();
instance.OptOutGoogleDMA();
```

## <a id="retry-cache"></a>Retry/cache events and IAP
Expand Down
7 changes: 7 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,3 +411,10 @@ v1.15.0

- Android v1.15.0
- iOS v1.14.0

v1.15.1
----
* Add opt out (`OptOutGoogleDMA`) and opt in (`OptInGoogleDMA`) methods for Google DMA

- Android v1.15.1
- iOS v1.14.1
Binary file modified TenjinUnityPackage.unitypackage
Binary file not shown.

0 comments on commit d05291c

Please sign in to comment.