# SetGameId(RuntimePlatform, string)

> Sets the game identifier for the specified platform.

## Definition

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

```csharp
public static void SetGameId(RuntimePlatform platform, string gameId)
```

### Parameters

**** (\[RuntimePlatform]\(/engine/6000.5/script-reference/unityengine/runtimeplatform)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;
