googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
450 stars 284 forks source link

repeating announcement video #938

Closed lzhudson closed 4 years ago

lzhudson commented 4 years ago

When I load the player, when I skip the ad and make a new request it always returns the same ad to me.

Kiro705 commented 4 years ago

Hello @lzhudson

I think this is likely an issue with your ad-tag setup in Ad Manager. Are you able to see loading the ad-tag in the Video Suite Inspector result in different ads? If the ads are the same there, I would recommend reaching out to your Ad Manager agent to help resolve the issue.

lzhudson commented 4 years ago

Hello @Kiro705

I tested the tag here though, now it is returning me error 1009. Follow the test link: https://www.mtorrespack.com.br/video-ads/

lzhudson commented 4 years ago

@Kiro705 Now he is repeating the same mistake. Always display the same ad even changing the tag and making the request.

Kiro705 commented 4 years ago

Hello @lzhudson ,

Thank you for sharing the test page. I think the issue for you is with the ad tag and not the implementation. I tired using IMA's sample skippable pre-roll, then on the SKIPPED event, I called the following code to switch the ad to a IMA's sample post-roll and that played successfully at the end of the video.

player.ima.changeAdTag(postRollAdTag);
player.ima.requestAds();

I think the current issue is the 1009 error which will have to be solved on the ad manager side.

In addition, the IMA team does not recommend requesting new ads for the same content video on the SKIPPED event. This can be seen as spammy behavior if multiple ad requests are made in quick succession.