naftiko: 1.0.0-alpha2 info: label: LinkedIn Marketing Campaign Management API — Account Management description: 'LinkedIn Marketing Campaign Management API — Account Management. 4 operations. Lead operation: LinkedIn Create Test Ad Account. Self-contained Naftiko capability covering one Linkedin business surface.' tags: - Linkedin - Account Management created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LINKEDIN_API_KEY: LINKEDIN_API_KEY capability: consumes: - type: http namespace: marketing-campaigns-account-management baseUri: https://api.linkedin.com/rest description: LinkedIn Marketing Campaign Management API — Account Management business capability. Self-contained, no shared references. resources: - name: adAccounts path: /adAccounts operations: - name: createadaccount method: POST description: LinkedIn Create Test Ad Account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: LinkedIn-Version in: header type: string required: true - name: X-Restli-Protocol-Version in: header type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: searchadaccounts method: GET description: LinkedIn Search Ad Accounts by Type outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: LinkedIn-Version in: header type: string required: true - name: X-Restli-Protocol-Version in: header type: string required: true - name: q in: query type: string required: true - name: search in: query type: string description: Search criteria - name: adAccounts-SponsoredAccountId path: /adAccounts/{SponsoredAccountId} operations: - name: getadaccountbyid method: GET description: LinkedIn Fetch Ad Account by Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: LinkedIn-Version in: header type: string required: true - name: X-Restli-Protocol-Version in: header type: string required: true - name: SponsoredAccountId in: path type: string required: true - name: updateadaccount method: POST description: LinkedIn Update Ad Account Name outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: LinkedIn-Version in: header type: string required: true - name: X-Restli-Protocol-Version in: header type: string required: true - name: SponsoredAccountId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.LINKEDIN_API_KEY}}' exposes: - type: rest namespace: marketing-campaigns-account-management-rest port: 8080 description: REST adapter for LinkedIn Marketing Campaign Management API — Account Management. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/adaccounts name: adaccounts description: REST surface for adAccounts. operations: - method: POST name: createadaccount description: LinkedIn Create Test Ad Account call: marketing-campaigns-account-management.createadaccount with: LinkedIn-Version: rest.LinkedIn-Version X-Restli-Protocol-Version: rest.X-Restli-Protocol-Version body: rest.body outputParameters: - type: object mapping: $. - method: GET name: searchadaccounts description: LinkedIn Search Ad Accounts by Type call: marketing-campaigns-account-management.searchadaccounts with: LinkedIn-Version: rest.LinkedIn-Version X-Restli-Protocol-Version: rest.X-Restli-Protocol-Version q: rest.q search: rest.search outputParameters: - type: object mapping: $. - path: /v1/adaccounts/{sponsoredaccountid} name: adaccounts-sponsoredaccountid description: REST surface for adAccounts-SponsoredAccountId. operations: - method: GET name: getadaccountbyid description: LinkedIn Fetch Ad Account by Id call: marketing-campaigns-account-management.getadaccountbyid with: LinkedIn-Version: rest.LinkedIn-Version X-Restli-Protocol-Version: rest.X-Restli-Protocol-Version SponsoredAccountId: rest.SponsoredAccountId outputParameters: - type: object mapping: $. - method: POST name: updateadaccount description: LinkedIn Update Ad Account Name call: marketing-campaigns-account-management.updateadaccount with: LinkedIn-Version: rest.LinkedIn-Version X-Restli-Protocol-Version: rest.X-Restli-Protocol-Version SponsoredAccountId: rest.SponsoredAccountId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-campaigns-account-management-mcp port: 9090 transport: http description: MCP adapter for LinkedIn Marketing Campaign Management API — Account Management. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: linkedin-create-test-ad-account description: LinkedIn Create Test Ad Account hints: readOnly: true destructive: false idempotent: false call: marketing-campaigns-account-management.createadaccount with: LinkedIn-Version: tools.LinkedIn-Version X-Restli-Protocol-Version: tools.X-Restli-Protocol-Version body: tools.body outputParameters: - type: object mapping: $. - name: linkedin-search-ad-accounts-type description: LinkedIn Search Ad Accounts by Type hints: readOnly: true destructive: false idempotent: true call: marketing-campaigns-account-management.searchadaccounts with: LinkedIn-Version: tools.LinkedIn-Version X-Restli-Protocol-Version: tools.X-Restli-Protocol-Version q: tools.q search: tools.search outputParameters: - type: object mapping: $. - name: linkedin-fetch-ad-account-id description: LinkedIn Fetch Ad Account by Id hints: readOnly: true destructive: false idempotent: true call: marketing-campaigns-account-management.getadaccountbyid with: LinkedIn-Version: tools.LinkedIn-Version X-Restli-Protocol-Version: tools.X-Restli-Protocol-Version SponsoredAccountId: tools.SponsoredAccountId outputParameters: - type: object mapping: $. - name: linkedin-update-ad-account-name description: LinkedIn Update Ad Account Name hints: readOnly: false destructive: false idempotent: false call: marketing-campaigns-account-management.updateadaccount with: LinkedIn-Version: tools.LinkedIn-Version X-Restli-Protocol-Version: tools.X-Restli-Protocol-Version SponsoredAccountId: tools.SponsoredAccountId body: tools.body outputParameters: - type: object mapping: $.