Yes that is simple too!
Once you have downloaded a template, simply open it's html page in your HTML editor. Once open, create a new PHP page then simple copy the contents of the HTML file across to the PHP file, then save the PHP file in exactly the same place.
Then you can use PHP functions within the template, such as the include for your ads etc.
Regards,
Zenax