A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Flash ad with text determined by the user's time/date, is it possible?

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    4

    Flash ad with text determined by the user's time/date, is it possible?

    Hi, and thanks for taking the time to look at this.

    We are considering to create a Flash ad that has different greetings depending on the time of the day.

    e.g. if the users sees it at 9:00am it will say "Good morning" & if the user sees it at 5:00pm it will say "Good evening".

    In addition we would like the ClickTag URL to be different depending if we say "Good morning" or "Good evening".

    If you do not mind, let us know if that would be possible and if such an ad would be accepted on AdWords & or other networks.

    This would be of great help!

    Best,
    Alex

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    This should get you well on the way to doing what you wish to achieve
    PHP Code:
    var today:Date = new Date();

    var 
    currentDay today.getDay();
    var 
    currentMonth today.getMonth();
    var 
    currentDate today.getDate();
    var 
    currentYear today.getFullYear();

    var 
    hours today.getHours();
    var 
    minutes today.getMinutes();
    var 
    seconds today.getSeconds();

    if (
    minutes 10)
    {
        
    minutes "0" minutes;
    }
    trace("It is now: " hours ":" minutes);

    // *** Traces for various times
    if (hours <= 8)
    {
        
    trace("First third of the day.");
    }

    if (
    hours && hours <= 16)
    {
        
    trace("Second third of the day.");
    }

    if (
    hours 16)
    {
        
    trace("Final third of the day.");


  3. #3
    Junior Member
    Join Date
    Sep 2014
    Posts
    4
    appreciated fruitbeard, my issue is not how to code it, but whether it is possible to submit this to Adwords and be accepted.

    Have you ever submitted a flash banner to adwords that changed text based on type & this was accepted?

    alex

  4. #4
    Junior Member
    Join Date
    Sep 2014
    Posts
    4
    Quote Originally Posted by alexan View Post
    appreciated fruitbeard, my issue is not how to code it, but whether it is possible to submit this to Adwords and be accepted.

    Have you ever submitted a flash banner to adwords that changed text based on type & this was accepted?

    alex
    based on "time" not type, sorry

  5. #5
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    OK my misunderstanding, I thought you wanted help with the code.
    I have nver tried to publish an ad to adwords before, perhaps you should ask the people at adwords or do a mock test somewhere and see what happens to it.

  6. #6
    Junior Member
    Join Date
    Sep 2014
    Posts
    4
    ok man, thanks for your input, appreciated

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center