Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Executing google ads script

3 views
Skip to first unread message

Shuchi

unread,
Nov 2, 2009, 6:17:28 AM11/2/09
to
Hello,

I am using Cobra (lobobroswer based parser) for HTML parsing and rhino
for javascript parsing of web pages. However, the google ads script is
not executing. I want to retrieve the source code of the page
including the script generated ads. Please help.

Also, is there a way of executing the following script explicitly and
returning the result as a string:

<script type="text/javascript">
google_ad_client = "pub-";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_color_border = "FFFFFF";
google_color_bg = "0000FF";
google_color_link = "FFFFFF";
google_color_text = "000000";
google_color_url = "008000";
</script><script type="text/javascript" src="http://
pagead2.googlesyndication.com/pagead/show_ads.js"></script>

Thanks!

0 new messages