skip
Remove several of the first rows from a data extract.
This guide explains how to configure the skip instruction. To learn about another instruction, go back to the Available custom script instructions overview.
Introduction
Use the skip instruction to skip over a set number of rows at the top of the data extract. The number of rows to skip includes the header of the data extract. The rows are skipped over before the parsing. This means the header is also removed from the data extract.
Creating a custom script transformation using the skip instruction
To create and configure a custom script using the skip instruction, follow these steps:
-
In the Instructions step, select the skip instruction.
-
To configure the custom script instruction, fill in the following fields. Required fields are marked with an asterisk (*).
-
N*
-
Enter the number of rows to skip over at the top of the data extract.
-
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 transformation 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 transformation and optionally as the output.
Example
Transformation configuration
-
N*
-
2
Data table before transformation
Campaign |
Ad Group |
Clicks |
---|---|---|
Brand |
media |
7 |
Brand |
ecommerce |
3 |
Dashboard |
media |
18 |
Brand |
ecommerce |
4 |
Dashboard |
media|social |
5 |
Dashboard |
media |
11 |
Data table after transformation
Brand |
ecommerce |
3 |
---|---|---|
Dashboard |
media |
18 |
Brand |
ecommerce |
4 |
Dashboard |
media|social |
5 |
Dashboard |
media |
11 |