name: 'Twenga'
type: xml
logo: twenga.png
description: 'Twenga provides advanced traffic acquisition solutions for online advertising marketplaces. It helps advertisers to improve performance and the automation of their advertising investments. Established in 2006, Twenga Solutions has over 2000 clients in 8 different countries.'
guide_link: https://support.twenga-solutions.com/hc/en-gb/articles/115014901088-Create-a-feed-to-import-your-catalog
is_user_defined: 0
is_popular: 0
xml:
  schema: |
    <?xml version="1.0" encoding="utf-8"?>
    <Products>
      {% for product in context.products %}
      <product>
        <merchant_ref><![CDATA[{{ product.sku }}]]></merchant_ref>
        <designation><![CDATA[{{ product.name }}]]></designation>
        <merchant_id><![CDATA[{{ product.entity_id }}]]></merchant_id>
        <upc_ean><![CDATA[{{ product.sku }}]]></upc_ean>
        <manufacturer_id><![CDATA[{{ product.manufacturer }}]]></manufacturer_id>
        <product_url><![CDATA[{{ product.url }}]]></product_url>
        <image_url><![CDATA[{{ product.image }}]]></image_url>
        <price>{{ product.final_price | price }}</price>
        <description><![CDATA[{{ product.description | plain | stripHtml | truncate: '5000' }}]]></description>
        <category><![CDATA[{{ product.category.name }}]]></category>
        <brand><![CDATA[{{ product.manufacturer }}]]></brand>
        {% if product.is_in_stock %}
        <in_stock>Y</in_stock>
        {% else %}
        <in_stock>N</in_stock>
        {% endif %}
      </product>
      {% endfor %}
    </Products>
