extendmissing

Check if certain columns exist in the data extract, and add them if they are missing from the data extract.

Introduction

Use the extendmissing enrichment to check if certain columns exist in the data extract, and add them if they are missing 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 (*).

Fieldnames

Enter the names of the columns to find in the data extract.

Missing

Enter the values with which to populate the new columns.

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

Fieldnames

Campaign Status

Missing

Active

Data table before enrichment

Ad Group

Region

Clicks

media

France

3493

ecommerce

Germany

8891

media|social

USA

2782

Data table after enrichment

Ad Group

Region

Clicks

Campaign Status

media

France

3493

Active

ecommerce

Germany

8891

Active

media|social

USA

2782

Active