> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.googleAds.core.MakeApiCall

- Component: `appmixer.googleAds.core.MakeApiCall`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.googleAds 1.3.3](https://connectors.appmixer.com/connector/appmixer.googleAds/1.3.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.googleAds/1.3.3/component/appmixer.googleAds.core.MakeApiCall>

Performs an arbitrary authorized API call to the Google Ads API.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| API Endpoint Path (`url`) | text | Enter the API endpoint path relative to `https://googleads.googleapis.com/v23` (for example `/v1/resource`) or provide a full URL. |
| HTTP Method (`method`) | select | Select the HTTP method for the API call. |
| Query Parameters (`parameters`) | key-value | Optional query parameters. |
| Request Body (`body`) | textarea | Enter the request body as a JSON object (supports nested objects, arrays, and non-string values). |
| Request Headers (`headers`) | key-value | Optional additional request headers. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Status Code (`status`) | - | - |
| Response Headers (`headers`) | - | - |
| Response Body (`body`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.googleAds.core.MakeApiCall",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Performs an arbitrary authorized API call to the Google Ads API.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:googleAds",
    "scope": [
      "https://www.googleapis.com/auth/adwords"
    ]
  },
  "quota": {
    "manager": "appmixer:googleAds",
    "resources": "requests"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE"
            ]
          },
          "headers": {
            "type": "string"
          },
          "parameters": {
            "type": "string"
          },
          "body": {
            "type": "string"
          }
        },
        "required": [
          "url",
          "method"
        ]
      },
      "inspector": {
        "inputs": {
          "url": {
            "type": "text",
            "index": 1,
            "label": "API Endpoint Path",
            "tooltip": "Enter the API endpoint path relative to <code>https://googleads.googleapis.com/v23</code> (for example <code>/v1/resource</code>) or provide a full URL."
          },
          "method": {
            "type": "select",
            "index": 2,
            "label": "HTTP Method",
            "defaultValue": "GET",
            "tooltip": "Select the HTTP method for the API call.",
            "options": [
              {
                "label": "GET",
                "value": "GET"
              },
              {
                "label": "POST",
                "value": "POST"
              },
              {
                "label": "PUT",
                "value": "PUT"
              },
              {
                "label": "PATCH",
                "value": "PATCH"
              },
              {
                "label": "DELETE",
                "value": "DELETE"
              }
            ]
          },
          "parameters": {
            "type": "key-value",
            "keyLabel": "Key",
            "valueLabel": "Value",
            "addLabel": "Add item",
            "removeLabel": "Remove item",
            "label": "Query Parameters",
            "index": 3,
            "tooltip": "Optional query parameters."
          },
          "body": {
            "type": "textarea",
            "index": 4,
            "label": "Request Body",
            "tooltip": "Enter the request body as a JSON object (supports nested objects, arrays, and non-string values)."
          },
          "headers": {
            "type": "key-value",
            "keyLabel": "Key",
            "valueLabel": "Value",
            "addLabel": "Add item",
            "removeLabel": "Remove item",
            "label": "Request Headers",
            "index": 5,
            "tooltip": "Optional additional request headers."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Status Code",
          "value": "status"
        },
        {
          "label": "Response Headers",
          "value": "headers"
        },
        {
          "label": "Response Body",
          "value": "body",
          "schema": {
            "type": "object",
            "properties": {}
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
