{"id":19176866,"url":"https://github.com/googleads/hbbtv-lshape-demo","last_synced_at":"2025-05-07T19:41:41.173Z","repository":{"id":49394249,"uuid":"515619440","full_name":"googleads/hbbtv-lshape-demo","owner":"googleads","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-20T06:57:33.000Z","size":113,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-20T02:35:42.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googleads.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-19T14:29:32.000Z","updated_at":"2024-08-12T20:25:14.000Z","dependencies_parsed_at":"2023-01-20T05:30:25.997Z","dependency_job_id":null,"html_url":"https://github.com/googleads/hbbtv-lshape-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleads%2Fhbbtv-lshape-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleads%2Fhbbtv-lshape-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleads%2Fhbbtv-lshape-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleads%2Fhbbtv-lshape-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleads","download_url":"https://codeload.github.com/googleads/hbbtv-lshape-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252945521,"owners_count":21829600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T10:30:50.397Z","updated_at":"2025-05-07T19:41:41.150Z","avatar_url":"https://github.com/googleads.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hbbtv-lshape-demo\nThis sample app demonstrates serving L-Shape banner ads using standard Google Ad\nManager [tags](https://developers.google.com/publisher-tag/guides/get-started).\nThe ad is booked as a\n[custom creative](https://support.google.com/admanager/answer/3180782?hl=en) in\n[Google Ad Manager](https://admanager.google.com/intl/en_uk/home/). See\n[sample](/assets/sample_creative.html) in the assets section.\n\nThe application listens to events set in the DVB stream to trigger the ad request.\n\nKey features:\n* stream event triggers the ad request and defines the creative’s display duration and targeting\n* creative’s display duration can be set in the creative itself (using the window.postMessage API) to safely enable communication between the creative served in an iframe and the HbbTV application\n* supports passing a targeting object in the stream event. Example: `{\"type\" :\"adBreakTrigger\", \"duration\": 5, \"targeting\": {\"key1\": \"value1\", \"key2\": \"value2\"}}`\n\n## Broadcast stream modulation\nThis application has been developed and tested using the [Beebee Box](https://site.vizionr.fr/site/index.php/offre-hbbtv/) for DVB modulation. The XML file containing the HbbTV stream events is looking as the following:\n```\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cevents\u003e\n  \u003cevent timestamp=\"00:00:33:000\" value='{\"type\":\"adBreakTrigger\", \"duration\": 10, \"targeting\": {\"key1\":\"value1\", \"key2\":\"value2\"}}'/\u003e\n  \u003cevent timestamp=\"00:01:47:590\" value='{\"type\":\"adBreakTrigger\", \"duration\": 15, \"targeting\": {\"key1\":\"value2\"}}'/\u003e\n\u003c/events\u003e\n```\n\n## Test\nYou can use the [HybridTV Dev Environment Chrome Extension](https://chrome.google.com/webstore/detail/hybridtv-dev-environment/ljmkgjilkcmdokbgofbmjnkobejhhapc) to emulate a HbbTV environment. Pages served with mime type `application/vnd.hbbtv.xhtml+xml` enable the extension.\n\nYou can trigger stream events directly from the Chrome extension as follows:\n\n*   streamEvent name =\u003e `eventItem`\n*   streamEvent data =\u003e leave empty\n*   streamEvent text =\u003e `{\"type\":\"adBreakTrigger\", \"duration\": 10,\n    \"targeting\": {\"key1\":\"value1\", \"key2\":\"value2\"}}`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleads%2Fhbbtv-lshape-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleads%2Fhbbtv-lshape-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleads%2Fhbbtv-lshape-demo/lists"}