Put ads on my website

i just use google adsense to show ads on my website but after i put code in my html page after few hour later google informed me that your hosting policy don’t allow to put ads on your websites .

so in infinityfree hosting having any kind of website policy that don’t allow to put ads on own website??

This might help you:
https://infinityfree.net/support/can-i-put-ads-on-my-own-website/