name: 'Bing Feed (Microsoft Advertising)'
type: xml
logo: bing.png
description: 'A Microsoft Advertising feed is a detailed catalog of your products that you entrust Microsoft to display across its network. This cheap investment can greatly widen your customer network and boost your sales. Start harnessing the power of a Shopify Microsoft Ads product feed in three simple steps: create a feed, connect it to your advertiser account, and check that everything works.'
guide_link: https://help.ads.microsoft.com/apex/index/3/en/51084
is_user_defined: 0
is_popular: 0
xml:
  schema: |
    <?xml version="1.0" encoding="utf-8" ?>
    <rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
      <channel>
        <title>Data feed Title</title>
        <link>{{ context.store.base_url }}</link>
        <description>Data feed description.</description>
        {% for product in context.products %}
        <item>
          <g:id><![CDATA[{{ product.entity_id }}]]></g:id>
          <g:item_group_id><![CDATA[{{ product.parent.entity_id }}]]></g:item_group_id>
          <title><![CDATA[{{ product.name | truncate: '70' }}]]></title>
          <link><![CDATA[{{ product.url }}]]></link>
          <g:price>{{ product.final_price | price }}</g:price>
          <description><![CDATA[{{ product.description | stripHtml | plain | truncate: '5000' }}]]></description>
          <g:product_type><![CDATA[{{ product.category.path }}]]></g:product_type>
          <g:google_product_category><![CDATA[]]></g:google_product_category>
          <g:image_link><![CDATA[{{ product.image }}]]></g:image_link>
          {% for image in product.gallery %}
          <g:additional_image_link><![CDATA[{{ image }}]]></g:additional_image_link>
          {% endfor %}
          <g:condition>new</g:condition>
          <g:availability>{{ product.stock_status }}</g:availability>
          <g:brand><![CDATA[{{ product.manufacturer }}]]></g:brand>
          {% if product.weight %}
          <weight>{{ product.weight }} kg</weight>
          {% endif %}
          <g:gender><![CDATA[]]></g:gender>
          <g:age_group><![CDATA[]]></g:age_group>
          <g:mpn><![CDATA[{{ product.sku }}]]></g:mpn>
          <g:gtin><![CDATA[{{ product.upc }}]]></g:gtin>
          <g:size><![CDATA[{{ product.size }}]]></g:size>
          <g:color><![CDATA[{{ product.color }}]]></g:color>
          {% if product.manufacturer %}
          <g:identifier_exists><![CDATA[true]]></g:identifier_exists>
          {% else %}
          <g:identifier_exists><![CDATA[false]]></g:identifier_exists>
          {% endif %}
        </item>
        {% endfor %}
      </channel>
    </rss>
