Okay, attached is my pal with google adsense in it, just rename the pal to what you want and change the extension to php. You should be able to change the code in it to your own, let me know how it works out.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.