[HTML5] No error if required companion cant be shown, sometimes

44 views
Skip to first unread message

Felix

unread,
Mar 24, 2023, 12:37:12 PMMar 24
to Interactive Media Ads SDK
Hei there.

Not sure if this problem was already raised or is known, I have no idea how to search for it.

We are implementing preroll audio only ads and we have no companion ad space.

While testing we found the following, which seems very wrong:
If we get a VAST response that contains a companion ad which has the required="any" tag, the SDK does raise the correct error 602 (Unable to display one or more required companions.)
But this only happens if we start the player in a timely manner. If we wait some time (10-20 seconds) before starting the player, no error is raised and the ad plays normally.

We were able to reproduce this error with the simple example (https://github.com/googleads/googleads-ima-html5/tree/main/simple) on jsbin. The only thing we changed in the code was the ad tag.

I am waiting for confirmation if I can share the ad tag here, but maybe the problem is already known and maybe even worked on?

Thanks in advance,
Felix

IMA SDK

unread,
Mar 24, 2023, 4:12:35 PMMar 24
to ima...@googlegroups.com

Hello Felix,

Thank you for reaching out to the IMA SDK Support Team.

It appears that your concern is with regards to a VAST ad tag which contains companion ads that is working normally in some instances when it is supposed to return an error 602 "Unable to display one or more required companions" since your implementation does not contain an ad slot. For us to further investigate this and have a better illustration of the behavior would you be able to share with us the information below?

  • VAST ad tag used to reproduce error
  • screen recording of the behavior ( also mirroring replication steps)

You may send the requested details privately via the "Reply To Author" button or with the below process.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002k2q2YQAQ&entry.80707362=00172306

2. Fill out all fields, and attach your file(s).

3. Please reply back to this thread when you have uploaded your file(s). Please do not share this link.

 

Regards,

Google Logo IMA SDK Team


ref:_00D1U1174p._5004Q2k2q2Y:ref

Felix

unread,
Mar 31, 2023, 6:54:02 AMMar 31
to Interactive Media Ads SDK
Hei there.
Apparently, I forgot to reply in this ticket.
I have sent you a private message (I hope) and filled the form as requested.

Please let me know if you need more information or if you did not receive the pm...

Best,
Felix

IMA SDK

unread,
Mar 31, 2023, 1:21:12 PMMar 31
to ima...@googlegroups.com

Hi Felix,

Thank you for getting back to us.

This is to confirm that I have received the file you shared. However, upon checking only screen recording was shared but there is no VAST ad tag included. With this, could you also provide us the VAST ad tag used to reproduce error so we could replicate the same behavior on our end?

You may send the requested details privately via the "Reply To Author" button. Looking forward to your positive response.

Felix

unread,
Apr 1, 2023, 4:53:07 AMApr 1
to Interactive Media Ads SDK
Hei there.
Thanks for the quick reply.
I thought I had sent the VAST tag via 'reply to author'.
But I also got the OK to publicly post the VAST response here, so here it comes:

<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="3.0">

    <Ad id="593081" sequence="1">

        <InLine>

            <AdSystem version="6.12.1">

                Targetspot

            </AdSystem>

            <AdTitle>

                ts-15sec.mp3

            </AdTitle>

            <Description>ts-15sec.mp3</Description>

            <Advertiser>targetspot.be</Advertiser>

            <Category>IAB3-1</Category>

            <Pricing model="CPM" currency="USD">1.075</Pricing>

            <Creatives>

                <Creative id="593081">

                    <Linear>

                        <Duration>00:00:15</Duration>

                        <TrackingEvents>

                        </TrackingEvents>

                        <MediaFiles>

                            <MediaFile id="a99b2dfa-8a3b-02d8-5192-47852a21bda8" delivery="progressive" type="audio/mpeg" bitrate="128000" width="0" height="0"><![CDATA[https://cdn.targetspot.com/mediafiles/a/a99b/a99b2dfa8a3b02d8519247852a21bda8_mp3_128.mp3]]></MediaFile>

                        </MediaFiles>

                    </Linear>

                </Creative>

                <Creative id="593081">

                    <CompanionAds required="any">

                        <Companion width="300" height="250">

                            <StaticResource creativeType="image/png"><![CDATA[https://passport.targetspot.com/Files/Images/CreativeCompanions/34818.png]]></StaticResource>

                            <TrackingEvents>

                                <Tracking event="creativeView" />

                            </TrackingEvents>

                        </Companion>

                    </CompanionAds>

                </Creative>

            </Creatives>

        </InLine>

    </Ad>

</VAST>


Let me know if you need any other information.

Best,
Felix

IMA SDK

unread,
Apr 3, 2023, 6:15:45 AMApr 3
to ima...@googlegroups.com

Hi Felix,

Thank you for your response.

Unfortunately, I was not able to reproduce the issue using your VAST Response on our VSI. With that said, kindly provide us with the modified Simple example(with your Ad tag) where you were able to reproduce the issue. Make sure to send the requested details privately via the "Reply To Author" button or with the below process.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps.



1. Navigate to
https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002k2q2YQAQ&entry.80707362=00172306
2. Fill out all fields, and attach your file(s).
3. Please reply back to this thread when you have uploaded your file(s). Please do not share this link.

Regards,

Felix

unread,
Apr 3, 2023, 10:32:40 AMApr 3
to Interactive Media Ads SDK
Hei there.
Thanks for looking into this problem.
I am not sure how you would reproduce the error on the VSI, as there is a place for the companion ad. (Or can you switch it off?)

I created a jsbin that should help understand the error. As I wrote before, it is the simple example with a different ad tag and console logs.


You might have to hit 'Run with javascript' once you opened the example page.
Then follow the steps outlined in the video I sent you.
1. reload the javascript via 'run with javascript'
2. Hit the play button as soon as it appears.
3. The video should start playing and you should see an error in the console (either right away or when hitting the play button again) "Unable to display one or more required companions."
4. Thats the expected behaviour.
5. Reload the javascript via 'run with javascript'
6. Wait for some seconds (~10s) and then hit the play button.
7. The ad should play this time. (Although, the required companion ad was NOT able to be shown). <- This is the bug

Let me know if you need more information...

IMA SDK

unread,
Apr 3, 2023, 4:40:38 PMApr 3
to ima...@googlegroups.com

Hello Felix,

Thank you for sharing this information.

I was able to reproduce the behavior using Chrome dev tool console log. That said, allow me to raise this to the rest of the team for further insights. We will get back to you as soon as we have more information regarding this.

IMA SDK

unread,
Apr 19, 2023, 6:03:22 AMApr 19
to ima...@googlegroups.com

Hi Felix,

 

Can you confirm if you have made any changes to the provided ad tag as we are no longer able to replicate the issue. If yes, kindly provide us with the latest ad tag you are using. Make sure to send it privately via the Reply to Author option.

Felix

unread,
Apr 20, 2023, 6:12:48 AMApr 20
to Interactive Media Ads SDK
Hei there.
I do not have control over the ad tag, but you can use the VAST response that I sent in an earlier reply. (By using adsRequest.adsResponse instead of adsRequest.adTagUrl)

Best,
Felix

IMA SDK

unread,
Apr 20, 2023, 11:38:39 AMApr 20
to ima...@googlegroups.com

Hi Felix,

Thank you for sharing this information. Allow me to communicate this with the rest of the team. We will update this thread as soon as we have more information to share.

IMA SDK

unread,
Apr 21, 2023, 7:54:40 AMApr 21
to ima...@googlegroups.com
Hi Felix,

The team noticed that the provided VAST on this thread is partial VAST tag (seems incomplete). Could you please share it to us once again? You may paste it first into txt file, then upload it using the steps below.

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Regards,

Felix

unread,
Apr 26, 2023, 5:53:28 AMApr 26
to Interactive Media Ads SDK
Hei there.
I just copy pasted the VAST response and inserted it into the Suite inspector and it worked as intended, not sure why the team reported it as broken.
Will paste it here again and I have also submitted the requested txt file via the given link.
Let me know if you need anything else.

Best,
Felix

IMA SDK

unread,
Apr 26, 2023, 6:59:12 AMApr 26
to ima...@googlegroups.com

Hi Felix,

Thank you for providing the requested information. I'll share this with the team and we'll update you as soon as we have any information.

Regards,

IMA SDK

unread,
May 2, 2023, 3:37:35 AMMay 2
to ima...@googlegroups.com

Hi Felix,

The team reported that they tested the tag on a test page with no companion slot, and saw the 602 error happen each time, even after waiting 10-20 seconds to reload.

With this, can you confirm if the issue is still happening on your end? If yes, can you provide a screen recording as well as your sample test page where the issue is still happening. If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply via the "Reply to Author" option. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:



1. Navigate to
https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002k2q2YQAQ&entry.80707362=00172306
2. Fill out all fields, and attach your file(s).
3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Regards,

Felix

unread,
May 3, 2023, 9:25:21 AMMay 3
to Interactive Media Ads SDK
Hei there.
Thanks for getting back to me.
I have modified the pastebin example (https://jsbin.com/duqetasera/edit?html,js,console) so that it uses adsRequest.adsResponse instead of adsRequest.adTagUrl and the VAST response from my third or so post in this thread.
The same exact problem is still happening. You can check the video that I sent in my second or so post to see the same behavior.

Or just follow the same steps as outlined in a previous post:

You might have to hit 'Run with javascript' once you opened the example page.
Then follow the steps outlined in the video I sent you.
1. reload the javascript via 'run with javascript'
2. Hit the play button as soon as it appears.
3. The video should start playing and you should see an error in the console (either right away or when hitting the play button again) "Unable to display one or more required companions."
4. Thats the expected behaviour.
5. Reload the javascript via 'run with javascript'
6. Wait for some seconds (~10s) and then hit the play button.
7. The ad should play this time. (Although, the required companion ad was NOT able to be shown). <- This is the bug


Thanks,
Felix

IMA SDK

unread,
May 3, 2023, 1:30:17 PMMay 3
to ima...@googlegroups.com

Hi Felix,

Thank you for confirming that the same issue is still happening on your end.

Allow me to communicate this information to the rest of the team to gather their insights as well. I will get back to you as soon as I have any information to share.

IMA SDK

unread,
May 16, 2023, 6:22:58 AMMay 16
to ima...@googlegroups.com
Hi Felix,
 
Thank you for your patience. We're glad to inform you that this issue has been fixed with the newly released version v3.573.0. More information here: