Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 306045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:25:48+00:00 2026-05-12T07:25:48+00:00

I’m going to be starting a banner-rotation script soon and I’m getting a bit

  • 0

I’m going to be starting a banner-rotation script soon and I’m getting a bit perplexed over how exactly to develop it. Suppose a client asks for

“10,000 impressions in the next 10 days for $10,000 dollars.”

Another client asks for

“1,000 impressions for $100 dollars.”

And a third asks for

“1,000 clicks or 10,000 impressions for $5,000.”

How exactly do I determine which banner to show upon a page-request? How do I weigh one against another? Clearly the first request is rather important, as I’m expected to serve a set number of impressions within a time-window.

The second client is not nearly as important, as they don’t care about a time-window, they just want some face-time.

And the last client wants to place an n or m restraint on the impressions/clicks, making matters slightly more difficult.

I’m already pretty confident that I’ll need to abstract some weight from these scenarios to determine who gets the most attention. My question is what type of algorithm could handle this, and secondly how could I serve up banners by weight without always serving up the most important banner with each request?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:25:48+00:00Added an answer on May 12, 2026 at 7:25 am

    The difficulty comes from the time constraint more than anything else. I would divide anyone’s priority who did not specify a time constraint by 365 (a year), and then use time as part of the weight factor. So:

    Client 1 priority: 10000/10 = 1000 
    Client 2 priority: 1000/365 ~ 3 
    Client 3 priority: 10000/365 ~30
    

    That should get you a fairly decent indicator of priority. Now, you can’t mix and match impressions and clicks can you? They either go the impression route or the click route. Seeing as you cannot control click, but you can control impressions (at least, moreso than clicks), I would weigh it according to impressions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 310k
  • Answers 310k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer we make sure it does not cause any harm You… May 13, 2026 at 10:09 pm
  • Editorial Team
    Editorial Team added an answer The first thing you should do when you're testing fonts… May 13, 2026 at 10:09 pm
  • Editorial Team
    Editorial Team added an answer You can select all the files in your project and… May 13, 2026 at 10:09 pm

Related Questions

In order to apply a triggered animation to all ToolTip s in my app,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want use html5's new tag to play a wav file (currently only supported
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I've got a string that has curly quotes in it. I'd like to replace

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.