How to serve ads using a CMS or Javascript?
Based on the discussion here, I am looking for an easy-to-implement solution for serving ads on clients' website开发者_JAVA百科s. The code changes on a regular basis, as we test Adsense and other ad networks. Naturally, I do not want to keep bothering the client do ask them to change the code on the site. I want to put a bit of code on their site that stays the same and change it on our end depending on the ad network being used.
A CMS solution has been suggested (drupal, CMSMS, Tiki, etc) however would that not require the CMS to be installed on the clients' sites? Is it possible to use a CMS to generate a couple lines of code that could then serve Adsense, etc dynamically?
Also, I understand that Javascript may be another option. Would that be simpler to implement than a CMS solution? Would it be secure?
Large networks often iframe the ads to prevent the publisher's CSS or JavaScript affecting the rendering of the ad in any way.
Therefore, at a basic level, all the publisher needs is a bit of JavaScript that sets the iframe with the relevant variables (i.e. which ad to show). The JavaScript to do that is hosted by you so that any updates to the code are propagated to your clients.
Using a CMS like Drupal to host the ads would be pointless and slow. Cache the ad pages and set the right headers (like no etags, etc).
Then you need to push everything (HTML, image and JavaScript) onto a CDN like Amazon's S3.
You can have a look At Google DFP and OIO publishers Pro Version.
精彩评论