Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class InsertProductInputRequest.
Request message for the InsertProductInput method.
Generated from protobuf message google.shopping.merchant.products.v1.InsertProductInputRequest
Namespace
Google \ Shopping \ Merchant \ Products \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The account where this product will be inserted. Format: |
↳ product_input |
ProductInput
Required. The product input to insert. |
↳ data_source |
string
Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. For more information, see Overview of Data sources sub-API. Only API data sources are supported. Format: |
getParent
Required. The account where this product will be inserted.
Format: accounts/{account}
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The account where this product will be inserted.
Format: accounts/{account}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getProductInput
Required. The product input to insert.
| Returns | |
|---|---|
| Type | Description |
ProductInput|null |
|
hasProductInput
clearProductInput
setProductInput
Required. The product input to insert.
| Parameter | |
|---|---|
| Name | Description |
var |
ProductInput
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDataSource
Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. For more information, see Overview of Data sources sub-API.
Only API data sources are supported.
Format: accounts/{account}/dataSources/{datasource}. For example,
accounts/123456/dataSources/104628.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDataSource
Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. For more information, see Overview of Data sources sub-API.
Only API data sources are supported.
Format: accounts/{account}/dataSources/{datasource}. For example,
accounts/123456/dataSources/104628.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|