Do I need to include gameid in the code for advertising purpose(unity ads)?

I did not include gameid inside the code for ads integration. I just use
If
Advertisement.Isready…
Advertisement.show()

Is that ok? If i dont insert gameid inside code, what would happen?
I am really new to unity, thanks for helping.

Yes, the gameID is needed so you can earn revenue for the ads.