get_effective_url_settings
Resolve the effective URL tracking settings (tracking template, final URL suffix, URL custom parameters) for a campaign or ad group, showing which level (ad group, campaign, or account) each is set at.
Instructions
Resolve the effective URL tracking (tracking template, Final URL suffix, URL custom parameters) for a campaign or ad group, and which level set each.
URL tracking follows Microsoft's inherited / override order (keyword > ad > ad group >
campaign > account): a value set at a deeper level wins, otherwise it inherits from its
parent, ultimately the account-level URL options. So a campaign or ad group can show a null
tracking template while the account template is what actually applies. This walks that
inheritance chain and returns the effective tracking_url_template / final_url_suffix /
url_custom_parameters plus a *_source ("ad_group", "campaign", or "account") for each, so
you do not have to manually cross-reference get_account_url_options with the per-entity
reads. Also surfaces msclkid_auto_tagging_enabled. Use it to answer "what tracking
template actually applies here, and where is it set?" before activating a campaign.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_group_id | No | Optional ad group id (within that campaign) to resolve at the ad-group level; omit to resolve at the campaign level. | |
| campaign_id | Yes | The campaign id to resolve settings for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | ||
| ad_group_id | No | ||
| campaign_id | Yes | ||
| final_url_suffix_source | No | ||
| effective_final_url_suffix | No | ||
| msclkid_auto_tagging_enabled | No | ||
| tracking_url_template_source | No | ||
| url_custom_parameters_source | No | ||
| effective_tracking_url_template | No | ||
| effective_url_custom_parameters | No |