Campaign Manager macros

Learn how to use each type of Campaign Manager macro here.

  • Filter the table below to find what you need—for example, type in "tracking ads" to see every macro that works in tracking ads.

  • Click the help links to open detailed guidance on each macro.

MacroNameWorks inHelp link
%cClick string macroCreative codeLearn more
%eExpand macroClick-through URLs, Tracking ads, Redirect URLs, Creative code (all types), Impression event tags, Click event tags, OBA icon resource; Floodlight tags only support %ers!; Click trackers do not support %eexcid! or %eexpid!Learn more
%gGeographic data macroClick-through URLs, Tracking ads, Redirect URLs, Creative code (all types), Impression event tags, Click event tags, OBA icon resourceLearn more
%hCreative server macroCreative code (all types)Learn more
%iImpression macroInterstitial placement tagsLearn more
%kKeyword value macroClick-through URLs, Tracking ads, Redirect URLs, Creative code (all types), Frame headers, Impression event tags, Click event tags, OBA icon resourceLearn more
%mMatch macroClick-through URLs, Click trackers, Tracking ads, Redirect URLs, Creative code (all types), Impression event tags, Click event tags, OBA icon resourceLearn more
%nRandom number macroClick-through URLs, Click trackers, Tracking ads, Redirect URLs, Creative code (all types), Floodlight tags, Impression event tags, Click event tagsLearn more
%pPattern match macroClick-through URLs, Tracking ads, Redirect URLs, Creative code (all types), Frame headers, Floodlight tags, Impression event tags, Click event tags, OBA icon resourceLearn more
%sSite keyname macroClick-through URLs, Click trackers, Tracking ads, Redirect URLs, Creative code (all types), Floodlight tags, Impression event tags, Click event tags, OBA icon resourceLearn more
%uLanding page URL macroCreative code (all types), Impression event tags for display creatives with image assets Learn more