Below is the code for managing the Unity ad I'm trying to load when the Player selects the Continue button attached to the canvas in the scene. I've checked the game ID, the placement ID for the ad itself and ensured the button has the correct function attached. I keep receiving the Ad Failed warning message stipulated at the bottom of the code when the ad fails to load. But I cannot work out why. All the typical issues seem to be fine. But the ad is still failing to load. I'm on Android platform using the correct ID (Same problem with IOS) and it makes no difference. Can anyone see any issue from the code below?
I'm trying to load a rewarded ad that is already set up on Unity ads on my Unity account. I've installed the Advertisement package from the package manager too.
↧