Reference documentation and code samples for the Google Shopping Merchant Promotions V1beta Client class InsertPromotionRequest.
Request message for the InsertPromotion
method.
Generated from protobuf message google.shopping.merchant.promotions.v1beta.InsertPromotionRequest
Namespace
Google \ Shopping \ Merchant \ Promotions \ V1betaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The account where the promotion will be inserted. Format: accounts/{account} |
↳ promotion |
Promotion
Required. The promotion to insert. |
↳ data_source |
string
Required. The data source of the promotion Format: |
getParent
Required. The account where the promotion will be inserted.
Format: accounts/{account}
Returns | |
---|---|
Type | Description |
string |
setParent
Required. The account where the promotion will be inserted.
Format: accounts/{account}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPromotion
Required. The promotion to insert.
Returns | |
---|---|
Type | Description |
Promotion|null |
hasPromotion
clearPromotion
setPromotion
Required. The promotion to insert.
Parameter | |
---|---|
Name | Description |
var |
Promotion
|
Returns | |
---|---|
Type | Description |
$this |
getDataSource
Required. The data source of the
promotion
Format:
accounts/{account}/dataSources/{datasource}
.
Returns | |
---|---|
Type | Description |
string |
setDataSource
Required. The data source of the
promotion
Format:
accounts/{account}/dataSources/{datasource}
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |