tag:blogger.com,1999:blog-78156144858085793322024-11-22T20:29:27.710-08:00Google Ads Developer BlogThe official blog for information about the Google Ads, Google Ad Manager, Google Mobile Ads SDKs for AdMob and IMA SDKs, and other Google Advertising Platform developer tools.Stan Grinberghttp://www.blogger.com/profile/13815957415507388389[email protected]Blogger68125tag:blogger.com,1999:blog-7815614485808579332.post-24457880349321031712024-09-19T07:06:00.000-07:002024-09-19T07:06:18.992-07:00Subscribe to the blogIf you want all new blog posts sent directly to your inbox, we have good news. The blog includes a customizable <a href="https://www.blogger.com/feeds/7815614485808579332/posts/default">RSS feed</a> that you can subscribe to with your favorite RSS service. Just paste the URL above into your RSS service and get the blog contents delivered in whatever way you prefer. If you're new to RSS, check out this <a href="https://github.com/AboutRSS/ALL-about-RSS">community resource on GitHub</a> describing how it works and providing a list of well-supported services.<br /><br />
If you want to filter to specific products that interest you, that's possible too. Here are some quick links to the RSS feeds for the products supported by this blog:
<ul>
<li><a href="https://www.blogger.com/feeds/7815614485808579332/posts/default?category=google_ads_api&orderby=published">Google Ads API</a></li>
<li><a href="https://www.blogger.com/feeds/7815614485808579332/posts/default?category=google_ads_scripts&orderby=published">Google Ads scripts</a></li>
<li><a href="https://www.blogger.com/feeds/7815614485808579332/posts/default?category=ad_manager_api&orderby=published">Ad Manager API</a></li>
<li><a href="https://www.blogger.com/feeds/7815614485808579332/posts/default?category=authorized_buyers&orderby=published">Authorized Buyers</a></li>
<li><a href="https://www.blogger.com/feeds/7815614485808579332/posts/default?category=dbm_api&orderby=published">Bid Manager API</a></li>
<li><a href="https://www.blogger.com/feeds/7815614485808579332/posts/default?category=dv360_api&orderby=published">DV360 API</a></li>
<li><a href="https://www.blogger.com/feeds/7815614485808579332/posts/default?category=sdf&orderby=published">Structured Data Files</a></li>
<li><a href="https://www.blogger.com/feeds/7815614485808579332/posts/default?category=ima_sdk&orderby=published">IMA SDK</a></li>
<li><a href="https://www.blogger.com/feeds/7815614485808579332/posts/default?category=mobile_ads_sdk&orderby=published">Mobile Ads SDK</a></li>
</ul>
<span class="byline-author"> - Mike Cloonan, Ads DevRel Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-19579748425872185532022-06-21T11:21:00.003-07:002022-06-21T11:21:51.102-07:00The Video.js-IMA plugin adds DAI support for HLS streams<p>
The <a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/dai">IMA Dynamic Ad Insertion (DAI) SDK</a> lets apps make stream requests for ad and content video streams, either VOD or live content. The SDK then enables a video player to play the combined stream so you don't have to manage switching between ad and content video within your apps.
</p>
<p>
To improve support for HTML5 publishers, we have expanded the features provided by the <a href="https://github.com/googleads/videojs-ima">Video.js-IMA plugin</a> to include DAI for HLS streams. With the latest version of the plugin, you can enable a Video.js player to request ads and content in a single HLS stream. Check out the new <a href="https://googleads.github.io/videojs-ima/examples/dai/">DAI sample app</a> and the <a href="https://github.com/googleads/videojs-ima/blob/main/README-DAI.md">DAI README file</a> for implementation details on how the Video.js-IMA plugin can simplify your IMA DAI integration.
</p>
<p>
For more information on IMA DAI, please see the <a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/dai">IMA HTML5 DAI getting started guide</a>. If you have any questions or feedback about using DAI with the Video.js-IMA plugin,<a href="https://github.com/googleads/videojs-ima/issues"> please</a> <a href="https://github.com/googleads/videojs-ima/issues">raise an issue</a> on GitHub.
</p>
<p><span class="byline-author"><img width="40" height="40" src="https://lh3.googleusercontent.com/a-/AAuE7mCuOE0ipL96v9WF_TDUZ-jVGrtltQwnw7C4-TyT=s120-p-rw-no?sz=40" style="vertical-align:middle; border:none;"> - Jackson Sui, Interactive Media Ads Developer Relations</span></p>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-51499534027990524742021-12-14T10:02:00.000-08:002021-12-14T10:02:56.209-08:00Updates to Chromecast integrations with Interactive Media Ads<br /><br /><h2 style="text-align: left;">CAF DAI SDK Released</h2>The <a href="https://developers.google.com/interactive-media-ads">Interactive Media Ads</a> team is excited to announce that we’ve teamed up with the <a href="https://developers.google.com/cast">Cast Application Framework</a> team to bring you the <a href="https://developers.google.com/interactive-media-ads/docs/sdks/caf-dai">CAF DAI SDK</a>, a fully supported solution for casting DAI video streams to Chromecast devices. This project is a complete rewrite of our original <a href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/dai">IMA SDK for Cast</a>, significantly reducing the amount of code publishers need to write and streamlining the integration between the two SDKs.<br /><br />The <a href="https://developers.google.com/interactive-media-ads/docs/sdks/caf-dai">CAF DAI SDK</a> provides a deep integration with <a href="https://developers.google.com/cast/docs/web_receiver/ad_breaks#server-side_ad_stitching">Chromecast Application Framework's native Ad Breaks</a>, meaning that adding around 30 lines of code to an existing CAF receiver can enable:<br /><ul style="text-align: left;"><li>DAI support for both Live and VOD streams</li><li>Media queue management</li><li>Sender and receiver UI, including ad break markers</li><li>Bidirectional communications between sender and receiver</li><li>Skippable ad support on VOD streams</li></ul><br />With the previous SDK, all of these functions required manual implementation. <br /><br /><br />
<img src="https://lh5.googleusercontent.com/nVcx_h9zrGFLiEWLNaXw6U8HKxvyrpOF1IaolRyXbzmPgPhXVcQD0UBk0qX7UOZIidf1ohcsr5YRMIirXTUlBmHbKp8VYSZNoPupcnCOmleq5y61pxCXq47lDXzvRp9mdO6g2qsbBTYCEBpbGves7tIeBugsrOEybnDlNHOUOivETHrk"style="width: 100%;" />
<i>A fully-featured CAF DAI integration</i><br /><br /><br /><br /><h2 style="text-align: left;">IMA SDK for Cast deprecated</h2>As of December 13, 2021, both the <a href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/client-side">client-side</a> and <a href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/dai">DAI</a> versions of the IMA SDK for cast are now deprecated. Publishers who are currently using the IMA SDK for cast to implement client-side advertisements are encouraged to migrate to using <a href="https://developers.google.com/cast/docs/web_receiver/ad_breaks">CAF native ad breaks</a>. Publishers who are currently using the IMA SDK for cast to implement DAI advertisements are encouraged to migrate to the new <a href="https://developers.google.com/interactive-media-ads/docs/sdks/caf-dai">CAF DAI SDK</a>. These new implementation options offer publishers significantly simpler integrations with better stability and tighter integration with the entire cast ecosystem.<br />
<table style="border-collapse: collapse; border: none; width: 100%;">
<tbody>
<tr style="background-color: #6199df; border-bottom: solid #4d90fe 1px; border-left: solid #4d90fe 1px; border-right: solid #4d90fe 1px; border-top: solid #4d90fe 1px; height: 0px; vertical-align: top;">
<th style="border-bottom: solid #4d90fe 1px; border-left: solid #4d90fe 1px; border-right: solid #4d90fe 1px; border-top: solid #4d90fe 1px; padding: 7px 7px 7px 7px;"><span style="color: white;">Advertisement Type</span>
</th>
<th style="border-bottom: solid #4d90fe 1px; border-left: solid #4d90fe 1px; border-right: solid #4d90fe 1px; border-top: solid #4d90fe 1px; padding: 7px 7px 7px 7px;"><span style="color: white;">Deprecated Solution</span>
</th>
<th style="border-bottom: solid #4d90fe 1px; border-left: solid #4d90fe 1px; border-right: solid #4d90fe 1px; border-top: solid #4d90fe 1px; padding: 7px 7px 7px 7px;"><span style="color: white;">Recommended Solution</span>
</th>
</tr>
<tr>
<td style="border-bottom: solid #bbbbbb 1px; border-left: solid #bbbbbb 1px; border-right: solid #bbbbbb 1px; border-top: solid #bbbbbb 1px; padding: 7px 7px 7px 7px; vertical-align: middle;">Client Side</td>
<td style="border-bottom: solid #bbbbbb 1px; border-left: solid #bbbbbb 1px; border-right: solid #bbbbbb 1px; border-top: solid #bbbbbb 1px; padding: 7px 7px 7px 7px; vertical-align: middle;"><a href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/client-side">IMA SDK for Cast</a></td>
<td style="border-bottom: solid #bbbbbb 1px; border-left: solid #bbbbbb 1px; border-right: solid #bbbbbb 1px; border-top: solid #bbbbbb 1px; padding: 7px 7px 7px 7px; vertical-align: middle;"><a href="https://developers.google.com/cast/docs/web_receiver/ad_breaks">CAF native ad breaks</a></td>
</tr>
<tr>
<td style="border-bottom: solid #bbbbbb 1px; border-left: solid #bbbbbb 1px; border-right: solid #bbbbbb 1px; border-top: solid #bbbbbb 1px; padding: 7px 7px 7px 7px; vertical-align: middle;">DAI</td>
<td style="border-bottom: solid #bbbbbb 1px; border-left: solid #bbbbbb 1px; border-right: solid #bbbbbb 1px; border-top: solid #bbbbbb 1px; padding: 7px 7px 7px 7px; vertical-align: middle;"><a href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/dai">IMA SDK for Cast</a> </td>
<td style="border-bottom: solid #bbbbbb 1px; border-left: solid #bbbbbb 1px; border-right: solid #bbbbbb 1px; border-top: solid #bbbbbb 1px; padding: 7px 7px 7px 7px; vertical-align: middle;"><a href="https://developers.google.com/interactive-media-ads/docs/sdks/caf-dai">CAF DAI SDK</a></td>
</tr>
</tbody>
</table>
<br />The <a href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/dai">Client side</a> and <a href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/dai">DAI</a> versions of the IMA SDK for Cast will continue to function for the foreseeable future but support and new development will be focused on the CAF DAI SDK moving forward. The IMA SDK team will continue to offer best attempt support for the deprecated SDKs through December of 2022, however, some limitations of the older platform may only be resolved by migrating to the new workflows described above.<br /><br /><br />We highly recommend that publishers who are currently using the older IMA SDK for Cast begin migrating to these new workflows for improved stability, simplified integration, and a much more polished developer experience.<br /><br /><br />—<br /><br /><br />For more information about these changes, check out the <a href="https://developers.google.com/interactive-media-ads/docs/sdks/caf-dai">developer documentation</a>. If you have any issues migrating your integration from the IMA SDK for Cast to the CAF DAI SDK, feel free to reach out via our <a href="https://groups.google.com/g/ima-sdk">developer forums</a>.<br />Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-6019487360132434272020-09-18T14:40:00.004-07:002021-03-16T11:21:01.380-07:00Changes to pause behavior in the Interactive Media Ads (IMA) SDK<p>
<strong style="color: red">Updated (3/16/2021):</strong> We have launched the new “pause” behavior on 25% of IMA traffic. This feature will be enabled on 100% of IMA traffic by April 16, 2021. Publishers looking to temporarily disable the new pause behavior may do so using the <a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.ImaSdkSettings#setFeatureFlags">ImaSdkSettings.setFeatureFlags()</a> API:
</p>
<pre class="prettyprint">adsLoader.getSettings().setFeatureFlags({'disableClickAdPause': true});</pre>
<p>
This feature flag will be available to publishers to disable the new pause behavior until June 1, 2021 to give publishers more time to make the recommended changes outlined below. After June 1, 2021, this feature flag will no longer function and will become a no-op.
</p>
<p><strike>
<strong style="color: red">Update (1/14/2021):</strong> The new target date for the changes to pause behavior to begin to launch is <strong>February 14th, 2021</strong>. Initially these changes will only affect a low percentage of requests in order to allow publishers time to make any adjustments without affecting their entire inventory. These changes will ramp up to 100% of IMA impressions on <strong>March 2nd, 2021</strong>.
</strike></p>
<p><strike>
<strong style="color: red">Update (11/13/2020):</strong> The November 9th launch got rolled back due to the release negatively impacting some publishers. These changes are now being delayed until Q1 2021, with a more specific date to follow. The new date has now been updated in the below text.
</strike></p>
<p><strike>
<strong style="color: red">Update (10/27/2020):</strong> The targeted date for the changes to pause behavior is now set for <strong>November 9th, 2020</strong>. This has been updated in the below text, instead of the original date of October 13th, 2020.
</strike></p>
<p>
The IMA SDK is preparing to release changes to pause behavior when user clicks cause navigation away from the page or app. When this happens, the ad will be paused automatically by the SDK. These changes will launch on <strong>February 14th, 2021</strong> for a low percentage of IMA requests. By <strong>April 16th, 2021</strong> the changes to pause behavior will ramp up to affect 100% of IMA requests.
</p>
<p>
The IMA client-side SDKs already pause ad playback for ad click-throughs, but these changes add automatic pausing to many other user actions. The IMA DAI SDKs currently do not pause for any click events. For either implementation, if your code does not already provide a way for users to resume ad playback when ads are paused, we recommend adding a way to resume ad playback following ad pause events.
</p>
<p>
When the SDK automatically pauses the ad, the <a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdEvent#.Type"><code>PAUSED</code></a> event will be fired. We recommend that publishers listen for this event, and update the UI to allow the viewer to resume the ad. <strong>If this UI is not shown, the player may be permanently paused on the ad without a way for the user to resume ad or content playback</strong>.
</p>
<h3>Client-side changes</h3>
<ul>
<li>On Desktop web, the SDK will automatically pause when the user clicks on an ad which results in navigation away from the page.
<ul>
<li>This behavior already exists for mobile web and mobile apps.</li>
</ul>
</li>
<li>On all platforms, the SDK will attempt to automatically pause if the user clicks on the:
<ul>
<li>Learn more button
<li>Ad click (desktop)
<li>Non-linear ad
<li>Icon click
<li>AdChoices icon</li>
</ul>
</li>
</ul>
<h3>Dynamic Ad Insertion (DAI) changes</h3>
<ul>
<li>On all platforms for DAI, the SDK will attempt to automatically pause if the user clicks on the: <ul>
<li>Learn more button
<li>Ad click (desktop)
<li>Icon click
<li>AdChoices icon</li> </ul>
</li> </ul>
<h3>Pause events</h3>
<p>The table below shows which API is called when a pause event occurs:</p>
<table border=1>
<tr>
<th><strong>IMA platform</strong>
</th>
<th><strong>SDK version</strong>
</th>
<th><strong>Pause event for client-side SDK</strong>
</th>
<th><strong>Pause event for DAI SDK</strong>
</th>
</tr>
<tr>
<td>HTML5
</td>
<td>The current evergreen version.
</td>
<td><a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdEvent#.Type">google.ima.AdEvent.Type.PAUSED</a>
</td>
<td>The video player’s <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/pause_event">pause event</a>.
</td>
</tr>
<tr>
<td>Android
</td>
<td>V3.20.0 and later.
</td>
<td><a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/dai/api/reference/com/google/ads/interactivemedia/v3/api/player/VideoAdPlayer.html#public-abstract-void-pausead-admediainfo-admediainfo">videoAdPlayer.pauseAd()</a>
</td>
<td><a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/dai/api/reference/com/google/ads/interactivemedia/v3/api/player/VideoStreamPlayer.html#pause()">videoStreamPlayer.pause()</a>
</td>
</tr>
<tr>
<td>iOS/tvOS
</td>
<td>All versions
</td>
<td><a href="https://developers.google.com/interactive-media-ads/docs/sdks/ios/dai/reference/Enums/IMAAdEventType#kimaadevent_pause">kIMAAdEvent_PAUSE</a>
</td>
<td><a href="https://developers.google.com/interactive-media-ads/docs/sdks/ios/dai/reference/Enums/IMAAdEventType#kimaadevent_pause">kIMAAdEvent_PAUSE</a>
</td>
</tr>
</table>
<p>
<em>Note: For Android, the onPause event is only available on v3.20.0 and later. For previous versions the IMA SDK will not automatically pause ads, and developers will not have to implement these changes.</em>
</p>
<p>
Please see the following code snippet as an example of setting up a listener for the PAUSED event for a client-side HTML5 IMA SDK implementation:
</p>
<pre class="prettyprint">adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED, function() {
showAdResumeUI();
});
function showAdResumeUI() {
// TODO: Add a play button that resumes playback.
}</pre>
<p>
Please review your IMA SDK integrations and make any necessary adjustments to handle the pause event so that you’re prepared for when the changes go live on <strong>February 14th, 2021</strong>. Please look for announcements about pause behavior changes in the IMA HTML5 SDK <a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/history">release notes</a>. If you have questions about making these changes for your own IMA SDK integrations, feel free to reach out to us on the <a href="https://groups.google.com/group/ima-sdk">IMA SDK forum</a>.
</p>
<p><span class="byline-author"><img width="40" height="40" src="https://lh3.googleusercontent.com/a-/AAuE7mCuOE0ipL96v9WF_TDUZ-jVGrtltQwnw7C4-TyT=s120-p-rw-no?sz=40" style="vertical-align:middle; border:none;"> - Jackson Sui, Interactive Media Ads Developer Relations</span></p>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-55408471725562336262020-05-27T11:06:00.000-07:002020-05-27T11:06:46.203-07:00SIMID support in the Interactive Media Ads SDK<p>
The <a href="https://iabtechlab.com/simid/">Secure Interactive Media Interface Definition</a> (SIMID) is a new ad format for interactive video ads. It was designed to be the successor of the Video Player Ad-Serving Interface Definition (VPAID) according to the Interactive Advertising Bureau. SIMID addresses many of the issues with VPAID, including slow loading times, security limitations, and being difficult to debug with only a single error code (901).
</p>
<p>
SIMID support is available in the HTML5, Android, and iOS IMA SDKs for client-side ads starting with the following releases:
</p><ul>
<li><a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/history">Version 3.383.0 for HTML5</a>
<li><a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/history">Version 3.18.1 for Android</a>
<li><a href="https://developers.google.com/interactive-media-ads/docs/sdks/ios/v3/history">Version 3.11.4 for iOS</a></li></ul>
<h3>Improvements in the SIMID API Model over VPAID</h3>
<p>
Unlike VPAID, the code for SIMID ad creatives runs in a secure sandbox so that it cannot access other resources on the page. With SIMID, the player maintains control while the creative sends messages to the player about which actions are needed to perform its functions. This is demonstrated in the diagram below:
</p>
<p>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpakH61xE19YrFt79cvOOtSV89qhSRUZAIzpZ5AOL2fzYQ4Y6-kzHdIPQlTFYs_QqW-mK-nR8T21ggxdBu3XXtOlsjbqe_2F6YaR-gBuchFx-bazDWpHYZwCoXGBRVNyWbrj5R8-dOzFQ/s1600/vpaid.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpakH61xE19YrFt79cvOOtSV89qhSRUZAIzpZ5AOL2fzYQ4Y6-kzHdIPQlTFYs_QqW-mK-nR8T21ggxdBu3XXtOlsjbqe_2F6YaR-gBuchFx-bazDWpHYZwCoXGBRVNyWbrj5R8-dOzFQ/s640/vpaid.png" width="640" height="272" data-original-width="800" data-original-height="340" /></a></div>
<p>
As a result, SIMID offers the following advantages over VPAID:
</p><ul>
<li>Improved security by sandboxing the ad from the publishers page
<li>Improved asset transparency by including the media file in the VAST response
<li>Support for pre-caching
<li>Faster load times
<li>Improved error reporting from more granular <a href="https://interactiveadvertisingbureau.github.io/SIMID/#error-codes">error codes</a></li></ul>
<h3>Using SIMID with the IMA SDK</h3>
<p>
SIMID creatives are ready to be used within VAST ad-tags. To get started, see the <a href="https://github.com/InteractiveAdvertisingBureau/SIMID">IAB’s example on GitHub</a> or test it yourself using this <a href="https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/simid&description_url=https%3A%2F%2Fdevelopers.google.com%2Finteractive-media-ads&tfcd=0&npa=0&sz=640x480&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=">SIMID ad tag</a>. If you have questions about the IMA SDK, see the <a href="https://developers.google.com/interactive-media-ads">SDK documentation</a> or reach out to us on the <a href="https://groups.google.com/group/ima-sdk">IMA SDK forum</a>.
</p>
<p><span class="byline-author"><img width="40" height="40" src="https://lh3.googleusercontent.com/a-/AAuE7mCuOE0ipL96v9WF_TDUZ-jVGrtltQwnw7C4-TyT=s120-p-rw-no?sz=40" style="vertical-align:middle; border:none;"> - Jackson Sui, Interactive Media Ads Developer Relations</span></p>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-16661884701732161832019-12-17T12:23:00.000-08:002019-12-17T12:23:34.879-08:00The Interactive Media Ads (IMA) SDK for Android moves to Google's Maven repository<p>
With the release of version 3.16.0 of the Interactive Media Ads SDK (IMA SDK) for Android, the location where we host the SDK has changed to <a href="https://maven.google.com/web/index.html">Google's Maven Repository</a>.
</p>
<p>
As a result of this change, your Android project should include a reference to the <code>google()</code> repository (Google's Maven Repository) as a dependency. Previously, the SDK was hosted on <a href="https://bintray.com/bintray/jcenter">JCenter</a>. You can now remove the <code>jcenter()</code> reference from your Android project’s <code>build.gradle</code> file, as long as none of your other dependencies are hosted there.
</p>
<p>
The <code>google()</code> repository should be referenced in the project-level <code>build.gradle</code> file of your project. You should then import the IMA SDK in the <code>app/build.gradle</code> file. See an example in the following code snippet from the <a href="https://developers.google.com/interactive-media-ads/docs/sdks/android#adding-the-ima-android-sdk-to-the-player-app">Adding the IMA Android SDK to the player app</a> section of the Android IMA SDK getting started guide.
</p>
<pre class="prettyprint">repositories {
google()
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.16.0'
}</pre>
<p>
Another change that comes from this update is that the <code>com.google.android.gms:play-services-ads-identifier</code> target is now included as a dependency of the IMA SDK and is no longer required to be explicitly included in the <code>app/build.gradle</code> file.
</p>
<p>
If you have questions about the IMA SDK for Android, please see the <a href="https://developers.google.com/interactive-media-ads/docs/sdks/android">SDK documentation</a>, or reach out to us on the <a href="https://groups.google.com/group/ima-sdk">IMA SDK forum</a>.
</p>
<p><span class="byline-author"><img width="40" height="40" src="https://lh3.googleusercontent.com/a-/AAuE7mCuOE0ipL96v9WF_TDUZ-jVGrtltQwnw7C4-TyT=s120-p-rw-no?sz=40" style="vertical-align:middle; border:none;"> - Jackson Sui, Interactive Media Ads Developer Relations</span></p>
Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-85439977521736725052019-02-08T09:31:00.000-08:002019-02-08T09:31:55.960-08:00Subscribe to our RSS feed to get blog posts via email<div dir="ltr" style="text-align: left;" trbidi="on">
<em>(If you want to continue getting email updates about our blog posts, read on. If you don't want email updates from this blog, you can skip this post.)</em><br /><br />
For some products, the Google Ads Developer team has used Google groups as a way to allow API users to subscribe and get new relevant blog posts delivered to their email address. Starting now, <strong>the way you can get email updates about blog posts is changing</strong>. We will no longer send an email to the Google group for each new blog post. We will continue to use the Google groups for other important updates, however.<br /><br />
For users who still want email updates, we've introduced new FeedBurner links on the right-hand panel of our <a href="https://ads-developers.googleblog.com/">blog homepage</a>. You can subscribe to the RSS feed by clicking on the link for the product you're interested in, or subscribe by email by clicking on the [+] link to the right of the product name.<br /><br />
If you use any of the APIs that we discuss on this blog, make sure you subscribe to the feed to keep up with the latest news and updates:
<ul>
<li><a href="http://feeds.feedburner.com/blogspot/hecyUu">Google Ads API</a> [<a href="https://feedburner.google.com/fb/a/mailverify?uri=blogspot/hecyUu">+</a>]</li>
<li><a href="http://feeds.feedburner.com/blogspot/lQlzL">AdWords API</a> [<a href="https://feedburner.google.com/fb/a/mailverify?uri=blogspot/hecyUu">+</a>]</li>
<li><a href="http://feeds.feedburner.com/blogspot/dfkTr">Google Ads scripts</a> [<a href="https://feedburner.google.com/fb/a/mailverify?uri=blogspot/dfkTr">+</a>]</li>
<li><a href="http://feeds.feedburner.com/blogspot/QNXjHS">Content API for Shopping</a> [<a href="https://feedburner.google.com/fb/a/mailverify?uri=blogspot/QNXjHS">+</a>]</li>
<li><a href="http://feeds.feedburner.com/blogspot/BgIHu">Google Ad Manager API</a> [<a href="https://feedburner.google.com/fb/a/mailverify?uri=blogspot/BgIHu">+</a>]</li>
<li><a href="http://feeds.feedburner.com/blogspot/JnFNG">DCM API</a> [<a href="https://feedburner.google.com/fb/a/mailverify?uri=blogspot/JnFNG">+</a>]</li>
<li><a href="http://feeds.feedburner.com/blogspot/VhQUB">Mobile Ads</a> [<a href="https://feedburner.google.com/fb/a/mailverify?uri=blogspot/VhQUB">+</a>]</li>
<li><a href="http://feeds.feedburner.com/blogspot/zyFEWx">IMA SDK</a> [<a href="https://feedburner.google.com/fb/a/mailverify?uri=blogspot/zyFEWx">+</a>]</li>
</ul>
<span class="byline-author"><img height="40" width="40" src="https://lh3.googleusercontent.com/aMB3q9V2ZUFicMmSHmO5WM-EP16dXhruPUl1oVSCsPgd8m5PP8UVHpDlWilzM2CBVM_oWhUf3g=w1920-h1200-rw-no" style="vertical-align: middle; border:none;"> - Mike Cloonan, Ads Developer Relations Team</span>
</div>
Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-25561066186971955712018-04-24T12:26:00.000-07:002018-04-24T12:26:30.846-07:00Sunsetting Flash in the IMA SDKs<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<b>On May 15, 2018, Google will be sunsetting Flash in the IMA SDKs.</b> This change will affect all users of the Flash IMA SDK, and a very small number of users of the HTML5 IMA SDK.<br />
<br />
<div>
<h3 style="text-align: left;">
Changes to the Flash SDK</h3>
As of May 15, 2018, attempts to load the Flash IMA SDK will fire an AdErrorEvent.AD_ERROR from the AdsLoader. This is a change to the portion of the Flash SDK that is loaded at run time, and therefore will affect all Flash SDK implementations in production. If you've followed our <a href="https://developers.google.com/interactive-media-ads/docs/sdks/flash/quickstart">implementation best practices</a>, your handler for this error will play your content video:<br />
<br />
<br />
<code>
private function initAdsLoader():void {<br /> ...<br /> adsLoader.addEventListener(AdErrorEvent.AD_ERROR, adsLoadErrorHandler);<br />}<br /><br />private function adsLoadErrorHandler(event:AdErrorEvent):void {<br /> trace("warning", "Ads load error: " + event.error.errorMessage);<br /> videoPlayer.play();<br />}<br /></code>We strongly encourage all publishers still using the Flash SDK to migrate to the <a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/">HTML5 SDK</a>. As part of this sunset, we will also be removing the Flash SDK documentation from developers.google.com and removing the Flash samples from GitHub.<br />
<br />
<h3 style="text-align: left;">
Changes to the HTML5 SDK</h3>
As of May 15, 2018, the HTML5 IMA SDK will stop supporting all Flash ads. This includes linear, non-linear, and companion ads. If your VAST response includes only Flash media files, the IMA SDK will throw error <a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/apis#ima.AdError.ErrorCode.VAST_LINEAR_ASSET_MISMATCH">403 - VAST_LINEAR_ASSET_MISMATCH</a> for linear ads, and error <a href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/apis#ima.AdError.ErrorCode.VAST_NONLINEAR_ASSET_MISMATCH">503 - VAST_NONLINEAR_ASSET_MISMATCH</a> for non-linear ads. Flash companion ads will fail silently. The HTML5 SDK stopped supporting Flash VPAID ads with the <a href="https://ads-developers.googleblog.com/2017/01/deprecating-flash-in-ima-sdks.html">deprecation of the Flash IMA SDK last June</a>.<br />
<br />
<br />
As always, if you have any questions, feel free to contact us via the <a href="https://groups.google.com/forum/?fromgroups#!forum/ima-sdk">support forum</a>.<br />
<br />
<br /></div>
</div>
<span class="byline-author"><a href="https://plus.google.com/+ShawnBusolits/"><img height="20" src="https://lh4.googleusercontent.com/-C7Z3JfzZb78/UZUDn8Yr34I/AAAAAAAAZQ4/YFq-aZ_rgNw/w640-h960-no/profile.jpg" style="border: none; vertical-align: middle;" width="20" /></a> - <a href="https://plus.google.com/+ShawnBusolits/" rel="author">Shawn Busolits</a>, IMA SDK Team</span></div>
Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-22159656902949253412018-03-26T11:28:00.000-07:002018-03-26T11:28:00.504-07:00Google Media Framework for Android is Deprecated<p>As <a href="http://googleadsdeveloper.blogspot.com/2017/12/deprecating-gmf-for-android.html">previously announced</a>, as of March 15th, 2018, the Google Media Framework (GMF) for Android is <b>deprecated</b> in favor of the <a href="https://github.com/google/ExoPlayer/tree/release-v2/extensions/ima">IMA ExoPlayer plugin</a>. All development and support for GMF has been halted. If you are a GMF Android user, we recommend you migrate to the <a href="https://github.com/google/ExoPlayer/tree/release-v2/extensions/ima">IMA ExoPlayer plugin</a> at your earliest convenience. Alternatively, to keep using GMF Android, you will have to fork and maintain it yourself.</p>
<p><b>Note: We are NOT deprecating <a href="https://github.com/googleads/google-media-framework-ios">GMF for iOS</a>.</b></p>
<p>If you have any questions, feel free to contact us via the <a href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">IMA SDK developer forum</a>.</p>
<span class='byline-author'><a href="https://plus.google.com/u/0/115192712137004592087"><img width="20" height="20" src="https://lh3.googleusercontent.com/-fBnDgmUOklY/AAAAAAAAAAI/AAAAAAAAABo/Y7fukcxel1w/s120-c/photo.jpg?sz=20" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/u/0/115192712137004592087" rel="author">Yury Pavlotsky</a>, IMA SDK Team</span>
Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-7886159132491711812018-02-13T13:57:00.000-08:002018-02-13T13:57:37.120-08:00Announcing the IMA SDK AMP Extension<p>We’re excited to announce that we’ve teamed up with the <a href="https://www.ampproject.org/">Accelerated Mobile Pages</a> team to bring you <a href="https://github.com/ampproject/amphtml/blob/master/extensions/amp-ima-video/amp-ima-video.md">amp-ima-video</a>, an IMA-SDK-enabled video player extension for AMP pages. This extension has been an AMP experiment for the past few months, but today we’re moving from experiment to public release.</p>
<p><code>amp-ima-video</code> provides an AMP-enabled video player with the IMA SDK pre-integrated, so you can easily play and monetize content on your AMP pages. Simply provide your content URL and an ad tag, and we’ll handle playing back the video and ad(s). The extension currently supports linear in-stream single ads and VMAP playlists. To see it in action, check out the <a href="https://ampbyexample.com/components/amp-ima-video/">AMP by Example page for the extension</a>.</p>
<p>If you have any questions or issues with the extension, please file them via the <a href="https://github.com/ampproject/amphtml/issues">AMP issue tracker</a> on GitHub.</p>
<span class="byline-author"><a href="https://plus.google.com/+ShawnBusolits/"><img width="20" height="20" src="https://lh4.googleusercontent.com/-C7Z3JfzZb78/UZUDn8Yr34I/AAAAAAAAZQ4/YFq-aZ_rgNw/w640-h960-no/profile.jpg" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/+ShawnBusolits/" rel="author">Shawn Busolits</a>, IMA SDK Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-12228478937410664842018-02-12T11:05:00.000-08:002018-02-12T11:05:46.954-08:00Ending support for iOS 8 in the IMA SDK<p>With the release of v3.7.0 of the IMA iOS SDK, we will stop providing forum support and bug fixes for iOS IMA SDK issues specifically related to iOS 8 and below.</p>
<p><b>What does this mean if an app is currently targeting iOS 8?</b></p>
<ul>
<li>There are no changes in v3.7.0 specifically designed to break compatibility, so the iOS IMA SDK will continue to work with iOS 8 in the short term. However, future releases are not guaranteed to continue to work with iOS 8.</li>
<li>Bugs that only affect iOS 8 will no longer be investigated.</li>
<li>If you are using our <a href="https://cocoapods.org/pods/GoogleAds-IMA-iOS-SDK">GoogleAds-IMA-iOS-SDK</a> CocoaPod and want to update to v3.7.0, you'll need to start targeting iOS 9+.</li>
</ul>
<b><p>What about other iOS versions?</b></p>
<p>We periodically stop supporting older iOS versions when adoption levels fall below a certain level. Whenever we end support for a major iOS release, we make announcements on our blog and release notes page.</p>
<p>As always, if you have any questions, feel free to reach out to us on our <a href="https://groups.google.com/group/ima-sdk">support forum</a>.</p>
<span class="byline-author"><a title=”+ShawnBusolits” href="https://plus.google.com/+ShawnBusolits/"><img width="20" height="20" src="https://lh4.googleusercontent.com/-C7Z3JfzZb78/UZUDn8Yr34I/AAAAAAAAZQ4/YFq-aZ_rgNw/w640-h960-no/profile.jpg" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/+ShawnBusolits/" rel="author">Shawn Busolits</a>, IMA SDK Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-27506415614831036062017-12-13T12:46:00.000-08:002017-12-13T12:46:31.577-08:00Changes to autoplay in Safari 11 for desktop<p>
<a href="https://www.apple.com/macos/high-sierra-preview/">MacOS High Sierra</a>
includes a new version of Safari, Safari 11. This new version by default will
remove support for auto-playing videos unless they are muted. If your desktop
site currently autoplays unmuted video with the IMA SDK, your users will see the
first frame of the ad, but the ad will not play. To resolve this, you can either
change your implementation to click-to-play, or attempt to autoplay and revert
to click-to-play if that fails. We've also added a new error that will fire if
the SDK is asked to autoplay an ad but is prevented from doing so by the
browser. Continue reading for more info on these solutions.
</p>
<h2>Click-to-play</h2>
<p>
The simple, advanced, and playlist <a href="https://github.com/googleads/googleads-ima-html5">IMA SDK
samples</a> use this click-to-play functionality.
In short, you add a play button to your UI, and render that play button on page
load. Your code should then delay calls to <code><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/apis#ima.AdDisplayContainer.initialize">adDisplayContainer.initialize()</a></code>,
<code><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/apis#ima.AdsManager.init">adsManager.init()</a></code>
and <code><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/apis#ima.AdsManager.start">adsManager.start()</a></code>
until the user clicks that play button.
<h2>Attempt to autoplay</h2>
<p>
We've added a new sample to our GitHub repo, <a
href="https://github.com/googleads/googleads-ima-html5/tree/master/attempt_to_autoplay">Attempt
to Autoplay</a>. This sample will autoplay ads if allowed, and if not, will
follow the above click-to-play workflow. The sample starts by attempting to
autoplay the content video. If autoplay succeeds, it pauses the content to play
a pre-roll. This happens in an instant, so the users will not see any content
actually play before the ads. If this autoplay attempt fails, the sample renders
a play button and waits for the user to click that button to initialize the ad
display container and play ads.
</p>
<h2>New error for failed autoplay</h2>
<p>
We've added <code>AdError.ErrorCode.AUTOPLAY_DISALLOWED </code>which the SDK
will fire if it is asked to autoplay an ad but is prevented from doing so by the
browser. You should not see this error if you've properly implemented one of the
solutions above. This error is wrapped in a VIDEO_PLAY_ERROR; you can look for
it as follows:
</p>
<pre
class="prettyprint">onAdError(adErrorEvent) {
if (adErrorEvent.getError().getInnerError().getErrorCode() ==
google.ima.AdError.ErrorCode.AUTOPLAY_DISALLOWED) {
// The browser prevented the SDK from autoplaying an ad.
}
}
</pre>
<p>
If you have any questions, feel free to reach out to us on our <a
href="https://groups.google.com/group/ima-sdk">support forum</a>.
</p>
<span class="byline-author"><a href="https://plus.google.com/+ShawnBusolits/"><img width="20" height="20" src="https://lh4.googleusercontent.com/-C7Z3JfzZb78/UZUDn8Yr34I/AAAAAAAAZQ4/YFq-aZ_rgNw/w640-h960-no/profile.jpg" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/+ShawnBusolits/" rel="author">Shawn Busolits</a>, IMA SDK Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-11215896041188696052017-12-08T09:41:00.000-08:002017-12-08T09:41:44.025-08:00Deprecating GMF for Android<p>
On March 15, 2018, we are stopping development and support for <a href="https://github.com/googleads/google-media-framework-android">Google Media
Framework (GMF) for Android</a> in favor of the new <a
href="https://github.com/google/ExoPlayer/tree/release-v2/extensions/ima">ExoPlayer
IMA extension</a>. GMF's technology and approach are based on an older version
of ExoPlayer.
</p>
<p>
The new v2 version of ExoPlayer and the ExoPlayer IMA Extension make basic
integration simple enough that a layer between ExoPlayer and the IMA SDK is no
longer necessary. The new approach is cleaner, requires less code, and uses the
most up-to-date version of ExoPlayer.
</p>
<p>
Support for GMF for Android will end on March 15, 2018, after which we will no
longer respond to issues or make any further releases of GMF for Android. The
repository will also be shut down at this time. If you want to access the code,
you can clone the repository before the March 15, 2018 shutdown date.
</p>
<p>
<strong>Note: We are NOT deprecating <a
href="https://github.com/googleads/google-media-framework-ios">GMF for
iOS</a>.</strong>
</p>
<p>
If you have any questions, feel free to contact us via the <a
href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">IMA
SDK developer forum</a>.
</p>
<span class='byline-author'><a href="https://plus.google.com/u/0/115192712137004592087"><img width="20" height="20" src="https://lh3.googleusercontent.com/-fBnDgmUOklY/AAAAAAAAAAI/AAAAAAAAABo/Y7fukcxel1w/s120-c/photo.jpg?sz=20" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/u/0/115192712137004592087" rel="author">Yury Pavlotsky</a>, IMA SDK Team</span>
Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-18479473033892258792017-09-27T09:49:00.000-07:002017-09-27T09:49:59.381-07:00ExoPlayer Releases IMA Extension<p>
Users of ExoPlayer, an extensible, open-source media player for Android, can now
easily integrate with the IMA SDK using the new <a href="https://github.com/google/ExoPlayer/tree/release-v2/extensions/ima">ExoPlayer IMA extension</a>. The IMA
extension, released alongside ExoPlayer 2.5, wraps the IMA SDK for Android and
provides seamless ad playback.
</p>
<p>
The extension ensures that ads are integrated into ExoPlayer's video timeline,
and UI components are ad-aware. It also reduces buffering by eliminating the
need to swap out and rebuffer the video player's source when transitioning
between ads and content.
</p>
<p>
You can find more details on the extension in <a
href="https://medium.com/google-exoplayer/playing-ads-with-exoplayer-and-ima-868dfd767ea">ExoPlayer's
blog post on Medium</a>, and find the extension on <a
href="https://github.com/google/ExoPlayer/tree/release-v2/extensions/ima">GitHub</a>.
If you have any questions or issues, please file them on <a
href="https://github.com/google/ExoPlayer/issues">ExoPlayer's issue tracker</a>.
</p>
<span class='byline-author'><a href="https://plus.google.com/u/0/115192712137004592087"><img width="20" height="20" src="https://lh3.googleusercontent.com/-fBnDgmUOklY/AAAAAAAAAAI/AAAAAAAAABo/Y7fukcxel1w/s120-c/photo.jpg?sz=20" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/u/0/115192712137004592087" rel="author">Yury Pavlotsky</a>, IMA SDK Team</span>
Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-76513356010878037942017-06-27T08:54:00.000-07:002017-06-27T08:54:18.111-07:00New Custom Playback APIs for IMA HTML5 and Mobile Safari<p>
Starting with iOS 10, Safari on iPhone and iPod supports <a
href="https://webkit.org/blog/6784/new-video-policies-for-ios/">inline video
playback</a>. This opens up some new rendering options for your video player and
the IMA SDK, but also introduces some caveats.
</p>
<h2>So what changed?</h2>
<p>
Previously, Safari on iPhone played all video in a fullscreen player. With iOS
10, Safari now supports the <code>playsinline</code> parameter on a video
element to play that content inline.
</p>
<table width="100%">
<tr>
<td width="50%">
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQy1ubOdRDYGRja-DuTV0OCxcW0rcCVoK_K1QuZgo31IaMjIGBW4rclAmyq3vBGwWU3t9YG175B5HcFiwc5giQjRZIFgW3O9QEoyFKdxEj1yAs8Qbm5Tjs60OxmbNaXCNJ0U7XkC1o7hY/s1600/image1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQy1ubOdRDYGRja-DuTV0OCxcW0rcCVoK_K1QuZgo31IaMjIGBW4rclAmyq3vBGwWU3t9YG175B5HcFiwc5giQjRZIFgW3O9QEoyFKdxEj1yAs8Qbm5Tjs60OxmbNaXCNJ0U7XkC1o7hY/s400/image1.png" width="225" height="400" data-original-width="621" data-original-height="1104" /></a></div>
<p style="padding-right: 5px">
Fullscreen playback on iPhone Mobile Safari. The default with iOS 10+ and the
only option for iOS <= 10</p>
</td>
<td width="50%">
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbbbxcPPrBPHv_0I-wmmU6sZ8wwI8rl1OasI9ADnzFT_GF6GSgpzBCyoABhwNalzo_CDg01RV4lUIM9eYBoTwvLUhujjwTsOkb8LOE5gh2IIPI-IH3OQjTmwxy8FaJmj29LKLVXvZtE8U/s1600/image2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbbbxcPPrBPHv_0I-wmmU6sZ8wwI8rl1OasI9ADnzFT_GF6GSgpzBCyoABhwNalzo_CDg01RV4lUIM9eYBoTwvLUhujjwTsOkb8LOE5gh2IIPI-IH3OQjTmwxy8FaJmj29LKLVXvZtE8U/s400/image2.png" width="225" height="400" data-original-width="640" data-original-height="1136" /></a></div>
<p style="padding-left: 20px">
Inline playback on iPhone Mobile Safari. A new option in iOS 10+</p>
</td>
</tr>
</table>
<h2>How will the IMA SDK work with inline video playback on mobile Safari?</h2>
<p>
On iPhone Safari, the IMA SDK re-uses your content player to play ads. We call
this "custom playback." So if you add the <code>playsinline</code> parameter to
your content video tag, IMA ads will also play inline - it's as easy as that.
</p>
<p>
Inline video playback also opens the door for the IMA SDK to play skippable ads
on iPhone Mobile Safari. Previously these ads were dropped by the SDK because we
could not render a skip button on top of the fullscreen player. If your player
is inline, however, we <em>can</em> render that skip button, <strong>but there's
a catch</strong>.
</p>
<h2>So what's the catch?</h2>
<p>
IMA SDK skippable ads are not supported with the "custom playback" method. To
use skippable ads, you'll need to use our new API, <code><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/apis#ima.ImaSdkSettings.setDisableCustomPlaybackForIOS10Plus">ImaSdkSettings.setDisableCustomPlaybackForIOS10Plus()</a></code>.
This will cause the IMA SDK to render the ad in its own inline player on top of
your content player. That player <em>does</em> support skippable ads.
<strong>Disabling "custom playback", however, will break your fullscreen
implementation for iPhone web.</strong>
<h2>Why do I need custom playback on iOS?</h2>
<p>
The need for "custom playback" on iOS boils down to one thing - fullscreen
support. Mobile Safari only supports fullscreen via <code><a
href="https://developer.apple.com/library/content/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/ControllingMediaWithJavaScript/ControllingMediaWithJavaScript.html#//apple_ref/doc/uid/TP40009523-CH3-SW13">videoPlayer.webkitEnterFullscreen()</a></code>.
In this mode, the SDK cannot render anything on top of your content player.
Therefore, to support fullscreen ad playback we must use "custom playback".
<h2>What if I want skippable ads <em>and </em>fullscreen support?</h2>
<p>
Unfortunately, this is not possible on mobile Safari today - you must choose
between support for skippable ads and support for fullscreen.
</p>
<h2>What's the deal with iOS <10?</h2>
<p>
Prior versions of iOS (<10) do not have support for <code>playsinline</code>, so
pages in those environments will always use "custom playback" mode, with support
for fullscreen but no support for skippable ads.
</p>
<h2>I'm still confused.</h2>
<p>
That's OK! This is a complicated change with a lot of moving parts. Below is a
support matrix outlining what is and is not supported based on your content
player's <code>playsinline</code> mode and the "custom playback" mode you've set
for the IMA SDK. Remember, this matrix only applies to iOS 10 and above -
anything running version iOS 9 or below falls into the top left quadrant of the
matrix, as this is the only option.
</p>
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMqmwXRIMSHDXj_bmlKGyb92xn8SuRKo4X1SnEijcCcgDxnuE0O3YRL3-mUIRlFpKM7Tp6EYQQmvIcMaxJkbBAVBibEvG9z8Chf2XSupcJ8G1ibytepH8t0W7nHChaKnN3yGYkptAomdA/s1600/inline_support2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMqmwXRIMSHDXj_bmlKGyb92xn8SuRKo4X1SnEijcCcgDxnuE0O3YRL3-mUIRlFpKM7Tp6EYQQmvIcMaxJkbBAVBibEvG9z8Chf2XSupcJ8G1ibytepH8t0W7nHChaKnN3yGYkptAomdA/s640/inline_support2.png" width="640" height="613" data-original-width="1492" data-original-height="1430" /></a></div>
<span class="byline-author"><a href="https://plus.google.com/+ShawnBusolits/"><img width="40" height="40" src="https://lh4.googleusercontent.com/-C7Z3JfzZb78/UZUDn8Yr34I/AAAAAAAAZQ4/YFq-aZ_rgNw/w640-h960-no/profile.jpg" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/+ShawnBusolits/" rel="author">Shawn Busolits</a>, IMA SDK Team</span>
Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-42921324506735260042017-06-15T09:53:00.000-07:002017-06-15T09:53:24.296-07:00New VPAID Sample for the IMA HTML5 SDK<p>
To help developers integrate with the IMA SDK, we're always looking for ways to
provide both basic and advanced examples of features supported by the SDK.
Toward this end, we're pleased to release a sample JavaScript VPAID creative and
sample ad tag to aid in troubleshooting <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/vpaid2js">JavaScript
VPAID 2.0 creatives</a>. You can check out the new sample on <a
href="https://github.com/googleads/googleads-ima-html5">GitHub</a>, and find the
new ad tag in our list of <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/tags">IMA
sample tags</a> as 'Sample VPAID 2.0 Linear'.
</p>
<p>
The VPAID sample plays a linear video ad and demonstrates the use of the video
player proxy element required to run a VPAID ad in a secure <code>iframe</code>.
</p>
<p>
If you have any questions, feel free to contact us via the <a
href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">IMA
SDK developer forum</a>.
</p>
<span class='byline-author'><a href="https://plus.google.com/u/0/115192712137004592087"><img width="20" height="20" src="https://lh3.googleusercontent.com/-fBnDgmUOklY/AAAAAAAAAAI/AAAAAAAAABo/Y7fukcxel1w/s120-c/photo.jpg?sz=20" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/u/0/115192712137004592087" rel="author">Yury Pavlotsky</a>, IMA SDK Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-92169165854463305182017-04-06T14:04:00.000-07:002017-04-06T14:04:21.994-07:00Playing streaming ads with the IMA SDK for Android<p>
With the advent of video players that support streaming media formats such as
HLS and DASH, publishers can now easily support these formats with the IMA SDK
for Android. Here is a list of steps to make this work:
</p><ul>
<li>Use a video player that can play streaming video, such as ExoPlayer.
<li>Inform the SDK of your video player's capabilities.</li></ul>
<p>
The latter is done via the SDK's <a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/api/reference/com/google/ads/interactivemedia/v3/api/AdsRenderingSettings">AdsRenderingSettings</a> API. Create a
new instance of <code>AdsRenderingSettings</code> and then create a list of MIME
types you plan to support:
</p>
<pre
class="prettyprint">AdsRenderingSettings adsRenderingSettings =
ImaSdkFactory.getInstance().createAdsRenderingSettings();
ArrayList<String> arrayList = new ArrayList<String>();
arrayList.add("application/x-mpegURL"); //HLS
arrayList.add("application/dash+xml"); //DASH
adsRenderingSettings.setMimeTypes(arrayList);
</pre>
<p>
Then initialize the AdsManager using these <code>AdsRenderingSettings</code>:
</p>
<pre class="prettyprint">adsManager.init(adsRenderingSettings);
</pre>
<p>
</p>
<p>
This will allow the SDK to choose streaming ad media to play in your video
player. Make sure to add any additional MIME types you plan to support, such as
MP4, as this approach assumes that any MIME types not passed in are not
supported.
</p>
<h1>FAQ</h1>
<p>
<strong>How do I play HLS ads using the IMA SDK for iOS?</strong>
</p>
<p>
The default video player used by the iOS IMA SDK supports HLS, so it is not
necessary to set that in <code>AdsRenderingSettings</code>.
</p>
<p>
<strong>Will this work with the SDK-owned player?</strong>
</p>
<p>
No, currently you must use custom playback by implementing the <code><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/api/reference/com/google/ads/interactivemedia/v3/api/player/VideoAdPlayer">VideoAdPlayer</a></code>
interface. For an example of how to do this, check out our <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android/custom_ad_playback">guide
on custom playback</a> or <a
href="https://github.com/googleads/googleads-ima-android/releases">AdvancedExample</a>.
<p>
If you have any questions, feel free to contact us via the <a
href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">support
forum</a>.
</p>
<span class='byline-author'><a href="https://plus.google.com/u/0/115192712137004592087"><img width="20" height="20" src="https://lh3.googleusercontent.com/-fBnDgmUOklY/AAAAAAAAAAI/AAAAAAAAABo/Y7fukcxel1w/s120-c/photo.jpg?sz=20" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/u/0/115192712137004592087" rel="author">Yury Pavlotsky</a>, IMA SDK Team</span>
Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-56310082539183719702017-03-29T09:13:00.000-07:002017-03-29T09:13:43.260-07:00Register now for the April 2017 Display Ads API Workshops<div class="separator" style="clear: both; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX0rsZrqY8L8VC5SrKy9zzz0AdvUBzVWynW_809EitZg6Pq4KffaOhLXz94ycaAgEuNc3PrzY-_yZ9Pxf_hgS53csa2-1MI5CpxyNI2s-IO3YOisz3T__GlgjcufNI1n96VF24TA7JIVo/s1600/google_ads_api_workshops.png" /></div>
<p>We're pleased to announce that we'll be holding a series of Display Ads API
Workshops in April 2017. These workshops are a half-day of tech talks, group
discussions, networking activities, and one-on-one time with <a target="_blank" href="https://events.withgoogle.com/display-ads-api-workshops/speakers/">Googlers</a>
geared toward developers who use the <a target="_blank" href="https://developers.google.com/doubleclick-publishers/">DoubleClick for
Publishers API</a>, <a target="_blank" href="https://developers.google.com/interactive-media-ads/">Interactive Media Ads SDK</a>, or <a target="_blank" href="https://developers.google.com/admob/">Mobile Ads SDKs</a>.
<p>These workshops offer you the following:
<ul>
<li>A great way for you to meet with the display ads API team to ask questions in person and give feedback directly to us.
<li>A great opportunity to meet and exchange ideas with fellow developers in the community.
<li>Previews of API and SDK roadmaps and select upcoming features.
<li>For the first time, one-on-one office hours with ads API Googlers. Sign-ups will be available on-site on the day of the workshops.</li>
</ul>
<p>The workshops will be held in the following cities:
<ul>
<li>
<strong>New York - April 20, 2017</strong><br>
<a target="_blank" href="https://events.withgoogle.com/display-ads-api-workshops/registrations/new/">Register here</a><br>
Location: <a target="_blank" href="https://www.google.com/maps/place/75+9th+Ave,+New+York,+NY+10011/@40.7419674,-74.0071088,17z/data=!3m1!4b1!4m2!3m1!1s0x89c259bf3dfcdb35:0xdc22f40244e521d5">Google New York (Chelsea Market)</a>
</li>
<li>
<strong>San Francisco - April 25, 2017</strong><br>
<a target="_blank" href="https://events.withgoogle.com/display-ads-api-workshops/registrations/new/">Register here</a><br>
Location: <a target="_blank" href="https://www.google.com/maps/place/345+Spear+St,+San+Francisco,+CA+94105/@37.7900506,-122.3927539,17z/data=!3m1!4b1!4m2!3m1!1s0x8085807aa6501fc9:0x1540ba8a3c14eafd">Google San Francisco</a>
</li>
</ul>
<p>For more information on the agenda and a preview of our talks, please see our <a target="_blank" href="https://events.withgoogle.com/display-ads-api-workshops/">workshop
page</a>.
<p>As always, if you have any questions, feel free to drop us a line on the <a target="_blank" href="https://groups.google.com/forum/#!forum/google-doubleclick-for-publishers-api">DFP API forums</a>, <a target="_blank" href="https://groups.google.com/forum/#!forum/ima-sdk">IMA SDK forums</a>, <a target="_blank" href="https://groups.google.com/forum/#!forum/google-admob-ads-sdk">Mobile Ads SDK forums</a>, or the <a target="_blank" href="https://plus.google.com/+GoogleAdsDevelopers/posts">Ads Developer Google+ page</a>.
<p><span class='byline-author'><a target="_blank" href="https://plus.google.com/u/0/+VincentTsao"><img width="40" height="40" src="https://lh3.googleusercontent.com/-I5VHr9twxlU/AAAAAAAAAAI/AAAAAAAABoc/XKIvgIIEw7I/s120-c/photo.jpg" style="vertical-align:middle; border:none;"></a> - <a target="_blank" href="https://plus.google.com/u/0/+VincentTsao" rel="author">Vincent Tsao</a>, DFP API Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-36818486381874199982017-02-09T10:35:00.000-08:002017-02-09T10:35:36.784-08:00Latency best practices in the IMA SDKs<p>
One of the most important factors in keeping users on your page or in your app
is latency - the lower your latency, the more likely your users are to stick
around. With this in mind, we'd like to remind you about our best practices for
reducing latency with the IMA SDKs. In general, you can reduce latency by doing
as much IMA set-up work as possible on page or app load, before your user tries
to play a video. The following can be done in all of the SDKs before the user
attempts to play a video:
</p><ul>
<li>Creating your ads loader.
<li>Creating your ads request.
<li>Requesting ads.
<li>Obtaining the ads manager.
<li>Registering ads manager event handlers.</li></ul>
<p>
You can find more information on optimizing latency in each of our SDKs at the
links below:
</p><ul>
<li><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/ads#latency">HTML5</a>
<li><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android/ads#latency">Android</a>
<li><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/ios/ads#latency">iOS</a>
<li><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/flash/ads#latency">Flash</a></li></ul>
<p>
As always, if you have any questions, feel free to contact us via the <a
href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">support
forum</a>.
</p>
<span class="byline-author"><a href="https://plus.google.com/+ShawnBusolits/"><img width="20" height="20" src="https://lh4.googleusercontent.com/-C7Z3JfzZb78/UZUDn8Yr34I/AAAAAAAAZQ4/YFq-aZ_rgNw/w640-h960-no/profile.jpg" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/+ShawnBusolits/" rel="author">Shawn Busolits</a>, IMA SDK Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-23408821962097459942017-01-04T11:49:00.000-08:002017-01-04T11:49:26.532-08:00Deprecating Flash in the IMA SDKs<p>
<strong>On June 1, 2017, Google will cease development of Flash in the IMA SDKs.
This will end support for the <a href="https://developers.google.com/interactive-media-ads/docs/sdks/flash/">IMA SDK for Flash</a>, as well as support for Flash
VPAID ads in the HTML5 SDK. </strong>We strongly encourage all publishers still
using the Flash SDK to migrate to the <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/">HTML5
SDK</a>. We also strongly encourage advertisers still trafficking Flash VPAID
ads to migrate those ads to JavaScript VPAID.
</p>
<h3>What does this mean for the Flash SDK?</h3>
<p>
We will not actively prevent ad serving to the Flash SDK. However, new releases
will stop after June 1st and we will no longer fix bugs or answer support
questions. If ad serving or playback stops working after this date for the Flash
SDK, it will not be fixed. We strongly encourage you to migrate to the <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/">HTML5
SDK</a>.
</p>
<h3>What does this mean for the HTML5 SDK?</h3>
<p>
We will no longer support Flash VPAID ads in the HTML5 SDK. Flash VPAID ads
served to the HTML5 SDK will not be rendered and the SDK will fire an error. We
strongly encourage you to migrate your Flash VPAID ads to JavaScript VPAID.
</p>
<p>
As always, if you have any questions, feel free to contact us via the <a
href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">support
forum</a>.
</p>
<span class="byline-author"><a href="https://plus.google.com/+ShawnBusolits/"><img width="20" height="20" src="https://lh4.googleusercontent.com/-C7Z3JfzZb78/UZUDn8Yr34I/AAAAAAAAZQ4/YFq-aZ_rgNw/w640-h960-no/profile.jpg" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/+ShawnBusolits/" rel="author">Shawn Busolits</a>, IMA SDK Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-19217402543325261292016-11-17T11:02:00.000-08:002016-11-17T11:02:11.049-08:00Announcing a deprecation policy for older versions of the iOS and Android IMA SDKs<p>
On <b>February 1, 2017</b>, we will implement a new deprecation policy for the IMA SDKs
for <a href="https://developers.google.com/interactive-media-ads/docs/sdks/ios/v3/deprecation">iOS</a> and <a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/deprecation">Android</a>. The Flash and HTML5 SDKs are unaffected by this policy
because they are downloaded at runtime, so all developers are always using the
latest version.
</p>
<p>
Each release will be deprecated <strong>12 months after its successor is
released</strong>.
</p>
<p>
As of <b>February 1, 2017</b>, the following SDK versions will no longer be supported:
</p><ul>
<li>IMA Android prior to version 3.1.3
<li>IMA iOS prior to version 3.1.0</li></ul>
<p>
If you are currently on one of these versions, we strongly suggest upgrading to
the latest version before the new policy takes effect.
</p>
<p>
Once an SDK version is deprecated, we cannot guarantee that version will
continue to work. If we receive reports of crashes related to a deprecated
version of the IMA SDK, we may discontinue serving ads to that version. We will
also no longer field support requests for these versions on the IMA SDK support
forum.
</p>
<p>
To maintain support, publishers on the latest version of an SDK will have 12
months to move to a new version once its successor is released. To "support" an
SDK means we will investigate bugs in that SDK version and work on fixes. If a
bug fix requires a change to the library itself, the fix will be applied to the
newest version.
</p>
<p>
For a list of supported SDK versions and their deprecation dates, see the new
deprecation schedule pages for <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/ios/v3/deprecation">iOS</a>
and <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/deprecation">Android</a>.
As always, if you have any questions, feel free to contact us via the <a
href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">support
forum</a>.
</p>
<span class="byline-author"><a href="https://plus.google.com/+ShawnBusolits/"><img width="20" height="20" src="https://lh4.googleusercontent.com/-C7Z3JfzZb78/UZUDn8Yr34I/AAAAAAAAZQ4/YFq-aZ_rgNw/w640-h960-no/profile.jpg" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/+ShawnBusolits/" rel="author">Shawn Busolits</a>, IMA SDK Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-1022137216302380972016-11-14T11:37:00.000-08:002016-11-14T11:37:25.499-08:00IMA SDK-owned ad playback for Android is here<p>
Integrating with the IMA SDK for Android has historically meant implementing the
<a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/api/reference/com/google/ads/interactivemedia/v3/api/player/VideoAdPlayer">VideoAdPlayer</a>
interface and playing video ads in your content player. While this approach
offers maximum flexibility, it also requires a lot of extra work to get up and
running. In our mission to make developers' lives easier, we are proud to offer
an alternative: SDK-owned ad playback, added in our newest release, <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/history">v3.5.2</a>.
<p>
Using SDK-owned ad playback, the SDK takes care of playing ads in its own
player, allowing you to focus on content playback and the normal ad request flow
in your player. With SDK-owned playback, you no longer have to implement a
<code>VideoAdPlayer</code>, or worry about <a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/api/reference/com/google/ads/interactivemedia/v3/api/player/VideoAdPlayer.VideoAdPlayerCallback">VideoAdPlayerCallback</a>s.
Enabling SDK-owned playback is straightforward: simply omit the
<a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/api/reference/com/google/ads/interactivemedia/v3/api/AdDisplayContainer.html#setPlayer(com.google.ads.interactivemedia.v3.api.player.VideoAdPlayer)">setAdPlayer</a> call on your <code>AdDisplayContainer</code>.
</p>
<p>
With the new, simplified integration flow using SDK-owned playback, integrating
with the IMA SDK for Android is easier than ever! For a step-by-step guide, head
over to our revamped <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android/quickstart">Get
Started</a> guide or download the <a
href="https://github.com/googleads/googleads-ima-android/releases">BasicExample</a>
project from GitHub and try it out.
</p>
<p>
SDK-owned ad playback allows publishers to simplify their IMA implementation,
but using it is not required. If you already have a <code>VideoAdPlayer</code>
implementation or want to use a single video player for both ads and content, <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/api/reference/com/google/ads/interactivemedia/v3/api/player/VideoAdPlayer">you
can keep using custom playback</a>. SDK-owned playback merely gives you the
option to let the SDK handle some of the implementation complexity for you.
</p>
<p>
If you have any questions about SDK-owned playback, feel free to contact us via
the <a
href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">support
forum</a>.
</p>
<span class='byline-author'><a href="https://plus.google.com/u/0/115192712137004592087"><img width="20" height="20" src="https://lh3.googleusercontent.com/-fBnDgmUOklY/AAAAAAAAAAI/AAAAAAAAABo/Y7fukcxel1w/s120-c/photo.jpg?sz=20" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/u/0/115192712137004592087" rel="author">Yury Pavlotsky</a>, IMA SDK Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-18752393171074657352016-10-06T11:51:00.000-07:002016-10-06T11:51:20.075-07:00Introducing IMA SDK and Google Cast examples<p>
Have you ever asked yourself, <i>Can I use the IMA SDK and Google Cast together to
display videos with ads on a cast-enabled device</i>? The answer is, yes you can!
</p>
<p>
We’ve put together a <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/client-side/">new
section</a> of guides and examples that show you how to add cast support to your
IMA SDK implementation. They also explain the logic behind requesting ads on the
sender and receiver devices. We’ve included both <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/client-side/android">Android</a>
and <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/client-side/ios">iOS</a>
example sender apps, and an example <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/cast/client-side/receiver">HTML5</a>
receiver.
</p>
<p>
We recommend familiarizing yourself with the <a
href="https://developers.google.com/cast/docs/developers">Google Cast SDK</a> as
well as the IMA SDKs for <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android">Android</a>,
<a
href="https://developers.google.com/interactive-media-ads/docs/sdks/ios">iOS</a>
and <a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5">HTML5</a>
before diving into these examples.
</p>
<p>
If you have any questions about these examples, feel free to contact us via the
<a
href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">support
forum</a>.
</p>
<span class='byline-author'><a href="https://plus.google.com/u/0/115192712137004592087"><img width="20" height="20" src="https://lh3.googleusercontent.com/-fBnDgmUOklY/AAAAAAAAAAI/AAAAAAAAABo/Y7fukcxel1w/s120-c/photo.jpg?sz=20" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/u/0/115192712137004592087" rel="author">Yury Pavlotsky</a>, IMA SDK Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-39603521111276776852016-09-29T13:41:00.000-07:002016-09-29T13:41:30.207-07:00Fatal versus non-fatal errors in the IMA SDKs<p>
We’ve seen an increase in support questions recently on fatal and non-fatal
errors in the IMA SDKs, so we’re here to explain when and why each is fired, and
how you should handle one versus the other.
</p>
<h2>When are fatal and non-fatal errors fired?</h2>
<p>
Simply put, a fatal error is fired by the SDK when there is no chance for the
SDK to play an ad for the remainder of the current video. There are two common
scenarios for fatal ad errors. The first is when the SDK itself fails to load.
The second (and more common) is when you are requesting one and only one ad, and
that ad request fails to return a valid ad.
</p>
<p>
A non-fatal error is fired by the SDK when something goes wrong with an ad, but
the SDK could potentially play other ads. The most common scenario for a
non-fatal error occurs when you’re requesting a pod or playlist of ads, and one
ad fails to load. Because it could still play other ads in that pod or playlist,
the SDK fires a non-fatal error and moves on to attempt the next ad.
</p>
<h2>How can I tell the difference between a fatal and a non-fatal error?</h2>
<p>
Fatal errors are what we call “top-level” errors. They trigger one of the
following events, depending on your particular SDK:
</p>
<center>
<table border=1 width=500px>
<tr>
<td width=100px><strong>SDK</strong>
</td>
<td><strong>Triggered event or delegates</strong>
</td>
</tr>
<tr>
<td>HTML5
</td>
<td>onAdError(<a
href="https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/apis#ima.AdErrorEvent">AdErrorEvent</a>)
</td>
</tr>
<tr>
<td>Android
</td>
<td><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/api/reference/com/google/ads/interactivemedia/v3/api/AdErrorEvent.AdErrorListener">AdErrorEvent.AdErrorListener.onAdError</a>(<a
href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/api/reference/com/google/ads/interactivemedia/v3/api/AdErrorEvent">AdErrorEvent</a>)
</td>
</tr>
<tr>
<td>iOS
</td>
<td><a
href="https://developers.google.com/interactive-media-ads/docs/sdks/ios/reference/Protocols/IMAAdsLoaderDelegate#/c:objc(pl)IMAAdsLoaderDelegate(im)adsLoader:failedWithErrorData:">adsLoader:failedWithErrorData</a>
<br>
<a
href="https://developers.google.com/interactive-media-ads/docs/sdks/ios/reference/Protocols/IMAAdsManagerDelegate#/c:objc(pl)IMAAdsManagerDelegate(im)adsManager:didReceiveAdError:">adsManager:didReceiveAdError</a>
</td>
</tr>
<tr>
<td>Flash
</td>
<td>adsLoadErrorHandler(<a
href="https://developers.google.com/interactive-media-ads/docs/sdks/flash/v3/apis#AdErrorEvent">AdErrorEvent</a>)
<br>
adsManagerPlayErrorHandler(<a
href="https://developers.google.com/interactive-media-ads/docs/sdks/flash/v3/apis#AdErrorEvent">AdErrorEvent</a>)
</td>
</tr>
</table>
</center>
<p>
Non-fatal errors are wrapped in a LOG type AdEvent. That event is sent to your
AdsManager event listener or delegate. You can access the error message from the
LOG event as follows:
</p>
<center>
<table border=1 width=500px>
<tr>
<td width=100px><strong>SDK</strong>
</td>
<td><strong>Error Data</strong>
</td>
</tr>
<tr>
<td>HTML5
</td>
<td>AdEvent.getAdData()[‘adError’].getMessage()
</td>
</tr>
<tr>
<td>Android
</td>
<td>AdEvent.getAdData()[‘errorMessage’]
</td>
</tr>
<tr>
<td>iOS
</td>
<td>IMAAdEvent.adData[@”logData”]
</td>
</tr>
<tr>
<td>Flash
</td>
<td>Error(Event.adData.error).message
</td>
</tr>
</table>
</center>
<br>
<h2>How should I handle fatal and non-fatal errors?</h2>
<p>
When you get a fatal error, you should destroy your AdsManager and play your
content video. When you get a non-fatal error, you are not obliged to do
anything for video and ad playback to continue - you can log the error message
using the snippets shown in the table above for informational purposes.
</p>
<p>
As always, if you have any questions, feel free to contact us via the <a
href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">support
forum</a>.
</p>
<span class="byline-author"><a href="https://plus.google.com/+ShawnBusolits/"><img width="20" height="20" src="https://lh4.googleusercontent.com/-C7Z3JfzZb78/UZUDn8Yr34I/AAAAAAAAZQ4/YFq-aZ_rgNw/w640-h960-no/profile.jpg" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/+ShawnBusolits/" rel="author">Shawn Busolits</a>, IMA SDK Team</span>Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]tag:blogger.com,1999:blog-7815614485808579332.post-91408177104550812832016-04-28T16:08:00.000-07:002016-04-28T16:08:47.156-07:00IMA SDK for Android now available on JCenter<p>In our ongoing efforts to make developing with the IMA SDK easier, we’re
pleased to announce that as of version <a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/history">3.2.1</a>, the IMA SDK for Android is now available on <a href="https://bintray.com/google/interactivemedia/interactivemedia/">JCenter</a>.</p>
<p>With this release, it's now quicker than ever to integrate with the IMA SDK.
Simply make sure you include JCenter in your list of repositories:</p>
<pre class=prettyprint>
repositories {
jcenter()
}
</pre>
<p>Then, in your <code>build.gradle</code>'s dependencies, include the following <code>compile</code> directive:</p>
<pre class=prettyprint>
compile 'com.google.ads.interactivemedia.v3:interactivemedia:3.2.1'
</pre>
<p>If you're modifying an existing sample, make sure to remove the IMA SDK JAR
file from your <code>libs</code> folder. This directive includes the SDK, and if you already have the SDK JAR
in <code>libs</code>, you’ll get errors for having two copies of the same library.</p>
<p>If you have any questions about these changes, feel free to contact us via the <a href="https://groups.google.com/forum/?hl=en_US&fromgroups#!forum/ima-sdk">support forum</a>.</p>
<span class='byline-author'><a href="https://plus.google.com/u/0/115192712137004592087"><img width="20" height="20" src="https://lh3.googleusercontent.com/-fBnDgmUOklY/AAAAAAAAAAI/AAAAAAAAABo/Y7fukcxel1w/s120-c/photo.jpg?sz=20" style="vertical-align:middle; border:none;"></a> - <a href="https://plus.google.com/u/0/115192712137004592087" rel="author">Yury Pavlotsky</a>, IMA SDK Team</span>
Google Ads Developer Advisorhttp://www.blogger.com/profile/16700526826531306391[email protected]