Data Privacy Compliance

The NimbusAdsManager can be configured as necessary to respect users consent for data collection and privacy.

COPPA

If your app is governed by COPPA (Children's Online Privacy Protection Act) regulations established by the USA FTC, you must call the following function after initialization so the SDK will configure itself to send that information to demand partners.

NimbusManager.Instance.SetCoppa(true);

GDPR

The Nimbus SDK includes support for the IAB TCFv2 framework. When working with a Consent Management Provider SDK in app you can pass the consent string for all outbound request

NimbusManager.Instance.SetGdprConsent("my_cmp_generated_consent_string");

CCPA

The app can also manage user consent for privacy in the United States, e.g. CCPA (California Consumer Privacy Act), by setting the privacy string.

The CCPA privacy string is a 4 character string in the following format where '-' denotes an unknown value:

PositionValueDescription

0

Integer

Privacy string version

1

Y, N, -

Publisher has provided explicit user notice

2

Y, N, -

User opted out of sale

3

Y, N, -

Publisher operating under the Limited Service Provider Agreement

If the user does not fall within a US Privacy jurisdiction, hyphens should be used in the last three positions, generating this privacy string: "1---"

NimbusManager.Instance.SetUsPrivacyString("my_ccpa_string");

Unity Example

using Nimbus.Runtime.Scripts;
using UnityEngine;

public class GameManager : MonoBehaviour {
	public static GameManager Instance;

	private void Awake() {
		if (Instance == null) {
			Instance = this;
			DontDestroyOnLoad(gameObject);
		} else if (Instance != this) {
			Destroy(gameObject);
		}
	}


	/// <summary>
	/// Setting any of the regulation data once on the NimbusManager will
	/// propagate the regulatory data in all outbound
	/// RTB requests to demand partners
	/// </summary>
	private void OnEnable() {
		NimbusManager.Instance.SetCoppa(true);
		NimbusManager.Instance.SetGdprConsent("my_cmp_generated_consent_string");
		NimbusManager.Instance.SetUsPrivacyString("my_ccpa_string");
	}
}

Last updated