Version 5.0
AdvertServe User Manual :: v5.0

Keyword Targeting - JSP Code Integration

Original Code

You should now have a generated JSP zone code from the code wizard that looks like the following:


<advertpro:banner host="adserver.example.com" port="80" path="/" zone="123" publisher="0" width="468" height="60" hspace="0" vspace="0" border="0" alt="Click Here!" target="_blank">
</advertpro:banner>

Modified Code

What you need to do is add a parameter to this code on your search results page to pass the keywords that were searched for to the ad server.

Lets look at an example of the above code modified to pass the value blue coat,windbreaker,parka to indicate that the phrase blue coat along with the keywords windbreaker and parka were searched for.


<advertpro:banner host="adserver.example.com" port="80" path="/" zone="123" publisher="0" width="468" height="60" hspace="0" vspace="0" border="0" alt="Click Here!" target="_blank">
  <advertpro:keyword value="blue coat"/>
  <advertpro:keyword value="windbreaker"/>
  <advertpro:keyword value="parka"/>
</advertpro:banner>

Warning Warning

Parameter values will be URL encoded automatically, so you should not manually encode them.