Create Advertisement Campaign
Create a new advertisement campaign with video content. The video is automatically processed into multiple quality levels (360p, 720p, original) for adaptive streaming, and a thumbnail is generated.
POST/nfthing/advertisement/create
Headers
| Field | Type | Required | Description |
|---|---|---|---|
| X-API-Key | string | Yes | Your Membrane API key. |
Form fields
| Field | Type | Required | Description |
|---|---|---|---|
| title | string | Yes | Advertisement title. |
| description | string | Yes | Advertisement description. |
| category | string | Yes | Category (e.g. "tech", "fashion"). |
| tagline | string | Yes | Short tagline. |
| reward_amount | integer | Yes | Reward amount for watching/completing. |
| cta_name | string | Yes | Call-to-action button text. |
| has_feedback | boolean | Yes | true if you want to add feedback questions. |
| content_url | string | No | Optional landing page URL. |
| video | file | Yes | Video file (mp4 recommended). |
Example response
200 OK
{
"success": true,
"message": "Advertisement campaign created successfully",
"data": {
"id": 85,
"post_id": "6aadfa03-3a05-440e-a9d3-524b31a9f3bd",
"type": "advertisement",
"title": "Summer Sale Ad",
"canonical_url": "https://nftimages.blr1.cdn.digitaloceanspaces.com/ads/hls/..._master.m3u8",
"thumbnail_url": "https://nftimages.blr1.cdn.digitaloceanspaces.com/ads/thumbnails/..._thumb.jpg",
"duration": 30,
"aspect_ratio": {
"width": 1920,
"height": 1080
},
"has_feedback": true,
"is_live": false
}
}Notes
- • Video processing may take a few seconds depending on file size. The video is converted into HLS format for adaptive streaming.