Google Shopping Merchant Promotions V1beta Client - Class InsertPromotionRequest (0.1.0)

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 \ V1beta

Methods

__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 Google\Shopping\Merchant\Promotions\V1beta\Promotion

Required. The promotion to insert.

↳ data_source string

Required. The data source of the promotion Format: accounts/{account}/dataSources/{datasource}.

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
Google\Shopping\Merchant\Promotions\V1beta\Promotion|null

hasPromotion

clearPromotion

setPromotion

Required. The promotion to insert.

Parameter
Name Description
var Google\Shopping\Merchant\Promotions\V1beta\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