Skip to content

Don't return empty zones (Criteo adapter)#142

Merged
mkendall07 merged 1 commit intoprebid:masterfrom
BartVB:patch-1
Feb 1, 2016
Merged

Don't return empty zones (Criteo adapter)#142
mkendall07 merged 1 commit intoprebid:masterfrom
BartVB:patch-1

Conversation

@BartVB
Copy link
Contributor

@BartVB BartVB commented Dec 23, 2015

Criteo returns something like:

zone1;zone2;zone3;

in their cookie. This results in an array like:

['zone1', 'zone2', 'zone3', '']

We don't want this empty element. To prevent this from happening we remove the trailing semicolon from the cookie string before split().

Criteo returns something like:

zone1;zone2;zone3;

in their cookie. This results in an array like:

['zone1', 'zone2', 'zone3', '']

We don't want this empty element. To prevent this from happening we remove the trailing semicolon from the cookie string before split().
@BartVB BartVB changed the title Don't return empty zones Don't return empty zones (Criteo adapter) Dec 23, 2015
mkendall07 added a commit that referenced this pull request Feb 1, 2016
Don't return empty zones (Criteo adapter)
@mkendall07 mkendall07 merged commit af11c0e into prebid:master Feb 1, 2016
vzhukovsky added a commit to aol/Prebid.js that referenced this pull request Feb 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments