How can i show a floating sticky 300x250 Adsense Ad on right side bar of topic page above the fold?

let me try this. where do I put this code in discourse ? if in after head. please update the code so that I can put it in site head without any js or syntax errors.
and what other dependencies or scripts are needed to make this fully run?