Forum Moderators: martinibuster

Message Too Old, No Replies

Google Seach with AdSense id from Flash

Flash programming question

         

white_rajah

11:53 pm on Aug 14, 2005 (gmt 0)

10+ Year Member



Hi everyone - my idea for this came from a tutorial on this site which explains how to set up an Atomz site search in Flash: (http://www.kirupa.com/developer/mx/atomzsearch.htm). I'd like to do the same thing, only sending the query to Google with my AdSense id. So far I've succeeded in configuring it to send a Google SiteSearch, but no luck yet in passing on the AdSense id. If anyone has any suggestions on this I'd be very grateful - the main issue for me is that displaying competitors' ads alongside my own content would be crazy and I need to screen them out.

on(release, keyPress"<Enter>"){
client="pub-1111111111111111";
getURL("http://www.google.com/search?q=" + escape(url) +" site:www.mysite.com", "_self");
}

[This doesn't actually pass on the AdSense id, but I think the solution is going to look something like this.]

Sobriquet

3:25 am on Aug 15, 2005 (gmt 0)

10+ Year Member



Technical Answer:
you are on right track but it will not work directly for some reasons. :) (server site encoding)

Instead, try passing your flash widget data to another html page on ur site which automaically passes to code to google. The second page is an intermediatery which shouldnt show up. On this page, used google search code.

My Suggestion:

This is all against AdSense TOS strictly. Experimenting might make you lose your AdSense account permanently.

white_rajah

4:02 am on Aug 15, 2005 (gmt 0)

10+ Year Member



Hi Sobriquet - ok, thanks, I'll leave it be if it's going to bother the folks at Google.

Powdork

7:45 am on Aug 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or you could email Google and ask them if its ok? That would at least let them know it is something people are interested in.

white_rajah

5:07 pm on Aug 15, 2005 (gmt 0)

10+ Year Member



Yeah, I guess I could e-mail Google and let them know. I'm actually not trying to achieve anything nefarious here - it's just that my site design in based on a template which incorporated the search function into a Flash header.