Versions Compared

Key

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

...

Each element of the JSON string should use a structure similar to the one on in the following example:

Code Block
[{"name":"Make geo hidden",
"logicalConnector":"AND",
"targetings":["Geography"],
"conditions":[{"value":"true","operator":"==","fieldpath":"user.isactive"}]}]
  • name: can be any text, used to describe and differentiate each targeting setting.

  • logicalConnector: can be only one of the following values: “AND“ or “OR“, this attribute is used to decide if each condition should be connected by an “AND“ or “OR” operator when evaluating.

  • targetings: a list of text values. It should contain the names of the targetings that you want to hide when the result of the evaluation of the conditions is true

    • The targetings names added to the targetings array should use the following names:

      • Connection

      • Content

      • Devices

      • AdServerExclusions

      • FrequencyCapping

      • PostalCodeTargeting

      • Geography

      • Inventory

      • DayTimeTargeting

      • VideoContent

      • VideoPositions

      • Industry

      • KeyValue

      • AudienceSegments

      • SelectedTargetingSet

      • SelectedTargetingGroup

      • AdvertisedBrands

      • Blackouts

  • conditions: an array of conditions, each element (condition) should have the following structure (currently there is no proper setting for hiding certain targetings by default, instead you will need to use a generic condition like the one on the example):

  • Code Block
    {"value":"true",
    "operator":"==",
    "fieldpath":"user.isactive"}
    • value: string, is the expected value that will be compared to the value of the field defined on fieldpath using the operator defined on operator.

    • operator: string, operator that will be used to compare the expected value (value) with the actual value (fieldpath). Possible operators:

      • Equals: '=='

      • Not equals: '!='

      • Contains: 'CONTAINS'

      • Not contains: 'NOTCONTAINS'

    • fieldpath: string with the fieldpath (starting from campaign item) of the field that needs to be compared to the expected value (value), will be used to retrieve the value of the field from each campaign item.

...