Reference documentation and code samples for the Google Shopping Merchant DataSources V1 Client class DataSource.
The data source for the Merchant Center account.
Generated from protobuf message google.shopping.merchant.datasources.v1.DataSource
Namespace
Google \ Shopping \ Merchant \ DataSources \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ primary_product_data_source
↳ supplemental_product_data_source
↳ local_inventory_data_source
↳ regional_inventory_data_source
↳ promotion_data_source
↳ product_review_data_source
↳ merchant_review_data_source
↳ name
string
Required. Identifier. The name of the data source. Format: accounts/{account}/dataSources/{datasource}
↳ data_source_id
int|string
Output only. The data source id.
↳ display_name
string
Required. The displayed data source name in the Merchant Center UI.
↳ input
int
Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.
↳ file_input
getPrimaryProductDataSource
The primary data source for local and online products.
hasPrimaryProductDataSource
setPrimaryProductDataSource
The primary data source for local and online products.
$this
getSupplementalProductDataSource
The supplemental data source for local and online products.
hasSupplementalProductDataSource
setSupplementalProductDataSource
The supplemental data source for local and online products.
$this
getLocalInventoryDataSource
The local inventory data source.
hasLocalInventoryDataSource
setLocalInventoryDataSource
The local inventory data source.
$this
getRegionalInventoryDataSource
The regional inventory data source.
hasRegionalInventoryDataSource
setRegionalInventoryDataSource
The regional inventory data source.
$this
getPromotionDataSource
The promotion data source.
hasPromotionDataSource
setPromotionDataSource
The promotion data source.
$this
getProductReviewDataSource
The product review data source.
hasProductReviewDataSource
setProductReviewDataSource
The product review data source.
$this
getMerchantReviewDataSource
The merchant review data source.
hasMerchantReviewDataSource
setMerchantReviewDataSource
The merchant review data source.
$this
getName
Required. Identifier. The name of the data source.
Format: accounts/{account}/dataSources/{datasource}
string
setName
Required. Identifier. The name of the data source.
Format: accounts/{account}/dataSources/{datasource}
var
string
$this
getDataSourceId
Output only. The data source id.
int|string
setDataSourceId
Output only. The data source id.
var
int|string
$this
getDisplayName
Required. The displayed data source name in the Merchant Center UI.
string
setDisplayName
Required. The displayed data source name in the Merchant Center UI.
var
string
$this
getInput
Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.
int
setInput
Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.
var
int
$this
getFileInput
Optional. The field is used only when data is managed through a file.
hasFileInput
clearFileInput
setFileInput
Optional. The field is used only when data is managed through a file.
$this
getType
string