API v3 Reference
- Intro
- Authenticating
- get_video_status

- launch_video

- launch_cross_post

- launch_destination

- launch_feed

- list_available_sites

- list_available_destinations

- list_available_feeds

- list_available_cross_post_sites

- list_categories

- list_campaigns

- list_uploads

- list_upload_video_stats

- upload_video

- upload_video_url

- which_host

- recall_video

- add_mrss_feed

- get_mrss_feed_status

- Additional Inplay Info
- get_views

- get_viewed_minutes

- get_unique_viewers

- get_new_viewers

- get_video_list_analytics

- get_video_engagement

- get_player_embeds

- get_geo_analytics

- get_categories

- get_traffic_sources

- get_search_terms

- get_attention_span

- get_bandwidth_usage

- get_stream_rebuffers

- get_start_delays

- get_video_list_performance

- get_geo_performance

- get_os

- get_browser

- get_runtime

- get_demographics_age

- get_demographics_gender

- get_demographics_hh_income

- get_demographics_marital_status

- get_demographics_children

- get_demographics_homeowners

- get_trackers

- create_tracker

- update_tracker

- get_publishers

- share_inplay

- share_revoke

- share_list

- List of Video Sites
- PHP Reference Application
- Info For Partners
- Timezones
- Troubleshooting
Getting Started
Upload
InPlay
InPlay Admin
Appendix
get_video_engagement
Gets detailed engagement data on a single video. Note that video IDs must be used in the player to identify videos in order to use this method. This includes both completion metrics, plus the number of views for each second of the video.
Explorer
Request URL
http://api.tubemogul.com/api/v3/
HTTP method
GET
Arguments
Note one of the following must be provided.
scope(string)- The scope of the method being called. Valid values are
trackerorpublisher. id(string)- The ID corresponding to the scope of the report.
start(string)- The start date for the report. Format is YYYY-MM-DD.
end(string)- The end date for the report. Format is YYYY-MM-DD.
site_id (string)— Optional- The ID for your site. This is required for publisher-scoped queries but not for trackers. Contact us if you do not know your site_id.
ip_video_id (string)— Optional- The InPlay (TubeMogul-assigned) identifier provided for this video. This is unique for every distinct video, and will not change over time.
video_id (string)— Optional- The identifier provided for this video in the video player. This must be unique for every distinct video, and must not change over time.
Response Parameters
ip_video_id (string)- The InPlay (TubeMogul-assigned) identifier provided for this video. This is unique for every distinct video, and will not change over time.
video_id (string)- The identifier provided for this video in the video player. This must be unique for every distinct video, and must not change over time.
display_name (string)- The display name provided for this video in the video player.
url (string)- The URL of the video file.
publisher_id (string)- The identifier provided for the publisher of this video in the video player. This must be unique for every distinct video, and must not change over time.
views (integer)- The number of times the video was viewed. A view is defined as when the video is actually played, i.e. when play is called on the Flash video object.
viewed_minutes (integer)- The total viewed minutes for this video.
pct_completions_50 (number)- The percentage of views that watched at least 50% of the video.
pct_completions_75 (number)- The percentage of views that watched at least 75% of the video.
pct_completions_100 (number)- The percentage of views that watched at least 100% of the video.
details (list)- A list of views for each second of the video. Note that if a
dimparameter is specified, the views per second is not filtered. These filters will only apply to the other statistics in the response. Otherwise, entries will scoped based on the arguments provided in the request.
Example Response
http://api.tubemogul.com/api/v3?date=1230109922&user_id=123456 &scope=tracker&id=TD-PEX-222&video_id=45800160&method=get_video_engagement &interval=perday&start=2008-12-10&end=2008-12-31&index=1&max_results=20 &auth=aa6fb416b3cac7861be9c9db2ebeef564b70f2e4ZSwU3y08aVxUBrkMTlej video_id>45800160My first really cool video http://myvideosite.com/RD08243_51796640.flv 5438134 176441 68693 14.78 9.55 5.55 ... 1 130858 20 49319