How to give Adsense within my Facebook application

How can i give adsense within my Facebook application. Does Google allow me to show up its ads within the app. And also does Facebook allow me to do this. Is there a particular code that i have to include in my page code without any complication?
Thanks in advance :slight_smile: