Google AdSense Management API — Adunits

Google AdSense Management API — Adunits. 1 operations. Lead operation: Google AdSense Management List ad units. Self-contained Naftiko capability covering one Google Adsense business surface.

Run with Naftiko Google AdsenseAdunits

What You Can Do

GET
Listadunits — Google AdSense Management List ad units
/v1/v2/{parent}/adunits

MCP Tools

google-adsense-management-list-ad

Google AdSense Management List ad units

read-only idempotent

Capability Spec

openapi-adunits.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google AdSense Management API — Adunits
  description: 'Google AdSense Management API — Adunits. 1 operations. Lead operation: Google AdSense Management List ad units.
    Self-contained Naftiko capability covering one Google Adsense business surface.'
  tags:
  - Google Adsense
  - Adunits
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_ADSENSE_API_KEY: GOOGLE_ADSENSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: openapi-adunits
    baseUri: https://adsense.googleapis.com
    description: Google AdSense Management API — Adunits business capability. Self-contained, no shared references.
    resources:
    - name: v2-parent-adunits
      path: /v2/{parent}/adunits
      operations:
      - name: listadunits
        method: GET
        description: Google AdSense Management List ad units
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: parent
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.GOOGLE_ADSENSE_API_KEY}}'
  exposes:
  - type: rest
    namespace: openapi-adunits-rest
    port: 8080
    description: REST adapter for Google AdSense Management API — Adunits. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/{parent}/adunits
      name: v2-parent-adunits
      description: REST surface for v2-parent-adunits.
      operations:
      - method: GET
        name: listadunits
        description: Google AdSense Management List ad units
        call: openapi-adunits.listadunits
        with:
          parent: rest.parent
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-adunits-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google AdSense Management API — Adunits. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: google-adsense-management-list-ad
      description: Google AdSense Management List ad units
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-adunits.listadunits
      with:
        parent: tools.parent
      outputParameters:
      - type: object
        mapping: $.