• /
  • /
Updating myTarget integration (GDPR Compliant)

Android

Starting from v.5.1.0 the myTarget SDK contains following methods for managing the user's personal data:
MyTargetPrivacy.setUserConsent(boolean);
Sets the user has consented(true) or not consented(false) on collect data. In case of not consented, no personal data will be collected and sent to the server.
MyTargetPrivacy.setUserAgeRestricted(boolean);
If the user is known to be in an age-restricted category (i.e., under the age of 16) please set the following flag to true.

iOS

Starting from v.4.7.9 the myTarget SDK contains following methods for managing the user's personal data:
[MTRGPrivacy setUserConsent:(BOOL)];
Sets the user has consented(YES) or not consented(NO) on collect data. In case of not consented, no personal data will be collected and sent to the server.
[MTRGPrivacy setUserAgeRestricted:(BOOL)];
If the user is known to be in an age-restricted category (i.e., under the age of 16) please set the following flag to YES.

Unity

Starting from v.1.1.0 the myTarget SDK contains following methods for managing the user's personal data:
MyTargetPrivacy.UserConsent = Boolean;
Sets the user has consented(true) or not consented(false) on collect data. In case of not consented, no personal data will be collected and sent to the server.
MyTargetPrivacy.UserAgeRestricted = Boolean;
If the user is known to be in an age-restricted category (i.e., under the age of 16) please set the following flag to true.

Web

Parameter
Type
Value
user_consent
int
1 - Publisher has provided consent to collect and use user's data.

0 - Publisher has not provided consent to collect and use user's data.

Note: Any value other than 0 and 1 is invalid and will be treated as value not provided by publisher, i.e. empty value.
user_age_restricted
int
if the user is known to be in an age-restricted category (i.e., under the age of 16) please set the following flag to 1 else to 0
Example of implementation:
<script async src="http://ad.mail.ru/static/ads-async.js"></script>
<ins class="mrg-tag"
    style="display:inline-block;width:320px;height:50px;text-decoration: none;"
    data-ad-client=«ad-XXX"
    data-ad-slot=«XXX"
    data-ad-query="user_consent=1&user_age_restricted=0"></ins>  
<script>
(MRGtag = window.MRGtag || []).push({});
</script>
Was this article helpful?
Да
Нет