# Menyetel Tugas Info Produk Google Shopping

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/merchant/google/product_info/task_post`

**Tags:** DataForSEO

Mengantrekan pencarian satu produk Google Shopping tertentu, sambil mengembalikan `id` tugas. Kenal pasti produk dengan `product_id` dan `gid` atau `data_docid` yang diambil daripada hasil `get_dataforseo_merchant_google_products_fetch`. Keluarga ini tak segerak sepenuhnya: submit mengembalikan `id` tugas dalam `tasks[0].id`, dan alat fetch mengembalikan hasil apabila sedia. Ambil dengan `get_dataforseo_merchant_google_product_info_fetch`.

### Referensi harga

- Metering: Biaya respons yang dilaporkan.
- Estimasi referensi per permintaan: USD 0.012.
- Pengali pelanggan referensi: 1.0. Jangan terapkan lagi pada jumlah pelanggan yang telah diselesaikan.

Hanya metadata referensi, bukan penawaran akun, harga yang dijamin, atau batas pengeluaran. Kredit sumber daya bukanlah kredit Felo. Biaya akhir mengikuti catatan tagihan Felo.

## Related links

- [endpoint Google Shopping Products](<https://docs.dataforseo.com/v3/merchant/google/products/task_post>)
- [panduan pusat bantuan ini](<https://dataforseo.com/help-center/product-id-google-shopping>)
- [panduan pusat bantuan ini](<https://dataforseo.com/help-center/whats-a-gid-in-google-shopping-api>)
- [Harga](<https://dataforseo.com/pricing/merchant/google-shopping-api>)
- [Pusat Bantuan](<https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api>)

## Base URL

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

## Authentication

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

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "string",
            "description": "<em>pengenal produk unik di Google Shopping</em><br><strong>field wajib jika <code>data_docid</code> atau <code>gid</code> tidak ditentukan</strong><br>kami menyarankan menentukan <code>product_id</code> bersama <code>data_docid</code> dan <code>gid</code> untuk hasil optimal;<br>Anda dapat memperoleh nilai ini untuk produk tertentu dengan membuat permintaan terpisah ke endpoint Google Shopping Products<br>contoh:<br><code>4485466949985702538</code><br>pelajari lebih lanjut tentang parameter di panduan pusat bantuan ini"
          },
          "data_docid": {
            "type": "string",
            "description": "<em>pengenal unik elemen data SERP</em><br><strong>field wajib jika <code>product_id</code> atau <code>gid</code> tidak ditentukan</strong><br>kami menyarankan menentukan <code>data_docid</code> bersama <code>product_id</code> dan <code>gid</code> untuk hasil optimal;<br>Anda dapat memperoleh nilai ini untuk elemen tertentu dengan membuat permintaan terpisah ke endpoint Google Shopping Products<br>contoh:<br><code>13071766526042404278</code>"
          },
          "gid": {
            "type": "string",
            "description": "<em>pengenal produk global di Google Shopping</em><br><strong>field wajib jika <code>product_id</code> atau <code>data_docid</code> tidak ditentukan</strong><br>kami menyarankan menentukan <code>gid</code> bersama <code>product_id</code> dan <code>data_docid</code> untuk hasil optimal;<br>Anda dapat memperoleh nilai ini untuk produk tertentu dengan membuat permintaan terpisah ke endpoint Google Shopping Products<br>contoh:<br><code>4702526954592161872</code><br>pelajari lebih lanjut tentang parameter di panduan pusat bantuan ini"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>prioritas tugas</em><br>field opsional<br>dapat mengambil nilai berikut:<br>1 – prioritas eksekusi normal (ditetapkan secara default)<br>2 – prioritas eksekusi tinggi. Anda akan dikenai biaya tambahan untuk tugas dengan prioritas eksekusi tinggi.<br>Biaya dapat dihitung di halaman Harga."
          },
          "location_name": {
            "type": "string",
            "description": "<em>nama lengkap lokasi</em><br><strong>field wajib jika Anda tidak menentukan</strong> <code>location_code</code> atau <code>location_coordinate</code><br><strong>jika Anda menggunakan field ini, Anda tidak perlu menentukan <code>location_code</code> atau <code>location_coordinate</code></strong><br>Anda dapat memperoleh daftar lokasi Google Shopping yang tersedia beserta <code>location_name</code>-nya dengan membuat permintaan terpisah ke <code>https://api.dataforseo.com/v3/merchant/google/locations</code><br>contoh:<br><code class=\"long-string\">London,England,United Kingdom</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>kode lokasi</em><br><strong>field wajib jika Anda tidak menentukan</strong> <code>location_name</code> atau <code>location_coordinate</code><br><strong>jika Anda menggunakan field ini, Anda tidak perlu menentukan <code>location_name</code> atau <code>location_coordinate</code></strong><br>Anda dapat memperoleh daftar lokasi Google Shopping yang tersedia beserta <code>location_code</code>-nya dengan membuat permintaan terpisah ke <code>https://api.dataforseo.com/v3/merchant/google/locations</code><br>contoh:<br><code class=\"long-string\">2840</code>"
          },
          "location_coordinate": {
            "type": "string",
            "description": "<em>koordinat GPS suatu lokasi</em><br><strong>field wajib jika Anda tidak menentukan</strong> <code>location_name</code> atau <code>location_code</code><br><strong>jika Anda menggunakan field ini, Anda tidak perlu menentukan <code>location_name</code> atau <code>location_code</code></strong><br>parameter <code>location_coordinate</code> harus ditentukan dalam format <em>\"latitude,longitude,radius\"</em><br>jumlah maksimum digit desimal untuk <em>\"latitude\"</em> dan <em>\"longitude\"</em>: 7<br>nilai minimum untuk <em>\"radius\"</em>: 199.9<br>contoh:<br><code class=\"long-string\">53.476225,-2.243572,200</code>"
          },
          "language_name": {
            "type": "string",
            "description": "<em>nama lengkap bahasa</em><br><strong>field wajib jika Anda tidak menentukan</strong> <code>language_code</code><br><strong>jika Anda menggunakan field ini, Anda tidak perlu menentukan <code>language_code</code></strong><br>Anda dapat memperoleh daftar bahasa Google Shopping yang tersedia beserta <code>language_name</code>-nya dengan membuat permintaan terpisah ke <code>https://api.dataforseo.com/v3/merchant/google/languages</code><br>contoh:<br><code class=\"long-string\">English</code>"
          },
          "language_code": {
            "type": "string",
            "description": "<em>kode bahasa</em><br><strong>field wajib jika Anda tidak menentukan</strong> <code>language_name</code><br><strong>jika Anda menggunakan field ini, Anda tidak perlu menentukan <code>language_name</code></strong><br>Anda dapat memperoleh daftar bahasa Google Shopping yang tersedia beserta <code>language_code</code>-nya dengan membuat permintaan terpisah ke <code>https://api.dataforseo.com/v3/merchant/google/languages</code><em><br></em>contoh:<em><br></em><code class=\"long-string\">en</code>"
          },
          "se_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>domain mesin pencari</em><br>field opsional<br>kami memilih domain mesin pencari yang relevan secara otomatis sesuai lokasi dan bahasa yang Anda tentukan<br>namun, Anda dapat menetapkan domain mesin pencari kustom di field ini<br>contoh:<br><code><em>google.co.uk</code>, <code>google.com.au</code>, <code>google.de</code>, dll."
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>pengenal tugas yang ditentukan pengguna</em><br>field opsional<br><em>batas karakter adalah 255</em><br>Anda dapat menggunakan parameter ini untuk mengidentifikasi tugas dan mencocokkannya dengan hasil<br>Anda akan menemukan nilai <code>tag</code> yang ditentukan di objek <code>data</code> pada respons"
          },
          "postback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>URL untuk mengirim hasil tugas</em><br>field opsional<br>setelah tugas selesai, kami akan mengirim permintaan POST dengan hasilnya yang dikompresi dalam format <code>gzip</code> ke <code>postback_url</code> yang Anda tentukan<br>Anda dapat menggunakan string ‘$id’ sebagai variabel <code>$id</code> dan ‘$tag’ sebagai variabel <code>$tag</code> yang di-urlencode. Kami akan menetapkan nilai yang diperlukan sebelum mengirim permintaan.<br>contoh:<br><code>http://your-server.com/postbackscript?id=$id</code><br><code>http://your-server.com/postbackscript?id=$id&amp;tag=$tag</code><br><strong>Catatan:</strong> karakter khusus dalam <code>postback_url</code> akan di-urlencode; <br>yaitu, karakter <code>#</code> akan dienkode menjadi <code>%23</code><p>pelajari selengkapnya di Pusat Bantuan kami"
          },
          "postback_data": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>tipe data postback_url</em><br>field opsional<br>sesuai dengan tipe data yang akan dikirim ke server Anda<br>nilai yang mungkin:<br><code>advanced</code>"
          },
          "pingback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>URL notifikasi tugas yang selesai</em><br>field opsional<br>saat tugas selesai, kami akan memberi tahu Anda melalui permintaan GET yang dikirim ke URL yang Anda tentukan<br>Anda dapat menggunakan string ‘$id’ sebagai variabel <code>$id</code> dan ‘$tag’ sebagai variabel <code>$tag</code> yang di-urlencode. Kami akan menetapkan nilai yang diperlukan sebelum mengirim permintaan.<br>contoh:<br><code>http://your-server.com/pingscript?id=$id</code><br><code>http://your-server.com/pingscript?id=$id&amp;tag=$tag</code><br><strong>Catatan:</strong> karakter khusus dalam <code>pingback_url</code> akan di-urlencode; <br>yaitu, karakter <code>#</code> akan dienkode menjadi <code>%23</code><p>pelajari selengkapnya di Pusat Bantuan kami"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "product_id": "1113158713975221117"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "product_id": "1113158713975221117"
    }
  ]
}
```

## Responses

### 200 — Operasi berhasil

Headers:
- `X-Request-Id` (string) — Pengenal permintaan yang harus disertakan saat menghubungi dukungan Felo.

**application/json**

Schema: object | null

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

### 400 — Permintaan tidak dapat diproses. Periksa parameter permintaan.

### 401 — Kunci API Felo yang valid diperlukan.

### 402 — Permintaan tidak dapat dilanjutkan karena persyaratan penagihan belum terpenuhi.

### 403 — Akun tidak diizinkan melakukan operasi ini.

### 429 — Batas permintaan atau batas pengeluaran telah tercapai.

### 502 — Layanan tidak dapat menyelesaikan permintaan.

### 503 — API atau layanan penagihan untuk sementara tidak tersedia.

### 504 — Layanan kehabisan waktu saat memproses permintaan.

### default — Respons error; respons passthrough upstream dapat menggunakan format penyedia

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "versi API saat ini"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kode status umum; Anda dapat menemukan daftar lengkap kode respons di sini"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "pesan informasi umum; Anda dapat menemukan daftar lengkap pesan informasi umum di sini"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "total waktu eksekusi, detik"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "total biaya tugas, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "jumlah tugas dalam array tasks",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "jumlah tugas dalam array tasks yang dikembalikan dengan error",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "pengenal tugas; pengenal tugas unik di sistem kami dalam format UUID"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "kode status tugas yang dihasilkan oleh DataForSEO; dapat berada dalam rentang berikut: 10000-60000; Anda dapat menemukan daftar lengkap kode respons di sini"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "pesan informasi tugas; Anda dapat menemukan daftar lengkap pesan informasi umum di sini"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "waktu eksekusi, detik"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "total biaya tugas, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "jumlah elemen dalam array hasil",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "Jalur URL"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "berisi parameter yang sama dengan yang Anda tentukan dalam permintaan POST"
    }
  }
}
```

### Response36Afe1097B20_MerchantGoogleProductInfoTaskPostResponseInfo

`#/components/schemas/Response36Afe1097B20_MerchantGoogleProductInfoTaskPostResponseInfo`

```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_MerchantGoogleProductInfoTaskPostTaskInfo"
              }
            ]
          },
          "description": "<em>array tugas</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_MerchantGoogleProductInfoTaskPostTaskInfo

`#/components/schemas/Response36Afe1097B20_MerchantGoogleProductInfoTaskPostTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "object",
            "null"
          ],
          "description": "<em>array hasil</em><br>dalam kasus ini, nilainya akan menjadi <code>null</code>"
        }
      }
    }
  ]
}
```
