resolveurl
Add a field to a data extract containing a resolved URL.
Introduction
Use the resolveurl enrichment to resolve a url from a source field and display the longer version of the URL in a new column.
Creating the enrichment
For more information on creating an enrichment, see Using custom scripts.
Configuring the enrichment
To configure the enrichment, 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 field 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 contain the enriched data. The enrichment is applied to the whole data extract, then the enriched data is output into the subtable you have named here.
This subtable is a temporary table, which means it 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.
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 |