SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2002
    Location
    Trondheim, Norway
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    counting views in ad-system

    anybody got some good ideas on how to count the number of times an ad has been shown in ad-system?

    I currently have each ad in an iframe on a site

  2. #2
    SitePoint Zealot
    Join Date
    Feb 2005
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    each add in a separate iframe, why would you do that...

  3. #3
    SitePoint Guru defiance's Avatar
    Join Date
    Oct 2004
    Location
    United states
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    get a ad management software

    like, phpadsnew

  4. #4
    SitePoint Enthusiast Bobbi's Avatar
    Join Date
    Mar 2005
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you're not managing the ads yourself, it's not possible to find out how often a certain ad has been displayed (only the number of overall displayed ads, which is equal to the hits).
    If you're managing your own ads, I can only second what defiance said, get a pre-made script, they're powerful enough.

  5. #5
    SitePoint Enthusiast
    Join Date
    Nov 2002
    Location
    Trondheim, Norway
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, here's the thing, I am managing the the ads my self, the system I've come up with works as follows:

    On the main page, there are 5 different ad-spots, each of these is an iframe witch loads a page called getad.php.
    The getad.php script selects a random ad from the database witch matches the spot and the given time. then it updates the databaes with number of views+1 on the shown ad.

    what do you think about this, is this a good solution or will this hammer the server as the number of hits increase? (two sql querys pr. show add, or 10 queryes pr. page hit)

    By the way, I've taken a look at phpAdsNew, it looks a bit advanced and I there are a couple of extra features I'd like to incorporate into the system witch I couldn't find in phpAdsNew


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •