Macros
Macros are dynamic placeholders that the system automatically resolves when an ad is created. With them, you don't need to manually enter campaign, ad set, and URL parameter names: by inserting the appropriate macro, the actual value is automatically placed in the final text.
Macros can be inserted in {{keyword}} format. Available macros can be browsed and inserted by clicking the + Macros button next to the field.
Available Macros
Ad Account
| Macro | Description |
|---|---|
{{ad_account.id}} | Ad account ID |
{{ad_account.name}} | Ad account name |
Campaign
| Macro | Description |
|---|---|
{{campaign.name}} | Campaign name |
{{campaign.obj}} | Campaign objective (e.g., TRAFFIC, CONVERSIONS) |
Ad Set
| Macro | Description | Available |
|---|---|---|
{{adset.name}} | Ad set name | only in URL parameters |
Post
| Macro | Description |
|---|---|
{{post.id}} | Post ID |
{{post.message}} | Post text |
Time
Time macros reflect the values valid at the moment the ad is created.
| Macro | Description | Example |
|---|---|---|
{{year}} | Current year | 2026 |
{{month}} | Current month | 03 |
{{date}} | Current date | 2026-03-10 |
{{day}} | Current day | 10 |
{{time}} | Current time | 14:32 |
Where Can They Be Used?
| Field | Ad Account | Campaign | Ad Set | Post | Time |
|---|---|---|---|---|---|
| Campaign name | ✓ | ✓ (objective only) | - | - | ✓ |
| Ad set name | ✓ | ✓ | - | ✓ | ✓ |
| URL parameters | ✓ | ✓ | ✓ | ✓ | ✓ |
Examples
Ad set name:
{{campaign.name}} - {{month}}/{{year}}
→ Summer collection campaign - 03/2026
URL parameters:
utm_source=facebook&utm_campaign={{campaign.name}}&utm_content={{post.id}}
→ utm_source=facebook&utm_campaign=Summer+collection&utm_content=123456789