resolveurl
Add a column to a data extract containing a resolved URL.
This guide explains how to configure the resolveurl instruction. To learn about another instruction, go back to the Available custom script instructions overview.
Introduction
Use the resolveurl instruction to resolve a url from a source column and display the longer version of the URL in a new column.
Creating a custom script enrichment using the resolveurl instruction
To create and configure a custom script using the resolveurl instruction, follow these steps:
-
In the Instructions step, select the resolveurl instruction.
-
To configure the custom script instruction, fill in the following fields. Required fields are marked with an asterisk (*).
-
Srcfield*
-
Enter the name of the column that contains the URL to resolve.
-
Fieldname
-
Specify the name of the new column to add to the data extract.
-
Strict
-
Select this option to raise an error if a field could not be found during the enrichment. Leave this field unselected to continue with the enrichment if a field is not found.
-
Subtable
-
Enter the name for a subtable that you want to use within this custom script.
A subtable is a temporary table that only exists for this custom script. You can apply additional instructions within the same custom script to the subtable. However, the subtable cannot be used in any other custom scripts.
If a subtable does not exist for the current custom script, the enrichment is applied to the data extract, and the enriched data is output into the subtable. If the subtable already exists for the custom script, the subtable is used as the input for the enrichment and optionally as the output.
Example
Enrichment configuration
-
Srcfield*
-
URL
-
Fieldname
-
Resolved URL
Data table before enrichment
Campaign |
Ad Group |
URL |
---|---|---|
Brand |
media |
https://www.adverity.com/ |
Brand |
ecommerce |
https://goo.gl/cr88B2 |
Dashboard |
media|social |
https://tinyurl.com/2p9568sv |
Data table after enrichment
Campaign |
Ad Group |
URL |
Resolved URL |
---|---|---|---|
Brand |
media |
https://www.adverity.com/ |
https://www.adverity.com/ |
Brand |
ecommerce |
https://goo.gl/cr88B2 |
https://www.adverity.com/ |
Dashboard |
media|social |
https://tinyurl.com/2p9568sv |
https://youtu.be/dQw4w9WgXcQ |