After reviewing a discussion on how to dynamically change code on clients' websites for serving ads, I am in search of an easy-to-implement solution. The code is frequently updated as we experiment with different ad networks like Adsense. Ideally, I want to avoid constantly asking the client to modify the code on their site. Instead, I am looking to place a static piece of code on their website that we can update on our end depending on the selected ad network.
A content management system (CMS) solution has been proposed (such as drupal, CMSMS, Tiki, etc), but wouldn't that require installing the CMS on the clients' sites? Is it feasible to utilize a CMS to generate a few lines of code that could serve Adsense dynamically?
Additionally, I have considered using Javascript as another option. Would this be easier to implement than a CMS solution? Are there security concerns to address when using Javascript for dynamic ad serving?