Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By DarrylBurke

Thread: Help needed

  1. #1
    ddkm is offline Member
    Join Date
    Feb 2012
    Rep Power

    Default Help needed

    Ads are served to users directly though their browsers. Depending on user interaction with the ad in a browser, different events may be appended to a log file (ads_out.txt). Log entries are in the following format:


    userId = a 10 digit randomly assigned int value - this value should be consistent throughout the ad flow.
    timestamp = GMT server time

    The valid flow of an Ad is
    1) A user requests an Ad and the Ad is displayed in the browser
    2) User can either click on the Ad, or close the Ad
    3) If a user clicks on the displayed Ad, they are redirected to a landing page with more details on the Ad
    4) User can either click on links within the landing page or close the landing page

    Events in Log file:
    When an Ad is rendered to a user, event = 1
    When a user clicks on a rendered Ad, event = 2
    When a user clicks on an a link from an Ad landing page, event = 3
    When a userId is provided that is not in proper format, event = 4
    When an campaign is requested that is invalid, event = 5

    Valid (supported) campaign values:
    Best Buy


    You can assume that event type 4 and 5 only happen when an ad is requested. The ad shouldn't display due to an error, so users won't be able to interact with the ad and no further events would be triggered.

    Assume ads_out.txt is served on an external server.

    To interact with the ads service, the following url can be used (this url doesn't actually exist):

    I wanted to write a code to validate the logging of events in the text file work as intended.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Help needed

    Quote Originally Posted by ddkm View Post
    I wanted to write a code
    A noble intent indeed, and I wish you all success.

    Fubarable likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. help needed
    By radhi16 in forum New To Java
    Replies: 2
    Last Post: 01-27-2011, 04:44 PM
  2. Help needed
    By S-NESH in forum New To Java
    Replies: 2
    Last Post: 12-13-2010, 01:32 PM
  3. Help needed.
    By necro-1000 in forum AWT / Swing
    Replies: 2
    Last Post: 01-12-2008, 11:37 AM
  4. Help Needed
    By pks in forum New To Java
    Replies: 1
    Last Post: 01-09-2008, 12:07 AM
  5. help needed.
    By dirtycash in forum New To Java
    Replies: 3
    Last Post: 12-03-2007, 09:17 PM

Posting Permissions

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