If you have a dimension from a data source that returns a URL to an image, such as your ad creatives, post pictures, or product logos, you can use one of the methods outlined below to convert that URL text into the image to add to your report.
Method #1 - Modifying the Field Settings in the Report Element
Data Studio now allows you to change the URL display type, called "Show as" in the report to convert URLs into images.
- Add the URL dimension to your report that has the link to the image.
- Click the icon next to the field name to see the data type and display settings.
- If the Type is not already set to "URL", change that setting by clicking on the drop-down and selecting "URL".
- This should then add an additional drop-down for the Show as, how the data is displayed. Select " Image" from the drop-down. The text URLs should then convert to images!
Method #2 - Creating a Custom Calculated Field with Image() Function
Data Studio also has a special function for calculated fields, Image(), that will convert URL dimensions into images.
- Click on the Edit icon next to the data source name to open the field menu.
- Click + ADD A FIELD.
- The field menu will change to the calculated column editor.
- Give the field a meaningful name under Field Name. In the Formula section type:
<NameOfDimension> will be the URL field that links to the image (for example in Facebook Ads, you can use "Post image URL", and in Twitter Ads you can use "Tweet card image URL"). Note that the formula has help text when you start to type it and will auto-complete field names as you add them!
- Click SAVE and then click DONE to go back to editing the report.
- You can now add your custom field just like a normal dimension to the report element.