# SetPlatformGameId(string, string)

> Sets the game identifier for the specified platform.

## Definition

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

```csharp
public static void SetPlatformGameId(string platformName, string gameId)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;
