---
updatedAt: 2026-01-05T21:08:56.000Z
agentTools:
  projectIndex: https://developers.koddi.com/llms.txt
---

# Campaign from Template

## Response

<HTMLBlock>{`
<style type="text/css">.tg {border-collapse:collapse;border-spacing:0;} .tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px; overflow:hidden;padding:10px 5px;word-break:normal;} .tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px; font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;} .tg .tg-viy4{background-color:#FFF;color:#172B4D;text-align:left;vertical-align:top} .tg .tg-ia17{background-color:#F4F5F7;color:#172B4D;font-weight:bold;text-align:left;vertical-align:top} .tg .tg-1dk4{background-color:#F4F5F7;color:#172B4D;text-align:left;vertical-align:top}</style><table id=table1 >
</colgroup><th><tr>
<th>Field<br>
</th><th>Type<br>
</th><th>Description<br>
</th>
</tr>
</thead><tbody><tr>
<td>campaign_id</td><td>int</td><td>The ID for the simple campaign that was created</td>
</tr>
<tr>
<td>ad_group_id</td><td>int</td><td>The ad group ID that is nested within the campaign that was created</td>
</tr>
</tbody></table>
`}</HTMLBlock>

## Try it!

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "k1-campaign-management",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://koddi.io/console/v1/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-default": "",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/member_groups/{memberGroupId}/advertisers/{advertiserId}/templates/{campaignTemplateId}/draft/{uuid}/simple_campaigns": {
      "post": {
        "summary": "Campaign from Template",
        "description": "",
        "operationId": "simple-campaign-1",
        "parameters": [
          {
            "name": "memberGroupId",
            "in": "path",
            "description": "The member group id (provided by Koddi)",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "advertiserId",
            "in": "path",
            "description": "The advertiser ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "campaignTemplateId",
            "in": "path",
            "description": "The ID for the template to be used to create the template",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "uuid",
            "in": "path",
            "description": "The draft UUID received from the POST Draft endpoint",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "start_date",
                  "always_on",
                  "budget"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the campaign"
                  },
                  "start_date": {
                    "type": "string",
                    "description": "The start date of the campaign"
                  },
                  "end_date": {
                    "type": "string",
                    "description": "The end date of the campaign. This is required if always_on is false"
                  },
                  "always_on": {
                    "type": "boolean",
                    "description": "The always on flag."
                  },
                  "budget": {
                    "type": "number",
                    "description": "The budget for the simple campaign",
                    "format": "float"
                  },
                  "entity_selection": {
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "How the entities were selected for the campaign in the draft. This can either be \"all\" or \"search\""
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object",
                    "description": "The object describing the details of entity selection for the simple campaign"
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "name": "Summer Bonanza - 2023",
                    "start_date": "2023-07-01 00:00:00",
                    "end_date": "2023-09-01 00:00:00",
                    "always_on": false,
                    "budget": 200,
                    "entity_selection": {
                      "type": "group"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"campaign_id\": 49555,\n  \"ad_group_id\": 66211\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "campaign_id": {
                      "type": "integer",
                      "example": 49555,
                      "default": 0
                    },
                    "ad_group_id": {
                      "type": "integer",
                      "example": 66211,
                      "default": 0
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```