About microdata for Hotel ads price accuracy validation

Microdata is a structured format that lets users add details to their web page so that Google's systems can better understand the information.

You can use microdata to annotate price information on your website, which can help Google to improve the accuracy of price validations. Learn more about how Google enforces price accuracy.

Note: Microdata doesn't replace other methods to send pricing data. It's an additional method to check the accuracy of prices on your website.

Add structured data for prices

To add microdata to your website, you need to edit the code on your landing page URLs where users find their price options. You can follow the Hotel price structured data reference page in our Developer's Guide to get started.

Note: We only validate microdata on the landing page, but we recommend that partners mark up both the landing page and final booking page.

Test your microdata setup

After you add microdata to your website, you can check your results using Google's rich results test. The rich results test is a web-based tool provided by Google that helps you to test and validate the structured data on your web pages at no cost. The tool analyses whether your existing code could make your pages eligible for rich results in Google Search. Learn more about Google's rich results test.

Instructions

  1. Go to the rich results test.
  2. Select your input method:
    • URL: Paste the URL of the web page that you want to test.
    • Code snippet: Directly paste your HTML code if you're working on new or draft content.
  3. Based on your input method, click Test URL or Test code. The tool will analyse your structured data.
  4. Review results under the 'Hotels' section:
    • Eligible rich results: The tool will display the rich result types that your page could trigger on Google Search.
    • Warnings and errors: The tool will identify any technical errors or warnings. Fix any critical errors showing in the tool.

Google will automatically scan your website for the structured data and validate that the signal is trustworthy for price accuracy checks. This can take several days after you successfully complete your microdata setup. You may notice an increase in price accuracy validations in Hotel Centre, indicating that your microdata is being used. Learn more about pricing: check your price accuracy.

Check your microdata trustability and view rich results

Each validation has a trustability status that displays whether the price that Google retrieved from your microdata markup matches the price found by our reviewers.

Instructions

To activate the markup trustability column:

  1. Sign in to your Hotel Centre account.
  2. In the left-hand menu, click the Pricing tab.
  3. Click the 3-dot icon in the upper right-hand corner of the 'Pricing' page, then select Manage columns.
  4. In the 'Manage columns' pop-up, tick the 'Markup trustability' tick box.
  5. Click Update.

To filter by trustability:

  1. Click Add a filter, then select Markup trustability from the drop-down.
  2. Use the filter to check for prices where the trustability signal is either 'Disagree' or 'No markup found' to identify issues.
  3. Select the rate that you want to investigate, then click on the screenshot with the price.
  4. Click the View HTML in rich result test button to be redirected to the rich results debug page.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
12830447728216684943
true
Search Help Centre
true
true
true
true
true
81426
false
false