I have put ad_network.php and ad_network_ads.txt in the root folder of my site. But, when I put .htaccess in my root folder with this line: AddType application/x-httpd-php .php .htm .html My site does not open. The following error displays: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I dont have a clue why this error is coming. I would appreciate any help from you guys. Thankyou so much Niz
Have done that. Now the above error is not coming. But, the ads are also not appearing. I have done the three tasks: 1. added "ad_network.php" to root folder. 2. added "ad_network_ads.txt" to root folder. 3. added ".htaccess" to root folder. What else I have to do in order to see the ads on my site? Your help is really appreciated. Thanks Niz
Did you set the security properly for each of the files per the instructions? Did you host support php? What is url so we can take a peek?
The url is xxxxxxxxxxxxx. Yes, my host supports php. The default permissions for "ad_network_ads.txt" is (as I see in my file manager): There is a tick in write mode under "user" category, but it is not ticked under "group" and "world" category. I dont know what I am talking, but I am telling you what I am seeing. I hope you get what I mean to say. Again, the help is very much appreciated. Thanks Niz
Do you have the ad code on your home page? Please add this immediately before </body>: <?php echo 'hello<br>'; ?>
No, I dont have the ad code on my home page. From where I can get it? I just pasted that code line which you just gave... it is just displaying "hello" on my homepage. I dont know php... do I sound stupid???
When you log in to your coop account, there are instructions toward the bottom about adding the php ad code to all of you pages.
Sorry, but I didnt find any such instructions about adding the php ad code to all of the pages.... I am still trying to find those instructions. Where are the instructions exactly? Thanks Niz
The fact that hello is displaying on your home page means that the addhandler directive is working and your .htaccess file is correct. All you need do now is add the files to your root folder and put the code in your pages as per the set up instructions.
Oops! I dont know why I skipped that step#4... maybe I thought it is valid for sites only having .php as extension (How stupid of me? ) Anyways, now the ads are displaying... thankyou guyz But the ads which are appearing are very unrelated to my site's theme. Will the ads get targeted themselves only or shall I have to do anything about this? Thankyou guyz for being so nice Niz
At this point there is no themeing for the ads - though I believe I have read posts where Shawn has said this is planned for the future.
so, there is no way to get themed ads? Can't I exclude certain URLs or keywords for my ads appearance?