naftiko: 1.0.0-alpha2 info: label: LinkedIn Marketing Campaign Management API — Campaign Management description: 'LinkedIn Marketing Campaign Management API — Campaign Management. 3 operations. Lead operation: LinkedIn Search Campaigns. Self-contained Naftiko capability covering one Linkedin business surface.' tags: - Linkedin - Campaign 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-campaign-management baseUri: https://api.linkedin.com/rest description: LinkedIn Marketing Campaign Management API — Campaign Management business capability. Self-contained, no shared references. resources: - name: adAccounts-AdAccountsId-adCampaigns path: /adAccounts/{AdAccountsId}/adCampaigns operations: - name: searchcampaigns method: GET description: LinkedIn Search Campaigns outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: LinkedIn-Version in: header type: string required: true - name: AdAccountsId in: path type: string required: true - name: q in: query type: string required: true - name: search.campaignGroup.values[0] in: query type: string - name: adAccounts-AdAccountsId-adCampaigns-CampaignId path: /adAccounts/{AdAccountsId}/adCampaigns/{CampaignId} operations: - name: getcampaignbyid method: GET description: LinkedIn Fetch Campaign 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: AdAccountsId in: path type: string required: true - name: CampaignId in: path type: string required: true - name: archivecampaign method: POST description: LinkedIn Archive Campaign outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: LinkedIn-Version in: header type: string required: true - name: AdAccountsId in: path type: string required: true - name: CampaignId 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-campaign-management-rest port: 8080 description: REST adapter for LinkedIn Marketing Campaign Management API — Campaign Management. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/adaccounts/{adaccountsid}/adcampaigns name: adaccounts-adaccountsid-adcampaigns description: REST surface for adAccounts-AdAccountsId-adCampaigns. operations: - method: GET name: searchcampaigns description: LinkedIn Search Campaigns call: marketing-campaigns-campaign-management.searchcampaigns with: LinkedIn-Version: rest.LinkedIn-Version AdAccountsId: rest.AdAccountsId q: rest.q search.campaignGroup.values[0]: rest.search.campaignGroup.values[0] outputParameters: - type: object mapping: $. - path: /v1/adaccounts/{adaccountsid}/adcampaigns/{campaignid} name: adaccounts-adaccountsid-adcampaigns-campaignid description: REST surface for adAccounts-AdAccountsId-adCampaigns-CampaignId. operations: - method: GET name: getcampaignbyid description: LinkedIn Fetch Campaign by Id call: marketing-campaigns-campaign-management.getcampaignbyid with: LinkedIn-Version: rest.LinkedIn-Version X-RestLi-Protocol-Version: rest.X-RestLi-Protocol-Version AdAccountsId: rest.AdAccountsId CampaignId: rest.CampaignId outputParameters: - type: object mapping: $. - method: POST name: archivecampaign description: LinkedIn Archive Campaign call: marketing-campaigns-campaign-management.archivecampaign with: LinkedIn-Version: rest.LinkedIn-Version AdAccountsId: rest.AdAccountsId CampaignId: rest.CampaignId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-campaigns-campaign-management-mcp port: 9090 transport: http description: MCP adapter for LinkedIn Marketing Campaign Management API — Campaign Management. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: linkedin-search-campaigns description: LinkedIn Search Campaigns hints: readOnly: true destructive: false idempotent: true call: marketing-campaigns-campaign-management.searchcampaigns with: LinkedIn-Version: tools.LinkedIn-Version AdAccountsId: tools.AdAccountsId q: tools.q search.campaignGroup.values[0]: tools.search.campaignGroup.values[0] outputParameters: - type: object mapping: $. - name: linkedin-fetch-campaign-id description: LinkedIn Fetch Campaign by Id hints: readOnly: true destructive: false idempotent: true call: marketing-campaigns-campaign-management.getcampaignbyid with: LinkedIn-Version: tools.LinkedIn-Version X-RestLi-Protocol-Version: tools.X-RestLi-Protocol-Version AdAccountsId: tools.AdAccountsId CampaignId: tools.CampaignId outputParameters: - type: object mapping: $. - name: linkedin-archive-campaign description: LinkedIn Archive Campaign hints: readOnly: false destructive: false idempotent: false call: marketing-campaigns-campaign-management.archivecampaign with: LinkedIn-Version: tools.LinkedIn-Version AdAccountsId: tools.AdAccountsId CampaignId: tools.CampaignId body: tools.body outputParameters: - type: object mapping: $.