Ping
The ping event is a heartbeat that keeps the session alive and tracks playback progress. Send it on a timer throughout playback. On Mobile SDKs, pings are sent automatically; on all other platforms they must be sent manually on the specified interval.
- Main content: first ping 10 seconds after playback starts, then every 10 seconds thereafter
- Ad content: every 1 second during ad tracking
Do not include a params object in the ping request body.
- Prerequisites: Session start
- Associated metric: None
Recommended implementation types
Schedule a recurring sendEvent call with eventType: "media.ping". Update playhead to the current playback position on each call:
| code language-javascript |
|---|
|
Schedule a recurring sendMediaEvent call with eventType: "media.ping". Update playhead to the current playback position on each call:
| code language-brightscript |
|---|
|
Call the ping endpoint on a timer. Adobe recommends the first ping 10 seconds after main playback starts, every 10 seconds after that, and every 1 second during ad tracking:
| code language-sh |
|---|
|
Legacy implementation types (Analytics-only)
Send a ping POST to the events endpoint on a timer. Do not include a params object:
| code language-json |
|---|
|