Everybody Likes Ninjas

Embeding an Ad tag into a Flash component

Wednesday, 6 January 2010 10:04 by Ziv

Ziv How easy is it to embed Ads into a flash player?

If you have looked at our demo sites or our widgets site from a developer point of view, you have probably noticed that the Ads seem to be integrated as a part of the Flash layer.

It looks obvious, just call the ad jpeg or flash file and place them in the correct location. right? Correct , but...
And here comes a big BUT. The ad URL is not something given to you on a golden plate.

Big Advertisement companies and AdNetwors don't think about the possibility that some strange programmer would like to retrieve the ad URL from their server using client side code embedded in flash.

Their systems are built to support calls for ads URLs using iFrame URL or a JavaScript code.

Try and get the Ad URL from an iFrame URL while in flash. You just can't, since it's in a different domain the browser security infrastructure prevents you from reading the HTML DOM of an object residing in a different domain.

So you like to know how we did it?
You can’t .It's confidential. Believe me I like to say more (and I did post it until our panic team read about it and i had to remove the paragraph about our solution) I promise that once I'm able to disclose how it all works I will.

In the meantime if you are a JavaScript freak and like to talk more about the different format of JavaScript code the advertisers use on their systems place a comment or send me an email.

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading