Implementing Ads 4.0

Please redo the entire Implementing Ads lecture in 4.0 for us starting with 4.0 and later. It’s very tedious to now try and go back and forth and figure out what we need to and do not need to add.

1 Like

I have brought this to Nathan’s attention

One more thing. The code from the lecture works in the Unity Editor only. If you run your game on an android phone then Ads doesn’t start, because it doesn’t load yet. To fix it, update your AdManager.cs:

    public void ShowAd(GameOverHandler gameOverHandler)
    {
        _gameOverHandler = gameOverHandler;
        
        Advertisement.Load(_placementId, this);
    }

    public void OnUnityAdsAdLoaded(string placementId)
    {
        Advertisement.Show("rewardedVideo", this);
    }

“_placementId” is your Android game ID.

1 Like

Wow! You saved my day! gamedev.tv should update their unity implementing ads lection. To many changes came out already.

1 Like

We’re working on it… the changes are coming faster than we expected.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms