Actions65
- Posts Actions
- Company Pages Actions
- Get Company Page
- Get Company Pages
- Update Company Page
- Get Company Page Followers
- Get Company Page Analytics
- Get Company Page Posts
- Create Company Page Post
- Get Company Page Insights
- Get Company Page Engagement
- Get Company Page Demographics
- Get Company Page Content
- Get Company Page Events
- Create Company Page Event
- Get Company Page Jobs
- Get Company Page Lifecycle
- Advertising Actions
- Get Ad Accounts
- Get Ad Account
- Get Campaigns
- Get Campaign
- Create Campaign
- Update Campaign
- Delete Campaign
- Get Ad Sets
- Get Ad Set
- Create Ad Set
- Update Ad Set
- Delete Ad Set
- Get Ads
- Get Ad
- Create Ad
- Update Ad
- Delete Ad
- Get Audiences
- Get Audience
- Create Audience
- Update Audience
- Delete Audience
- Get Lead Gen Forms
- Get Lead Gen Form
- Create Lead Gen Form
- Update Lead Gen Form
- Delete Lead Gen Form
- Get Ad Analytics
- Get Campaign Analytics
- Get Ad Set Analytics
- Search Actions
Advertising → Get Ad Accounts
AI-generatedOverview
This node integrates with LinkedIn's Marketing API v2 via the N8N Tools API to manage advertising-related data on LinkedIn. Specifically, for the Advertising resource and the Get Ad Accounts operation, it retrieves a list of LinkedIn ad accounts associated with the authenticated user or organization.
Typical use cases include:
- Fetching all LinkedIn ad accounts to display or select from in a marketing workflow.
- Automating reporting or synchronization tasks that require knowledge of available ad accounts.
- Integrating LinkedIn ad account data into broader marketing automation pipelines.
Example: A marketer wants to pull all their LinkedIn ad accounts to analyze campaign performance across accounts automatically.
Properties
| Name | Meaning |
|---|---|
| Max Results | Maximum number of ad accounts to return (1 to 100). Defaults to 20. |
| Start Index | Index of the first ad account result to return (pagination offset). Defaults to 0. |
These properties control pagination of the returned ad accounts list.
Output
The node outputs an array of JSON objects, each representing an ad account retrieved from LinkedIn. Each item contains detailed information about an ad account as provided by the LinkedIn Marketing API, such as account ID, name, status, and other metadata.
The output structure is:
[
{
"json": {
/* Ad account details */
},
"itemData": {
"item": <index_of_input_item>
}
},
...
]
No binary data is produced by this operation.
Dependencies
- Requires an active subscription and valid API key for the N8N Tools API service.
- Requires OAuth2 credentials configured for LinkedIn access.
- The node internally validates the API key against the N8N Tools API before making requests.
- The node uses the LinkedIn Marketing API v2 endpoints via the N8N Tools API proxy.
Troubleshooting
- Invalid subscription or API key error: If you receive an error indicating invalid subscription or API key, verify that your API key credential is correct and active.
- Permission errors: Ensure the LinkedIn OAuth2 credentials have sufficient permissions to access advertising data.
- Pagination issues: If you request more results than available, the node will simply return fewer items; adjust
Max Resultsaccordingly. - Network or API downtime: Temporary failures contacting the N8N Tools API or LinkedIn API may cause errors; retry after some time.