naftiko: 1.0.0-alpha2 info: label: LinkedIn Marketing Campaign Management API — Campaign Group Management description: 'LinkedIn Marketing Campaign Management API — Campaign Group Management. 5 operations. Lead operation: LinkedIn Search Campaign Groups. Self-contained Naftiko capability covering one Linkedin business surface.' tags: - Linkedin - Campaign Group 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-group-management baseUri: https://api.linkedin.com/rest description: LinkedIn Marketing Campaign Management API — Campaign Group Management business capability. Self-contained, no shared references. resources: - name: adAccounts-AdAccountsId-adCampaignGroups path: /adAccounts/{AdAccountsId}/adCampaignGroups operations: - name: searchcampaigngroups method: GET description: LinkedIn Search Campaign Groups 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: q in: query type: string required: true - name: search in: query type: string - name: sort in: query type: string - name: deletecampaigngroups method: DELETE description: LinkedIn Delete Multiple Campaign Groups 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: ids in: query type: string required: true - name: adAccounts-AdAccountsId-adCampaignGroups-CampaignGroupId path: /adAccounts/{AdAccountsId}/adCampaignGroups/{CampaignGroupId} operations: - name: getcampaigngroupbyid method: GET description: LinkedIn Fetch Campaign Group 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: CampaignGroupId in: path type: string required: true - name: updatecampaigngroup method: POST description: LinkedIn Update Campaign Group 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: CampaignGroupId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletecampaigngroup method: DELETE description: LinkedIn Delete Campaign Group 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: CampaignGroupId in: path type: string required: true authentication: type: bearer token: '{{env.LINKEDIN_API_KEY}}' exposes: - type: rest namespace: marketing-campaigns-campaign-group-management-rest port: 8080 description: REST adapter for LinkedIn Marketing Campaign Management API — Campaign Group Management. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/adaccounts/{adaccountsid}/adcampaigngroups name: adaccounts-adaccountsid-adcampaigngroups description: REST surface for adAccounts-AdAccountsId-adCampaignGroups. operations: - method: GET name: searchcampaigngroups description: LinkedIn Search Campaign Groups call: marketing-campaigns-campaign-group-management.searchcampaigngroups with: LinkedIn-Version: rest.LinkedIn-Version X-RestLi-Protocol-Version: rest.X-RestLi-Protocol-Version AdAccountsId: rest.AdAccountsId q: rest.q search: rest.search sort: rest.sort outputParameters: - type: object mapping: $. - method: DELETE name: deletecampaigngroups description: LinkedIn Delete Multiple Campaign Groups call: marketing-campaigns-campaign-group-management.deletecampaigngroups with: LinkedIn-Version: rest.LinkedIn-Version X-RestLi-Protocol-Version: rest.X-RestLi-Protocol-Version AdAccountsId: rest.AdAccountsId ids: rest.ids outputParameters: - type: object mapping: $. - path: /v1/adaccounts/{adaccountsid}/adcampaigngroups/{campaigngroupid} name: adaccounts-adaccountsid-adcampaigngroups-campaigngroupid description: REST surface for adAccounts-AdAccountsId-adCampaignGroups-CampaignGroupId. operations: - method: GET name: getcampaigngroupbyid description: LinkedIn Fetch Campaign Group by Id call: marketing-campaigns-campaign-group-management.getcampaigngroupbyid with: LinkedIn-Version: rest.LinkedIn-Version X-RestLi-Protocol-Version: rest.X-RestLi-Protocol-Version AdAccountsId: rest.AdAccountsId CampaignGroupId: rest.CampaignGroupId outputParameters: - type: object mapping: $. - method: POST name: updatecampaigngroup description: LinkedIn Update Campaign Group call: marketing-campaigns-campaign-group-management.updatecampaigngroup with: LinkedIn-Version: rest.LinkedIn-Version X-RestLi-Protocol-Version: rest.X-RestLi-Protocol-Version AdAccountsId: rest.AdAccountsId CampaignGroupId: rest.CampaignGroupId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecampaigngroup description: LinkedIn Delete Campaign Group call: marketing-campaigns-campaign-group-management.deletecampaigngroup with: LinkedIn-Version: rest.LinkedIn-Version X-RestLi-Protocol-Version: rest.X-RestLi-Protocol-Version AdAccountsId: rest.AdAccountsId CampaignGroupId: rest.CampaignGroupId outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-campaigns-campaign-group-management-mcp port: 9090 transport: http description: MCP adapter for LinkedIn Marketing Campaign Management API — Campaign Group Management. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: linkedin-search-campaign-groups description: LinkedIn Search Campaign Groups hints: readOnly: true destructive: false idempotent: true call: marketing-campaigns-campaign-group-management.searchcampaigngroups with: LinkedIn-Version: tools.LinkedIn-Version X-RestLi-Protocol-Version: tools.X-RestLi-Protocol-Version AdAccountsId: tools.AdAccountsId q: tools.q search: tools.search sort: tools.sort outputParameters: - type: object mapping: $. - name: linkedin-delete-multiple-campaign-groups description: LinkedIn Delete Multiple Campaign Groups hints: readOnly: false destructive: true idempotent: true call: marketing-campaigns-campaign-group-management.deletecampaigngroups with: LinkedIn-Version: tools.LinkedIn-Version X-RestLi-Protocol-Version: tools.X-RestLi-Protocol-Version AdAccountsId: tools.AdAccountsId ids: tools.ids outputParameters: - type: object mapping: $. - name: linkedin-fetch-campaign-group-id description: LinkedIn Fetch Campaign Group by Id hints: readOnly: true destructive: false idempotent: true call: marketing-campaigns-campaign-group-management.getcampaigngroupbyid with: LinkedIn-Version: tools.LinkedIn-Version X-RestLi-Protocol-Version: tools.X-RestLi-Protocol-Version AdAccountsId: tools.AdAccountsId CampaignGroupId: tools.CampaignGroupId outputParameters: - type: object mapping: $. - name: linkedin-update-campaign-group description: LinkedIn Update Campaign Group hints: readOnly: false destructive: false idempotent: false call: marketing-campaigns-campaign-group-management.updatecampaigngroup with: LinkedIn-Version: tools.LinkedIn-Version X-RestLi-Protocol-Version: tools.X-RestLi-Protocol-Version AdAccountsId: tools.AdAccountsId CampaignGroupId: tools.CampaignGroupId body: tools.body outputParameters: - type: object mapping: $. - name: linkedin-delete-campaign-group description: LinkedIn Delete Campaign Group hints: readOnly: false destructive: true idempotent: true call: marketing-campaigns-campaign-group-management.deletecampaigngroup with: LinkedIn-Version: tools.LinkedIn-Version X-RestLi-Protocol-Version: tools.X-RestLi-Protocol-Version AdAccountsId: tools.AdAccountsId CampaignGroupId: tools.CampaignGroupId outputParameters: - type: object mapping: $.