name: 'Google Shopping Promotions'
type: xml
logo: google_shopping.png
description: 'The Google Merchant Center Promotions feed lets you distribute online promotions across Google Shopping. Promotions are sourced from your active Cart Price Rules (coupons), so shoppers see special offers such as discounts and free shipping alongside your products.'
guide_link: https://support.google.com/merchants/answer/2906014
is_user_defined: 0
is_popular: 0
marketplace: google
gmc_content_type: promotions
xml:
  schema: |
    <?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
      <channel>
        <title>{{ context.store.name }} - Promotions</title>
        <link>{{ context.store.base_url }}</link>
        <description>Promotions for {{ context.store.name }}</description>
        {% for promotion in context.promotions %}
        <item>
          <g:promotion_id>{{ promotion.promotion_id }}</g:promotion_id>
          <g:product_applicability>{{ promotion.product_applicability }}</g:product_applicability>
          <g:offer_type>{{ promotion.offer_type }}</g:offer_type>
          {% if promotion.offer_type == 'generic_code' %}
          <g:generic_redemption_code>{{ promotion.generic_redemption_code }}</g:generic_redemption_code>
          {% endif %}
          <g:long_title><![CDATA[{{ promotion.long_title }}]]></g:long_title>
          <g:promotion_effective_dates>{{ promotion.promotion_effective_dates }}</g:promotion_effective_dates>
          <g:redemption_channel>{{ promotion.redemption_channel }}</g:redemption_channel>
          <g:promotion_destination>Shopping_ads</g:promotion_destination>
          <g:promotion_destination>Free_listings</g:promotion_destination>
          <g:coupon_value_type>{{ promotion.coupon_value_type }}</g:coupon_value_type>
          {% if promotion.coupon_value_type == 'percent_off' %}
          <g:percent_off>{{ promotion.percent_off }}</g:percent_off>
          {% endif %}
          {% if promotion.coupon_value_type == 'money_off' %}
          <g:money_off_amount>{{ promotion.money_off_amount }}</g:money_off_amount>
          {% endif %}
        </item>
        {% endfor %}
      </channel>
    </rss>
