Loading
Insert Google Ads dynamic macros straight into your campaign URL. They stay as literal text instead of being percent-encoded, so Google Ads can substitute them at click time.
Auto-tagging adds gclid independently of UTMs. Keep both unless your analytics setup specifically requires otherwise.
Preview
| Macro | Returns |
|---|---|
| {campaignid} | Campaign ID. Numeric campaign ID. |
| {adgroupid} | Ad group ID. Numeric ad group ID. |
| {creative} | Creative ID. Unique ID of the ad. |
| {keyword} | Keyword. Matched keyword on Search. |
| {matchtype} | Match type. e, p, b or a. |
| {device} | Device. m mobile, t tablet, c computer. |
| {network} | Network. g search, s partners, d display, ytv YouTube. |
| {placement} | Placement. Content site of the click. |
| {targetid} | Target ID. Keyword, DSA or remarketing target. |
| {loc_physical_ms} | Physical location. Location ID of the click. |
| {loc_interest_ms} | Location of interest. Location that triggered the ad. |
| {gclid} | Google click ID. Click identifier. |
| {random} | Random number. Random 64-bit integer. |
Source: official Google Ads documentation.