How to get the URL of the displayed image

46 views
Skip to first unread message

Gilbert Castro

unread,
Mar 7, 2022, 4:42:54 AM3/7/22
to Google Ads API and AdWords API Forum
Hi. I am setting up a remarketing dynamic tag in my ecommerce store. I would like to get the product URL (Hosted via my ecommerce platform CDN) of the product being viewed. I would like to know what event parameter I can use to capture the image URL.

Currently, here's my dynamic remarketing snippet (hosted in Shopify)

{% if template contains 'product' %} <script> gtag('event', 'view_item', { 'send_to': 'AW-608659319', 'ecomm_pagetype': 'product', 'ecomm_prodid': '{{ product.id }}', 'ecomm_totalvalue': '{{ product.price | money_without_currency | remove: ',' }}' 'ecomm_image': '{{ variant.image.src | image_url: 'master' }}'' }); </script> {% endif %}
The ecomm_pagetype, ecomm_prodid and ecomm_totalvalue pull data, but not the ecomm_image. Is there a specific parameter I should use for this? Thanks in advance.

Google Ads API Forum Advisor

unread,
Mar 7, 2022, 10:07:07 AM3/7/22
to gil...@superco.io, adwor...@googlegroups.com
Hi Castro,

Thank you for reaching out.

We only provide support related to the  AdWords API/Google Ads API on this support channel. If you are using our API, can you please share full screen screenshot of the UI what you are looking for, so we can further assist to you? Please reply privately author option,

Thanks,
Google Logo
Nirmita
Google Ads APi Team
 


ref:_00D1U1174p._5004Q2Xm2by:ref
Reply all
Reply to author
Forward
0 new messages