Follow

Grouping delivery options?

This document provides a detailed explanation of the logic behind the application of multiple delivery options/limitations and is aimed at traffickers looking to set up more specific targeting. 

Boolean Logic

Switch’s delivery options operate using Boolean logic. Whereby the options selected create a statement or statements, the entity will then only be eligible for delivery if the request matches the statement(s) i.e making the statement(s) true.   

For example selecting “Geo Country is any of: United Kingdom” will only be true when the request comes from a user accessing the page via UK IP address. Any other location would be false and thus the entity would not be eligible for delivery. 

Multiple options

When adding multiple options multiple statements are created. There are 3 key operators here that need to be considered when making multiple statements: AND, OR and NOT. These are explained below with a simple table where there are two statements; X and Y.

AND: essentially groups the statements, the entity will only deliver when all statements grouped by AND are true.

 

X

Y

Delivery

False

False

No

False

True

No

True

False

No

True

True

Yes

OR: separates the statements, the entity will deliver when one or more statements grouped by OR are true.

X

Y

Delivery

False

False

No

False

True

Yes

True

False

Yes

True

True

Yes 

When using OR it’s important to consider how those statements relate to one another. Let’s say X= Geo country is: United Kingdom and Y= Day of the week is Monday. If the OR operator is used the statements effectively cancel each other out at a number of points. For example, if a user accesses from a French IP on a Tuesday statement Y is false but X is true and the entity is eligible to serve. In that example AND maybe the more appropriate operator.

NOT: is used to create a negative statement, the entity will only deliver when this variable is not present. It’s important to consider how a negative limitation effects the above two operators as in general the negative statement is far broader.