By logic statements
With targeting by logical expression, you can specify values for ad campaign impressions using the AND
, OR
, and NOT
(≠
) logical expressions.
Logical targeting supports custom targeting.
An assistant can be granted the account administrator access level to logical targeting. All the characteristics will be available to the assistant. It is impossible to limit the visibility of specific characteristics.
How it works
All targeting types in Adfox use the AND
condition. This means that if you set up targeting by frequency and geography for your campaign, the ad will only show when both conditions are met.
With logical targeting, you can use logical expressions to create complex rules for showing ads. These expressions are written as blocks, which can be a set of possible values or a logical operation that links child blocks.
Examples
[ ]
: A block with a logical operation.
( )
: A block of values.
-
Example with the
NOT
(≠
) condition[(puid1=A) AND (puid2≠B)]
The campaign can be served only if the request includes
puid1=A
andpuid2=C
values. If the request includespuid1=A
andpuid2=B
values, the campaign won't be served.-
Example with the
AND
condition[(puid1=A) AND (puid2=B)]
The campaign can be served only if the request includes the combination of
puid1=A
values.-
Example with the
OR
condition[(puid1=A) OR (puid2≠B)]
The campaign can be served if the request includes one of the values (
puid1=A
orpuid2=C
). If the request includespuid1=C
and/orpuid2=B
values, the campaign won't be served.-
Example with multiple conditions
[[(puid1=A) AND (puid2=B)] OR [(puid1=С) AND (puid2=D)]]
The campaign can be served only if the request includes a combination of values.
Note
If you're using logical and custom targeting, the campaign will be displayed if all of the targeting set is performed at the same time.
Set up targeting
-
Go to Targeting → Add a targeting condition → By logic statements.
-
Set up logical expressions:
-
In the drop-down list for the condition inside Logical Block 1, choose the characteristic you want to target and enter the value after the
=
sign.Note
You can add one or more values to a single condition.
To exclude values using the
NOT
logical expression, click the=
sign to change it to≠
. -
Use the Add a logical block button to add as many logical blocks as you need. Blocks are linked with the
OR
logical expression. -
Use the Add a condition button to add as many conditions as you need to each block. Conditions within a block are linked with the
AND
logical expression.
-
-
After making changes, click Apply and save the targeting criteria.
Contact support
Copied -
-
-
-