Macros

Include macros in any code that's handled by an ad server during delivery. You can update the macro reference so you don't have to update the creative code. #macros

Macros are special strings in creative code. Ad Manager later replaces this string with another value or code based on a creative's settings. Macros are useful because you don't have to directly update creative code if you need to make changes—you can update the macro reference.

For each macro, we've provided suggestions on how you might use it, but macros can be put to whatever uses are most valuable for you. Macros can be included in any code that's processed by the ad server during delivery: third-party or custom creative code, Studio code, click-through URLs, or ad tags.

Expand all  Collapse all

Rendering macros

Rendering macros are commonly used to render creatives, ensuring they look right and work correctly.

Tracking macros

These macros are most commonly used for tracking and reporting purposes.

Ad request macros for GDPR

These macros are most commonly used with ad requests that are subject to GDPR.

Video macros

These macros are commonly used in video creatives to include details about the context or content.

 
You can use the tag parameter macro in conjunction with some video parameters to expand to the value of those parameters.

Video content macros

These macros are used for ads that target video content sources.

Only available in Google Ad Manager 360.

Was this helpful?

How can we improve it?
true
Release notes

Read about the latest Ad Manager features and Help Center updates.

See what's new

585687569398189400
true
Search Help Center
true
true
true
true
true
148
Search
Clear search
Close search
Main menu
false
false
false