# Video AD not working on web

**URL:** <https://community.bitmovin.com/t/video-ad-not-working-on-web/1354>\
**Category:** Support\
**Tags:** bitmovin, web, ads\
**Created:** [October 2, 2022, 5:07pm UTC](https://community.bitmovin.com/t/video-ad-not-working-on-web/1354 "2022-10-02T17:07:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael.f.iga](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/rafael.f.iga/32/484_2.png) [@rafael.f.iga](https://community.bitmovin.com/u/rafael.f.iga)\
**Post date:** [October 2, 2022, 5:07pm UTC](https://community.bitmovin.com/t/video-ad-not-working-on-web/1354/1 "2022-10-02T17:07:25Z")

</div>

Hello there!

I created a Ad Unit on Ad Manager, Line Item and Order for my Video Ad that I want to show in the Pre or Post Roll for my videos.

Its working on iOS and android but on web it does not load.

Google provides this page to test the ad and my tag url works there: [IMA HTML5 Video Suite Inspector](https://googleads.github.io/googleads-ima-html5/vsi/)

If I use one of Google samples on web it works.

[My Video Tag Url](https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22808626143/teste-mobile&description_url=https%3A%2F%2Fnsports.com.br&tfcd=0&npa=0&sz=640x480&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=)

Bitmovin web versions:

[https://cdn.bitmovin.com/player/web/8/bitmovinplayer.js](https://cdn.bitmovin.com/player/web/8/bitmovinplayer.js)  
[https://cdn.bitmovin.com/player/web/8/bitmovinplayer-ui.js](https://cdn.bitmovin.com/player/web/8/bitmovinplayer-ui.js)  
[https://cdn.bitmovin.com/player/web/8/modules/bitmovinplayer-advertising-bitmovin.js](https://cdn.bitmovin.com/player/web/8/modules/bitmovinplayer-advertising-bitmovin.js)

Live url test: [Boxing for You - TESTE AWS ATUALIZAÇÕES](https://boxingforyou.tvnsports.com.br/videos/TESTE-AWS-ATUALIZACOES-060922)

Thanks,

---

<div class="post-metadata">

**Author:** ![lucky.goyal](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/lucky.goyal/32/506_2.png) [@lucky.goyal](https://community.bitmovin.com/u/lucky.goyal)\
**Post date:** [October 3, 2022, 9:56am UTC](https://community.bitmovin.com/t/video-ad-not-working-on-web/1354/2 "2022-10-03T09:56:46Z")

</div>

Hi @rafael.f.iga , thanks for your query. To begin with, Bitmovin Web SDK comes with 2 client side Ad modules

- Google IMA Ad module : This is the default Ad module in Bitmovin player SDK. If your service uses Google Ad server/Tags, the please use this module for Ad playback. No special steps are required to enable that module(if not using modular player approach). If you are using modular player approach, the the Advertising modules need to be loaded to enable Ad functionality.

- Bitmovin Ad module(BAM) : This is Bitmovin implemented Ad module for VAST/VMAP/VPAID ads. This is recommended to be used for all non-Google Ad servers. To add this module on top of Bitmovin player , following 2 steps are required.

```auto
<script type="text/javascript" src="https://cdn.bitmovin.com/player/web/8/modules/bitmovinplayer-advertising-bitmovin.js"></script>

```

```
- Load BAM module by calling following code snippet before creating player object.

```

`bitmovin.player.Player.addModule(bitmovin.player["advertising-bitmovin"].default)`

Coming to specific issue of Ad not playing

- As the provided Ad tag is Google Ad tag, please continue to use default IMA Ad module.

- Check for Ad tag request in network tab. In some cases, the response for the Ad request may be empty which means that the Ad server did not return the Ad which which case no Ad will playback.

- I tried following Ad config with Bitmovin player(using default IMA Ad module) and am able to successfully playback the Ad.

```auto
advertising: {
        adBreaks: [{
                    tag: {
                        url: "https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22808626143/teste-mobile&description_url=https%3A%2F%2Fnsports.com.br&tfcd=0&npa=0&sz=640x480&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=",
                        type: 'vast'
                    }
                }],
}

```

---

<div class="post-metadata">

**Author:** ![rafael.f.iga](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/rafael.f.iga/32/484_2.png) [@rafael.f.iga](https://community.bitmovin.com/u/rafael.f.iga)\
**Post date:** [October 4, 2022, 12:28am UTC](https://community.bitmovin.com/t/video-ad-not-working-on-web/1354/3 "2022-10-04T00:28:11Z")

</div>

Hello again @lucky.goyal !

Thanks for all your input and information.

Did you have a chance to check the url/code that I shared?

[https://boxingforyou.tvnsports.com.br/videos/TESTE-AWS-ATUALIZACOES-060922](https://boxingforyou.tvnsports.com.br/videos/TESTE-AWS-ATUALIZACOES-060922)

I checked everything that you sent and it seems correct in my code.

I even changed the single quotes that I had before to double quotes as the example that you sent.

The Ad tag in the Network tab:

[https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22808626143/teste-mobile&description\_url=https://nsports.com.br&tfcd=0&npa=0&sz=640x480&gdfp\_req=1&output=xml\_vast4&unviewed\_position\_start=1&env=vp&correlator=3766501612729329&sdkv=h.3.536.0&osd=2&frm=0&vis=1&sdr=1&hl=en&afvsz=450x50,468x60,480x70,728x90&is\_amp=0&uach=WyJtYWNPUyIsIjEzLjAuMCIsImFybSIsIiIsIjEwNS4wLjUxOTUuMTI1IixbXSxmYWxzZSxudWxsLCI2NCIsW1siR29vZ2xlIENocm9tZSIsIjEwNS4wLjUxOTUuMTI1Il0sWyJOb3QpQTtCcmFuZCIsIjguMC4wLjAiXSxbIkNocm9taXVtIiwiMTA1LjAuNTE5NS4xMjUiXV0sZmFsc2Vd&u\_so=l&ctv=0&mpt=bitmovin-player&adsid=ChEI8JDqmQYQm4fGwNu55YiiARI9AOO\_6Y8zW0RIsRcR3zih52VlAr7xO1sdz79CJsFOlSElwlOEDEpAqXHJXqA7TrCLjUKxGPlxrAVk9vEhcQ&jar=2022-10-03-21&sdki=445&ptt=20&adk=3417149519&sdk\_apis=2,7,8&omid\_p=Google1/h.3.536.0&media\_url=blob:https%3A//boxingforyou.tvnsports.com.br/a702df53-fb78-4a1d-8846-4bc91a58719f&sid=EE16CA41-EFEF-4FCE-99E3-937E9F237C8A&nel=0&eid=44748969,44750824,44760950,44765701&url=https://boxingforyou.tvnsports.com.br/videos/TESTE-AWS-ATUALIZACOES-060922&dt=1664843196230&cookie\_enabled=1&scor=728048969303232&ged=ve4\_td1\_er0.0.0.0\_vi0.0.412.1691\_vp0\_eb16488](https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22808626143/teste-mobile&description_url=https://nsports.com.br&tfcd=0&npa=0&sz=640x480&gdfp_req=1&output=xml_vast4&unviewed_position_start=1&env=vp&correlator=3766501612729329&sdkv=h.3.536.0&osd=2&frm=0&vis=1&sdr=1&hl=en&afvsz=450x50,468x60,480x70,728x90&is_amp=0&uach=WyJtYWNPUyIsIjEzLjAuMCIsImFybSIsIiIsIjEwNS4wLjUxOTUuMTI1IixbXSxmYWxzZSxudWxsLCI2NCIsW1siR29vZ2xlIENocm9tZSIsIjEwNS4wLjUxOTUuMTI1Il0sWyJOb3QpQTtCcmFuZCIsIjguMC4wLjAiXSxbIkNocm9taXVtIiwiMTA1LjAuNTE5NS4xMjUiXV0sZmFsc2Vd&u_so=l&ctv=0&mpt=bitmovin-player&adsid=ChEI8JDqmQYQm4fGwNu55YiiARI9AOO_6Y8zW0RIsRcR3zih52VlAr7xO1sdz79CJsFOlSElwlOEDEpAqXHJXqA7TrCLjUKxGPlxrAVk9vEhcQ&jar=2022-10-03-21&sdki=445&ptt=20&adk=3417149519&sdk_apis=2,7,8&omid_p=Google1/h.3.536.0&media_url=blob:https%3a//boxingforyou.tvnsports.com.br/a702df53-fb78-4a1d-8846-4bc91a58719f&sid=EE16CA41-EFEF-4FCE-99E3-937E9F237C8A&nel=0&eid=44748969,44750824,44760950,44765701&url=https://boxingforyou.tvnsports.com.br/videos/TESTE-AWS-ATUALIZACOES-060922&dt=1664843196230&cookie_enabled=1&scor=728048969303232&ged=ve4_td1_er0.0.0.0_vi0.0.412.1691_vp0_eb16488)

Its empty.

Is there anything else I can do to debug this issue?

Thanks,

---

<div class="post-metadata">

**Author:** ![lucky.goyal](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/lucky.goyal/32/506_2.png) [@lucky.goyal](https://community.bitmovin.com/u/lucky.goyal)\
**Post date:** [October 4, 2022, 8:54am UTC](https://community.bitmovin.com/t/video-ad-not-working-on-web/1354/4 "2022-10-04T08:54:22Z")

</div>

Hi @rafael.f.iga , the Ad configuration in [Boxing for You - TESTE AWS ATUALIZAÇÕES](https://boxingforyou.tvnsports.com.br/videos/TESTE-AWS-ATUALIZACOES-060922) looks fine. As you observed the Ad Tag request is going out from player as expected but the Ad server returns empty response for the same. The response from Ad serve is outside the scope of player and you will need to check with Ad provider on reason for the same. But a few things which you are can try to validate player configurations and Ad tags with Bitmovin player are as below.

- Test the player in a standalone configuration. You can try the Ad tag with Bitmovin player Ad demo at [https://bitmovin.com/demos/ad-scheduling](https://bitmovin.com/demos/ad-scheduling). I am able to get the Ad using your Ad tag in standalone Bitmovin player.
- Check your player integration using sample Ad tags from Google which can be found at [IMA sample tags &nbsp;|&nbsp; IMA SDK for HTML5 &nbsp;|&nbsp; Google Developers](https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/tags)  
Make sure to use tags from HTML IMA client samples only. Ads tags from mobile SDKs may not work with Web SDK

As a side note, since you will be using IMA SDK, you need not include following in your integration.

`<script type="text/javascript" src="https://cdn.bitmovin.com/player/web/8/modules/bitmovinplayer-advertising-bitmovin.js">`

---

<div class="post-metadata">

**Author:** ![rafael.f.iga](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/rafael.f.iga/32/484_2.png) [@rafael.f.iga](https://community.bitmovin.com/u/rafael.f.iga)\
**Post date:** [October 4, 2022, 9:58pm UTC](https://community.bitmovin.com/t/video-ad-not-working-on-web/1354/5 "2022-10-04T21:58:52Z")

</div>

@lucky.goyal

If I use the sample tags, it works…so should be some config on my AdManager/Line Item/Order/Ad Unit.

I understand that its not more on the scope of bitmovin player, thanks for your help!
