Advertising: Editing the ads.xml file directly
There are two formats for the ads.xml file, version 1.0 and version 2.0. As of FDSE version 2.0.0.0037, the script can read both versions, but it will only save to version 2.0. In version 2.0, all values are url-encoded. This corrects for character-escape bugs, such as having a keyword with a ">" character.
The file looks like this:
<FDSE:Ads placement=" 1 3 4"> <FDSE:Ad version="2.0" ident="1" weight="10" keywords="tax income irs" kw="0" placement="1234" start_date="949963195"> <a href="http://www.bachsys.com/cgi-bin/quicken.pl?xav"> <img src="http://www.bachsys.com/x.GIF" border="0" width="468" height="60"> </a> </FDSE:Ad> <FDSE:Ad version="2.0" ident="2" weight="100" keywords="" kw="0" placement="1234" start_date="949963527"> <a href="http://www.cgi-resources.com/">CGI Resources</A> </FDSE:Ad> <!-- Add more FDSE:Ad nodes as needed --> <FDSE:Ad>...</FDSE:Ad> </FDSE:Ads>
FDSE:Ads - this is just the tag that wraps all data. It has one attribute, placement, and one child element, FDSE:Ad.
placement - a string of text containing the numbers 1 through 4. The presence of a number indicates that this ad location should contain an ad. The four possible ad locations are shown on the banner ads page in the admin screen.
FDSE:Ad - this describes a single ad. Its attributes are version, ident, weight, keywords, and start_date.
version - node version; currently just "1.0" and is ignored by the script.
ident - integer that should increase from 1 with no gaps. Used for tracking impressions.
weight - non-negative integer; see Advertising: Using weights for more information
keywords - a space-delimited list of keywords. The keywords should be lower case. See Advertising: Using keywords for more information.
kw - when 0, the advertisement will appear for all searches; when 1, the advertisement will appear only for a keyword match.
placement - a string including numbers 1, 2, 3, and/or 4, indicating in which ad positions this advertisement may appear.
start_date - the time that the ad was creating, expressed as the number of seconds since 1970. Used for calculating impressions over time
Body - The body of the FDSE:Ad tag contains the HTML text that will be shown. All leading and trailing whitespace will be trimmed; all internal whitespace will be replaced with spaces.
"Advertising: Editing the ads.xml file directly" http://www.xav.com/scripts/search/help/1045.html