POST /api/ads/detail
This API is used to retrieve detailed information about a specific advertisement.
URL:
/api/ads/detail
Method:
POST
Headers:
Content-Type: application/json
Body Parameters:
The request body must be in JSON format with the following fields:
Example Request Body:
{
"token": "8|koJNODexEl8Kif3BW7wpiZFrrAAenbxl0fkZ6rwWb0a83fb1",
"ads_id": 1
}
Success Response:
Example Success Response:
{
"status": true,
"message": "Successfully get detail ads.",
"data": {
"id": 1,
"user_id": 15,
"ads_type": 2,
"title": "promo akhir tahun",
"ads_body": "https://klik.cyberszone.com/assets/images/ptc/2025/01/13/67847913766821736734995.png",
"amount": "46.00000000",
"duration": 10,
"max_show": 10,
"showed": 0,
"remain": 10,
"reject_reason": null,
"schedule": [
{
"day": "sunday",
"start": "09:22",
"end": "13:22"
}
],
"status": 1,
"created_at": "2025-01-13T02:19:52.000000Z",
"updated_at": "2025-01-19T10:29:10.000000Z",
"views": []
}
}