Updates an ad
The id of the ads to update.
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
Represents a command request data transfer object (DTO) used to create or update Ads object.
Gets or sets the title of the advertisement.
Gets or sets the display position of the advertisement (e.g., homepage-top, sidebar).
Gets or sets the target URL that the ad points to when clicked.
Gets or sets the description of the advertisement.
Gets or sets the tags of the advertisement.
Gets or sets the start date and time when the advertisement becomes active. Format: yyyy-MM-dd HH:mm:ss
Gets or sets the end date and time when the advertisement expires. Format: yyyy-MM-dd HH:mm:ss
Gets or sets the metadata of the advertisement.
Gets or sets the list of supported language codes for targeting the advertisement. Uses ISO 639-1 format (e.g., "en", "vi"). If null, the advertisement is available for all languages.
Gets or sets the list of supported country codes for targeting the advertisement. Uses ISO 3166-1 alpha-2 format (e.g., "US", "VN"). If null, the advertisement is available in all countries.
Gets or sets the list of image URLs for the advertisement. Allowed formats: JPG, PNG, GIF. Maximum allowed images: 5.
The list of brand domains for the advertisement.
The request was successful.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
API call exceeded rate limit due to too many requests.
PUT /api/v1/ads/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 336
{
"type": "0 - Image",
"title": "text",
"position": "text",
"targetURL": "https://example.com",
"description": "text",
"tags": "text",
"startDate": "2025-09-12T21:06:41.971Z",
"endDate": "2025-09-12T21:06:41.971Z",
"metadata": "text",
"languageCodes": [
"text"
],
"countryCodes": [
"text"
],
"status": "0 - Inactive",
"imageURLs": [
"text"
],
"brandDomainIds": [
"text"
]
}
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": true,
"errors": []
}
Last updated
Was this helpful?