Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

My unity adverts aren't working

$
0
0
I'm trying to set up Unity ads and I'm checking out the different types. I can add regular advert fine. The problem is with the banner advert. - The Banner advert gives me an error in; * Advertisement.Banner.Show(placementId); * Error CS0117 'Advertisement' does not contain a definition for 'Banner' - Now the tutorial I'm using is the unity tutorial and I've copied it word for word and I don't know why it's not working. Also when I try and do reward adverts, they work with the basic code but when I add the code for rewards "AddListener" doesn't have a definition: * Error CS0117 'Advertisement' does not contain a definition for 'AddListener' - I've attached an image of the code and a screenshot and YT link of the tutorials. I just want to know why it's correct on the tutorial but incorrect on my version. https://www.youtube.com/watch?v=l9HZyNMLd_w https://www.youtube.com/watch?v=8K6TXffmVWs ![alt text][1] ![alt text][2] [1]: /storage/temp/157115-code.jpg [2]: /storage/temp/157117-tutorial.jpg

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>