krux / postscribe

Asynchronously write javascript, even with document.write.
MIT License
986 stars 157 forks source link

OpenX Unique Ads #4

Closed oozrafa closed 11 years ago

oozrafa commented 11 years ago

I'm using OpenX to serve my ads and when you fetch the ads a 'block=1' is added so that the same ads aren't served to the same page. The problems is that when using (your wonderful plugin) postscribe, each request for an add is treated as if a different page is requesting it, which causes the same ad to be served to the same page more than once.

dbrans commented 11 years ago

Hi, Can you provide a simple jsfiddle or plnkr that illustrates the problem?

paulmcfadden commented 11 years ago

I was thrilled to find your project on github, and it was very easy to implement. I'm having a very similar problem rendering ads from the google doubleclick servers. My page loads 2 ads of the same size on the page. I am specifying a tile=1 and a tile=2 on the calls, but when using postscribe, the ads returned are the same, 75% of the time. If I take postscribe out, it never generates the same ads on the same page.

I tried to create a jsfiddle (sorry never used it before) but I was not sure how to reference the postscribe.js file in jsfidel to recreate the issue.

I need to render the ads after the page load, since the URLs for the ads are built from various pieces of JSON data in the page . Any ideas?

dbrans commented 11 years ago

Hi Paul, That sounds interesting. Try forking this jsfiddle: http://jsfiddle.net/dbrans/Znpxv/ I've set everything up there for you. You can use it to try to reproduce your issue. Cheers, Derek

On Tue, Nov 13, 2012 at 8:17 PM, paulmcfadden notifications@github.comwrote:

I was thrilled to find your project on github, and it was very easy to implement. I'm having a very similar problem rendering ads from the google doubleclick servers. My page loads 2 ads of the same size on the page. I am specifying a tile=1 and a tile=2 on the calls, but when using postscribe, the ads returned are the same, 75% of the time. If I take postscribe out, it never generates the same ads on the same page.

I tried to create a jsfiddle (sorry never used it before) but I was not sure how to reference the postscribe.js file in jsfidel to recreate the issue.

I need to render the ads after the page load, since the URLs for the ads are built from various pieces of JSON data in the page . Any ideas?

— Reply to this email directly or view it on GitHubhttps://github.com/krux/postscribe/issues/4#issuecomment-10354750.

dbrans commented 11 years ago

I'm going to close this issue for now. Feel free to open a new issue once you have something that lets us reproduce the issue. Cheers, Derek