כשמבצעים קריאה להחלפת זמינות עם 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 get started with implementing real-time updates for your booking services.\u003c/p\u003e\n"],["\u003cp\u003eYou will need a service account with a downloaded private key to use the client.\u003c/p\u003e\n"],["\u003cp\u003eThe client library allows you to manage inventory and booking notifications, and more details on the REST API are available in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eTroubleshooting information is provided for common issues such as entity conflicts, invalid IDs, and update mask usage.\u003c/p\u003e\n"],["\u003cp\u003eRemember that zero-valued fields are not displayed in responses from the API.\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,[]]