# Pobieranie zaawansowanych wyników wyszukiwania Google Ads według id

**API:** Data API

**Endpoint:** `GET /v1/beta/dataforseo/serp/google/ads_search/task_get/advanced/{id}`

**Tags:** DataForSEO

Pobiera zakolejkowany wynik wyszukiwania reklam Google według `id`. Zwraca `keyword`, `type`, `se_domain`, `location_code`, `language_code`, `check_url`, `datetime`, `spell`, `refinement_chips`, `item_types`, `items_count` i `items`. Opakowane w kopertę DataForSEO: dane w `tasks[0].result`, wynik w `tasks[0].status_code` — odrzucone żądanie nadal zwraca HTTP 200.

### Cennik referencyjny

- Rozliczanie: zgłoszony koszt odpowiedzi.
- Szacunek referencyjny dla żądania: USD 0.02.
- Referencyjny mnożnik klienta: 1.0. Nie stosuj go ponownie do rozliczonej kwoty klienta.

Wyłącznie metadane referencyjne, a nie wycena konta, gwarantowana cena lub limit wydatków. Kredyty zasobów nie są kredytami Felo. Ostateczne obciążenia są zgodne z zapisami rozliczeniowymi Felo.

## Related links

- [UUID](<https://en.wikipedia.org/wiki/Universally_unique_identifier>)

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | path | yes | string | <em>identyfikator zadania</em><br><strong>unikalny identyfikator zadania w naszym systemie w formacie UUID</strong><br>można go używać przez <strong>30 dni</strong>, aby w dowolnym momencie pobrać wyniki zadania |

## Responses

### 200 — Operacja zakończona powodzeniem

Headers:
- `X-Request-Id` (string) — Identyfikator żądania do podania podczas kontaktu z pomocą techniczną Felo.

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_SerpGoogleAdsSearchTaskGetAdvancedResponseInfo"
    }
  ]
}
```

### 400 — Nie można przetworzyć żądania. Sprawdź parametry żądania.

### 401 — Wymagany jest prawidłowy klucz API Felo.

### 402 — Nie można kontynuować żądania, ponieważ nie spełniono wymogu rozliczeniowego.

### 403 — Konto nie ma uprawnień do wykonania tej operacji.

### 429 — Osiągnięto limit żądań lub wydatków.

### 502 — Usługa nie mogła ukończyć żądania.

### 503 — API lub usługa rozliczeniowa jest tymczasowo niedostępna.

### 504 — Upłynął limit czasu usługi podczas przetwarzania żądania.

### default — Odpowiedź błędu; odpowiedzi przekazywane bezpośrednio od dostawcy upstream mogą używać formatów dostawcy

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AdsSearch

`#/components/schemas/Response36Afe1097B20_AdsSearch`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "typ elementu"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>ranking grupy w SERP</em><br>pozycja w grupie elementów o identycznych wartościach <code>type</code><br>pozycje elementów o innych wartościach <code>type</code> są pomijane w <code>rank_group</code>"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>pozycja bezwzględna w SERP</em><br>bezwzględna pozycja wśród wszystkich elementów w SERP"
    },
    "advertiser_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>unikalny identyfikator konta reklamodawcy</em>"
    },
    "creative_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>unikalny identyfikator reklamy</em>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>tytuł elementu</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>adres URL wyszukiwania z parametrami zawężającymi</em>"
    },
    "verified": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>zweryfikowane konto reklamodawcy</em><br>równa się <code>true</code>, jeśli konto reklamodawcy jest zweryfikowane przez Google Ads"
    },
    "format": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>format reklamy</em><br>możliwe wartości: <code>text</code>, <code>image</code>, <code>video</code>"
    },
    "preview_image": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_PreviewImage"
        }
      ],
      "description": "<em>obraz podglądu reklamy</em>"
    },
    "preview_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>adres URL prowadzący do podglądu reklamy</em>"
    },
    "first_shown": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>data i godzina pierwszego wyświetlenia reklamy</em><br>w formacie UTC: „yyyy-mm-dd hh-mm-ss +00:00”"
    },
    "last_shown": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>data i godzina ostatniego wyświetlenia reklamy</em><br>w formacie UTC: „yyyy-mm-dd hh-mm-ss +00:00”"
    }
  }
}
```

### Response36Afe1097B20_AmazonLabelElement

`#/components/schemas/Response36Afe1097B20_AmazonLabelElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "typ elementu"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "tytuł elementu"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "adres URL wyszukiwania z parametrami zawężającymi"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "domena w SERP"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "bieżąca wersja interfejsu API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "ogólny kod statusu\npełną listę kodów odpowiedzi znajdziesz tutaj"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "ogólny komunikat informacyjny\npełną listę ogólnych komunikatów informacyjnych znajdziesz tutaj"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "łączny czas wykonania, sekundy"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "łączny koszt zadań, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "liczba zadań w tablicy tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "liczba zadań w tablicy tasks zwróconych z błędem",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "identyfikator zadania\nunikalny identyfikator zadania w naszym systemie w formacie UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kod statusu zadania\nwygenerowany przez DataForSEO; może mieścić się w następującym zakresie: 10000-60000\npełną listę kodów odpowiedzi znajdziesz tutaj"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "komunikat informacyjny zadania\npełną listę ogólnych komunikatów informacyjnych znajdziesz tutaj"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "czas wykonania, sekundy"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "łączny koszt zadań, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "liczba elementów w tablicy result",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "ścieżka URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "zawiera te same parametry, które podano w żądaniu POST"
    }
  }
}
```

### Response36Afe1097B20_PreviewImage

`#/components/schemas/Response36Afe1097B20_PreviewImage`

```json
{
  "type": "object",
  "properties": {
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>adres URL wyszukiwania z parametrami zawężającymi</em>"
    },
    "height": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>wysokość obrazu podglądu</em>"
    },
    "width": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>szerokość obrazu podglądu</em>",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_RefinementChipsElement

`#/components/schemas/Response36Afe1097B20_RefinementChipsElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "typ elementu"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "tytuł elementu"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "adres URL wyszukiwania z parametrami zawężającymi"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "domena w SERP"
    },
    "options": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_AmazonLabelElement"
          }
        ]
      },
      "description": "dalsze opcje zawężania wyszukiwania"
    }
  }
}
```

### Response36Afe1097B20_RefinementChipsInfo

`#/components/schemas/Response36Afe1097B20_RefinementChipsInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "typ elementu"
    },
    "xpath": {
      "type": [
        "string",
        "null"
      ],
      "description": "XPath elementu"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_RefinementChipsElement"
          }
        ]
      },
      "description": "pozycje elementu"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleAdsSearchTaskGetAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAdsSearchTaskGetAdvancedResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpGoogleAdsSearchTaskGetAdvancedTaskInfo"
              }
            ]
          },
          "description": "<em>tablica zadań</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpGoogleAdsSearchTaskGetAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAdsSearchTaskGetAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>słowo kluczowe otrzymane w tablicy POST<br></em><strong>słowo kluczowe jest zwracane z zdekodowanym %## (symbol „+” zostanie zdekodowany do znaku spacji)</strong>"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "typ elementu"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>domena wyszukiwarki w tablicy POST</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>kod lokalizacji w tablicy POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>kod języka w tablicy POST</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>bezpośredni adres URL do wyników wyszukiwarki</em><br>w tym przypadku równa się <code>null</code>"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>data i godzina otrzymania wyniku</em><br>w formacie UTC: „yyyy-mm-dd hh-mm-ss +00:00”<br>przykład:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "spell": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_SpellInfo"
        }
      ],
      "description": "<em>autokorekta wyszukiwarki</em><br>jeśli wyszukiwarka zwróciła wyniki dla poprawionego słowa kluczowego, podajemy słowo kluczowe poprawione przez wyszukiwarkę oraz typ autokorekty;<br>w tym przypadku równa się <code>null</code>"
    },
    "refinement_chips": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_RefinementChipsInfo"
        }
      ],
      "description": "<em>żetony uściślania wyszukiwania</em>"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>typy wyników wyszukiwania w SERP</em><br>zawiera typy wyników wyszukiwania (<code>items</code>) znalezionych w SERP.<br>możliwe typy pozycji:<br><code>ads_search</code>"
    },
    "se_results_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> łączna liczba wyników w SERP</em>",
      "format": "int64"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>liczba wyników zwróconych w tablicy <strong><code>items</code></strong></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_AdsSearch"
          }
        ]
      },
      "description": "<em>pozycje elementu</em>"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleAdsSearchTaskGetAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAdsSearchTaskGetAdvancedTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpGoogleAdsSearchTaskGetAdvancedResultInfo"
              }
            ]
          },
          "description": "<em>tablica wyników</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SpellInfo

`#/components/schemas/Response36Afe1097B20_SpellInfo`

```json
{
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "słowo kluczowe uzyskane w wyniku autokorekty wyszukiwarki\n wyniki zostaną udostępnione dla poprawionego słowa kluczowego"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "typ autokorekty\n możliwe wartości:\n did_you_mean, showing_results_for, no_results_found_for, including_results_for\n uwaga: Yahoo i Yandex obsługują tylko następujący typ autokorekty:\n including_results_for"
    }
  }
}
```
