If the user consents to interest-based advertising, set the user consent flag to true by calling SetHasUserConsent, and start requesting ads through McSDK. After you set the consent value to true for a specific user, McSDK will continue to follow this value throughout your application's lifecycle, or until the user revokes consent for interest-based advertising.
McSdk.SetHasUserConsent(true);
If the user does not consent to interest-based advertising, set the user consent flag to false by calling SetHasUserConsent for the specific user, and start requesting ads through McSDK. After you set the consent value to false, McSDK will continue to follow this value throughout your application's lifecycle, or until the user consents to interest-based advertising.
McSdk.SetHasUserConsent(false);
Children's Online Privacy Protection Act (COPPA) primarily targets the online collection of personal information from children under 13. According to the COPPA FAQ, developers are responsible for determining whether their application targets children under 13 and should consider factors including but not limited to: "the subject matter of the app, visual content, use of animated characters or activities and incentives appealing to children, music or other audio content, age of models, presence of child celebrities or celebrities who appeal to children, language or other characteristics of the website or online service, as well as whether advertising promoting or appearing on the website or online service is directed to children."
● TopOn
You only need to configure this in the TopOn console
- Log in to the TopOn Console
- Enter the target application details page
- Click the Edit action button
- Enable the COPPA switch in the Privacy Compliance module
● Max
According to platform regulations, you can perform the corresponding operations on the Max side independently. For detailed information, please refer to the Max Official Documentation
California Consumer Privacy Act (CCPA) requires that various privacy rights be provided to California consumers. Businesses subject to CCPA regulation will fulfill multiple obligations to these consumers, including information disclosure, consumer rights similar to the EU General Data Protection Regulation (GDPR), the right to "opt-out" of specific data transfers, and the right to "opt-in" requested by minors.
● TopOn
You only need to configure this in the TopOn console
- Log in to the TopOn Console
- Enter the target application details page
- Click the Edit action button
- Enable the CCPA switch in the Privacy Compliance module
● Max
Please refer to the Max Official Documentation
You need to use the following API for configuration
csharp CopyMcSdk.SetDoNotSell(false); McSdk.SetDoNotSell(true);
● Android
dependencies {
implementation("com.google.android.ump:user-messaging-platform:3.0.0")
}
<manifest>
<application>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
</application>
</manifest>
-keep public class com.google.android.ump.*
● iOS
First, add UserMessagingPlatform.xcframework to your project
Add the GADApplicationIdentifier key for the AdMob platform in Info.plist
As required by the AdMob platform, add this key only if you have selected to use this platform. For more information, please visit here.
<key>GADApplicationIdentifier</key>
<string>Your GADApplicationIdentifier </string>
<!-- Example format of the above value: ca-app-pub-94885xxxxxxxxxx~731xxxxx -->
McSdk.SetPrivacySettingEnable(true);
McSdk.InitializeSdk("your app id", "your app key");