---
updatedAt: 2026-08-01T11:27:33.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Update Advertisers

## Why Update Advertisers?

Occasionally, you may need to make changes to an existing campaign or flight. The Update Advertisers API endpoint enables you to update the settings for a given advertiser, allowing you to make edits and changes quickly and easily, without creating a new advertiser.

> 📘 Note
>
> You can update all fields from Create Advertisers except for `id`.

<br />

## API Syntax

When using the Update Advertisers API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

`PUT https://api.kevel.co/v1/advertiser/{AdvertiserID}`

Where:

* `PUT` - the type of API request being made.
* `https://api.kevel.co` - the URL for the request.
* `v1` - the API version.
* `advertiser` - the API endpoint being called.
* `AdvertiserID` - The ID associated with the advertiser being updated.

> ❗️ Warning
>
> Once you set `IsDeleted` on an advertiser object to `true`, you cannot set it to `false` again. Instead, the API will return: `{"message":"This advertiser is deleted."}`.

> 📘 Clearing attribute values
>
> To unset or clear an attribute, set its value to `NULL`.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "management-api-2",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Adzerk-ApiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/advertiser/{AdvertiserID}": {
      "put": {
        "summary": "Update Advertisers",
        "description": "",
        "operationId": "update-advertisers",
        "parameters": [
          {
            "name": "AdvertiserID",
            "in": "path",
            "description": "ID of the Advertiser",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "Id",
                  "Title",
                  "IsActive"
                ],
                "properties": {
                  "Id": {
                    "type": "integer",
                    "description": "The ID of the Advertiser",
                    "format": "int32"
                  },
                  "Title": {
                    "type": "string",
                    "description": "The name of the advertiser"
                  },
                  "IsActive": {
                    "type": "boolean",
                    "description": "Whether the advertiser is active"
                  },
                  "isDeleted": {
                    "type": "boolean",
                    "description": "If want to delete, set to `true`"
                  }
                }
              },
              "examples": {
                "JSON": {
                  "value": {
                    "Id": 12345,
                    "Title": "Nike",
                    "IsDeleted": false,
                    "IsActive": true,
                    "PlacementLimit": 4
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"Id\":12345,\n  \"Title\":\"Nike\",\n  \"IsActive\":true,\n  \"IsDeleted\":false,\n  \"PlacementLimit\":4,\n  \"FreqCap\": 2,\n  \"FreqCapDuration\": 10,\n  \"FreqCapType\": 1,\n  \"CapType\": 4,\n  \"DailyCapAmount\": 5000,\n  \"LifetimeCapAmount\": 50000\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "Id": {
                      "type": "integer",
                      "example": 12345,
                      "default": 0
                    },
                    "Title": {
                      "type": "string",
                      "example": "Nike"
                    },
                    "IsActive": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "IsDeleted": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "PlacementLimit": {
                      "type": "integer",
                      "example": 4,
                      "default": 0
                    },
                    "FreqCap": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "FreqCapDuration": {
                      "type": "integer",
                      "example": 10,
                      "default": 0
                    },
                    "FreqCapType": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "CapType": {
                      "type": "integer",
                      "example": 4,
                      "default": 0
                    },
                    "DailyCapAmount": {
                      "type": "integer",
                      "example": 5000,
                      "default": 0
                    },
                    "LifetimeCapAmount": {
                      "type": "integer",
                      "example": 50000,
                      "default": 0
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X PUT -H 'X-Adzerk-ApiKey:<APIKEY>' -H \"Content-Type:application/json\" https://api.kevel.co/v1/advertiser/12345 --data-binary '{\"Id\":12345,\"Title\":\"Nike\",\"IsActive\":true,\"IsDeleted\":false}'"
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function updateAdvertiser() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let advertiser = await client.run(\"advertiser\", \"update\", {id: 12345, placementLimit: 4});\n  console.log(advertiser);\n}\n\nupdateAdvertiser();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef update_advertiser()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    advertiser_id = 12345\n    opts = client.advertisers.get(advertiser_id) \n    opts[:id] = advertiser_id\n    opts[:title] = \"Updated Title\"\n    pp client.advertisers.update(opts)\nend\nupdate_advertiser()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-Adzerk-Sdk-Version",
        "value": "Readme.io:ManagementAPI2"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```