Check if teaser or full content
check like this 

{% if view_mode == "teaser" %}
  &lt;div class="article-ads hidden-xs hidden-sm"&gt;
    &lt;img src="/sites/default/files/banners/ad.jpg" alt="ad" /&gt;
  &lt;/div&gt;
{% elseif view_mode == "full" %}
  //something else
{% endif %}