Conditional rate and private rate rules can be used to increase the price competitiveness and price accuracy of your ads. Follow the steps below to define rate rules and update your transaction messages to enable rate rule pricing for your properties.
Define rate rules
You'll need to define your rate rules to display your prices. Each rate rule has a unique rate_rule_id
, and each ID can be used to tag more than one rate in your price feed.
Rate rules are defined in XML format using the rate rules tool. Once the rate rules XML file is uploaded and published, Google will start displaying prices tagged with the rate rule IDs defined in the XML file, based on the conditions defined in the XML. To learn more about the rate rules XML file schema, see Rate rules XML reference.
Reference rate rules in your pricing messages
You can send conditional and private rate pricing for various itineraries using the <Rates> element in your transaction message. It's best to make sure that you define your rate rules first. Pricing messages with undefined rate rule IDs in the rate rule definition file cannot be displayed. To learn more about sending prices, see Update your price feed.