Pause and resume ad on user click event with Android SDK

301 views
Skip to first unread message

Wishy Gupta

unread,
Aug 20, 2018, 3:33:25 AM8/20/18
to Interactive Media Ads SDK
Hi I want to pause and resume the ad displayed by the SDK. However I was not able to find any method exposed by the SDK to the same. 
Is there any methods available to pause/resume the ad with my own UI button click?

ima-sdk-adv...@google.com

unread,
Aug 20, 2018, 5:01:22 AM8/20/18
to ima...@googlegroups.com
Hi there,

Thanks for reaching out to us. You might want to check the available methods of the AdsManager object (e.g. pauseresume) in order to control the playing of Ads. I hope this helps.

Regards,
Steven Balan
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 08/20/18 15:33:25 wishy....@gmail.com wrote:
Hi I want to pause and resume the ad displayed by the SDK. However I was not able to find any method exposed by the SDK to the same. 
Is there any methods available to pause/resume the ad with my own UI button click?

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

Wishy Gupta

unread,
Aug 20, 2018, 5:23:44 AM8/20/18
to ima...@googlegroups.com
I am using the Exoplayer ima extension and get the adsmanager object as below
imaAdsLoader = new ImaAdsLoader.Builder(context)
.setAdEventListener(new VLPlayerEvent(context, this))
.buildForAdTag(getAdTagUri(this.adTag));


imaAdsLoader.getAdsLoader().addAdsLoadedListener(new AdsLoader.AdsLoadedListener() {
@Override
public void onAdsManagerLoaded(AdsManagerLoadedEvent adsManagerLoadedEvent) {
adsManager = adsManagerLoadedEvent.getAdsManager();
adsManager.init();
adsManager.addAdEventListener(new AdEvent.AdEventListener() {
@Override
public void onAdEvent(AdEvent adEvent) {
switch (adEvent.getType()) {
case LOADED:
adsManager.start();
break;
case STARTED:
break;

case SKIPPED:

case COMPLETED:
break;
}
}
});

}
});

I am not able to pause the ad using adsManager.pause();

On Mon, Aug 20, 2018 at 2:31 PM ima-sdk-advisor+support via Interactive Media Ads SDK <ima...@googlegroups.com> wrote:
Hi there,

Thanks for reaching out to us. You might want to check the available methods of the AdsManager object (e.g. pauseresume) in order to control the playing of Ads. I hope this helps.

Regards,
Steven Balan
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 08/20/18 15:33:25 wishy....@gmail.com wrote:
Hi I want to pause and resume the ad displayed by the SDK. However I was not able to find any method exposed by the SDK to the same. 
Is there any methods available to pause/resume the ad with my own UI button click?

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+u...@googlegroups.com.

To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+u...@googlegroups.com.

ima-sdk-adv...@google.com

unread,
Aug 21, 2018, 3:26:28 AM8/21/18
to ima...@googlegroups.com
Hi there,

Thanks for getting back to us with your code snippets.

Since you've mentioned that you are using the ExoPlayer IMA Extension then, it's best to reach out to the ExoPlayer Team as they can provide better assistance on this and let them identify if there's an issue with the IMA SDK integration on their side. If they confirm that there's an issue with our SDK, feel free to get back to us and we'll happy to assist you on this.

Regards,
Steven Balan
IMA SDK Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.

To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.

To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages