Skip to main content

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

MacroDescription
{{ad_account.id}}Ad account ID
{{ad_account.name}}Ad account name

Campaign

MacroDescription
{{campaign.name}}Campaign name
{{campaign.obj}}Campaign objective (e.g., TRAFFIC, CONVERSIONS)

Ad Set

MacroDescriptionAvailable
{{adset.name}}Ad set nameonly in URL parameters

Post

MacroDescription
{{post.id}}Post ID
{{post.message}}Post text

Time

Time macros reflect the values valid at the moment the ad is created.

MacroDescriptionExample
{{year}}Current year2026
{{month}}Current month03
{{date}}Current date2026-03-10
{{day}}Current day10
{{time}}Current time14:32

Where Can They Be Used?

FieldAd AccountCampaignAd SetPostTime
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