Reference documentation and code samples for the Google Shopping Merchant Issue Resolution V1 Client class BuiltInSimpleAction.
Action that is implemented and performed in (your) third-party application.
Represents various functionality that is expected to be available to business and will help them with resolving the issue. The application should point the business to the place, where they can access the corresponding functionality. If the functionality is not supported, it is recommended to explain the situation to the business and provide them with instructions how to solve the issue.
Generated from protobuf message google.shopping.merchant.issueresolution.v1.BuiltInSimpleAction
Namespace
Google \ Shopping \ Merchant \ IssueResolution \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
int
The type of action that represents a functionality that is expected to be available in third-party application. |
↳ attribute_code |
string
The attribute that needs to be updated. Present when the type is |
↳ additional_content |
BuiltInSimpleAction\AdditionalContent
Long text from an external source that should be available to the business. Present when the type is |
getType
The type of action that represents a functionality that is expected to be available in third-party application.
Returns | |
---|---|
Type | Description |
int |
setType
The type of action that represents a functionality that is expected to be available in third-party application.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getAttributeCode
The attribute that needs to be updated. Present when the
type
is EDIT_ITEM_ATTRIBUTE
.
This field contains a code for attribute, represented in snake_case. You can find a list of product's attributes, with their codes here.
Returns | |
---|---|
Type | Description |
string |
hasAttributeCode
clearAttributeCode
setAttributeCode
The attribute that needs to be updated. Present when the
type
is EDIT_ITEM_ATTRIBUTE
.
This field contains a code for attribute, represented in snake_case. You can find a list of product's attributes, with their codes here.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAdditionalContent
Long text from an external source that should be available to the business.
Present when the
type
is SHOW_ADDITIONAL_CONTENT
.
Returns | |
---|---|
Type | Description |
BuiltInSimpleAction\AdditionalContent|null |
hasAdditionalContent
clearAdditionalContent
setAdditionalContent
Long text from an external source that should be available to the business.
Present when the
type
is SHOW_ADDITIONAL_CONTENT
.
Parameter | |
---|---|
Name | Description |
var |
BuiltInSimpleAction\AdditionalContent
|
Returns | |
---|---|
Type | Description |
$this |