Skip to content

Commit 25926e7

Browse files
committed
update README
1 parent 0166803 commit 25926e7

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ Read this in other languages: [English][en-readme], [中文][zh-readme], [日本
4343
* [Event buffering](#event-buffering)
4444
* [GDPR right to be forgotten](#gdpr-forget-me)
4545
* [Third-party sharing](#third-party-sharing)
46-
* [Disable third-party sharing](#disable-third-party-sharing)
47-
* [Enable third-party sharing](#enable-third-party-sharing)
46+
* [Disable third-party sharing](#disable-third-party-sharing)
47+
* [Enable third-party sharing](#enable-third-party-sharing)
48+
* [Measurement consent](#measurement-consent)
4849
* [SDK signature](#sdk-signature)
4950
* [Background tracking](#background-tracking)
5051
* [Device IDs](#device-ids)
@@ -779,13 +780,32 @@ Upon receiving this information, Adjust will block the sharing of that specific
779780

780781
Call the following method to instruct the Adjust SDK to communicate the user's choice to share data or change data sharing, to the Adjust backend:
781782

782-
783+
```objc
784+
ADJThirdPartySharing *adjustThirdPartySharing = [[ADJThirdPartySharing alloc] initWithIsEnabledNumberBool:YES];
785+
[Adjust trackThirdPartySharing:adjustThirdPartySharing];
786+
```
783787
784788
Upon receiving this information, Adjust changes sharing the specific user's data to partners. The Adjust SDK will continue to work as expected.
785789
786790
Call the following method to instruct the Adjust SDK to send the granular options to the Adjust backend:
787791
792+
```objc
793+
ADJThirdPartySharing *adjustThirdPartySharing = [[ADJThirdPartySharing alloc] initWithIsEnabledNumberBool:nil];
794+
[adjustThirdPartySharing addGranularOption:@"PartnerA" key:@"foo" value:@"bar"];
795+
[Adjust trackThirdPartySharing:adjustThirdPartySharing];
796+
```
797+
798+
### <a id="measurement-consent"></a>Consent measurement for specific users
788799

800+
You can notify Adjust when a user exercises their right to change data sharing with partners for marketing purposes, but they allow data sharing for statistical purposes.
801+
802+
Call the following method to instruct the Adjust SDK to communicate the user's choice to change data sharing, to the Adjust backend:
803+
804+
```objc
805+
[Adjust trackMeasurementConsent:YES];
806+
```
807+
808+
Upon receiving this information, Adjust changes sharing the specific user's data to partners. The Adjust SDK will continue to work as expected.
789809
790810
### <a id="sdk-signature"></a> SDK signature
791811

0 commit comments

Comments
 (0)