Method: accounts.dataSources.create
יצירת ההגדרה החדשה של מקור הנתונים בחשבון הנתון.
בקשת HTTP
POST https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. החשבון שבו ייווצר מקור הנתונים הזה. פורמט: accounts/{account}
|
גוף הבקשה
גוף הבקשה מכיל מופע של DataSource
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע חדש של DataSource
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/content
מידע נוסף זמין בOAuth 2.0 Overview.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-23 (שעון UTC).
[null,null,["עדכון אחרון: 2025-01-23 (שעון UTC)."],[[["Creates a new data source configuration for a given account using an HTTP POST request."],["Requires specifying the account in the URL path and providing a `DataSource` object in the request body."],["If successful, the response contains the newly created `DataSource` object."],["Needs authorization with the `https://www.googleapis.com/auth/content` scope."]]],["This document details how to create a new data source configuration. The core action is a `POST` HTTP request to `https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources`. The `parent` path parameter, formatted as `accounts/{account}`, specifies the target account. A `DataSource` instance is sent in the request body. Successful execution returns a new `DataSource` instance in the response body. The `https://www.googleapis.com/auth/content` OAuth scope is required for authorization.\n"]]