Skip to main content
The Traffic Optimized webhook notifies your endpoint when Everflow’s traffic optimization engine blocks traffic variables based on configured optimization rules.

Event

Traffic Optimized

Fired when the traffic optimization system identifies and blocks underperforming traffic variables. The payload contains a list of all blocked variables for the optimization run.

Payload Structure

The webhook payload contains a list of blocked variable entries, each representing a specific traffic variable that was blocked by the optimization engine.

Blocked Variable Fields

FieldTypeDescription
network_traffic_optimization_blocked_variable_idintegerUnique identifier for this blocked variable entry
network_traffic_optimization_idintegerParent optimization rule identifier
network_traffic_optimization_run_idintegerSpecific optimization run that triggered the block
network_idintegerNetwork identifier
variablestringThe traffic variable type being blocked (e.g., sub ID, source)
valuestringThe specific value of the variable that was blocked
network_offer_idintegerOffer associated with the blocked variable
network_affiliate_idintegerPartner associated with the blocked variable
manual_overridebooleanWhether this block was manually overridden
actionstringAction taken on the variable
time_createdintegerUnix timestamp when the block was created
time_blockedintegerUnix timestamp when blocking started
time_blocked_untilintegerUnix timestamp of when the block expires

Relationship Objects

Each blocked variable entry includes:
  • offer: Basic offer details (ID, name, status)
  • affiliate: Short affiliate details (ID, name)
  • reporting: Performance metrics including:
    • cvr: Conversion rate for the blocked variable

Example Payload Structure

{
  "blocked_variables": [
    {
      "network_traffic_optimization_blocked_variable_id": 1001,
      "network_traffic_optimization_id": 50,
      "network_traffic_optimization_run_id": 200,
      "network_id": 1,
      "variable": "sub1",
      "value": "traffic_source_123",
      "network_offer_id": 100,
      "network_affiliate_id": 200,
      "manual_override": false,
      "action": "block",
      "time_created": 1709500000,
      "time_blocked": 1709500000,
      "time_blocked_until": 1709586400,
      "relationship": {
        "offer": {
          "network_offer_id": 100,
          "name": "Example Offer"
        },
        "affiliate": {
          "network_affiliate_id": 200,
          "name": "Example Partner"
        },
        "reporting": {
          "cvr": 0.012
        }
      }
    }
  ]
}