LinkedIn Ads: Get Audience Size
linkedin_get_audience_countGet LinkedIn's approximate audience size for a targeting: the current targeting of one campaign in the user's own ad account (campaign_id), that targeting with proposed changes applied (campaign_id plus changes, in the form linkedin_update_campaign_targeting takes), or a full targeting criteria object. LinkedIn serves an audience only from 300 members up; servable says whether this one clears that. Reads only; the campaign is not changed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "linkedin_get_audience_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | No | Optional edits to apply to the campaign's targeting before counting. Needs campaign_id. | |
| campaign_id | No | Numeric campaign id (or its urn:li:sponsoredCampaign URN), from linkedin_list_campaigns. | |
| ad_account_id | No | LinkedIn ad account to read: numeric account id or account name (from linkedin_list_ad_accounts). Pass it whenever the conversation is about a particular account; omitted, the only account or the stored default is used. | |
| targeting_criteria | No | A whole LinkedIn targeting criteria object to count instead of a campaign's: {include:{and:[{or:{<facet URN>:[<entity URN>,...]}}]}, exclude:{or:{...}}}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Approximate members matching the targeting. | |
| active | No | Approximate recently active members, when LinkedIn reports it. | |
| servable | Yes | True when total is at least 300, LinkedIn's minimum to serve. | |
| campaignId | No | Campaign whose targeting was counted, if one was. | |
| targetingCriteria | Yes | The criteria that were counted. |