This widget displays the current bubble rating and review count for a given Hotel, Restaurant, or Attraction on Tripadvisor. The widget can be displayed on an https page and can be configured to link to the detail page for that location on Tripadvisor, open a new window or pop-up of the Property Detail Widget, or not contain any links. Partners may choose the last option and wrap it on their own link if they wish to direct users to a custom page on their own site.
The widget size is 134x60 pixels and supports a transparent border/background for easy integration into existing pages. Elements that will be shown in the widget include: Tripadvisor logo and rating bubbles, the copy "Tripadvisor rating", and the number of Tripadvisor reviews.
Options described below are available for the Ratings Widget:
| Option | Description |
| Language |
Indicate which languages the partner should be configured for. This configuration will apply to base and pop-up widgets. Note: zh_CN is supported and would use the DaoDao version of the Property Detail widget and redirect to DaoDao instead of Tripadvisor. |
| Link Content |
What should the content be? Options: Tripadvisor detail page, Property Detail Widget, none |
| Link Target |
What should happen when the user clicks on the widget? Options: New Window, Popup, None |
| Background Color | Default is transparent, option to customize color. |
Partner widgets are intended to be displayed in an iframe on the partner site. A sample iframe with a widget invocation might look like:
<iframe src="http://www.tripadvisor.com/WidgetEmbed-cdsLicensedRating?display=true&locationId=89575&
lang=en&partnerId=PARTNER_KEY</iframe>
All widget URLs include the /WidgetEmbed Tripadvisor page followed by the key value for the widget being requested. This is followed by a question mark and the key/value pairs of URL parameters. URL parameter settings are consistent across all widgets.
| Option Name | Description |
| partnerId | Required. The partner key provided by Tripadvisor to allow partner access to widgets. |
| lang |
Optional. The language in which to display the widget. |
The Ratings Widget supports Hotel, Attraction, and Restaurant place types. There are 3 link target/content options:
Widget with no link:
![]()
Widget with link to Tripadvisor detail page:
![]()
Property Detail Widget:
This widget has multple configuration options including photos, awards, displaying Jointly Collected Reviews, sorting, pagination, etc...
![]()