From 64225abacadf464fcb609b1d6b4b6ef886c25bdd Mon Sep 17 00:00:00 2001 From: giraldogdiego Date: Thu, 15 Feb 2024 15:39:03 -0500 Subject: [PATCH 1/2] Update Google DMA docs --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index dd82aad..1084e16 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ The Tenjin iOS SDK allows users to track events and installs in their iOS apps. - [Customer User ID][17] - [Analytics Installation ID][40] - [Opt in/Opt out using CMP consents][41] +- [Google DMA parameters][42] - [Retry/cache events and IAP][39] @@ -496,6 +497,15 @@ You can automatically opt in or opt out using your CMP consents (purpose 1) whic optInOut = [TenjinSDK optInOutUsingCMP]; ``` +# 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: + +`setGoogleDMAParametersWithAdPersonalization(bool, bool)` + +```objectivec +[[TeninSDK sharedInstance] setGoogleDMAParametersWithAdPersonalization:adPersonalization adUserData:adUserData]; +``` + # Retry/cache of events/IAP You can enable/disable retrying and caching events and IAP when requests fail or users don't have internet connection. These events will be sent after a new event has been added to the queue and user has recovered connection. @@ -546,6 +556,7 @@ You can enable/disable retrying and caching events and IAP when requests fail or [39]: #retry-cache [40]: #analytics-id [41]: #optin-cmp +[42]: #google-dma [image-1]: https://github.com/tenjin/tenjin-ios-sdk/blob/master/assets/ios_link_binary.png?raw=true "dashboard" [image-2]: https://github.com/tenjin/tenjin-ios-sdk/raw/master/assets/ios_linker_flags.png?raw=true "dashboard" [image-3]: https://s3.amazonaws.com/tenjin-instructions/sdk_live_open_events.png From 83f2ab41fad42f5211f4472be3395189e9f65dc1 Mon Sep 17 00:00:00 2001 From: giraldogdiego Date: Tue, 27 Feb 2024 20:36:34 -0500 Subject: [PATCH 2/2] Update GDPR and DMA docs --- README.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1084e16..9bb8533 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ The Tenjin iOS SDK allows users to track events and installs in their iOS apps. - [SKAdNetwork and Conversion value][5] - [SKAdNetwork and iOS 15+ Advertiser Postbacks][6] - [Tenjin and GDPR][7] + - [Opt in/Opt out using CMP consents][41] - [Device-Related Parameters][8] - [Purchase Events][9] - [Subscription IAP][10] @@ -32,7 +33,6 @@ The Tenjin iOS SDK allows users to track events and installs in their iOS apps. - [Attribution Info][16] - [Customer User ID][17] - [Analytics Installation ID][40] -- [Opt in/Opt out using CMP consents][41] - [Google DMA parameters][42] - [Retry/cache events and IAP][39] @@ -344,6 +344,16 @@ NSArray *optOutParams = @[@"country", @"timezone", @"language"]; [TenjinSDK connect]; ``` +### 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()` + +```objectivec +[TenjinSDK initialize:@""]; +optInOut = [TenjinSDK optInOutUsingCMP]; +``` + ### Device-Related Parameters | Param | Description | Reference | @@ -487,18 +497,9 @@ You can get the analytics id which is generated randomly and saved in the local analyticsId = [TenjinSDK getAnalyticsInstallationId]; ``` -# 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()` - -```objectivec -[TenjinSDK initialize:@""]; -optInOut = [TenjinSDK optInOutUsingCMP]; -``` - # 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: +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: `setGoogleDMAParametersWithAdPersonalization(bool, bool)`