Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

googlesamples/tv-video-discovery-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains samples demonstrating how a 3p app can integrate withthe video discovery APIs to send personalized user data to Google.

When should you invoke the APIs?

Caution

The publish APIs are overwrite APIs. Every new publish API call will overwritethe previously published requests for that specificAccountProfile. So,please don't invoke the delete API to clear Continue Watching row becausedelete APIs are reserved for special instances. Instead, just invoke thepublish APIs with empty list in the request body.

Important

Remember to set thesyncAcrossDevices flag totrue (orfalse if userhasn't consented to share the data with Google) in both the publish as well asdelete requests regardless of the PublishReason or DeleteReason.

  1. Publish Continuation Clusters API: This api should be invoked on thefollowing user events:
    • User logs in to the account. If your app supports multiple profiles withinthe same account, then invoke the publish API after the user selects theprofile
    • User switches between profiles (only applicable if your app supportsmulti-profile accounts)
    • User pauses/stops playing a video. This includes publishing when user hitsthe back button to go back to previous page while the video playback was inprogress. This also includes app exit when the playback is in progress.
    • User scrubs the video forwards or backwards
    • User completes watching a video. The Continue Watching request should nownot contain the completed video. If the video is part of a series (Movie orTv Show), then add the next video to the Continue Watching request withcorrectWatchNextType.
    • User removes an item from your app's Continue Watching row. The ContinueWatching request should now not contain the removed entity.
  2. Delete Clusters API: Use the correct DeleteReason when sending the deleterequest. Invoke the Delete Clusters API on the following events:
    • User logs out of the account
    • User revokes consent to share data with Google
    • User deletes a profile within an account
    • User deletes the entire account

Samples

  • android-kotlin: Demonstrates how an Android Tv and Android Mobile appwritten in Kotlin can integrate with Engage SDK to publish user personalizeddata.

Contributing

To report a bug or raise a feature request, please use GitHub issues. Pleasecheck with the contributors if it would be ok for you to work on it. An approvedGitHub issue is required along with your Pull request.

You will also need to sign the CLA. When you raise a PR, the bot will ask you todo that.

Warning

A pull request without an approved issue will be closed without giving anyreason.

Disclaimer

This project is intended for demonstration purposes only and is not eligible fortheGoogle Open Source Software Vulnerability Rewards Program.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp