question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intent-to-Implement: Ad-enabled video player using the IMA SDK

See original GitHub issue

We want to create a new extension, <amp-ima-video>, which takes a content URL and a video ad tag and provides an ad-enabled video player with your content and ads. This will use Google’s IMA SDK. For a demo of the IMA SDK, see our sample. Sample tag:

<amp-ima-video
    width="640px"
    height="360px"
    src="VIDEO_URL"
    ad-tag-url="AD_TAG_URL">
</amp-ima-video>

This will render on the page a video player, which will play the provided content and ads. We’re looking for implementation advice. Specifically, I’m having trouble getting the ima3.js library loaded and available to the extension without using an iframe for the extension itself, which is not necessary for our implementation. Also, if possible, our extension could extend the existing amp-video element (instead of BaseElement).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:36 (34 by maintainers)

github_iconTop GitHub Comments

1reaction
jasticommented, Feb 10, 2017

@aghassemi is on vaca

  1. any chance we can use the controls from amp-video?
  2. Shouldn’t be a blocker for our launch
  3. Some samples delivering ads from DFP, AdX and 3rd party tags would also be helpful.

@jpettitt FYI, on your request for a default player with ability to monetize.

1reaction
cramforcecommented, Sep 26, 2016

Not using an iframe will only be possible if https://developers.google.com/interactive-media-ads/docs/sdks/html5/ is open source with a compatible license and can be fully included in AMP. That is likely not such a great idea.

The next option is to host your own iframe, or use an 3p-frame based implementation. amp-twitter and amp-facebook use that mechanism.

@aghassemi Can guide you through implementing the new video interface which is now required for video players.

CC @jasti

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started | IMA SDK for HTML5 - Google Developers
This guide demonstrates how to integrate the IMA SDK into a simple video player app. If you would like to view or follow...
Read more >
Problems with integration of html5 ima sdk into our player ...
We've been in the process of integrating google IMA SDK for our html5 video player. We've two problems which are persisting us all...
Read more >
Video technology partners - Google Ad Manager Help
Third-party video technology partners have integration experience with the Google IMA SDK and Ad Manager video and audio line items, and are ready...
Read more >
IMA SDK integration for Android app, with videoview and ...
In our code we are using VideoView in a fragment for playing the videos, along with media player. Since the illustartion in sample...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found