- Documentation
- API Reference
- Projects
- importer.vidinfra.com
- Auth
- User Registration
- User Login
- Verify-email
- Forgot Password
- Forgot Password Verify OTP
- Forgot Password Set
- Resend OTP
- Logout
- Set Password
- Check Account exists
- Update Password
- Google Oauth Redirect
- Google Oauth Callback
- api-access-check
- New Auth token using Refresh token
- Github Oauth Redirect
- Google Oauth Callback Copy
- Get User Sessions
- Delete User Sessions
- User
- Organization
- Organization's invitations
- Audits
- Members
- API Keys
- Folders
- Videos
- Video Metas
- Video Captions
- Video Chapter
- Uploads
- Tags
- Players
- Webhook Endpoints
- Advertisements
- Webhook Event Logs
- Analytics Direct Api
- geo-distribution
- Project Views
- avg video watch
- Total watch Time
- Project Avg Watch per Unique user
- Total Player Error
- project popularity-analysis
- Project Collection Insights
- Collection Views
- Collection avg Watch time
- Collection Avg Watch per unique user
- Collection Geo Distribution
- Get all Users
- User media views
- User Avg video watch
- user Player log
- user sessions
- Get all Video
- video Player error
- Video View
- video Geo Distribution
- video Avg watch
- copy
- Streams
- Stream Metas
- Usages
- Encoding profile
- Project Matrics
- Access Control
- Analytics
- Project Get geo-distribution
- project views
- Project avg video watch
- Project Total Watch
- Project Avg Watch per Unique user
- Project All Player Errors
- Project Popularity Analysis
- Project Collections insights
- Collection Geo Distribution
- Collection avg watch time
- Collection avg watch per unique User
- Collection Player error
- Video Geo Distribution
- Video views
- Video Avg Watch
- Video Player Log
- User
- User Avg Video Watch
- User Total Watch
- User player error log
- Plan
- Upload Tokens
- subscribe
- Transaction
- Invoice
- vimeo video importer
- test
- transcoding service
- transcoding service v2
- Welcome to vidinfraGET
- health checkGET
- Regions ListGET
- keyPOST
- Untitled EndpointGET
Update ads
Developing
PUT
/projects/{projId}/advertisements/{advertisementId}
Update a Advertisements for a project#
/projects/<project_id>/advertisements/<advertisement_id>
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
projId
stringÂ
required
Example:
f32a0116-fe11-454c-8e6a-5ff4101882e5
advertisementId
stringÂ
required
Example:
800edeb9-b8e0-4ae2-9902-712c65a0edee
Body Params application/json
object {0}
Example
{
"name": "Sample Advertisement new",
"folder_id": "e6095ec4-ee31-4b18-aa6c-fc4ee5d59321",
"tag_url": "http://example.com/tag",
"active": true,
"default": false
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost:8080/v1/projects/f32a0116-fe11-454c-8e6a-5ff4101882e5/advertisements/800edeb9-b8e0-4ae2-9902-712c65a0edee' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Sample Advertisement new",
"folder_id": "e6095ec4-ee31-4b18-aa6c-fc4ee5d59321",
"tag_url": "http://example.com/tag",
"active": true,
"default": false
}'
Responses
🟢200OK
application/json
Body
object {0}
Example
{"message":"Advertisement updated successfully.","result":{"id":"07df2817-116f-47b7-9da7-67005ef83a20","user_id":"10bb71cf-57e0-436d-a449-0b68ef13c731","project_id":"5eca71a3-bc93-45cf-ad6e-45be2961f921","collection_id":"00000000-0000-0000-0000-000000000000","tag_url":"http://example.com/tag","name":"Sample Advertisement new","active":true,"default":false,"created_at":"2024-02-06T14:11:10+06:00","updated_at":"2024-02-06T09:09:49.602629289Z","created_by":"10bb71cf-57e0-436d-a449-0b68ef13c731","updated_by":"10bb71cf-57e0-436d-a449-0b68ef13c731"},"success":true}
🟢200OK
🟢200OK final 1