# AdvertisementSettings

> Editor API for the Unity Services editor feature. Normally UnityAds is enabled from the Services window, but if writing your own editor extension, this API can be used.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Advertisements](/engine/6000.6/script-reference/unityeditor/advertisements.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static class AdvertisementSettings
```

## Static Properties

| Property                                                                                                                       | Description                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
| [enabled](/engine/6000.6/script-reference/unityeditor/advertisements/advertisementsettings/enabled.md)                         | Global boolean for enabling or disabling the advertisement feature.                |
| [initializeOnStartup](/engine/6000.6/script-reference/unityeditor/advertisements/advertisementsettings/initializeonstartup.md) | Controls if the advertisement system should be initialized immediately on startup. |
| [testMode](/engine/6000.6/script-reference/unityeditor/advertisements/advertisementsettings/testmode.md)                       | Controls if testing advertisements are used instead of production advertisements.  |

## Static Methods

| Method                                                                                                                     | Description                                                |
| -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [GetGameId](/engine/6000.6/script-reference/unityeditor/advertisements/advertisementsettings/getgameid.md)                 | Gets the game identifier specified for a runtime platform. |
| [GetPlatformGameId](/engine/6000.6/script-reference/unityeditor/advertisements/advertisementsettings/getplatformgameid.md) | Gets the game identifier specified for a runtime platform. |
| [SetGameId](/engine/6000.6/script-reference/unityeditor/advertisements/advertisementsettings/setgameid.md)                 | Sets the game identifier for the specified platform.       |
| [SetPlatformGameId](/engine/6000.6/script-reference/unityeditor/advertisements/advertisementsettings/setplatformgameid.md) | Sets the game identifier for the specified platform.       |
