Skip to main content
IMPORTANT: Call this tool during campaign creation discovery phase to get both organization_id AND account_id. What this tool does:
  • Queries LinkedIn for all Company Pages the user has admin access to
  • Queries LinkedIn for all Ad Accounts the user can access
  • Returns organization IDs, names, AND ad account IDs
  • No parameters required - uses connected LinkedIn account
Returns:
  • List of organizations with ID, name, and LinkedIn URL
  • List of ad accounts with ID, name, status, and linked organization
  • Both IDs needed for different operations
Use this tool to:
  • Get the organization_id automatically (no need to ask user!)
  • Get the account_id for asset discovery (required for finding images/videos!)
  • Verify user has access to a Company Page
  • Find which page to use for Sponsored Content
After getting organizations & accounts:
  • Use the account_id in discover_linkedin_assets to find existing images/videos
  • Use the organization_id in whichever campaign creation tool the user selected:
    • create_linkedin_image_campaign (Single Image)
    • create_linkedin_video_campaign (Video)
    • create_linkedin_carousel_campaign (Carousel)
    • create_linkedin_text_campaign (Text Ad)
  • Assets are tied to ad accounts, not organizations - that’s why account_id is needed
Execution time: 2-3 seconds

OpenAPI

/api-reference/openapi.json post /api/v1/tools/get_linkedin_organizations/execute