Google Business Performance API, tek bir API isteğinde birden fazla "GünlükMetrik" getirmeye olanak tanıyan
YENİ bir API yöntemine sahiptir.
Kullanımdan kaldırma planını ve v4 reportInsights API yönteminden Google Business Profile Performance API'ye geçiş talimatlarını inceleyin.
Method: accounts.locations.patch
Belirtilen konumu günceller.
Fotoğraflara yalnızca Google+ sayfası olan konumlarda izin verilir.
Konum mevcut değilse NOT_FOUND
değerini döndürür.
HTTP isteği
PATCH https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
name |
string
Güncellenecek konumun adı.
|
Sorgu parametreleri
Parametreler |
updateMask |
string (FieldMask format)
Güncellenecek belirli alanlar. Maske belirtilmemişse bu durum tam güncelleme olarak değerlendirilir ve tüm alanlar iletilen değerlere ayarlanır. Bu da istekteki boş alanların ayarlarını kaldırma işlemini de içerebilir. Bu, tam nitelikli alan adlarının virgülle ayrılmış bir listesidir. Örnek: "user.displayName,photo" .
|
validateOnly |
boolean
Doğru ise istek, konum gerçekten güncellenmeden doğrulanır.
|
attributeMask |
string (FieldMask format)
Güncellenecek özelliklerin kimlikleri. Yalnızca maskede belirtilen özellikler güncellenir. Özellik, maskede olup konumda yoksa kaldırılır. Boş bir maske tüm özellikleri günceller. Bu alan ayarlandığında, updateMask, güncellenecek alanlardan biri olarak özellikleri içermelidir. Bu, tam nitelikli alan adlarının virgülle ayrılmış bir listesidir. Örnek: "user.displayName,photo" .
|
İstek içeriği
İstek metni, Location
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, Location
öğesinin bir örneğini içerir.
Yetkilendirme Kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Daha fazla bilgi için OAuth 2.0'a Genel Bakış başlıklı makaleye bakın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-12-02 UTC.
[null,null,["Son güncelleme tarihi: 2023-12-02 UTC."],[[["This document outlines how to update a specific Google My Business location using the `PATCH` HTTP request method."],["The request requires specifying the location's name in the URL path and can include optional query parameters like `updateMask`, `validateOnly`, and `attributeMask` to control the update process."],["The request body should contain a `Location` object with the desired updates, and a successful response will return the updated `Location` object."],["Authorization is necessary and requires one of the specified OAuth scopes: `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage`."],["Photos can only be added to locations with an associated Google+ page, and attempting to update a non-existent location results in a `NOT_FOUND` error."]]],["This describes updating a location using a `PATCH` request to the specified URL. The location is identified by its `name` in the path. Updates are controlled by the `updateMask` and `attributeMask` query parameters. A boolean `validateOnly` parameter allows for request validation without making changes. The request and response bodies both use a Location object. Authorization requires specific OAuth scopes. A location must have a Google+ page to be updated with photos, and requests for non-existent locations return `NOT_FOUND`.\n"]]