Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Evaluate impressions based on the user's DMA (demographic areadesignated market area).

Keyworddma
Operator Any except <, >, <=, >=, and range. To test for multiple values, use in.
Value

DMA ID, such as 602 (for Chicago metro area). 

Use the City Service  to retrieve DMA IDs. 

Example
Code Block
languagepy
if dma = 602:
	5
elif dma = 603:
	3
else:
	1

...

Evaluates whether the user belongs to a randomly-assigned group. Each AppNexus user has a persistent user group from 0 to 999. You may want to use the user group to test various strategies in parallel and compare their performance. Different tests should partition the thousand user groups differently; otherwise, concurrent tests will interact with each other and it will be difficult to interpret results.  For more information, see Test and Control Targeting (Standard Line Item) (customer login required).

...

Toggle Cloak
Example of multiple segment attributes

Cloak
pytrue

Toggle Cloak
Example of recency/frequency syntax with multiple attributes

Cloak
pytrue

Toggle Cloak
Example of multiple compound attributes

Cloak
pytrue

Related Topics