Skip to content

Commit

Permalink
Merge pull request #866 from googleads/play-after-clickthru
Browse files Browse the repository at this point in the history
fix for resuming ad after clickthru on mobile
  • Loading branch information
Kiro705 authored Dec 12, 2019
2 parents 784054f + 001b410 commit 13b013c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ad-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ AdUi.prototype.onAdFullscreenClick = function() {
* Show pause and hide play button
*/
AdUi.prototype.onAdsPaused = function() {
this.controller.sdkImpl.adPlaying = false;
this.addClass(this.playPauseDiv, 'ima-paused');
this.removeClass(this.playPauseDiv, 'ima-playing');
this.showAdControls();
Expand All @@ -252,6 +253,7 @@ AdUi.prototype.onAdsResumed = function() {
* Show play and hide pause button
*/
AdUi.prototype.onAdsPlaying = function() {
this.controller.sdkImpl.adPlaying = true;
this.addClass(this.playPauseDiv, 'ima-playing');
this.removeClass(this.playPauseDiv, 'ima-paused');
};
Expand Down

0 comments on commit 13b013c

Please sign in to comment.