skipuntil

Remove rows from the data extract until a certain value is found.

Introduction

Use the skipuntil enrichment to remove rows from a data extract until a given value is found. You can choose to include or exclude this value from the data extract.

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 (*).

Prefix*

Enter the value to which the enrichment will skip. All the rows above the row containing this value are removed from the data extract.

Fieldname

Enter the name of the column that contains the value to which the enrichment will skip.

Yield Match

Select this option to keep the row that contains the Prefix value.

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.

Keep Header

Select this option to keep the header of the data extract.

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

Prefix*

Brand

Fieldname

Ad Group

Yield Match

Select this field.

Keep Header

Select this field.

Data table before enrichment

Campaign

Ad Group

Clicks

Brand

media

7

Brand

ecommerce

3

Dashboard

Brand

18

Brand

ecommerce

4

Dashboard

media|social

5

Dashboard

media

11

Data table after enrichment

Campaign

Ad Group

Clicks

Dashboard

Brand

18

Brand

ecommerce

4

Dashboard

media|social

5

Dashboard

media

11