Forum Moderators: skibum

Message Too Old, No Replies

Struggling with setting up Ad Network Chain

ad network chain

         

jagrmeister721a

5:35 am on Mar 15, 2008 (gmt 0)

10+ Year Member



OK, so I've searched this forum and others for information on how to set up a chain of ad networks. I am trying to use: network1 -> network2 -> network3 (or network1 -> network3 -> network2). My problem is that when I try to plug the network2 link into network1 (or network3 for that matter), it doesn't work.

Both network2 and network3 give me a whole bunch of code (javascript or other tags), not just a URL. So I can't paste all that code into where network1 asks for a URL to default to. When I go into the network2 or network3 code and pluck out the URL, paste it into network1, it doesn't produce the ad properly. If network2 and network3 would just give me a URL (like CPX does), this might be easier.

I realize I'm not doing things right, because others have set these up. Can someone give me specific direction on how to deal with this specific situation, I would really appreciate it. Thanks!

[edited by: eljefe3 at 5:57 am (utc) on Mar. 15, 2008]
[edit reason] specifics [/edit]

ronin

7:39 pm on Mar 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Both network2 and network3 give me a whole bunch of code (javascript or other tags), not just a URL. So I can't paste all that code into where network1 asks for a URL to default to.

Here's one idea which ought to work:

1) Take the javascript ad code from network 2.
2) Remove the <script> and </script> tags.
3) If there is a <noscript>...</noscript> section, then rewrite it as

document.write('<noscript>...<noscript>');

4) Save the code as a javascript text file: network2.js
5) Upload the file on to your server, let's say to:

/mysite/ads/network2.js

6) Where the code from network 1 requests a URL, insert:

[mysite.com...]

Now you have a simple URL which contains the script from network2.

jagrmeister721a

8:09 pm on Mar 16, 2008 (gmt 0)

10+ Year Member



Cool. Thanks! Will give that a try.