This plugin let you use stub images instead of real Google AdSense ads while running web project in development mode.
To checkout the latest version of the plugin to your Rails project run the following command in the root directory of the project:
$ svn co http://doodle-ad-stub.googlecode.com/svn/trunk/ vendor/plugins/doodle-ad-stub
Open terminal and run following command in the root directory of the plugin (vendor/plugins/doodle_ad_stub)
$ ruby ./install.rb
This will create google_adsense/ subdirectory in public/images/ directory of your project, and copy sample images of most available Google AdSense ad formats there.
File ppds_doodle_ad_stub.rb will be placed to config/initializers/ directory of your project, don't forget to review it and correct settings.
Ppds::DoogleAdStub.client_id = "pub-0557047985484196"
Ppds::DoogleAdStub.color_border = "666666"
Ppds::DoogleAdStub.color_bg = "DDDDDD"
Ppds::DoogleAdStub.color_link = "0000FF"
Ppds::DoogleAdStub.color_text = "000000"
Ppds::DoogleAdStub.color_url = "008800"
Ppds::DoogleAdStub.ui_features = "rc:6"
Ppds::DoogleAdStub.language = "en"
Ppds::DoogleAdStub.cpa_choice = nil
Ppds::DoogleAdStub.ad_channel = nil
You will definitely want to change at least Ppds::DoogleAdStub.tracker_id parameter to match your Google AdSense ID. The rest settings used to customize the appearance of the ads and are optional.
<%= google_ad(width, height, type) %>
where width and height defines size of the ad and type if not explicitly defined defaults to "text".
<%= google_ad(234, 60, "text") %>
Copyright © 2007
Paul Philippov,
PPDS.WS