Expanding build guide
Set up your files
We recommend that you separate your assets into three files: a collapsed panel, an expanded panel, and a parent stage that contains essential DoubleClick Studio components and acts as a shell to hold the expanded and collapsed files.
Setting up your creative in three files helps you add expanding functionality and and stay within file weight restrictions on sites.
To set up your files:
- Create a parent file as the shell for your expanding unit. This file is loaded in as soon as the page loads.
- Because this file loads both the collapsed and expanded files, the stage must be as big as the largest stage of your creative, the expanded state.
- Place any assets in this file that you want immediately visible to the user. But remember, the file is loaded inside an ad slot that matches the collapsed dimensions of your creative. The limit for the size of this file is usually 40K.
- Create a collapsed file that's loaded into the parent file once the page has finished loading.
- This collapsed file must equal the smaller dimensions of your creative. It's where the ad content for the collapsed state lives.
- Create an expanded panel that's loaded into the parent file when the expand call is made.
- This file must equal the larger dimensions of your creative. It's where the ad content for the expanded state lives.
- The total file weight for the collapsed and expanded files must be less 60K unless the sites you're serving the ad to allow for additional file weight for the expanded panel.
- Create a backup image. This file should be a JPG, GIF, or PNG. The size limit is 75K on most sites.
- Studio requires that you load a backup image with the SWF files. The backup image appears if a Rich Media creative can't be served.
- Studio doesn't accept subfolders, so keep all files for your creative in one root folder when building an ad.
Set up a parent file, along with the collapsed and expanded child files for your Expanding creative. As you continue through this guide, look for more Try It! sections to help you build your own working Expanding unit.