> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adside.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Conversion Action

> Create a conversion action for tracking user actions (purchases, sign-ups, etc.). Required for Smart Bidding strategies.



## OpenAPI

````yaml /api-reference/openapi.yaml post /google-ads/mcp#create_conversion_action
openapi: 3.1.0
info:
  title: Multi-Source Ads API
  version: 1.0.0
  description: >-
    Unified API for managing ad campaigns across Meta, LinkedIn, and Google. MCP
    tools are accessed via JSON-RPC 2.0 over HTTP (`POST /{source}/mcp`). Google
    Sheets/Drive endpoints use standard REST.
servers:
  - url: https://api.adside.ai
    description: Production
  - url: http://localhost:3100
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Accounts
    description: ''
  - name: Ads
    description: ''
  - name: Analytics
    description: ''
  - name: Asset Groups
    description: ''
  - name: Assets
    description: ''
  - name: Audiences
    description: ''
  - name: Campaign Groups
    description: ''
  - name: Campaigns
    description: ''
  - name: Conversions
    description: ''
  - name: Creatives
    description: ''
  - name: Drive
    description: ''
  - name: Google
    description: ''
  - name: Google Ads
    description: ''
  - name: Google Tag Manager
    description: ''
  - name: Keywords
    description: ''
  - name: Linkedin
    description: ''
  - name: Meta
    description: ''
  - name: Meta Reporting
    description: ''
  - name: OAuth
    description: ''
  - name: Other
    description: ''
  - name: Reports
    description: ''
  - name: Sheets
    description: ''
  - name: Targeting
    description: ''
  - name: Tiktok
    description: ''
  - name: Workspace
    description: ''
paths:
  /google-ads/mcp#create_conversion_action:
    post:
      tags:
        - Google Ads
        - Conversions
      summary: Create Conversion Action
      description: >-
        Create a conversion action for tracking user actions (purchases,
        sign-ups, etc.). Required for Smart Bidding strategies.
      operationId: google_ads_create_conversion_action
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  const: '2.0'
                id:
                  type: string
                  example: '1'
                method:
                  type: string
                  const: tools/call
                params:
                  type: object
                  required:
                    - name
                    - arguments
                  properties:
                    name:
                      type: string
                      const: create_conversion_action
                    arguments:
                      $ref: >-
                        #/components/schemas/google_ads_create_conversion_action_input
      responses:
        '200':
          description: JSON-RPC response with tool result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpToolResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Channel not connected or access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    google_ads_create_conversion_action_input:
      type: object
      properties:
        customer_id:
          description: >-
            Omit it: it defaults to the account this client is connected to, and
            any other account is refused.
          type: string
        name:
          type: string
        type:
          type: string
          enum:
            - WEBPAGE
            - AD_CALL
            - WEBSITE_CALL
            - UPLOAD_CLICKS
            - UPLOAD_CALLS
          description: >-
            WEBPAGE for website conversions, AD_CALL for calls from ads,
            WEBSITE_CALL for calls from a number on the website,
            UPLOAD_CLICKS/UPLOAD_CALLS for offline imports.
        category:
          type: string
          enum:
            - DEFAULT
            - PAGE_VIEW
            - PURCHASE
            - SIGNUP
            - DOWNLOAD
            - ADD_TO_CART
            - BEGIN_CHECKOUT
            - SUBSCRIBE_PAID
            - PHONE_CALL_LEAD
            - IMPORTED_LEAD
            - SUBMIT_LEAD_FORM
            - BOOK_APPOINTMENT
            - REQUEST_QUOTE
            - GET_DIRECTIONS
            - OUTBOUND_CLICK
            - CONTACT
            - ENGAGEMENT
            - STORE_VISIT
            - STORE_SALE
            - QUALIFIED_LEAD
            - CONVERTED_LEAD
          description: >-
            Google Ads has no plain LEAD category — use SUBMIT_LEAD_FORM for
            form fills or booked calls, PHONE_CALL_LEAD for call leads, SIGNUP
            (no underscore) for sign-ups, DEFAULT when nothing fits.
        counting_type:
          default: ONE_PER_CLICK
          type: string
          enum:
            - ONE_PER_CLICK
            - MANY_PER_CLICK
        default_value:
          type: number
        default_currency_code:
          default: USD
          type: string
        always_use_default_value:
          description: >-
            For AD_CALL/WEBSITE_CALL this is always sent as true (the API
            requires it).
          default: false
          type: boolean
        click_through_lookback_window_days:
          description: Max 60 for AD_CALL/WEBSITE_CALL, 90 otherwise.
          default: 30
          type: integer
          minimum: 1
          maximum: 90
        view_through_lookback_window_days:
          description: Not allowed for AD_CALL/WEBSITE_CALL (omitted automatically).
          default: 1
          type: integer
          minimum: 1
          maximum: 30
      required:
        - name
        - type
        - category
      $schema: http://json-schema.org/draft-07/schema#
    McpToolResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          const: '2.0'
        id:
          type: string
        result:
          type: object
          properties:
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    const: text
                  text:
                    type: string
                    description: JSON-stringified tool result
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          enum:
            - UNAUTHORIZED
            - FORBIDDEN
            - NOT_FOUND
            - RATE_LIMITED
            - INTERNAL_ERROR
          description: Error code
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (sk_live_*) — SHA256 hashed, looked up in Redis. Generate via
        the web app's workspace settings.

````