Types for Google Shopping Type API¶
- class google.shopping.type.types.Channel(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageChannel of a product.
Channel is used to distinguish between online and local products.
- class ChannelEnum(value)[source]¶
Bases:
proto.enums.EnumChannel values.
- Values:
- CHANNEL_ENUM_UNSPECIFIED (0):
Not specified.
- ONLINE (1):
Online product.
- LOCAL (2):
Local product.
- class google.shopping.type.types.CustomAttribute(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageA message that represents custom attributes. Exactly one of
valueorgroup_valuesmust not be empty.- value¶
The value of the attribute. If
valueis not empty,group_valuesmust be empty.This field is a member of oneof
_value.- Type
- group_values¶
Subattributes within this attribute group. If
group_valuesis not empty,valuemust be empty.- Type
MutableSequence[google.shopping.type.types.CustomAttribute]
- class google.shopping.type.types.Destination(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageDestinations available for a product.
Destinations are used in Merchant Center to allow you to control where the products from your data feed should be displayed.
- class DestinationEnum(value)[source]¶
Bases:
proto.enums.EnumDestination values.
- Values:
- DESTINATION_ENUM_UNSPECIFIED (0):
Not specified.
- SHOPPING_ADS (1):
- DISPLAY_ADS (2):
- LOCAL_INVENTORY_ADS (3):
- FREE_LISTINGS (4):
- FREE_LOCAL_LISTINGS (5):
- YOUTUBE_SHOPPING (6):
- class google.shopping.type.types.Price(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageThe price represented as a number and currency.
- class google.shopping.type.types.ReportingContext(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageReporting contexts that your account and product issues apply to.
Reporting contexts are groups of surfaces and formats for product results on Google. They can represent the entire destination (for example, Shopping ads) or a subset of formats within a destination (for example, Demand Gen ads).
- class ReportingContextEnum(value)[source]¶
Bases:
proto.enums.EnumReporting context values.
- Values:
- REPORTING_CONTEXT_ENUM_UNSPECIFIED (0):
Not specified.
- SHOPPING_ADS (1):
- DISCOVERY_ADS (2):
Deprecated: Use
DEMAND_GEN_ADSinstead. Discovery and Demand Gen ads.- DEMAND_GEN_ADS (13):
- DEMAND_GEN_ADS_DISCOVER_SURFACE (14):
- VIDEO_ADS (3):
- DISPLAY_ADS (4):
- LOCAL_INVENTORY_ADS (5):
- VEHICLE_INVENTORY_ADS (6):
- FREE_LISTINGS (7):
- FREE_LOCAL_LISTINGS (8):
- FREE_LOCAL_VEHICLE_LISTINGS (9):
- YOUTUBE_SHOPPING (10):
- CLOUD_RETAIL (11):
- LOCAL_CLOUD_RETAIL (12):
- class google.shopping.type.types.Weight(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.MessageThe weight represented as the value in string and the unit.
- amount_micros¶
Required. The weight represented as a number in micros (1 million micros is an equivalent to one’s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
This field is a member of oneof
_amount_micros.- Type
- unit¶
Required. The weight unit. Acceptable values are: kg and lb
- class WeightUnit(value)[source]¶
Bases:
proto.enums.EnumThe weight unit.
- Values:
- WEIGHT_UNIT_UNSPECIFIED (0):
unit unspecified
- POUND (1):
lb unit.
- KILOGRAM (2):
kg unit.