Skip to main content

POST Ad Functions

Overview


The following table contains important information about the POST method in regards to the managing process.

POST Ad Function
MethodPOST
URL or Endpoint/api/projects/projectId/ad-functions
ParametersprojectId, api-version
BodyCheck the request body below.

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdNostringUnique id of the project.
api-versionNostringThe correct api version to use.

Request Body

{
"name": "string",
"key": "string",
"dynamicKey": true,
"dynamicValue": true,
"value": "string"
}

Information about the fields that appear when you receive the response are displayed in the table below.

Parameter NameMandatoryTypeDescription
nameYesstringThe name of the ad function.
keyYesstringThe key of the ad function.
dynamicKeyYesboolIndicates whether the ad function contains a dynamic key or not.
dynamicValueYesboolIndicates whether the ad function contains a dynamic value or not.
valueYesstringThe value of the ad function.

Response

{
"id": 0,
"name": "string",
"key": "string",
"dynamicKey": true,
"dynamicValue": true,
"value": "string"
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
idintegerThe id of the ad function.
nameYesstringThe name of the ad function.
keyYesstringThe key of the ad function.
dynamicKeyYesboolIndicates whether the ad function contains a dynamic key or not.
dynamicValueYesboolIndicates whether the ad function contains a dynamic value or not.
valueYesstringThe value of the ad function.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed