IMA sdk error 501

703 views
Skip to first unread message

Mashood Tanveer

unread,
Apr 25, 2016, 3:13:00 AM4/25/16
to Interactive Media Ads SDK
I am using IMA HTML5 sdk and its working fine but the problem is that if my adcontainer size is less than the creative size mentioned in the pubads request . it generates the following error 
Error code : 501
Error Message : "The overlay ad content could not be displayed since creative dimensions do not align with display area."
Qd Prototype

I try to use adsManager resize function to resize the creative image but nothing happens.
ofcourse different desktops can have different sizes and my adcontainer size is not fix , it changes according to window size and I can't upload all sizes because I don't know user can resize browser to any size.

for example I have uploaded creative image of size 938x528 and my request look like this "https://pubads.g.doubleclick.net/gampad/ads?sz=938x528&........."
but the image container size is let say 900x510 so sdk will generate the 501 error.and it can be any size as I told user can resize the window and adcontainer size will also resized.

Binny Patel (IMA SDK Team)

unread,
Apr 25, 2016, 10:30:41 AM4/25/16
to Interactive Media Ads SDK
Hi Mashood,

The AUTO_SCALE property in Ads.RenderingSettings (adsRenderingSettings.AUTO_SCALE;) can resolve your issue. You can have a look at my example here. Let me know if you have any issues.

Thanks
Binny Patel
IMA SDK Team

Mashood Tanveer

unread,
Apr 25, 2016, 1:18:03 PM4/25/16
to Interactive Media Ads SDK

Now I am getting this error on your example page

   AdError 503: Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities. 

Binny Patel (IMA SDK Team)

unread,
Apr 25, 2016, 4:54:35 PM4/25/16
to Interactive Media Ads SDK
Hi Mashood,

Can provide me your an ad tag? What type of ad tag you are using?

Thanks
Binny Patel
IMA SDK Team

Message has been deleted

Mashood Tanveer

unread,
Apr 25, 2016, 5:17:09 PM4/25/16
to Interactive Media Ads SDK

I sent you ad tag privately, kind have a look.
    Thanks . 

Mashood Tanveer

unread,
Apr 26, 2016, 2:18:35 AM4/26/16
to ima...@googlegroups.com
Hi ,
do you got the solution of my problem ?

On Mon, Apr 25, 2016 at 11:17 PM, Mashood Tanveer <masho...@gmail.com> wrote:

I sent you ad tag privately, kind have a look.
    Thanks . 

--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/VmlOwax0lsw/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Binny Patel (IMA SDK Team)

unread,
Apr 26, 2016, 10:21:40 AM4/26/16
to Interactive Media Ads SDK
Hi Mashood,

I have reproduced the issue, but I need more details. During which part of the SDK's lifecycle are you trying to resize your tag? If you resize in the beginning of the ad request, then you don't have to resend the request with the updated parameters.

Thanks
Binny Patel
IMA SDK Team

Mashood Tanveer

unread,
Apr 26, 2016, 10:42:51 AM4/26/16
to ima...@googlegroups.com
Hi,
      you means adsManager Resize ? I am doing it in onAdError . but It changes nothing. can you tell me exactly what to do because I have tried your example page and I am getting the same error there as well.

Binny Patel (IMA SDK Team)

unread,
Apr 26, 2016, 4:08:00 PM4/26/16
to Interactive Media Ads SDK
Hi Mashood,

Your ad tag throws an error 503, which means nonlinear assets don't match the size of the video player (google.ima.AdError.ErrorCode.VAST_NONLINEAR_ASSET_MISMATCH). If you're using AdsManager.resize() then you have to match the dimension of nonlinear ads.
I would suggest having multiple creative sizes available in your ad tag, which would give a better chance of a creative to be served without error.

Thanks,

Binny Patel
IMA SDK Team

Mashood Tanveer

unread,
Apr 26, 2016, 5:33:48 PM4/26/16
to ima...@googlegroups.com
Hi Binny,
               as I have mentioned in start of thread that I have added creatives but user can change the browser size and I want my ad to fill the complete adcontainer div and AdsManager.resize() function don't change any thing, and if I load smaller creative than adcontainer size then there is free space around overlay image and I don't want it and in case of larger creative size from adcontainer size, I get 503 Error.

Binny Patel (IMA SDK Team)

unread,
Apr 27, 2016, 11:25:55 AM4/27/16
to Interactive Media Ads SDK
Hi Mashood,

As mentioned before. Your ad tag is throwing 503 error, which means there is no ad to play. We were able to reproduce the issue with AdsManager.resize(). I will talk to the rest of my team.

Thanks,
Binny Patel
IMA SDK Team

Mashood Tanveer

unread,
Apr 27, 2016, 11:37:42 AM4/27/16
to ima...@googlegroups.com
Hi,
Thanks, I will wait for solution from IMA SDK Team, as I have talked with DFP team as well and its error generated by IMA SDK .


dh...@gamezop.co

unread,
Jun 23, 2018, 12:24:47 PM6/23/18
to Interactive Media Ads SDK
Hi Binny

The AUTO_SCALE property is no longer in the documentation. What is the workaround for this now? I am also facing a large number of VAST 501 errors while serving ad tags from DFP.

The number of VAST 501 is huge in case of overlay text ads. For the case of overlay image ads, the errors are reduced but still significant. Can you please help.
Here is the implementation: http://games.gamezop.com/g/N1sZfO1fWqg

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

unread,
Jun 25, 2018, 2:23:31 AM6/25/18
to ima...@googlegroups.com
Hi,

The AUTO_SCALE property has been concluded that this is only for internal use, that is why it has been removed. There is currently no workaround to apply a similar functionality.

As for the VAST 501 error, it indicates that the dimensions of your AdsManager object might be less than the dimensions required by your overlay ad for it to display. You need to make sure upon initialization that your AdsManager has a large enough size. You can then apply a resize for your AdsManager once the ads have been displayed to save space.

Thanks and regards,
Peter Laurence N. Oliquino
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages