Unity ads with mediation code generator not working

Ad the title says the built in code generator for unity ads with mediation isn’t working, all I get is the following error message: Error loading window. No Ad units were found. even though I have the 6 default ad units and one more that I added in the dashboard after seeing the error for the first time. My project is connected to unity services. Any help is appreciated.

which version are you using?