How to use dynamic exit URLs

Objective

Use an exit URL from an external data source (such as Google Sheets, an XML feed, or Google Merchant Center) instead of entering it in Studio, Campaign Manager 360 or Google Ad Manager. 

Solution

The Enabler.exitOverride(id, url) method from the Studio HTML5 SDK overrides any exit URL entered in Studio, Campaign Manager 360, or Ad Manager.

Examples

Set up a string variable, exitURL, to hold the destination URL in your creative. The URL can be passed in dynamically through XML, sourced from a dynamic feed, or hard-coded.

 

Add values or parameters to dynamic exit URLs

Add third-party tracking to dynamic exit URLs with an additional method in your creative's JavaScript code to retrieve parameters set in Campaign Manager 360. Use the Enabler.getParameter method to get the landing page suffix value (stored in the exit_suffix macro) and append it to exit URLs from an associated dynamic feed.

Step 1: Add code to your creative

Using one of the options below, add code to your creative to combine the dynamic exit URL with the suffix from Campaign Manager 360.

Step 2: Add the URL parameters in Campaign Manager 360

After adding your creative to Campaign Manager 360, enter the query parameters that will be appended to your exit URL by adding a landing page suffix.

Choose where to add the suffix based on where it should be applied:

  • All landing pages in all campaigns: Add the suffix in advertiser properties.
  • All landing pages in a campaign: Add the suffix in campaign properties.
  • All creatives assigned to an ad: Add the suffix in ad properties.

Set the suffix at the highest level to apply it across more creatives. You can override the suffix by setting it at a more specific, lower level. For example, if you set a suffix in your advertiser properties, any suffixes set in the campaign or ad properties will override the advertiser-level suffix.

Add a landing page suffix

  1. Open the ad, campaign, or advertiser properties, and click Landing page URL suffix
  2. Enter your full suffix in the text box. Suffixes can include multiple query parameters, but must be 128 characters or less. If the suffix is inherited, you can edit it in the parent or turn off Inherit URL suffix. When inheritance is turned on, the suffix from the parent is used. An inherited suffix for a campaign comes from the advertiser settings. An inherited suffix in an ad comes from the campaign settings.
  3. Campaign Manager 360 identifies any key-value pairs in the suffix and allows you to edit them below the field as query parameters. You can choose macros or enter custom strings. To remove a key-value pair, click Delete .

Example of landing page URL suffix settings

Landing page URL suffix settings and key-value editor in Campaign Manager 360.

Learn more about landing page suffixes in the Campaign Manager 360 Help Center

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

Search
Clear search
Close search
Main menu
8174569744988804885
true
Search Help Center
true
true
true
true
true
74220
false
false
false
false