Implementing unity ads 2.0 in unity

I implemented unity ads 2.0 in one of my games and it works fine, the unique problem is that it doesnt work in unity editor. And now im trying to implement unity ads 2.0 in my other game and i dont know why it doesnt work.

Here is my code that i put in my Ad Gameobject.

Hi,

Note that you need a separate game ID for each platform (iOS & Android).

Have you switched to the correct platform from the build settings?

Does the console log output any errors?