Add a Rvolve Ad Block to 'DoubleClick for Publishers'

Rvolve Ads should work out of the box, however the geographic targeting can be improved if you are on a results page that has a user-entered location string.

The following steps will let you target your ads geographically as finely as the user has entered, e.g. postcode, zipcode, or even street house number level.

1. Find the ID of the tags which holds the user's entered location.
2. You can do this by viewing the page source of your page (CTRL-U when browsing is a shortcut), after having entered a location, and then search for that location in the source code. The tag may have an id="", and if so, we want the value of that tag ID.
3. Add the following lines in your Rvolve ad-block code immediately before "var rP = {", and replace the rPlace and locationTagId with your own tag ID and default location:

var rPlace = '[DEFAULT LOCATION e.g. London OR LEAVE BLANK FOR IP LOCATION]';
var locationTagId = '[ID OF YOUR LOCATION INPUT TAG e.g. search-box]';
try
{
  if(!parent.document.getElementById(locationTagId)) {
  } else {
    rPlace = parent.document.getElementById(locationTagId).value;
  }
}
catch( e )
{}

4. Then replace the line "place" : "", //Only use if no lat/lon, set lat/lon to 0, with:

"place" : rPlace, //Only use if no lat/lon, set lat/lon to 0

5. Set the latitude and longitude to 0:

"lat": 0, //Optional: Replace with your latitude
"lon": 0, //Optional: Replace with your longitude