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 794185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:16:31+00:00 2026-05-14T22:16:31+00:00

i’m developing text ads system. Some small clone of Google Ads Updated image so

  • 0

i’m developing text ads system. Some small clone of Google Ads

Updated image so all field names would be seen
if you don’t seen diagram, click here

alt text http://img41.imageshack.us/img41/5351/dbdiagram.png

Here is diagram with common tables.
Basically make it short, advertiser can have up to 10 variant of same campaign with different text variations, can geo-target his ads and unique impressions count only for IP that haven’t been on certain site for more than 24 hours.

Pretty simple but the question is what i lack in here from your experience because later it would much harder to fix design flaws and some of you probably done something alike also many SQL gurus in here so maybe i did over normalized DB or did not normalized as needed ?

Second question is. My end goal is to get ads for user from ie. Germany that haven’t seen same ad on same site for 24 hours as long as ads fit country of user. Each impression is count same as each click if there is one. I need to get 5 “random” ads based on IP, Country and higher CPC (pay per click).
How can i achieve this with current design or maybe to design database the way it would be easy to get ads and show stats for advirtisers…

thanks for any help…

  • 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-14T22:16:32+00:00Added an answer on May 14, 2026 at 10:16 pm

    Overall it looks good, there are a few minor changes I’d make if it were me:

    I notice you have Region ID on your Countries table, but there is no Region table. If there is no Region table what prevents incorrect (Negative?) Region IDs from being entered?

    Similarly, Campaign Status on the Text Campaigns table is a Tinyint. Is this an Enum being stored? If so, consider a status table as this will prevent statuses being entered that do not exist in your Enum, which can crash your code as try to convert them as you read them back in.

    Same again with User Status on the Users table.

    Country ID on the Countries table is an Integer, a TinyInt will be enough.

    You have budget figures as integers, so is it impossible to budget to the penny/cent/etc, or are these measured in minor sections?

    It looks like you’re planning to store passwords as plain text? Consider salting and hashing the passwords, then storing just these – Or are you planning to use transparent encryption.

    Depending on how long you plan for this to run, VARCHAR(15) will not be enough to store an IP address in IPv6.

    If you have SQL 2008, you could use the DATE type on the Text Campaign Daily Stats table, then make Date and Campaign Text Variant ID into the Primary Key.

    You could add some fields to the Text Campaign Variant table, like Date From and Date To, so people can set up campaigns in advance. Similarly, Time Start and Time Stop could allow campaigns to be shown at certain times of day.

    I might change the names, so Text Campaign is just Campaign and so on – You may want to do video or image campaigns in the future?

    There are other things, but this is plenty for now. I would wonder if you have available estimated usage? Might help with identifying more to optimise.

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

Sidebar

Ask A Question

Stats

  • Questions 457k
  • Answers 457k
  • 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 It has nothing in common with static types in c#.… May 15, 2026 at 10:43 pm
  • Editorial Team
    Editorial Team added an answer I think the answer is fairly simple for regular polygons.… May 15, 2026 at 10:43 pm
  • Editorial Team
    Editorial Team added an answer Have a look at this for an example (and explanation)… May 15, 2026 at 10:43 pm

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.