Help Center Manage Your Account Ad Tag

How do I add current timestamp into the serving code?

When creating and setting up a new ad, you can put an always-changing value into the ad code for cache busting or as a random number. The macro [timestamp] (or [cachebuster]) will be replaced by our ad server for each ad serving. The timestamp is the number of seconds since January 1, 1970.


When creating a new image ad, these are the URLs:
  • Image URL[timestamp]
  • Click URL[timestamp]
When this ad is actually displayed to ad viewers, these are the actual URLs:
  • Image URL
  • Click URL

This parameter is used by many different ad serving systems, including DoubleClick's DART ad server, to avoid ads being cached by the client's browser. Different ad servers can have different naming conventions for this parameter.

Other Articles in Ad Tag

This section describes the ad tag (serving code) with basic and advanced settings. It includes common ad serving setup instructions and answers frequently asked questions when integrating the ad tag into your site, blog or app.

Cannot find an answer for your question? Ask our Customer Care team