attach_asset_to_campaign
Attach a page, post, email, or form to a HubSpot campaign to enable attribution reporting from the draft stage.
Instructions
Attach a page, post, email or form to a campaign.
Attribution reporting keys off this, so it is worth doing at the point the draft is created rather than later.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_id": "<campaign_id>",
"asset_type": "<asset_type>",
"asset_id": "<asset_id>"
},
"name": "attach_asset_to_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | ||
| asset_type | Yes | ||
| campaign_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||