Search
Clear search
Close search
Google apps
Main menu

Creative templates

Creative templates are predefined creative types that you can use when adding a new creative. There are two types of creative templates:

  • System-defined templates: Select one of the templates provided for you by DoubleClick for Publishers. These templates are not editable.
  • User-defined templates: Create your own template that you can customize with unique variables.

     

Changes to a user-defined template will affect all associated creatives. To prevent changes from causing unexpected behavior in existing associated creatives, you can duplicate the template to make edits and use for new creatives.

You can only create new creatives from active templates. Likewise, you can only copy creatives that were created from a template if the template is still active.

Create a template-based creative

To add a new creative to your network based on a creative template:

  1. On the Delivery tab, click Creatives in the left-hand navigation.
  2. Click Add creatives.
  3. Begin typing to search for the advertiser whose creative you're adding. Each creative is associated with one advertiser.
  4. When you've found the right advertiser, click Continue.
  5. Click System-defined template or User-defined template.
  6. Click the text box to find the template you want to use.
  7. When you've selected the right template, click Add.
  8. Fill out the fields for the creative.
  9. Click Save.
Import or export creative templates

Importing or exporting templates provides you with the ability to utilize offline editorial and review processes and eases portability of template code, including the ability to:

  • Copy a creative template from one DFP network to another.
  • Revise a creative template offline, and then import it back into DFP.
  • Utilize offline systems and workflows, such as code reviews, to validate a revised creative template.

To export a creative template

  1. Visit the "Delivery" tab and click Creatives in the left panel.
  2. Under "Creatives," click Creative templates.
  3. Click the creative template you want to export, either system-defined or user-defined, and then click Export at the top of the page.
    Because the download happens in a pop-up, ensure your browser is not blocking pop-ups from google.com/dfp.

    The template is exported in accordance with your browser's settings.

To edit a creative template offline

Although the exported file is a text file (.txt), some of the content, such as the “Snippet” field, is exported as escaped HTML so that it can be properly parsed back when re-imported. The format of the escaped HTML is standard JSON encoding. If you want to edit the snippet offline, you’ll need to use a standard JSON library or web utility that can handle JSON encoding. This will minimize the likelihood of encoding errors when you re-import the template.

To import a creative template

The “import” option is available for new creative templates or user-defined templates, but not system-defined templates.

  1. Visit the "Delivery" tab and click Creatives in the left panel.
  2. Under "Creatives," click Creative templates.
  3. You can import a template as a new creative template, or as an update to an existing user-defined template:
    • To import as a new creative template, click New creative template > Import.
    • To update an existing user-defined template, click into the user-defined template, and then click Import.
  4. Click Save at the bottom of the page. The imported template is displayed in the “Creative Templates” page.
System-defined creative templates

We’ve provided a number of ready-made templates that are available to you by default in DoubleClick for Publishers:

  • Floating Flash overlay: This template allows you to create a Flash creative that "floats” over your webpage. You can optionally add a close button so users can dismiss the overlay. This template doesn’t work with asynchronous or iframe ad tags. When previewing the creative in DFP, use 'Open in new window' to see the correct position of the ad.
  • Image banner with optional third-party tracking: Allows you to easily add third-party tracking pixels or survey URLs to an image creative. You can add Safecount survey URLs and other third-party tracking pixels.
  • Image with Google +1: A template to overlay a Google +1 button on top of an image creative. Any data collected from the Google +1 icon is not data derived from any DoubleClick service and is not subject to the terms and conditions of the agreements between you and DoubleClick.
  • Flash banner with optional third-party tracking: Allows you to create a Flash banner that clicks through to a new window. You can add other third-party tracking pixels.
  • Flash expandable: Expandable creative where the collapsed size is a Flash SWF file and the expanded size is another Flash SWF file. This template doesn't work if your website uses iframe ad tags.
  • Flash pushdown: Creative that when expanded "pushes down" the content of the webpage. The collapsed size is a Flash SWF file and the expanded size is another Flash SWF file. This template doesn't work if your website uses iframe ad tags.
  • Flash with Google +1: A template to overlay a Google +1 button on top of a Flash creative. Any data collected from the Google +1 icon is not data derived from any DoubleClick service and is not subject to the terms and conditions of the agreements between you and DoubleClick. 
  • Pop-up or pop-under window with image content: Requires a standard image file (such as JPG, GIF, or PNG) that is hosted by DoubleClick or externally.
  • Pop-up or pop-under window with Flash content: Requires an SWF file that is hosted by DoubleClick or externally.
  • Pop-up or pop-under window with third-party content: To track clicks for creatives using this template, you must insert the third party’s click-tracking macro into the URL. Work with your third-party content provider to learn how.

    The default browser settings of Chrome and Firefox render this creative type as a pop-up.

  • Text ad: A text-based creative.
If multiple Flash-based template creatives might be served to the same page at the same time, make sure that each one has unique JavaScript functions. Otherwise, the second and subsequent Flash-based creatives might not perform their JavaScript functions correctly. For example, if two Flash-based creatives are delivered to a page at once, make sure that they don't both use dclk_show() as the function for their expansion.
Create your own creative templates

You can also create and edit custom creative templates for reuse in your network.

  1. Click the Delivery tab, then select Creative templates from the left navigation panel.
  2. Click New creative template.
  3. Enter a name (limit is 64 alphanumeric characters). Traffickers use this name to determine which template to use, so make the name specific and descriptive.
  4. Select Count impressions only when fully rendered if you only want to record impressions when the line item is fully rendered in the browser window.
    Be sure to select this setting if your template will serve out-of-page size creatives. If you don't enable this setting and then attempt to upload an out-of-page creative, a "size is not allowed" error is served when you try to save the creative.

    For example, you would check this box for floating creatives, page peels, or pop-ups.

    The creative template must include the %%VIEW_URL_UNESC%% macro (or %%VIEW_URL_ESC%% macro if the template contains special characters) for delayed impression counting to work.

    Selecting this option doesn't affect ad serving.

  5. Enter a description of the template (optional). This description helps traffickers determine which template to select.
  6. Create the placeholders for the custom code by clicking New variable. DFP will create fields in the template for each placeholder. The trafficker will use those fields to specify the values of the placeholders when they use this template to create a new creative.
    1. Select the placeholder type (File, List, Number, Text, URL).
      Use text placeholders to help traffickers automate the process of adding macros. When traffickers add snippets of code to these fields, DFP checks to see whether it's recognized third-party code. If it is, the trafficker will have the option of adding macros automatically. The process is the same as that used with code snippets in third-party creatives.
    2. Enter a name for the placeholder.
    3. Enter help text for the placeholder (optional).
    4. Click Done. You can continue adding as many placeholders as you need.
  7. Enter the creative code in the Define snippet field. You can cut and paste code into this text box.
    If you update an existing variable in a template, it doesn't automatically get updated in the Define snippet field. You’ll have to update it yourself manually.
  8. Insert the placeholders into the code by inserting your cursor in the desired position of the code and clicking the button for the placeholder you want to add.
  9. Click Save. You will now be able to select this template when adding a creative to your network.
Mobile creative templates

Below are the mobile creative templates provided for you by DoubleClick for Publishers. These templates are not editable and each template is supported on specific versions of the Android or iOS application and/or web browsers. Please be sure to view the supported platforms in the template description before deploying them to your mobile applications or websites.

Mobile adhesion banner (web)

  • Description: This is a template to render a banner ad which is positioned at the top or the bottom of a device display. Click through launches a new window with destination URL.
  • Supported platforms: Websites running on Android 2.3.3+ or iOS 4.3+

Mobile interstitial with auto-close (app)

  • Description: This is a template to display an image interstitial with auto-close control. You can upload assets for both portrait and landscape orientations.
  • Supported platforms: Android or iOS applications running Google Mobile Ads SDK 6.0+.

Mobile image with Google +1 (app and web)

  • Description: This is a template to overlay Google +1 button on top of a banner ad.
  • Supported platforms: Applications and websites running on Android 2.3.3+ or iOS 4.3+.
    Note that any data collected from the Google +1 icon is not data derived from any DoubleClick service, and is not subject to the terms and conditions of the agreement(s) between you and DoubleClick.

Mobile image carousel (app and web)

  • Description: This is a template to render an image carousel, a rotating display of images triggered by a user's swipe (from right to left). Maximum number of images you can include in a carousel is 5.
  • Supported platforms: Applications and websites running on Android 2.2+ or iOS 4.3+.
Due to the variety of environments into which the ad server can return creative code developed with a template, display behavior isn't guaranteed to be consistent. If you experience an unexpected rendering issue while using a system-defined template, please create a ticket with the Support team to determine whether the problem is related to ad serving or the delivery environment. Please note that issues relating to the environment might fall outside the scope of support available for system-defined templates.
Was this article helpful?