The project is very simple: I need a modular PHP script (one class that I can include in my scripts) that I will integrate in an existing application to accept advertising from interested parties.
The script will include a database table, optimized with the proper indexes, that will accept the ad name, ad ID, ad "type" (a numeric identifier to identify the zone on the page, for example top, right or bottom), a field for the ad code, a field for the ad image, a field for the price, a field for the country etc..if I forgot something in the logic it's up to the programmer to solve it
The script will include a simple interface where a user can purchase ads based on the country, and it must be integrated to accept paypal IPN and automatically insert the ads in the database and activate them upon payment.
I also want the option to turn this into a manual process should I wish to review the ads first
Every country will have different prices for ads, so the interface should display an ad buying interface differentiated by conutry, with different prices taht I will select
I will need a simple CRUD interface for the admin to administer the price per country for example, approve ads, suspend ad showing etc
The script will also handle the ad-showing part, and it should be able to return the most appropriate ad based on an IP (highest paying ad for that country), obviously integrating with GEOip
It should also decrement a pageview from the available ones every time the ad is displayed (so if a user bought 2000 views, they will get 2000 views and then ad displaying will stop for that user)
The script should have a configuration section that accepts as parameters:
- a mysql database, host, user, password and table name
- a path for geoIP with maxmind (the .dat file)
I need the script within 15 days, please only serious bids