Google Shopping Css V1 Client - Class Attributes (0.1.0)

Reference documentation and code samples for the Google Shopping Css V1 Client class Attributes.

Attributes for CSS Product.

Generated from protobuf message google.shopping.css.v1.Attributes

Namespace

Google \ Shopping \ Css \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ cpp_link string

URL directly linking to your the Product Detail Page of the CSS.

↳ cpp_mobile_link string

URL for the mobile-optimized version of the Product Detail Page of the CSS.

↳ cpp_ads_redirect string

Allows advertisers to override the item URL when the product is shown within the context of Product Ads.

↳ low_price Google\Shopping\Type\Price

Low Price of the aggregate offer.

↳ high_price Google\Shopping\Type\Price

High Price of the aggregate offer.

↳ number_of_offers int|string

The number of aggregate offers.

↳ headline_offer_condition string

Condition of the headline offer.

↳ headline_offer_price Google\Shopping\Type\Price

Headline Price of the aggregate offer.

↳ headline_offer_link string

Link to the headline offer.

↳ headline_offer_mobile_link string

Mobile Link to the headline offer.

↳ headline_offer_shipping_price Google\Shopping\Type\Price

Headline Price of the aggregate offer.

↳ title string

Title of the item.

↳ image_link string

URL of an image of the item.

↳ additional_image_links array

Additional URL of images of the item.

↳ description string

Description of the item.

↳ brand string

Product Related Attributes.[14-36] Brand of the item.

↳ mpn string

Manufacturer Part Number (MPN) of the item.

↳ gtin string

Global Trade Item Number (GTIN) of the item.

↳ product_types array

Categories of the item (formatted as in products data specification).

↳ google_product_category string

Google's category of the item (see Google product taxonomy). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.

↳ adult bool

Set to true if the item is targeted towards adults.

↳ multipack int|string

The number of identical products in a merchant-defined multipack.

↳ is_bundle bool

Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.

↳ age_group string

Target age group of the item.

↳ color string

Color of the item.

↳ gender string

Target gender of the item.

↳ material string

The material of which the item is made.

↳ pattern string

The item's pattern (e.g. polka dots).

↳ size string

Size of the item. Only one value is allowed. For variants with different sizes, insert a separate product for each size with the same itemGroupId value (see [https://support.google.com/merchants/answer/6324492](size definition)).

↳ size_system string

System in which the size is specified. Recommended for apparel items.

↳ size_types array

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see [https://support.google.com/merchants/answer/6324497](size type)).

↳ item_group_id string

Shared identifier for all variants of the same product.

↳ product_details array<Google\Shopping\Css\V1\ProductDetail>

Technical specification or additional product details.

↳ product_weight Google\Shopping\Css\V1\ProductWeight

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

↳ product_length Google\Shopping\Css\V1\ProductDimension

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

↳ product_width Google\Shopping\Css\V1\ProductDimension

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

↳ product_height Google\Shopping\Css\V1\ProductDimension

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

↳ product_highlights array

Bullet points describing the most relevant highlights of a product.

↳ certifications array<Google\Shopping\Css\V1\Certification>

A list of certificates claimed by the CSS for the given product.

↳ expiration_date Google\Protobuf\Timestamp

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future. Note: It may take 2+ days from the expiration date for the item to actually get deleted.

↳ included_destinations array

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

↳ excluded_destinations array

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

↳ pause string

Publication of this item will be temporarily paused.

↳ custom_label_0 string

Custom label 0 for custom grouping of items in a Shopping campaign.

↳ custom_label_1 string

Custom label 1 for custom grouping of items in a Shopping campaign.

↳ custom_label_2 string

Custom label 2 for custom grouping of items in a Shopping campaign.

↳ custom_label_3 string

Custom label 3 for custom grouping of items in a Shopping campaign.

↳ custom_label_4 string

Custom label 4 for custom grouping of items in a Shopping campaign.

URL directly linking to your the Product Detail Page of the CSS.

Returns
TypeDescription
string

URL directly linking to your the Product Detail Page of the CSS.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

URL for the mobile-optimized version of the Product Detail Page of the CSS.

Returns
TypeDescription
string

URL for the mobile-optimized version of the Product Detail Page of the CSS.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCppAdsRedirect

Allows advertisers to override the item URL when the product is shown within the context of Product Ads.

Returns
TypeDescription
string

hasCppAdsRedirect

clearCppAdsRedirect

setCppAdsRedirect

Allows advertisers to override the item URL when the product is shown within the context of Product Ads.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLowPrice

Low Price of the aggregate offer.

Returns
TypeDescription
Google\Shopping\Type\Price|null

hasLowPrice

clearLowPrice

setLowPrice

Low Price of the aggregate offer.

Parameter
NameDescription
var Google\Shopping\Type\Price
Returns
TypeDescription
$this

getHighPrice

High Price of the aggregate offer.

Returns
TypeDescription
Google\Shopping\Type\Price|null

hasHighPrice

clearHighPrice

setHighPrice

High Price of the aggregate offer.

Parameter
NameDescription
var Google\Shopping\Type\Price
Returns
TypeDescription
$this

getNumberOfOffers

The number of aggregate offers.

Returns
TypeDescription
int|string

hasNumberOfOffers

clearNumberOfOffers

setNumberOfOffers

The number of aggregate offers.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getHeadlineOfferCondition

Condition of the headline offer.

Returns
TypeDescription
string

hasHeadlineOfferCondition

clearHeadlineOfferCondition

setHeadlineOfferCondition

Condition of the headline offer.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHeadlineOfferPrice

Headline Price of the aggregate offer.

Returns
TypeDescription
Google\Shopping\Type\Price|null

hasHeadlineOfferPrice

clearHeadlineOfferPrice

setHeadlineOfferPrice

Headline Price of the aggregate offer.

Parameter
NameDescription
var Google\Shopping\Type\Price
Returns
TypeDescription
$this

Link to the headline offer.

Returns
TypeDescription
string

Link to the headline offer.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

Mobile Link to the headline offer.

Returns
TypeDescription
string

Mobile Link to the headline offer.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHeadlineOfferShippingPrice

Headline Price of the aggregate offer.

Returns
TypeDescription
Google\Shopping\Type\Price|null

hasHeadlineOfferShippingPrice

clearHeadlineOfferShippingPrice

setHeadlineOfferShippingPrice

Headline Price of the aggregate offer.

Parameter
NameDescription
var Google\Shopping\Type\Price
Returns
TypeDescription
$this

getTitle

Title of the item.

Returns
TypeDescription
string

hasTitle

clearTitle

setTitle

Title of the item.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

URL of an image of the item.

Returns
TypeDescription
string

URL of an image of the item.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

Additional URL of images of the item.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

Additional URL of images of the item.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getDescription

Description of the item.

Returns
TypeDescription
string

hasDescription

clearDescription

setDescription

Description of the item.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBrand

Product Related Attributes.[14-36] Brand of the item.

Returns
TypeDescription
string

hasBrand

clearBrand

setBrand

Product Related Attributes.[14-36] Brand of the item.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMpn

Manufacturer Part Number (MPN) of the item.

Returns
TypeDescription
string

hasMpn

clearMpn

setMpn

Manufacturer Part Number (MPN) of the item.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGtin

Global Trade Item Number (GTIN) of the item.

Returns
TypeDescription
string

hasGtin

clearGtin

setGtin

Global Trade Item Number (GTIN) of the item.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProductTypes

Categories of the item (formatted as in products data specification).

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setProductTypes

Categories of the item (formatted as in products data specification).

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getGoogleProductCategory

Google's category of the item (see Google product taxonomy). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.

Returns
TypeDescription
string

hasGoogleProductCategory

clearGoogleProductCategory

setGoogleProductCategory

Google's category of the item (see Google product taxonomy). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAdult

Set to true if the item is targeted towards adults.

Returns
TypeDescription
bool

hasAdult

clearAdult

setAdult

Set to true if the item is targeted towards adults.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getMultipack

The number of identical products in a merchant-defined multipack.

Returns
TypeDescription
int|string

hasMultipack

clearMultipack

setMultipack

The number of identical products in a merchant-defined multipack.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getIsBundle

Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.

Returns
TypeDescription
bool

hasIsBundle

clearIsBundle

setIsBundle

Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getAgeGroup

Target age group of the item.

Returns
TypeDescription
string

hasAgeGroup

clearAgeGroup

setAgeGroup

Target age group of the item.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getColor

Color of the item.

Returns
TypeDescription
string

hasColor

clearColor

setColor

Color of the item.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGender

Target gender of the item.

Returns
TypeDescription
string

hasGender

clearGender

setGender

Target gender of the item.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMaterial

The material of which the item is made.

Returns
TypeDescription
string

hasMaterial

clearMaterial

setMaterial

The material of which the item is made.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPattern

The item's pattern (e.g. polka dots).

Returns
TypeDescription
string

hasPattern

clearPattern

setPattern

The item's pattern (e.g. polka dots).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSize

Size of the item. Only one value is allowed. For variants with different sizes, insert a separate product for each size with the same itemGroupId value (see [https://support.google.com/merchants/answer/6324492](size definition)).

Returns
TypeDescription
string

hasSize

clearSize

setSize

Size of the item. Only one value is allowed. For variants with different sizes, insert a separate product for each size with the same itemGroupId value (see [https://support.google.com/merchants/answer/6324492](size definition)).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSizeSystem

System in which the size is specified. Recommended for apparel items.

Returns
TypeDescription
string

hasSizeSystem

clearSizeSystem

setSizeSystem

System in which the size is specified. Recommended for apparel items.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSizeTypes

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see [https://support.google.com/merchants/answer/6324497](size type)).

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSizeTypes

The cut of the item. It can be used to represent combined size types for apparel items. Maximum two of size types can be provided (see [https://support.google.com/merchants/answer/6324497](size type)).

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getItemGroupId

Shared identifier for all variants of the same product.

Returns
TypeDescription
string

hasItemGroupId

clearItemGroupId

setItemGroupId

Shared identifier for all variants of the same product.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProductDetails

Technical specification or additional product details.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setProductDetails

Technical specification or additional product details.

Parameter
NameDescription
var array<Google\Shopping\Css\V1\ProductDetail>
Returns
TypeDescription
$this

getProductWeight

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

Returns
TypeDescription
Google\Shopping\Css\V1\ProductWeight|null

hasProductWeight

clearProductWeight

setProductWeight

The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive).

Parameter
NameDescription
var Google\Shopping\Css\V1\ProductWeight
Returns
TypeDescription
$this

getProductLength

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

Returns
TypeDescription
Google\Shopping\Css\V1\ProductDimension|null

hasProductLength

clearProductLength

setProductLength

The length of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

Parameter
NameDescription
var Google\Shopping\Css\V1\ProductDimension
Returns
TypeDescription
$this

getProductWidth

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

Returns
TypeDescription
Google\Shopping\Css\V1\ProductDimension|null

hasProductWidth

clearProductWidth

setProductWidth

The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

Parameter
NameDescription
var Google\Shopping\Css\V1\ProductDimension
Returns
TypeDescription
$this

getProductHeight

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

Returns
TypeDescription
Google\Shopping\Css\V1\ProductDimension|null

hasProductHeight

clearProductHeight

setProductHeight

The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive).

Parameter
NameDescription
var Google\Shopping\Css\V1\ProductDimension
Returns
TypeDescription
$this

getProductHighlights

Bullet points describing the most relevant highlights of a product.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setProductHighlights

Bullet points describing the most relevant highlights of a product.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getCertifications

A list of certificates claimed by the CSS for the given product.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCertifications

A list of certificates claimed by the CSS for the given product.

Parameter
NameDescription
var array<Google\Shopping\Css\V1\Certification>
Returns
TypeDescription
$this

getExpirationDate

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future.

Note: It may take 2+ days from the expiration date for the item to actually get deleted.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpirationDate

clearExpirationDate

setExpirationDate

Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future.

Note: It may take 2+ days from the expiration date for the item to actually get deleted.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getIncludedDestinations

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setIncludedDestinations

The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in excludedDestinations.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getExcludedDestinations

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setExcludedDestinations

The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center).

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getPause

Publication of this item will be temporarily paused.

Returns
TypeDescription
string

hasPause

clearPause

setPause

Publication of this item will be temporarily paused.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomLabel0

Custom label 0 for custom grouping of items in a Shopping campaign.

Returns
TypeDescription
string

hasCustomLabel0

clearCustomLabel0

setCustomLabel0

Custom label 0 for custom grouping of items in a Shopping campaign.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomLabel1

Custom label 1 for custom grouping of items in a Shopping campaign.

Returns
TypeDescription
string

hasCustomLabel1

clearCustomLabel1

setCustomLabel1

Custom label 1 for custom grouping of items in a Shopping campaign.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomLabel2

Custom label 2 for custom grouping of items in a Shopping campaign.

Returns
TypeDescription
string

hasCustomLabel2

clearCustomLabel2

setCustomLabel2

Custom label 2 for custom grouping of items in a Shopping campaign.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomLabel3

Custom label 3 for custom grouping of items in a Shopping campaign.

Returns
TypeDescription
string

hasCustomLabel3

clearCustomLabel3

setCustomLabel3

Custom label 3 for custom grouping of items in a Shopping campaign.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomLabel4

Custom label 4 for custom grouping of items in a Shopping campaign.

Returns
TypeDescription
string

hasCustomLabel4

clearCustomLabel4

setCustomLabel4

Custom label 4 for custom grouping of items in a Shopping campaign.

Parameter
NameDescription
var string
Returns
TypeDescription
$this