Is it possible to put banner ads in an app without a layout xml.

I have a puzzle game code and it has no layout xml. i know i can put interstials in it but i really want banners as well. i just dont know how to do it without a layout xml.

Is it possible to create this in the activity??

I am not all knowing in android i just mess around and make what i can with little knowledge and googling but i cannot find an answer to this.


i want to put revmob or startapp in by the way