Updated: 5th October 2011
If you own a Classified Ads website with public advertisements, include your listings in Trovit! Just follow these simple steps:
Upon receiving your feed, we will index your ads in Trovit as soon as possible.
If you have questions or concerns, please don’t hesitate to contact us!
Here are some simple guidelines for preparing an XML feed to include your ads on Trovit. If you would like additional information about the XML format, check out Wikipedia.
The feed should be written in UTF-8.
The file has a main <trovit> tag, which will include a set of ads: <ad></ad>. Each block (<ad></ad>) contains optional and required fields.
The following fields are required in the feed as they contain the minimum amount of information necessary for our system to include your ads in Trovit.
<url>
<language code="es"><![CDATA[...]]></language>
<language code="en"><![CDATA[...]]></language>
<language code="fr"><![CDATA[...]]></language>
...
</url>
<title>
<language code="es"><![CDATA[...]]></language>
<language code="en"><![CDATA[...]]></language>
<language code="fr"><![CDATA[...]]></language>
...
</title>
See more information about this tag <language>.
<content>
<language code="es"><![CDATA[...]]></language>
<language code="en"><![CDATA[...]]></language>
<language code="fr"><![CDATA[...]]></language>
...
</content>
See more information on the <language> tag.
Optional fields don’t have to be included if they don’t have any content. But if you do have this information on your site, don’t hesitate to add it to the XML feed. The Trovit algorithm prioritizes quality, so the more information your ad includes, the better your position in our search results.
<activities>
<language code="es"><![CDATA[...]]></language>
<language code="en"><![CDATA[...]]></language>
<language code="fr"><![CDATA[...]]></language>
...
</activities>
More information about the <language> tag.
<transport_information>
<language code="es"><![CDATA[...]]></language>
<language code="en"><![CDATA[...]]></language>
<language code="fr"><![CDATA[...]]></language>
...
</transport_information>
See more information about the <language> tag.
In all fields, the distance unit must be specified using the ‘unit’ attribute:
<distance_to>
<beach unit="meters"><![CDATA[...]]></beach>
</distance_to>
‘Unit’ values are: “meters”, “kilometers” or “miles”.
<zone_information>
<language code="es"><![CDATA[...]]></language>
<language code="en"><![CDATA[...]]></language>
<language code="fr"><![CDATA[...]]></language>
...
</zone_information>
See more information about the <language> tag.
<rate period="weekly">
<low_season><![CDATA[...]]></low_season>
<mid_season><![CDATA[...]]></mid_season>
<high_season><![CDATA[...]]></high_season>
</rate>
When prices are specified in a currency that isn’t the country’s official currency, you must use the ‘currency’ attribute. Values will be defined by the ISO-4217 rule. This way, Trovit can make the conversion to the official currency.
<rate period="weekly" currency="USD">
<low_season><![CDATA[...]]></low_season>
<mid_season><![CDATA[...]]></mid_season>
<high_season><![CDATA[...]]></high_season>
</rate>
This will specify the prices by season for a weekly rental, in dollars. Don’t include the currency symbol next to the value.
<extra_charges>
<language code="es"><![CDATA[...]]></language>
<language code="en"><![CDATA[...]]></language>
<language code="fr"><![CDATA[...]]></language>
...
</extra_charges>
See more information about the <language> tag.
<payment_information>
<language code="es"><![CDATA[...]]></language>
<language code="en"><![CDATA[...]]></language>
<language code="fr"><![CDATA[...]]></language>
...
</payment_information>
See more information about the <language> tag.
<booking_url>
<language code="es"><![CDATA[...]]></language>
<language code="en"><![CDATA[...]]></language>
<language code="fr"><![CDATA[...]]></language>
...
</booking_url>
<availability>
<month value="..." year="..."><![CDATA[...]]></month>
<month value="..." year="..."><![CDATA[...]]></month>
</availability>
<check_in_week_day><![CDATA[1]]></check_in_week_day>
In this case, check-in is on the first day of the week, i.e. Monday.
<floor_area unit="feet"><![CDATA[...]]></floor_area>
The ‘unit’ values that you can use are: “meters” o “feet”.
<plot_area unit="hectares"><![CDATA[...]]></plot_area>
The ‘unit’ values you can use in this case are: “meters”, “feet”, “acres” o “hectares”.
<pictures>
<picture>
<picture_url><![CDATA[...]]></picture_url>
<picture_title><![CDATA[...]]>/picture_title>
</picture>
<picture>
<picture_url><![CDATA[...]]></picture_url>
<picture_title><![CDATA[...]]>/picture_title>
</picture>
...
</pictures>
The image that Trovit displays will be the first of the images included.
Choose the one that best showcases the property, as this has a large impact on user behaviour.
Trovit doesn’t allow the inclusion of corporate images with messages such as ‘Image not available’.
If Trovit detects images like those, it reserves the right to block your ads.
Once your ads are inserted in Trovit, the images associated to the ads can’t be modified, not even the next time we read your feed, so make sure the ads you add to your feed include the correct images.
<comments>
<comment code="...">
<comment_title><![CDATA[...]]></comment_title>
<comment_description><![CDATA[...]]></comment_description>
</comment>
<comment code="...">
<comment_title><![CDATA[...]]></comment_title>
<comment_description><![CDATA[...]]></comment_description>
</comment>
...
</comments>
The following fields must be filled out on a true/false basis. See technical specs to know which values denote ‘false’ and which ‘true’.
The XML feed should look like this:
<?xml version="1.0" encoding="utf-8"?>
<trovit>
<ad>
<id><![CDATA[...]]></id>
<country><![CDATA[...]]></country>
<url>
<language code="..."><![CDATA[...]]></language>
</url>
<title>
<language code="..."><![CDATA[...]]></language>
</title>
<content>
<language code="..."><![CDATA[...]]></language>
</content>
<type><![CDATA[...]]></type>
<property_type><![CDATA[...]]></property_type>
<activities>
<language code="..."><![CDATA[...]]></language>
</activities>
<transport_information>
<language code="..."><![CDATA[...]]></language>
</transport_information>
<distance_to>
<beach unit="meters"><![CDATA[...]]></beach>
<center unit="meters"><![CDATA[...]]></center>
<ski_slopes unit="meters"><![CDATA[...]]>< /ski_slopes>
<golf_course unit="meters"><![CDATA[...]]></golf_course>
</distance_to>
<zone_information>
<language code="..."><![CDATA[...]]></language>
</zone_information>
<address><![CDATA[...]]></address>
<neighborhood><![CDATA[...]]></neighborhood>
<city_area><![CDATA[...]]></city_area>
<city><![CDATA[...]]></city>
<region><![CDATA[...]]></region>
<zone><![CDATA[...]]></zone>
<postcode><![CDATA[...]]></postcode>
<latitude><![CDATA[...]]></latitude>
<longitude><![CDATA[...]]></longitude>
<orientation><![CDATA[...]]></orientation>
<contact_email><![CDATA[...]]></contact_email>
<rate period="weekly" currency="USD">
<low_season><![CDATA[...]]></low_season>
<mid_season><![CDATA[...]]></mid_season>
<high_season><![CDATA[...]]></high_season>
<extra_charges>
<language code="..."><![CDATA[...]]></language>
</extra_charges>
<payment_information>
<language code="..."><![CDATA[...]]></language>
</payment_information>
<booking_url>
<language code="..."><![CDATA[...]]></language>
</booking_url>
<availability>
<month value="..." year="..."><![CDATA[...]]></month>
<month value="..." year="..."><![CDATA[...]]></month>
<month value="..." year="..."><![CDATA[...]]></month>
<month value="..." year="..."><![CDATA[...]]></month>
</availability>
<check_in_week_day><![CDATA[...]]></check_in_week_day>
<check_in_time><![CDATA[...]]></check_in_time>
<check_out_time><![CDATA[...]]></check_out_time>
<minimum_stay><![CDATA[...]]></minimum_stay>
<max_people><![CDATA[...]]></max_people>
<complete_rental><![CDATA[...]]></complete_rental>
<online_reservation><![CDATA[...]]></online_reservation>
<reservation_guarantee><![CDATA[...]]></reservation_guarantee>
<floor_area unit="feet"><![CDATA[...]]></floor_area>
<rooms><![CDATA[...]]></rooms>
<bedrooms><![CDATA[...]]></bedrooms>
<bathrooms><![CDATA[...]]></bathrooms>
<double_bed><![CDATA[...]]></double_bed>
<single_bed><![CDATA[...]]></single_bed>
<sofa_bed><![CDATA[...]]></sofa_bed>
<parking><![CDATA[...]]></parking>
<cleaning_service><![CDATA[...]]></cleaning_service>
<pets><![CDATA[...]]></pets>
<toaster><![CDATA[...]]></toaster>
...
<comments score="...">
<comment code="...">
<comment_title><![CDATA[...]]></comment_title>
<comment_description><![CDATA[...]]></comment_description>
</comment>
<comment code="...">
<comment_title><![CDATA[...]]></comment_title>
<comment_description><![CDATA[...]]></comment_description>
</comment>
...
</comments>
<pictures>
<picture>
<picture_url><![CDATA[...]]></picture_url>
<picture_title><![CDATA[...]]></picture_title>
</picture>
<picture>
<picture_url><![CDATA[...]]></picture_url>
<picture_title><![CDATA[...]]></picture_title>
</picture>
...
</pictures>
<date><![CDATA[...]]></date>
<time><![CDATA[...]]></time>
</ad>
<ad>
...
</ad>
<ad>
...
</ad>
...
</trovit>
<?xml version="1.0" encoding="utf-8"?>
<trovit>
<ad>
<id><![CDATA[7004578]]></id>
<country><![CDATA[es]]></country>
<url>
<language code="es"><![CDATA[http://www.yourdomain.com/ad/7004578]]></language>
</url>
<title>
<language code="en"><![CDATA[Wonderful 2-bedroom apartment on the beach]]></language>
</title>
<content>
<language code="en"><![CDATA[Wonderful apartment in the heart of Montgat, close to Barcelona]]></language>
</content>
<type><![CDATA[Beach Rentals]]></type>
<property_type><![CDATA[Apartment]]></property_type>
<address><![CDATA[Av. Meridiana, 24]]></address>
<neighborhood><![CDATA[Los Mallorquines]]></neighborhood>
<city><![CDATA[Montgat]]></city>
<region><![CDATA[Barcelona]]></region>
<postcode><![CDATA[08390]]></postcode>
<latitude><![CDATA[41.409583]]></latitude>
<longitude><![CDATA[2.187223]]></longitude>
<rate period="weekly" currency="USD">
<low_season><![CDATA[400]]></low_season>
<mid_season><![CDATA[520]]></mid_season>
<high_season><![CDATA[660]]></high_season>
</rate>
<availability>
<month value="1" year="2011"><![CDATA[1110000000111000011111001100111]]></month>
<month value="2" year="2011"><![CDATA[1110000000111000011111001100]]></month>
<month value="3" year="2011"><![CDATA[0000000000111000011111001100111]]></month>
<month value="4" year="2011"><![CDATA[100110000011100001111100110011]]></month>
</availability>
<check_in_week_day><![CDATA[5]]></check_in_week_day>
<check_in_time><![CDATA[14:00]]></check_in_time>
<check_out_time><![CDATA[12:00]]></check_out_time>
<minimum_stay><![CDATA[2]]></minimum_stay>
<max_people><![CDATA[12]]></max_people>
<complete_rental><![CDATA[1]]></complete_rental>
<online_reservation><![CDATA[1]]></online_reservation>
<reservation_guarantee><![CDATA[1]]></reservation_guarantee>
<rooms><![CDATA[5]]></rooms>
<bedrooms><![CDATA[4]]></bedrooms>
<bathrooms><![CDATA[2]]></bathrooms>
<parking><![CDATA[0]]></parking>
<comments score="4">
<comment code="en">
<comment_title><![CDATA[Great stay]]></comment_title>
<comment_description><![CDATA[We had a great time for a weekend by the beach. Montgat is very nicely located close to Barcelona and the apartment is conveniently situated. Great service from the owners]]></comment_description>
</comment>
</comments>
<distance_to>
<beach unit="meters"><![CDATA[100]]></beach>
<center unit="kilometers"><![CDATA[1]]></center>
</distance_to>
<pictures>
<picture>
<picture_url><![CDATA[http://www.yourdomain.com/image.jpg]]></picture_url>
<picture_title><![CDATA[living room]]></picture_title>
</picture>
</pictures>
<date><![CDATA[01/01/2011]]></date>
<time><![CDATA[18:30]]></time>
</ad>
</trovit>
For more information, click here: See technical specs.