# firebase::gma::ump Namespace

# firebase::gma::ump

API for User Messaging Platform.

## Summary

The User Messaging Platform (UMP) SDK is Google's option to handle user privacy and consent in mobile apps.

**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** The [firebase::gma::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/gma/ump.md.txt#namespacefirebase_1_1gma_1_1ump) namespace has been deprecated and renamed to [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump).

| ### Enumerations ||
|---|---|
| `ConsentDebugGeography{ kConsentDebugGeographyDisabled = 0, kConsentDebugGeographyEEA, kConsentDebugGeographyNonEEA }` | enum**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace. Debug values for testing geography. |
| `ConsentFormError{ kConsentFormSuccess = 0, kConsentFormErrorTimeout, kConsentFormErrorInternal, kConsentFormErrorUnknown, kConsentFormErrorUnavailable, kConsentFormErrorAlreadyUsed, kConsentFormErrorInvalidOperation, kConsentFormErrorOperationInProgress }` | enum**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace. Errors when loading or showing the consent form. |
| `ConsentFormStatus{ kConsentFormStatusUnknown = 0, kConsentFormStatusUnavailable, kConsentFormStatusAvailable }` | enum**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace. Status of the consent form, whether it is available to show or not. |
| `ConsentRequestError{ kConsentRequestSuccess = 0, kConsentRequestErrorInvalidAppId, kConsentRequestErrorNetwork, kConsentRequestErrorInternal, kConsentRequestErrorMisconfiguration, kConsentRequestErrorUnknown, kConsentRequestErrorInvalidOperation, kConsentRequestErrorOperationInProgress }` | enum**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace. Errors that can occur during a RequestConsentInfoUpdate operation. |
| `ConsentStatus{ kConsentStatusUnknown = 0, kConsentStatusRequired, kConsentStatusNotRequired, kConsentStatusObtained }` | enum**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace. Consent status values. |
| `PrivacyOptionsRequirementStatus{ kPrivacyOptionsRequirementStatusUnknown = 0, kPrivacyOptionsRequirementStatusNotRequired, kPrivacyOptionsRequirementStatusRequired }` | enum**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace. Whether the privacy options need to be displayed. |

| ### Typedefs ||
|---|---|
| `FormParent` | typedef `void *` This is a platform specific datatype that is required to show a consent form on screen. |

| ### Classes ||
|---|---|
| [firebase::gma::ump::ConsentInfo](https://developers.google.com/admob/cpp/reference/class/firebase/gma/ump/consent-info.md.txt) | Consent Information class for the User Messaging Platform SDK. |

| ### Structs ||
|---|---|
| [firebase::gma::ump::ConsentDebugSettings](https://developers.google.com/admob/cpp/reference/struct/firebase/gma/ump/consent-debug-settings.md.txt) | Debug settings for `ConsentInfo::RequestConsentInfoUpdate()`. |
| [firebase::gma::ump::ConsentRequestParameters](https://developers.google.com/admob/cpp/reference/struct/firebase/gma/ump/consent-request-parameters.md.txt) | Parameters for the `ConsentInfo::RequestConsentInfoUpdate()` operation. |

## Enumerations

### ConsentDebugGeography

```c++
 ConsentDebugGeography
```
Debug values for testing geography.

**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace.

| Properties ||
|---|---|
| `kConsentDebugGeographyDisabled` | Disable geography debugging. |
| `kConsentDebugGeographyEEA` | Geography appears as in EEA (European Economic Area) for debug devices. |
| `kConsentDebugGeographyNonEEA` | Geography appears as not in EEA for debug devices. |

### ConsentFormError

```c++
 ConsentFormError
```
Errors when loading or showing the consent form.

**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace.

| Properties ||
|---|---|
| `kConsentFormErrorAlreadyUsed` | This form was already used. |
| `kConsentFormErrorInternal` | An internal error occurred. |
| `kConsentFormErrorInvalidOperation` | An invalid operation occurred. Try again. |
| `kConsentFormErrorOperationInProgress` | The operation is already in progress. Call `ConsentInfo::LoadConsentFormLastResult()` or `ConsentInfo::ShowConsentFormLastResult()` to get the status. |
| `kConsentFormErrorTimeout` | The load request timed out. Try again. |
| `kConsentFormErrorUnavailable` | The form is unavailable. |
| `kConsentFormErrorUnknown` | An unknown error occurred. |
| `kConsentFormSuccess` | The operation succeeded. |

### ConsentFormStatus

```c++
 ConsentFormStatus
```
Status of the consent form, whether it is available to show or not.

**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace.

| Properties ||
|---|---|
| `kConsentFormStatusAvailable` | The consent form is available. Call `ConsentInfo::ShowConsentForm()` to display it. |
| `kConsentFormStatusUnavailable` | The consent form is unavailable. Call `ConsentInfo::LoadConsentForm()` to load it. |
| `kConsentFormStatusUnknown` | Status is unknown. Call `ConsentInfo::RequestConsentInfoUpdate()` to update this. |

### ConsentRequestError

```c++
 ConsentRequestError
```
Errors that can occur during a RequestConsentInfoUpdate operation.

**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace.

| Properties ||
|---|---|
| `kConsentRequestErrorInternal` | An internal error occurred. |
| `kConsentRequestErrorInvalidAppId` | Invalid GMA [App](https://developers.google.com/admob/cpp/reference/class/firebase/app.md.txt#classfirebase_1_1_app) ID specified in AndroidManifest.xml or Info.plist. |
| `kConsentRequestErrorInvalidOperation` | An invalid operation occurred. Try again. |
| `kConsentRequestErrorMisconfiguration` | A misconfiguration exists in the UI. |
| `kConsentRequestErrorNetwork` | A network error occurred. |
| `kConsentRequestErrorOperationInProgress` | The operation is already in progress. Use `ConsentInfo::RequestConsentInfoUpdateLastResult()` to get the status. |
| `kConsentRequestErrorUnknown` | An unknown error occurred. |
| `kConsentRequestSuccess` | The operation succeeded. |

### ConsentStatus

```c++
 ConsentStatus
```
Consent status values.

**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace.

| Properties ||
|---|---|
| `kConsentStatusNotRequired` | Consent is not required. |
| `kConsentStatusObtained` | Consent was required, and has been obtained. |
| `kConsentStatusRequired` | Consent is required, but not obtained. |
| `kConsentStatusUnknown` | Unknown status, e.g. prior to calling Request, or if the request fails. |

### PrivacyOptionsRequirementStatus

```c++
 PrivacyOptionsRequirementStatus
```
Whether the privacy options need to be displayed.

**[Deprecated.](https://developers.google.com/admob/cpp/reference/deprecated/deprecated.md.txt)** This enum has been moved to the [firebase::ump](https://developers.google.com/admob/cpp/reference/namespace/firebase/ump.md.txt#namespacefirebase_1_1ump) namespace.

| Properties ||
|---|---|
| `kPrivacyOptionsRequirementStatusNotRequired` | Privacy options are not required to be shown. |
| `kPrivacyOptionsRequirementStatusRequired` | Privacy options must be shown. Call `ConsentInfo::ShowPrivacyOptionsForm()` to fulfil this requirement. |
| `kPrivacyOptionsRequirementStatusUnknown` | Privacy options requirement status is unknown. Call `ConsentInfo::RequestConsentInfoUpdate()` to update. |

## Typedefs

### FormParent

```c++
void * FormParent
```
This is a platform specific datatype that is required to show a consent form on screen.

The following defines the datatype on each platform:

- Android: A `jobject` which references an Android Activity.
- iOS: An `id` which references an iOS UIViewController.

A void pointer for stub classes.

<br />