-
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
-
.
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 > 8 && hours <= 16)
{
trace("Second third of the day.");
}
if (hours > 16)
{
trace("Final third of the day.");
}
-
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
-
Originally Posted by alexan
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
-
.
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|