Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Bid Modifiers can be created, edited and viewed using the API.  When you have created a Bid Modifier, you can use that list in the Settings > Bid Modifiers section on a Demand Tag.

This feature is available for ClearLine account types.

Creating a Bid Modifier

REST API

Method: POST

Endpoint: /api/v0/bid_modifiers

Fields:

FieldData TypeRequiredNotes
namestringTrueModifier title
descriptionstringFalseAdd your own description
activeboolFalseDefault = true
modifier_rulesobject arrayTrueAt least one object required in array

Headers

Content-Type application/json
Authorization "yourAuthToken"

Body (example)

{
  "name": "Test Modifier - Values",
  "modifier_rules": [
    {
      "source_type": "values",
      "multiplier": "1.05",
      "modifier_rule_object": "DealIdList",
      "modifier_rule_values": [
        "deal_id_1",
        "deal_id_2"
      ]
    }
  ]
}

Response: Status code 200

{
  "id": 1,
  "account_id": 10,
  "name": "Test Modifier - Values",
  "description": null,
  "active": true,
  "created_at": "2023-11-15T17:29:34.969Z",
  "updated_at": "2023-11-15T17:34:31.232Z",
  "modifier_rules": [
    {
      "id": 1651,
      "source_type": "values",
      "multiplier": "1.05",
      "modifier_rule_object": "DealIdList",
      "modifier_rule_values": [
        "deal_id_1",
        "deal_id_2"
      ]
    }
  ]
}


Get a Bid Modifier

REST API

Method: GET

Endpoint: /api/v0/bid_modifiers/<id>

Headers:

Content-Type application/json
Authorization "yourAuthToken"

Response: Status code 200

{
  "id": 1,
  "account_id": 10,
  "name": "Test Modifier - Values",
  "description": null,
  "active": true,
  "created_at": "2023-11-15T17:29:34.969Z",
  "updated_at": "2023-11-15T17:34:31.232Z",
  "modifier_rules": [
    {
      "id": 1651,
      "source_type": "values",
      "multiplier": "1.05",
      "modifier_rule_object": "DealIdList",
      "modifier_rule_values": [
        "deal_id_1",
        "deal_id_2"
      ]
    }
  ]
}



  • No labels