# GoogleMobileAds.Api.RequestConfiguration

Global configuration used for every [AdRequest](https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/ad-request#class_google_mobile_ads_1_1_api_1_1_ad_request).

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration_1a3eacf5c38e6176f32f11d11e4ee69c28()` ||
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration_1a410cdea94a2e7248afa68c20b41afc43(https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration requestConfiguration)` Creates a [RequestConfiguration](https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration) from a given [RequestConfiguration](https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration). ||

| ### Public attributes ||
|---|---|
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration_1a2abab8e9f7e1a0f8f2a32e443b2fb0c1` | `https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/api#namespace_google_mobile_ads_1_1_api_1a4a6831fe87f0559d34e14c56650db1fc` Indicates the publisher specified that the ad request should receive age-restricted treatment. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration_1a496ce8a625dde7f98caedd5a3a2701d1` | `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating` A maximum ad content rating. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration_1a65b5a2706ab9cd46fdbb16f6a1335ef8` | `bool` Controls whether the Google Mobile Ads SDK publisher first-party ID, formerly known as the same app key, is enabled. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration_1aa208e4d390f23bf8c862ab3b06ee3ec3` | `https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/api#namespace_google_mobile_ads_1_1_api_1a1e90d8750ed117fee66f6294d0d4bcc1` This property lets you specify the personalization treatment that applies to subsequent ad requests. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration_1a4408b16a6fe4f1d4142f3f6e241acdee` | `https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/api#namespace_google_mobile_ads_1_1_api_1a720208a888e53eaa0b1ec5ca48df9241` Deprecated. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration_1a5112d78327dc3c7cc2eb85b6e3dfa121` | `https://developers.google.com/admob/unity/reference/namespace/google-mobile-ads/api#namespace_google_mobile_ads_1_1_api_1a79e0d49fd715bd7cedeaa7bcb72cdd0c` Deprecated. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration_1a3728fd66952b7b215d983e6af65d2be8 = new List()` | `List< string >` The test device IDs corresponding to test device that will always request test ads. |

## Public attributes

### AgeRestrictedTreatment

```c#
AgeRestrictedTreatment AgeRestrictedTreatment
```
Indicates the publisher specified that the ad request should receive age-restricted treatment.

### MaxAdContentRating

```c#
MaxAdContentRating MaxAdContentRating
```
A maximum ad content rating.

AdMob ads returned for these requests have a content rating at or below the level set.

### PublisherFirstPartyIdEnabled

```c#
bool PublisherFirstPartyIdEnabled
```
Controls whether the Google Mobile Ads SDK publisher first-party ID, formerly known as the same app key, is enabled.

The value set persists across app sessions once [MobileAds.SetRequestConfiguration()](https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/mobile-ads#class_google_mobile_ads_1_1_api_1_1_mobile_ads_1a6bede723fff4ce9b21c8ff32ec3324f5) is called.

### PublisherPrivacyPersonalizationState

```c#
PublisherPrivacyPersonalizationState PublisherPrivacyPersonalizationState
```
This property lets you specify the personalization treatment that applies to subsequent ad requests.

### TagForChildDirectedTreatment

```c#
TagForChildDirectedTreatment TagForChildDirectedTreatment
```
Deprecated.

Use AgeRestrictedTreatment instead.

This property allows you to specify whether you would like your app to be treated as child-directed for purposes of the Children's Online Privacy Protection Act (COPPA) - <http://business.ftc.gov/privacy-and-security/childrens-privacy>.

If you set this property to True, you will indicate that your app should be treated as child-directed for purposes of the Children's Online Privacy Protection Act (COPPA).

If you set this property to False, you will indicate that your app should not be treated as child-directed for purposes of the Children's Online Privacy Protection Act (COPPA).

If you do not set this property, or set this method to Unspecified ad requests will include no indication of how you would like your app treated with respect to COPPA.

By using this property, you certify that this notification is accurate and you are authorized to act on behalf of the owner of the app. You understand that abuse of this setting may result in termination of your Google account.

Note: it may take some time for this designation to be fully implemented in applicable Google services.

### TagForUnderAgeOfConsent

```c#
TagForUnderAgeOfConsent TagForUnderAgeOfConsent
```
Deprecated.

Use AgeRestrictedTreatment instead.

Indicates the publisher specified that the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent.

### TestDeviceIds

```c#
List< string > TestDeviceIds = new List()
```
The test device IDs corresponding to test device that will always request test ads.

Returns an empty list if test device IDs were not previously set.

## Public functions

### RequestConfiguration

```c#
 RequestConfiguration()
```

### RequestConfiguration

```c#
 RequestConfiguration(
  RequestConfiguration requestConfiguration
)
```
Creates a [RequestConfiguration](https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration) from a given [RequestConfiguration](https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration).

<br />

Details Parameters `requestConfiguration` The [RequestConfiguration](https://developers.google.com/admob/unity/reference/class/google-mobile-ads/api/request-configuration#class_google_mobile_ads_1_1_api_1_1_request_configuration) parameter to copy.