כשמבצעים קריאה להחלפת זמינות עם merchantId או serviceId לא חוקיים, לא תופיע הודעת שגיאה. הסיבה לכך היא ששינויים בזמני הפרסום באמצעות RTU תומכים בהרצה מחוץ לסדר, ולכן הם לא משויכים למזהה מוכר או למזהה שירות. עם זאת, המיקומים בבקשה לא יוצגו בסביבת הייצור בגלל שה-merchantId או ה-serviceId לא תקינים. כדי שהמודעות יוצגו במודעות הווידאו, עליך להוסיף את המוכר או את השירות החסרים באמצעות יחידות RTU או פידים.
בכל פונקציות העדכון, הפרמטר updateMask חייב להיות בפורמט FieldMask כדי לציין את השדות לעדכון. ה-API חייב לשנות רק את הערכים של השדות כפי שצוין במסכה, ולהשאיר את שאר השדות ללא שינוי. אם מעבירים את המחרוזת הלא נכונה של updateMask, העדכון לא ייכנס לתוקף. אם לא מצוין מסכת שדה בעדכון, הפעולה חלה על כל השדות (כאילו צוינה מסכת שדה של כל השדות). לכן, אם רוצים לעדכן את כל השדות, פשוט צריך להגדיר את updateMask כרייק.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eDownload the Java real-time update API client and sample code to easily implement real-time updates for Google Maps Booking.\u003c/p\u003e\n"],["\u003cp\u003eBefore starting, ensure you have a service account created and your private key downloaded.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided troubleshooting section for common issues and solutions during implementation.\u003c/p\u003e\n"],["\u003cp\u003eRemember to utilize the \u003ccode\u003eupdateMask\u003c/code\u003e parameter in the update functions to specify the fields to be modified.\u003c/p\u003e\n"],["\u003cp\u003eDetailed information about the REST API and FieldMask format can be found through the provided links.\u003c/p\u003e\n"]]],["Download the Java real-time update API client and library. Create a Java project, import the sample code files, `InventoryUpdate.java` and `BookingNotification.java`, and copy your private key to the `src` directory. Add the Java Client Library to your project dependencies. Follow the TODOs in the Java files to complete implementation. Be aware of 409 errors with existing IDs. Replace availability calls won't throw errors with invalid IDs. Ensure the 'updateMask' parameter is in FieldMask format in update functions.\n"],null,[]]