Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.
Read time 1 minuteLast updated 10 days ago

Definition

public static class AdvertisementSettings

Static Properties

Property

Description

enabledGlobal boolean for enabling or disabling the advertisement feature.
initializeOnStartupControls if the advertisement system should be initialized immediately on startup.
testModeControls if testing advertisements are used instead of production advertisements.

Static Methods

Method

Description

GetGameIdGets the game identifier specified for a runtime platform.
GetPlatformGameIdGets the game identifier specified for a runtime platform.
SetGameIdSets the game identifier for the specified platform.
SetPlatformGameIdSets the game identifier for the specified platform.