Search
Clear search
Close search
Google apps
Main menu

Force an ad to open in a new window

To cause an ad to display in a new window, you must change the target window settings. By changing the target window attribute to _blank, you're instructing the browser to open the target URL in a new, unnamed window. (If you’d rather open the ad in the full body of the window, select _top.)

Note that this setting (and the corresponding network default) only applies to the “Image” creative type.

You can set a default target window for your network so that all ad units inherit the same default target window setting. If you change your network’s default target window setting, the target window setting for all ad units that were never changed from the default are updated accordingly (see the example below).

You can change any ad unit’s target window setting from the default. Overriding the default setting breaks the chain of inheritance; that is, the ad unit and any ad unit below it will no longer inherit your network’s target window setting. Changes you make to your network’s target window setting are not reflected in ad units that override the default or the ad units below them; however, changes to ad units that override the default are reflected in ad units below them.

Example of inheritance

Let’s walk through an example that shows how inheritance works. First, we’ll create a top-level ad unit with two ad units under it. Then we’ll change the target windows of each ad unit one by one until none of them uses the network default target window. Let’s see what happens:

Step 1: Create a top-level ad unit with two ad units under it, all keeping the network default

Let's say that you set the default target window for your network to '_blank' and then create a top level ad unit called Sports. Since top level ad units use the network's default setting, the target window of Sports is set to '_blank' automatically. You decide to keep the default value and then create child ad units under Sports called Baseball and Football. The target windows of child ad units are set to the same value as their parents' automatically, so the target windows of Baseball and Football are also set to '_blank'. You decide to keep the default values for Baseball and Football as well. Since all three ad units use the default target window setting, whenever you change your network's target window, all three ad units are updated automatically to match your network's new setting. For example, if you change the network's target window to '_top', the target windows for Sports, Baseball, and Football change to '_top' automatically.

Step 2: Change Baseball from the network default

Continuing the above example, you decide to change Baseball's target window from '_blank' to '_top'. This breaks the relationship Baseball had with the network and its parent ad unit Sports. This means that Baseball’s target window isn't updated if either the network’s or Sports’ target window is changed. However, since you didn’t change the target window for Sports, it’s still linked to your network’s setting, so its target window is updated whenever the network’s target window is updated.

Step 3: Change the top-level ad unit Sports from the network default

Continuing the above example, let's say that you change the target window of Sports to '_top'. This breaks the relationship Sports and its child, Football, had with the network (remember, Baseball’s relationship was already broken in the above example), so if you change your network's target window, neither Sports nor Football is updated to reflect that change. However, Football is still linked to Sports so its target window is updated automatically if you select a new target window for Sports.

Step 4: Finally, change Football from the network default

Finishing off the above example, you change Football's target window so that it's different from both your network’s and Sports’ target window. Now the target windows of Sports, Baseball, and Football, as well as your network, all differ from each other and the relationships with each other are all broken. If the network's target window changes, neither Sports nor Baseball nor Football's target window is updated to reflect that change. Likewise, since the relationships between Sports and its children, Baseball and Football, are broken, if you change the target window for Sports, neither Baseball nor Football is updated.

Change the target window setting for your network

  1. In the 'Inventory' tab, click Network settings.
  2. Click edit next to 'Target window', then select '_blank' from the drop-down.
  3. Click Save.

Change the target window setting for an ad unit

  1. Select an ad unit from the 'Inventory' tab.
  2. Click edit next to 'Target window', then select '_blank' from the drop-down.
  3. Click Save.
Was this article helpful?
How can we improve it?