💡Tips
- ⚠️ Privacy compliance methods must be called before
McSdk.initialize()to ensure the SDK follows the corresponding privacy compliance policies upon initialization.
When publishing apps globally, you must comply with privacy regulations in different regions. The HyperBid Flutter SDK provides the following privacy compliance APIs, allowing developers to configure privacy settings before SDK initialization based on the user's region and consent status:
| Regulation | Applicable Region | Method |
|---|---|---|
| GDPR | EU / European Economic Area | McSdk.setHasUserConsent(bool) |
| COPPA | USA (children under 13) | McSdk.setIsAgeRestrictedUser(bool) |
| CCPA | California, USA | McSdk.setDoNotSell(bool) |
Applicable to users in the EU and European Economic Area. Call setHasUserConsent based on whether the user has consented to data collection and personalized advertising:
// User has consented to data collection and personalized advertising
McSdk.setHasUserConsent(true);
// User has not consented
McSdk.setHasUserConsent(false);
📌 When set to
false, the SDK will notify all ad networks to disable personalized advertising. Some ad networks may reduce fill rates or revenue.
Applicable to apps targeting children under 13. Call setIsAgeRestrictedUser to indicate whether the current user is an Age-Restricted User:
// Current user is a child (Age-Restricted)
McSdk.setIsAgeRestrictedUser(true);
// Current user is an adult (not Age-Restricted)
McSdk.setIsAgeRestrictedUser(false);
📌 When set to
true, the SDK will notify all ad networks to handle ad requests in compliance with COPPA, without collecting personal information or serving personalized advertising.
⚠️ For TopOn, the following configuration is required:
- Log in to the TopOn Console
- Navigate to the target app details page
- Click the Edit button
- Enable the COPPA toggle in the privacy compliance section
dart Copy// Must be called before McSdk.initialize() // If the user's age is under 13, COPPA regulations will be enforced McSdk.setCustomRule({"age": "user's age"});
Applicable to users in California. Call setDoNotSell to set whether the user has opted out of the sale of personal information:
// User has opted out of the sale of personal information
McSdk.setDoNotSell(true);
// User allows data usage
McSdk.setDoNotSell(false);
📌 When set to
true, the SDK will notify all ad networks to comply with the "Do Not Sell" request, restricting the sharing and sale of user data.
⚠️ For TopOn, the following configuration is required:
- Log in to the TopOn Console
- Navigate to the target app details page
- Click the Edit button
- Enable the CCPA toggle in the privacy compliance section
| Method | When to Call | Default Behavior |
|---|---|---|
setHasUserConsent(bool) |
Before initialize |
If not called, the SDK does not restrict data collection |
setIsAgeRestrictedUser(bool) |
Before initialize |
If not called, the SDK assumes the user is not a child |
setDoNotSell(bool) |
Before initialize |
If not called, the SDK allows data usage by default |
📌 Regarding TopOn Mediation Platform: If you are using TopOn as your Mediation Platform, COPPA and CCPA compliance configurations must be set in the TopOn dashboard.
// Must be called before McSdk.initialize()
McSdk.setPrivacySettingEnable(true);
⚠️ Note: This method must be called before
McSdk.initialize(), otherwise it will not take effect.