Skip to content

Add support for engagedViews metric #441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
altxtech opened this issue May 9, 2025 · 4 comments
Closed

Add support for engagedViews metric #441

altxtech opened this issue May 9, 2025 · 4 comments

Comments

@altxtech
Copy link

altxtech commented May 9, 2025

Context

This is a new metric added in the latest revision for youtube Analytics and Reporting APIs

https://developers.google.com/youtube/analytics/revision_history

https://developers.google.com/youtube/analytics/metrics

Trying to pull that metrics will not work with Yt::Video#reports. Something like:

# video is Yt::Video
video.reports only: [:views, :engagedViews], by: :day, since: "2025-04-01", until: "2025-05-01"

The engaged views metrics will just get ignored in the resulting report.

@kangkyu
Copy link
Contributor

kangkyu commented May 12, 2025

Thank you for reporting the update!

@kangkyu
Copy link
Contributor

kangkyu commented May 20, 2025

video.reports only: [:views, :engaged_views], by: :day, since: "2025-04-01", until: "2025-05-01"

It will be available like this, if merge #442

@altxtech
Copy link
Author

@kangkyu That's perfect. Thank you.

Here's a cool GH trick tough. In GH pull requests, you can use the closes keyword to auto close issues when the PR merges.
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests

@kangkyu
Copy link
Contributor

kangkyu commented May 23, 2025

By #444 engagedView is available for video group and playlist as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants