I have imported the advertisement package from the package manager, turned the ads service on, and added a script:
string gameId = "correctGameId";
bool testAds = true;
void Start(){
Advertisement.Initialize(gameId, testAds);
}
void Click (){
if(Advertisement.isInitialised){
Advertisement.Show();
}
}
This Click function is called from a button's OnClick event.
Every time I play in the editor and click the button, nothing happens.
How can I make my advertisement show?
Advertisement.isInitialisedinside that method? \$\endgroup\$