addrownumbers

Add a new field to the data extract with row numbers.

Introduction

Use the addrownumbers enrichment to add a new field to the data extract with row numbers.

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

Field Name

Specify the name of the new field to add to the data extract.

Start Value

Specify the first value in the new column. Row numbering starts with this value.

Row Increment

Specify the number with which row numbers are incremented.

Example

Enrichment configuration

Field Name

Row

Start Value

2

Row Increment

2

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.

Data table before enrichment

Ad Group

Clicks

media

7

ecommerce

3

media|social

18

social

9

Data table after enrichment

Ad Group

Clicks

Row

media

7

2

ecommerce

3

4

media|social

18

6

social

9

8