I cobbled together an ASP solution today using what I could interpret from reading the PHP code. The ads are displaying fine, but my site won't validate. The one thing that I know is different from the PHP version is that I'm not caching the ads. I'll fix that right now, but would that prevent me from validating? Or is there some other problem? The site is http://www.WeBuyHousesDirectory.com/
Here are two more differences I can see: 1. My version doesn't "gethostbyname(validate.digitalpoint.com)," but that apparently just derives the IP address for that domain name, so I don't think that's it. 2. My version caches the ad in an application object for 15 minutes instead of writing it to a file. Digital Point never requests anything but the URL listed in our account, though, so the lack of that file doesn't appear to be a problem. As near as I can tell, my output looks the same as the output from other working sites. Could it be that we only have one page listed in Google so far (we just launched last week)? Or maybe because I issued several requests one right after the other while I was testing, before I set the ad to cache for 15 minutes?
Alright, just tried the code again: On a completely unrelated site, with an established Google presence Using a brand new DP account Using the same ASP code But validation still failed with "Ads not found on http://www.straightdish.com/". So it apparently isn't a problem specific to the site. It's apparently either a problem with my ASP, or there's something else I need to do that I'm not aware of.
Do a search on the forum here for Co op and ASP, and you will see a lot of threads about the newest asp code. However, there have been a LOT of problems with it's implementation in the past, and it is not a supported format. good luck edit: also, ip's do get banned for too many requests, so if that happened while you were testing, then that is another reason it may not validate.
shane: ASP version working for me on several sites. I am using the one from the following post: http://forums.digitalpoint.com/showpost.php?p=143321&postcount=21
Thanks! I'll take a look at that tomorrow and see if it's doing something my version is not. I'll let you know what I find. And it doesn't appear to be an IP-blocking issue, unless my IP got stamped on the new account I created. I used a brand new site, account, web server and everything for my second test.
Even my old version of the ASP code was still showing all ads without problem. Your site isn't even rotating the single ad you are showing. Maybe just upgrade first and make sure the ads are changing. If not, maybe you have a nonwritable file. The new ASP code checks to see if writable.
My version pulls an ad and caches it for 15 minutes. That's why you don't see it rotating. I'm going to swap out with the working version now and see if that works.
Alright, I copied that file over and am calling ad_network(), but all I get is | | | | -- just separators, no ads. Working now to figure out why.
In order to set the permissions on the file, I had uploaded ad_network_ads_213.txt as a file with a single space. That made the ASP do weird things (like not show any ads). I blanked out the file, and now it is showing 5 ads, just like it should. However, the site still won't validate. TOPS30's post (http://forums.digitalpoint.com/showpost.php?p=148212&postcount=4) seems to indicate that it might be because we have only one page showing up in Google right now for this particular site. Could that be it?
doubt it, the site would validate but it wouldn't have much weight. are you running another ad network along with the co op? if it's not that, i suggest you ask shawn if your ip is banned for some reason.
No, the co-op is the only thing running on the page. I PM'ed Shawn yesterday afternoon when I saw that he was online responding to other topics in this forum, but I didn't hear back from him. This co-op seems to have fantastic potential, but this "ads not found" error and no way to know what's wrong is frustrating. I'm looking forward to nailing this ASP solution once and for all so we can reliably bring on other ASP sites.
Alright it's validating now, but I foolishly changed two things at the same time, so I don't know which change fixed it. It could be that Shawn simply unblocked my IP. It could also be that I changed the ASP to always show the class attribute in the links. Not sure which it was, but I'm validating now. I think I'll try to get www.straightdish.com to validate now as well.
WHEW! Alright, I've figured out the problem with my initial implementation. I was not putting the "class" attribute in the links when DP came to check the ads. I was able to set up a new site with the original code and see that it wasn't validating. As soon as I added code to display the "class" attribute, though, the site validated just fine. Glad to be up and running!
congrats on getting it to work! FYI - for the future, shawn has it in his sig that he doesn't want people pm'ing him for co op help, all you have to do is start a thread here about your ip being banned and he will check for ya. congrats again, way to stick in there