Flash error 2032 - probably wrong adTagUrl (not allowScriptAccess)

989 views
Skip to first unread message

Hubert Rutkowski

unread,
Dec 13, 2013, 2:11:42 PM12/13/13
to ima...@googlegroups.com

Hi, I have managed to run the IMA3 sample flash app. It works with the default adTagUrl "http://pubads.g.doubleclick.net/gampad/ads?..." etc.

But if I send there a custom adTagUrl with test parameters: http://googleads.g.doubleclick.net/pagead/ads?" + "ad_type=standardvideo&adtest=on&" +
        "description_url=http%3A%2F%2Fgames.sense-lang.org%2Fafg%2FNJ_description.php&" +
        "client=ca-video-afvtest";

It throws error. This is the log:

info SDK Loader version = 3.0.98
info SDK Version = 3.0.98
info Loaded from an untrusted not youtube host: file:///E|/FlashDevelop/Koshmaar/Testbed/bin/Testbed.swf
info Undefined document.referrer
info Undefined document.referrer
info Undefined document.referrer
info Loading xlb file for locale - en
info Loaded xlb file for locale - en succeed
info Loading xlb file for locale - en
info Loaded xlb file for locale - en succeed
Warning: Domain googleads.g.doubleclick.net does not explicitly specify a meta-policy, but Content-Type of policy file http://googleads.g.doubleclick.net/crossdomain.xml is 'text/x-cross-domain-policy'.  Applying meta-policy 'by-content-type'.

error Error: Ad adLoadError error: Unable to request ads from server. Cause: Error #2032: Stream Error.

URL: http://googleads.g.doubleclick.net/pagead/ads?ad_type=standardvideo&adsafe=high&adtest=on&channel=&client=ca-mongoogle&correlator=1185964751016010941&dt=1386960762642&flash=11.6.602.171&frm=2&max_ad_duration=110000&num_ads=1&output=xml_vast2&sdkv=3.0.98&sz=640x360&t_pyv=exclude&u_ah&u_asa=0&u_aw&u_cd&u_h&u_his&u_java&u_nmime&u_nplug&u_tz=60&u_w&unviewed_position_start=1&url=http%3A%2F%2Fwww.google.com%2F&video_format=18&video_product_type=0&video_url_to_fetch=http%3A%2F%2Fgames.sense-lang.org%2Fafg%2FNJ_description.php&videoad_start_delay=1 errorCode: 0

Yes, I've seen the doc :) https://developers.google.com/interactive-media-ads/docs/sdks/flash/v3/errorcodes and set the allowScriptAccess=always when I'm embedding flash inside html. The other things mentioned there also didn't help.

Any ideas? I'm suspecting it's a adTagUrl issue, since running the app directly in flash player gives the same error, while using the default
"http://pubads.g.doubleclick.net/..." makes the video play ok, with sounds and all.

Thanks!
Hubert

Shawn Busolits (IMA SDK Team)

unread,
Dec 13, 2013, 2:42:57 PM12/13/13
to ima...@googlegroups.com
Hey Hubert,

I think the ad tag you're basing that off of is a bit out of date - could you try using this one instead and let me know how it goes?


Thanks,
Shawn Busolits
IMA SDK Team

Hubert Rutkowski

unread,
Dec 13, 2013, 4:03:35 PM12/13/13
to ima...@googlegroups.com

Hi Shawn

The "http://pubads.g.doubleclick.net/gampad/ads..." url is in the
SdkIntegrationExample.as - and it works.

I've tried yours but it's the same thing: Warning: Domain
googleads.g.doubleclick.net does not explicitly specify a meta-policy,
but Content-Type of policy file
http://googleads.g.doubleclick.net/crossdomain.xml is
'text/x-cross-domain-policy'. Applying meta-policy 'by-content-type'.

error Error: Ad adLoadError error: Unable to request ads from server.
Cause: Error #2032: Stream Error. URL:
http://googleads.g.doubleclick.net/pagead/ads?ad_type=video_image_text_flash&adsafe=high&adtest=on&channel=&client=ca-video-pub-4968145218643279&correlator=1185964751016010941&dt=1386967915750&ea=0&flash=11.6.602.171&frm=2&image_size=480x70%2C468x60%2C450x50%2C336x280%2C300x250%2C250x250%2C200x200&max_ad_duration=44000&num_ads=3&output=xml_vast2&sdkv=3.0.98&sz=640x360&t_pyv=allow&u_ah&u_asa=0&u_aw&u_cd&u_h&u_his&u_java&u_nmime&u_nplug&u_tz=60&u_w&unviewed_position_start=1&url=http%3A%2F%2Fwww.google.com%2F&video_format=18&video_product_type=0&video_url_to_fetch=http%3A%2F%2Fwww.youtube.com&videoad_start_delay=0
errorCode: 0


Embedded in html and run in flash player. Btw, I'm using SWFObject to
embed. The html looks like this:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Testbed</title>
<meta name="description" content="" />

<script type="text/javascript"
src="http://code.jquery.com/jquery-1.9.1.js" charset="utf-8"></script>

<script src="js/swfobject.js"></script>
<script>
var flashvars = {
};
var params = {
menu: "false",
scale: "noScale",
allowFullscreen: "true",
allowScriptAccess: "always",
bgcolor: "",
wmode: "direct"
};
var attributes = {
id: "Testbed",
name: "Testbed"
};
swfobject.embedSWF(
"Testbed.swf",
"altContent", "100%", "100%", "10.0.0",
"expressInstall.swf",
flashvars, params, attributes);
</script>
</head>
<body>
<div id="altContent">
<p><a href="http://www.adobe.com/go/getflashplayer">Get Adobe
Flash player</a></p>
</div>
</body>
</html>


I can also send the smallest piece of .as3 or .swf which reproduces the
issue.

Regards,
Hubert / Koshmaar Games

Hubert Rutkowski

unread,
Dec 16, 2013, 1:00:35 PM12/16/13
to ima...@googlegroups.com

Ok, I've attached the SWF and two smallest files which reproduce the issue.

Shawn please if you could take a look... you know the system in and out and for you it will be easy to see what's wrong. I've been banging my hand against this for a few days... :(

Thank you
Hubert
Testbed.swf
GoogleAds.as
Main.as

Bret McGowen

unread,
Dec 16, 2013, 2:26:03 PM12/16/13
to ima...@googlegroups.com
Hubert,

Thanks for attaching the sample code, I will take a look as well.

Thanks,
Bret
IMA SDK Team

Hubert Rutkowski

unread,
Dec 18, 2013, 5:35:48 AM12/18/13
to ima...@googlegroups.com


Thank you Bret :) it should be easy for you as well. Btw, have you
already found something?

Best
Hubert


On 2013-12-16 20:26, Bret McGowen wrote:
> Hubert,
>
> Thanks for attaching the sample code, I will take a look as well.
>
> Thanks,
> Bret
> IMA SDK Team
>
>
> On Monday, December 16, 2013 1:00:35 PM UTC-5, Hubert Rutkowski wrote:
>
>
> Ok, I've attached the SWF and two smallest files which reproduce
> the issue.
>
> Shawn please if you could take a look... you know the system in
> and out and for you it will be easy to see what's wrong. I've been
> banging my hand against this for a few days... :(
>
> Thank you
> Hubert
>
>
> W dniu pi�tek, 13 grudnia 2013 22:03:35 UTC+1 u�ytkownik Hubert
> Rutkowski napisaďż˝:
>
>
> Hi Shawn
>
> The "http://pubads.g.doubleclick.net/gampad/ads..
> <http://pubads.g.doubleclick.net/gampad/ads..>." url is in the
> SdkIntegrationExample.as - and it works.
>
> I've tried yours but it's the same thing: Warning: Domain
> googleads.g.doubleclick.net
> <http://googleads.g.doubleclick.net> does not explicitly

Bret McGowen

unread,
Dec 20, 2013, 4:49:44 PM12/20/13
to ima...@googlegroups.com
Hi Hubert!

I took a look at it and I don't think there's anything wrong with the ad tag. If you take the SDK Integration example we have and drop in your ad tag everything seems to work OK, so I'm not able to see the issue. Is this hosted somewhere where I can see the error in action?

Thanks,
Bret
IMA SDK Team

Hubert Rutkowski

unread,
Feb 22, 2014, 12:56:28 PM2/22/14
to ima...@googlegroups.com

Hmm, that's very strange then that it doesn't work for me. To try it once again, I just downloaded the Flash IMA SDK sample 1.3 from here: https://github.com/googleads/googleads-ima-flash/releases

I have compiled it in FlashDevelop using Flex 4.6, linking ima_lib_as3.swc (from yesterday), and running it in Firefox and Chrome - in both cases, the default ad tags work ok:

    private static const LINEAR_AD_TAG:String =
        "http://pubads.g.doubleclick.net/gampad/ads?sz=400x300&" +
        "iu=%2F6062%2Fiab_vast_samples&ciu_szs=300x250%2C728x90&impl=s&" +
        "gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&" +
        "url=[referrer_url]&correlator=[timestamp]&" +
        "cust_params=iab_vast_samples%3Dlinear";

 private static const NONLINEAR_AD_TAG:String =
        "http://pubads.g.doubleclick.net/gampad/ads?sz=400x300&" +
        "iu=%2F6062%2Fiab_vast_samples&ciu_szs=300x250%2C728x90&" +
        "impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&" +
        "url=[referrer_url]&correlator=[timestamp]&" +
        "cust_params=iab_vast_samples%3Dimageoverlay";

However, as soon as I try the adtag formated according to https://support.google.com/adsense/answer/3112148?hl=en&ref_topic=1706004 , ie.

private static const MY_AD_TAG1 : String = "http://googleads.g.doubleclick.net/pagead/ads?ad_type=video_image_text_flash&client=ca-video-pub-4968145218643279&videoad_start_delay=0&description_url=http%3A%2F%2Fwww.youtube.com&max_ad_duration=40000&adtest=on";

or even the minimalistic "http://googleads.g.doubleclick.net/pagead/ads?client=ca-video-afvtest&ad_type=video&description_url=http%3A%2F%2Fmyurl.com%2Fpage%3Fkey%3Dvalue%26key2%3Dvalue2" (taken literally from the FAQ),

and put it into IMA sample 1.3, it doesn't work anymore and throws errors in Firefox:

Warning: Domain googleads.g.doubleclick.net does not explicitly specify a meta-policy, but Content-Type of policy file http://googleads.g.doubleclick.net/crossdomain.xml is 'text/x-cross-domain-policy'.  Applying meta-policy 'by-content-type'.

error Error: Ad adLoadError error: Unable to request ads from server. Cause: Error #2032: Stream Error. URL: http://googleads.g.doubleclick.net/pagead/ads?ad_type=video&adsafe=high&adtest=on&channel=&client=ca-mongoogle&correlator=1185964751016010941&dt=1393088385125&flash=11.9.900.152&frm=2&max_ad_duration=110000&num_ads=1&output=xml_vast2&sdkv=3.0.110&sz=640x360&t_pyv=exclude&u_ah&u_asa=0&u_aw&u_cd&u_h&u_his&u_java&u_nmime&u_nplug&u_tz=60&u_w&unviewed_position_start=1&url=http%3A%2F%2Fwww.google.com%2F&video_format=18&video_product_type=0&video_url_to_fetch=http%3A%2F%2Fmyurl.com%2Fpage%3Fkey%3Dvalue%26key2%3Dvalue2&videoad_start_delay=1 errorCode: 1103

But in chrome it's a different error:
error Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001

In both cases the FlashPlayer version visible upon right clicking is 11.9.900.152

What could be wrong with my setup?


We want to use AdSense for Games, and my partner-publisher already has someone assigned to cooperate with. But still DFP account isn't required for ASG, and certainly shouldn't be for testing purposes...


Regards,
Hubert / Koshmaar Games


PS sorry for the delay, I had to postpone this project for a while.

Hubert Rutkowski

unread,
Feb 22, 2014, 1:04:10 PM2/22/14
to ima...@googlegroups.com

As for the "seeing error in action", I put it here: http://koshmaar.pl/test/index.html

The linear adtag doesn't work (it is using the adtag from FAQ) - you should be able to see the error in flash log. The non-linear has the default from sample, and it works.

Thank you for help,
Hubert

Bret McGowen

unread,
Feb 24, 2014, 4:02:00 PM2/24/14
to ima...@googlegroups.com
Hi Hubert,

It looks like the issue is with the ad tag not returning any ads, not with the IMA SDK itself, so your code is likely correct. Unfortunately I can't help much with AdSense ad tag questions; I would recommend posting a question in this forum:



Thanks,
Bret M
IMA SDK Team

kis...@gmail.com

unread,
Feb 26, 2014, 11:04:44 AM2/26/14
to ima...@googlegroups.com
Hi,

try to check/modify your host file, maybe its blocking some of the ads. I got similar error and I solved it by modifying the host file.
Also try to check your solution on different machines to check if you get the same result on other machines.

Karol

VTweens

unread,
May 13, 2014, 2:40:35 AM5/13/14
to ima...@googlegroups.com
Hi Hubert,

I'm experiencing the exact same problem.
Did you find its cause or solution?

Many thanks,
Yohai
 

Bret McGowen

unread,
May 14, 2014, 2:51:00 PM5/14/14
to ima...@googlegroups.com
Hi Yohai,

Can you post the ad tag that you're using? I can take a look and let you know what I find.

Cheers,
Bret McGowen
IMA SDK Team

Hubert Rutkowski

unread,
May 15, 2014, 3:27:42 AM5/15/14
to ima...@googlegroups.com

No, at that moment I had to move to other tasks. But I will go back to it in 2-3 weeks, and then will first check how it behaves on other machines (as Karol suggested). If you find yourself sth, please write here :)

Hubert

Eddie J

unread,
Nov 25, 2015, 4:51:21 PM11/25/15
to Interactive Media Ads SDK
Hi, what was the solution?
Reply all
Reply to author
Forward
0 new messages