My Business Place Actions API
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ה-My Business Place Actions API מספק ממשק לניהול קישורים לפעולות לגבי המקום של מיקום ב-Google.
הערה – אם אחרי הפעלת ה-API יש מכסה של 0, צריך לשלוח בקשה לגישת API של GBP.
שירות: mybusinessplaceactions.googleapis.com
כדי לקרוא לשירות הזה, מומלץ להשתמש בספריות הלקוח ש-Google מספקת. אם האפליקציה שלכם צריכה להשתמש בספריות משלכם כדי לקרוא לשירות הזה, תוכלו להשתמש בפרטים הבאים כשתשלחו את בקשות ה-API.
מסמך Discovery
מסמך Discovery הוא מפרט קריא למחשבים שמיועד לתיאור ולשימוש בממשקי API ל-REST. הוא משמש לבניית ספריות לקוח, יישומי פלאגין ל-IDE וכלים אחרים שיוצרים אינטראקציה עם Google APIs. שירות אחד יכול לספק כמה מסמכי גילוי. השירות הזה מספק את מסמך הגילוי הבא:
נקודת הקצה של השירות
נקודת קצה של שירות היא כתובת URL בסיסית שמציינת את כתובת הרשת של שירות ה-API. לשירות אחד יכולות להיות כמה נקודות קצה של שירות. לשירות הזה יש את נקודת הקצה הבאה של השירות, וכל מזהי ה-URI הבאים הם יחסיים לנקודת הקצה של השירות:
https://mybusinessplaceactions.googleapis.com
שיטות |
create |
POST /v1/{parent=locations/*}/placeActionLinks
יוצר קישור לפעולת מקום שמשויך למיקום שצוין ומחזיר אותו. |
delete |
DELETE /v1/{name=locations/*/placeActionLinks/*}
מחיקת הקישור לפעולה לגבי המקום מהמיקום שצוין. |
get |
GET /v1/{name=locations/*/placeActionLinks/*}
הפונקציה מקבלת את הקישור שצוין לגבי הפעולה לגבי המקום. |
list |
GET /v1/{parent=locations/*}/placeActionLinks
מציג את הקישורים לפעולות לגבי המקום במיקום שצוין. |
patch |
PATCH /v1/{placeActionLink.name=locations/*/placeActionLinks/*}
עדכון הקישור של הפעולה לגבי המקום שצוין ומחזיר אותו. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eThe My Business Place Actions API allows management of place action links for Google locations.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use Google-provided client libraries or the service endpoint for API requests.\u003c/p\u003e\n"],["\u003cp\u003eThe API offers methods to create, delete, get, list, and update place action links.\u003c/p\u003e\n"],["\u003cp\u003ePlace action type metadata can be accessed to see available options.\u003c/p\u003e\n"],["\u003cp\u003eUsers with a quota of 0 may need to request access to the GBP API.\u003c/p\u003e\n"]]],[],null,["# My Business Place Actions API\n\nThe My Business Place Actions API provides an interface for managing place action links of a location on Google. \n\nNote - If you have a quota of 0 after enabling the API, please [request](https://developers.google.com/my-business/content/prereqs#request-access) for GBP API access.\n\n- [REST Resource: v1.locations.placeActionLinks](#v1.locations.placeActionLinks)\n- [REST Resource: v1.placeActionTypeMetadata](#v1.placeActionTypeMetadata)\n\nService: mybusinessplaceactions.googleapis.com\n----------------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://mybusinessplaceactions.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://mybusinessplaceactions.googleapis.com`\n\nREST Resource: [v1.locations.placeActionLinks](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks)\n----------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/create) | `POST /v1/{parent=locations/*}/placeActionLinks` Creates a place action link associated with the specified location, and returns it. |\n| [delete](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/delete) | `DELETE /v1/{name=locations/*/placeActionLinks/*}` Deletes a place action link from the specified location. |\n| [get](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/get) | `GET /v1/{name=locations/*/placeActionLinks/*}` Gets the specified place action link. |\n| [list](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/list) | `GET /v1/{parent=locations/*}/placeActionLinks` Lists the place action links for the specified location. |\n| [patch](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/patch) | `PATCH /v1/{placeActionLink.name=locations/*/placeActionLinks/*}` Updates the specified place action link and returns it. |\n\nREST Resource: [v1.placeActionTypeMetadata](/my-business/reference/placeactions/rest/v1/placeActionTypeMetadata)\n----------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|\n| [list](/my-business/reference/placeactions/rest/v1/placeActionTypeMetadata/list) | `GET /v1/placeActionTypeMetadata` Returns the list of available place action types for a location or country. |"]]