Documentation ¶
Overview ¶
Package content provides access to the Content API for Shopping.
See https://developers.google.com/shopping-content/v2/
Usage example:
import "code.google.com/p/google-api-go-client/content/v2" ... contentService, err := content.New(oauthHttpClient)
Index ¶
- Constants
- type Account
- type AccountAdwordsLink
- type AccountShipping
- type AccountShippingCarrierRate
- type AccountShippingCondition
- type AccountShippingLocationGroup
- type AccountShippingRateTable
- type AccountShippingRateTableCell
- type AccountShippingShippingService
- type AccountShippingShippingServiceCalculationMethod
- type AccountStatus
- type AccountStatusDataQualityIssue
- type AccountStatusExampleItem
- type AccountTax
- type AccountTaxTaxRule
- type AccountUser
- type AccountsCustomBatchRequest
- type AccountsCustomBatchRequestEntry
- type AccountsCustomBatchResponse
- type AccountsCustomBatchResponseEntry
- type AccountsCustombatchCall
- type AccountsDeleteCall
- type AccountsGetCall
- type AccountsInsertCall
- type AccountsListCall
- type AccountsListResponse
- type AccountsPatchCall
- type AccountsService
- func (r *AccountsService) Custombatch(accountscustombatchrequest *AccountsCustomBatchRequest) *AccountsCustombatchCall
- func (r *AccountsService) Delete(merchantId uint64, accountId uint64) *AccountsDeleteCall
- func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetCall
- func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsInsertCall
- func (r *AccountsService) List(merchantId uint64) *AccountsListCall
- func (r *AccountsService) Patch(merchantId uint64, accountId uint64, account *Account) *AccountsPatchCall
- func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *Account) *AccountsUpdateCall
- type AccountsUpdateCall
- type AccountshippingPatchCall
- type AccountshippingService
- type AccountstatusesCustomBatchRequest
- type AccountstatusesCustomBatchRequestEntry
- type AccountstatusesCustomBatchResponse
- type AccountstatusesCustomBatchResponseEntry
- type AccountstatusesCustombatchCall
- type AccountstatusesGetCall
- type AccountstatusesListCall
- type AccountstatusesListResponse
- type AccountstatusesService
- func (r *AccountstatusesService) Custombatch(accountstatusescustombatchrequest *AccountstatusesCustomBatchRequest) *AccountstatusesCustombatchCall
- func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *AccountstatusesGetCall
- func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCall
- type AccounttaxPatchCall
- type AccounttaxService
- type Datafeed
- type DatafeedFetchSchedule
- type DatafeedFormat
- type DatafeedStatus
- type DatafeedStatusError
- type DatafeedStatusExample
- type DatafeedsBatchCall
- type DatafeedsBatchRequest
- type DatafeedsBatchRequestEntry
- type DatafeedsBatchResponse
- type DatafeedsBatchResponseEntry
- type DatafeedsCustomBatchRequest
- type DatafeedsCustomBatchRequestEntry
- type DatafeedsCustomBatchResponse
- type DatafeedsCustomBatchResponseEntry
- type DatafeedsCustombatchCall
- type DatafeedsDeleteCall
- type DatafeedsGetCall
- type DatafeedsGetResponse
- type DatafeedsInsertCall
- type DatafeedsInsertRequest
- type DatafeedsInsertResponse
- type DatafeedsListCall
- type DatafeedsListResponse
- type DatafeedsPatchCall
- type DatafeedsService
- func (r *DatafeedsService) Batch(datafeedsbatchrequest *DatafeedsBatchRequest) *DatafeedsBatchCall
- func (r *DatafeedsService) Custombatch(datafeedscustombatchrequest *DatafeedsCustomBatchRequest) *DatafeedsCustombatchCall
- func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *DatafeedsDeleteCall
- func (r *DatafeedsService) Get(merchantId uint64, datafeedId uint64) *DatafeedsGetCall
- func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *DatafeedsInsertCall
- func (r *DatafeedsService) List(merchantId uint64) *DatafeedsListCall
- func (r *DatafeedsService) Patch(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsPatchCall
- func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsUpdateCall
- type DatafeedsUpdateCall
- type DatafeedsUpdateRequest
- type DatafeedsUpdateResponse
- type DatafeedstatusesBatchCall
- type DatafeedstatusesBatchRequest
- type DatafeedstatusesBatchRequestEntry
- type DatafeedstatusesBatchResponse
- type DatafeedstatusesBatchResponseEntry
- type DatafeedstatusesCustomBatchRequest
- type DatafeedstatusesCustomBatchRequestEntry
- type DatafeedstatusesCustomBatchResponse
- type DatafeedstatusesCustomBatchResponseEntry
- type DatafeedstatusesCustombatchCall
- type DatafeedstatusesGetCall
- type DatafeedstatusesGetResponse
- type DatafeedstatusesListCall
- type DatafeedstatusesListResponse
- type DatafeedstatusesService
- func (r *DatafeedstatusesService) Batch(datafeedstatusesbatchrequest *DatafeedstatusesBatchRequest) *DatafeedstatusesBatchCall
- func (r *DatafeedstatusesService) Custombatch(datafeedstatusescustombatchrequest *DatafeedstatusesCustomBatchRequest) *DatafeedstatusesCustombatchCall
- func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *DatafeedstatusesGetCall
- func (r *DatafeedstatusesService) List(merchantId uint64) *DatafeedstatusesListCall
- type Error
- type Errors
- type Inventory
- type InventoryCustomBatchRequest
- type InventoryCustomBatchRequestEntry
- type InventoryCustomBatchResponse
- type InventoryCustomBatchResponseEntry
- type InventoryCustombatchCall
- type InventoryService
- type InventorySetCall
- type InventorySetRequest
- type InventorySetResponse
- type LoyaltyPoints
- type Price
- type Product
- type ProductCustomAttribute
- type ProductCustomGroup
- type ProductDestination
- type ProductInstallment
- type ProductShipping
- type ProductShippingWeight
- type ProductStatus
- type ProductStatusDataQualityIssue
- type ProductStatusDestinationStatus
- type ProductTax
- type ProductsCustomBatchRequest
- type ProductsCustomBatchRequestEntry
- type ProductsCustomBatchResponse
- type ProductsCustomBatchResponseEntry
- type ProductsCustombatchCall
- type ProductsDeleteCall
- type ProductsGetCall
- type ProductsInsertCall
- type ProductsListCall
- type ProductsListResponse
- type ProductsService
- func (r *ProductsService) Custombatch(productscustombatchrequest *ProductsCustomBatchRequest) *ProductsCustombatchCall
- func (r *ProductsService) Delete(merchantId uint64, productId string) *ProductsDeleteCall
- func (r *ProductsService) Get(merchantId uint64, productId string) *ProductsGetCall
- func (r *ProductsService) Insert(merchantId uint64, product *Product) *ProductsInsertCall
- func (r *ProductsService) List(merchantId uint64) *ProductsListCall
- type ProductstatusesCustomBatchRequest
- type ProductstatusesCustomBatchRequestEntry
- type ProductstatusesCustomBatchResponse
- type ProductstatusesCustomBatchResponseEntry
- type ProductstatusesCustombatchCall
- type ProductstatusesGetCall
- type ProductstatusesListCall
- type ProductstatusesListResponse
- type ProductstatusesService
- func (r *ProductstatusesService) Custombatch(productstatusescustombatchrequest *ProductstatusesCustomBatchRequest) *ProductstatusesCustombatchCall
- func (r *ProductstatusesService) Get(merchantId uint64, productId string) *ProductstatusesGetCall
- func (r *ProductstatusesService) List(merchantId uint64) *ProductstatusesListCall
- type Service
- type Weight
Constants ¶
const (
// Manage your product listings and accounts for Google Shopping
ContentScope = "https://www.googleapis.com/auth/content"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { // AdultContent: Indicates whether the merchant sells adult content. AdultContent bool `json:"adultContent,omitempty"` // AdwordsLinks: List of linked AdWords accounts. AdwordsLinks []*AccountAdwordsLink `json:"adwordsLinks,omitempty"` // Id: Merchant Center account ID. Id uint64 `json:"id,omitempty,string"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#account". Kind string `json:"kind,omitempty"` // Name: Display name for the account. Name string `json:"name,omitempty"` // ReviewsUrl: URL for individual seller reviews, i.e., reviews for each // child account. ReviewsUrl string `json:"reviewsUrl,omitempty"` // SellerId: Client-specific, locally-unique, internal ID for the child // account. SellerId string `json:"sellerId,omitempty"` // Users: Users with access to the account. Every account (except for // subaccounts) must have at least one admin user. Users []*AccountUser `json:"users,omitempty"` // WebsiteUrl: The merchant's website. WebsiteUrl string `json:"websiteUrl,omitempty"` }
type AccountAdwordsLink ¶
type AccountShipping ¶
type AccountShipping struct { // AccountId: The ID of the account to which these account shipping // settings belong. AccountId uint64 `json:"accountId,omitempty,string"` // CarrierRates: Carrier-based shipping calculations. CarrierRates []*AccountShippingCarrierRate `json:"carrierRates,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountShipping". Kind string `json:"kind,omitempty"` // LocationGroups: Location groups for shipping. LocationGroups []*AccountShippingLocationGroup `json:"locationGroups,omitempty"` // RateTables: Rate tables definitions. RateTables []*AccountShippingRateTable `json:"rateTables,omitempty"` // Services: Shipping services describing shipping fees calculation. Services []*AccountShippingShippingService `json:"services,omitempty"` }
type AccountShippingCarrierRate ¶
type AccountShippingCarrierRate struct { // Carrier: The carrier that is responsible for the shipping, such as // "UPS", "FedEx", or "USPS". Carrier string `json:"carrier,omitempty"` // CarrierService: The carrier service, such as "Ground" or "2Day". CarrierService string `json:"carrierService,omitempty"` // ModifierFlatRate: Additive shipping rate modifier. ModifierFlatRate *Price `json:"modifierFlatRate,omitempty"` // ModifierPercent: Multiplicative shipping rate modifier in percent. // Represented as a floating point number without the percentage // character. ModifierPercent string `json:"modifierPercent,omitempty"` // Name: The name of the carrier rate. Name string `json:"name,omitempty"` // SaleCountry: Sale country for which this carrier rate is valid, // represented as an ISO_3166-1 Alpha-2 code. SaleCountry string `json:"saleCountry,omitempty"` // ShippingOrigin: Shipping origin represented as a postal code. ShippingOrigin string `json:"shippingOrigin,omitempty"` }
type AccountShippingCondition ¶
type AccountShippingCondition struct { // DeliveryLocationGroup: Delivery location in terms of a location group // name. A location group with this name must be specified among // location groups. DeliveryLocationGroup string `json:"deliveryLocationGroup,omitempty"` // DeliveryLocationId: Delivery location in terms of a location ID. Can // be used to represent administrative areas, smaller country // subdivisions, or cities. DeliveryLocationId int64 `json:"deliveryLocationId,omitempty,string"` // DeliveryPostalCode: Delivery location in terms of a postal code // range. DeliveryPostalCode string `json:"deliveryPostalCode,omitempty"` // PriceMax: Maximum shipping price. Forms an interval between the // maximum of smaller prices (exclusive) and this price (inclusive). PriceMax *Price `json:"priceMax,omitempty"` // ShippingLabel: Shipping label of the product. The products with the // label are matched. ShippingLabel string `json:"shippingLabel,omitempty"` // WeightMax: Maximum shipping weight. Forms an interval between the // maximum of smaller weight (exclusive) and this weight (inclusive). WeightMax *Weight `json:"weightMax,omitempty"` }
type AccountShippingLocationGroup ¶
type AccountShippingLocationGroup struct { // Country: The country in which this location group is, represented as // ISO_3166-1 Alpha-2 code. Country string `json:"country,omitempty"` // LocationIds: A location ID (also called criteria ID) representing // administrative LocationIds googleapi.Int64s `json:"locationIds,omitempty"` // Name: The name of the location group. Name string `json:"name,omitempty"` // PostalCodes: A postal code range, that can be either: // - A single // postal code (e.g. 12345) // - A postal code prefix followed by a star // (e.g. 1234*) // - A range of postal codes, separated by a dash (e.g. // 12340-12359) // - A range of postal codes prefixes (e.g. 1234*-1235*). // Prefixes must be of the same length (e.g. 12*-2* is invalid). PostalCodes []string `json:"postalCodes,omitempty"` }
type AccountShippingRateTable ¶
type AccountShippingRateTable struct { // Contents: One-dimensional table cells define one condition along the // same dimension.! Bi-dimensional table cells use two dimension with // respectively M and N distinct values and must contain exactly M * N // cells with distinct conditions (for each possible value pairs). Contents []*AccountShippingRateTableCell `json:"contents,omitempty"` // Name: The name of the rate table. Name string `json:"name,omitempty"` // SaleCountry: Sale country for which this table is valid, represented // as an ISO_3166-1 Alpha-2 code. SaleCountry string `json:"saleCountry,omitempty"` }
type AccountShippingRateTableCell ¶
type AccountShippingRateTableCell struct { // Condition: Conditions for which the cell is valid. All cells in a // table must use the same dimension or pair of dimensions among price, // weight, shipping_label or delivery location. If the cell condition is // not specified, it will act as a catch-all and match all the elements // that are not matched by other cells in this dimension. Condition *AccountShippingCondition `json:"condition,omitempty"` // Rate: The rate applicable if the cell conditions are matched. Rate *Price `json:"rate,omitempty"` }
type AccountShippingShippingService ¶
type AccountShippingShippingService struct { // Active: Whether the shipping service is available. Defaults to true // if not specified. Active bool `json:"active,omitempty"` // CalculationMethod: Calculation method for the "simple" case that // needs no rules. CalculationMethod *AccountShippingShippingServiceCalculationMethod `json:"calculationMethod,omitempty"` // Name: The name of this shipping service. Name string `json:"name,omitempty"` // SaleCountry: Sale country for which this service can be used, // represented as an ISO_3166-1 Alpha-2 code. SaleCountry string `json:"saleCountry,omitempty"` }
type AccountShippingShippingServiceCalculationMethod ¶
type AccountShippingShippingServiceCalculationMethod struct { // CarrierRate: Name of the carrier rate to use for the calculation. CarrierRate string `json:"carrierRate,omitempty"` // FlatRate: Fixed price shipping, represented as a floating point // number associated with a currency. FlatRate *Price `json:"flatRate,omitempty"` // PercentageRate: Percentage of the price, represented as a floating // point number without the percentage character. PercentageRate string `json:"percentageRate,omitempty"` // RateTable: Name of the rate table to use for the calculation. RateTable string `json:"rateTable,omitempty"` }
type AccountStatus ¶
type AccountStatus struct { // AccountId: The ID of the account for which the status is reported. AccountId string `json:"accountId,omitempty"` // DataQualityIssues: A list of data quality issues. DataQualityIssues []*AccountStatusDataQualityIssue `json:"dataQualityIssues,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountStatus". Kind string `json:"kind,omitempty"` }
type AccountStatusDataQualityIssue ¶
type AccountStatusDataQualityIssue struct { // Country: Country for which this issue is reported. Country string `json:"country,omitempty"` // DisplayedValue: Actual value displayed on the landing page. DisplayedValue string `json:"displayedValue,omitempty"` // ExampleItems: Example items featuring the issue. ExampleItems []*AccountStatusExampleItem `json:"exampleItems,omitempty"` // Id: Issue identifier. Id string `json:"id,omitempty"` // LastChecked: Last time the account was checked for this issue. LastChecked string `json:"lastChecked,omitempty"` // NumItems: Number of items in the account found to have the said // issue. NumItems int64 `json:"numItems,omitempty"` // Severity: Severity of the problem. Severity string `json:"severity,omitempty"` // SubmittedValue: Submitted value that causes the issue. SubmittedValue string `json:"submittedValue,omitempty"` }
type AccountStatusExampleItem ¶
type AccountStatusExampleItem struct { // ItemId: Unique item ID as specified in the uploaded product data. ItemId string `json:"itemId,omitempty"` // Link: Landing page of the item. Link string `json:"link,omitempty"` // SubmittedValue: The item value that was submitted. SubmittedValue string `json:"submittedValue,omitempty"` // Title: Title of the item. Title string `json:"title,omitempty"` // ValueOnLandingPage: The actual value on the landing page. ValueOnLandingPage string `json:"valueOnLandingPage,omitempty"` }
type AccountTax ¶
type AccountTax struct { // AccountId: The ID of the account to which these account tax settings // belong. AccountId uint64 `json:"accountId,omitempty,string"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountTax". Kind string `json:"kind,omitempty"` // Rules: Tax rules. Rules []*AccountTaxTaxRule `json:"rules,omitempty"` }
type AccountTaxTaxRule ¶
type AccountTaxTaxRule struct { // Country: Country code in which tax is applicable. Country string `json:"country,omitempty"` // LocationId: State (or province) is which the tax is applicable, // described by its location id (also called criteria id). LocationId uint64 `json:"locationId,omitempty,string"` // RatePercent: Explicit tax rate in percent, represented as a floating // point number without the percentage character. Must not be negative. RatePercent string `json:"ratePercent,omitempty"` // ShippingTaxed: If true, shipping charges are also taxed. ShippingTaxed bool `json:"shippingTaxed,omitempty"` // UseGlobalRate: Whether the tax rate is taken from a global tax table // or specified explicitly. UseGlobalRate bool `json:"useGlobalRate,omitempty"` }
type AccountUser ¶
type AccountsCustomBatchRequest ¶
type AccountsCustomBatchRequest struct {
Entries []*AccountsCustomBatchRequestEntry `json:"entries,omitempty"`
}
type AccountsCustomBatchRequestEntry ¶
type AccountsCustomBatchRequestEntry struct { // Account: The account to create or update. Only defined if the method // is insert or update. Account *Account `json:"account,omitempty"` // AccountId: The ID of the account to get or delete. Only defined if // the method is get or delete. AccountId uint64 `json:"accountId,omitempty,string"` // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method (get, insert, update, or delete). Method string `json:"method,omitempty"` }
type AccountsCustomBatchResponse ¶
type AccountsCustomBatchResponse struct { Entries []*AccountsCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountsCustomBatchResponse". Kind string `json:"kind,omitempty"` }
type AccountsCustomBatchResponseEntry ¶
type AccountsCustomBatchResponseEntry struct { // Account: The retrieved, created, or updated account. Not defined if // the method was delete. Account *Account `json:"account,omitempty"` // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountsCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` }
type AccountsCustombatchCall ¶
type AccountsCustombatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustombatchCall) Do ¶
func (c *AccountsCustombatchCall) Do() (*AccountsCustomBatchResponse, error)
type AccountsDeleteCall ¶
type AccountsDeleteCall struct {
// contains filtered or unexported fields
}
func (*AccountsDeleteCall) Do ¶
func (c *AccountsDeleteCall) Do() error
type AccountsGetCall ¶
type AccountsGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsGetCall) Do ¶
func (c *AccountsGetCall) Do() (*Account, error)
type AccountsInsertCall ¶
type AccountsInsertCall struct {
// contains filtered or unexported fields
}
func (*AccountsInsertCall) Do ¶
func (c *AccountsInsertCall) Do() (*Account, error)
type AccountsListCall ¶
type AccountsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsListCall) Do ¶
func (c *AccountsListCall) Do() (*AccountsListResponse, error)
func (*AccountsListCall) MaxResults ¶
func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of accounts to return in the response, used for paging.
func (*AccountsListCall) PageToken ¶
func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
type AccountsListResponse ¶
type AccountsPatchCall ¶
type AccountsPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsPatchCall) Do ¶
func (c *AccountsPatchCall) Do() (*Account, error)
type AccountsService ¶
type AccountsService struct {
// contains filtered or unexported fields
}
func NewAccountsService ¶
func NewAccountsService(s *Service) *AccountsService
func (*AccountsService) Custombatch ¶
func (r *AccountsService) Custombatch(accountscustombatchrequest *AccountsCustomBatchRequest) *AccountsCustombatchCall
Custombatch: Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.
func (*AccountsService) Delete ¶
func (r *AccountsService) Delete(merchantId uint64, accountId uint64) *AccountsDeleteCall
Delete: Deletes a Merchant Center sub-account.
func (*AccountsService) Get ¶
func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetCall
Get: Retrieves a Merchant Center account.
func (*AccountsService) Insert ¶
func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsInsertCall
Insert: Creates a Merchant Center sub-account.
func (*AccountsService) List ¶
func (r *AccountsService) List(merchantId uint64) *AccountsListCall
List: Lists the sub-accounts in your Merchant Center account.
func (*AccountsService) Patch ¶
func (r *AccountsService) Patch(merchantId uint64, accountId uint64, account *Account) *AccountsPatchCall
Patch: Updates a Merchant Center account. This method supports patch semantics.
func (*AccountsService) Update ¶
func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *Account) *AccountsUpdateCall
Update: Updates a Merchant Center account.
type AccountsUpdateCall ¶
type AccountsUpdateCall struct {
// contains filtered or unexported fields
}
func (*AccountsUpdateCall) Do ¶
func (c *AccountsUpdateCall) Do() (*Account, error)
type AccountshippingPatchCall ¶
type AccountshippingPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountshippingPatchCall) Do ¶
func (c *AccountshippingPatchCall) Do() (*AccountShipping, error)
type AccountshippingService ¶
type AccountshippingService struct {
// contains filtered or unexported fields
}
func NewAccountshippingService ¶
func NewAccountshippingService(s *Service) *AccountshippingService
func (*AccountshippingService) Patch ¶
func (r *AccountshippingService) Patch(merchantId uint64, accountId uint64, accountshipping *AccountShipping) *AccountshippingPatchCall
Patch: Updates the shipping settings of the account. This method supports patch semantics.
type AccountstatusesCustomBatchRequest ¶
type AccountstatusesCustomBatchRequest struct {
Entries []*AccountstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
}
type AccountstatusesCustomBatchRequestEntry ¶
type AccountstatusesCustomBatchRequestEntry struct { // AccountId: The ID of the (sub-)account whose status to get. AccountId uint64 `json:"accountId,omitempty,string"` // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method (get). Method string `json:"method,omitempty"` }
type AccountstatusesCustomBatchResponse ¶
type AccountstatusesCustomBatchResponse struct { Entries []*AccountstatusesCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountstatusesCustomBatchResponse". Kind string `json:"kind,omitempty"` }
type AccountstatusesCustomBatchResponseEntry ¶
type AccountstatusesCustomBatchResponseEntry struct { // AccountStatus: The requested account status. Defined if and only if // the request was successful. AccountStatus *AccountStatus `json:"accountStatus,omitempty"` // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` }
type AccountstatusesCustombatchCall ¶
type AccountstatusesCustombatchCall struct {
// contains filtered or unexported fields
}
func (*AccountstatusesCustombatchCall) Do ¶
func (c *AccountstatusesCustombatchCall) Do() (*AccountstatusesCustomBatchResponse, error)
type AccountstatusesGetCall ¶
type AccountstatusesGetCall struct {
// contains filtered or unexported fields
}
func (*AccountstatusesGetCall) Do ¶
func (c *AccountstatusesGetCall) Do() (*AccountStatus, error)
type AccountstatusesListCall ¶
type AccountstatusesListCall struct {
// contains filtered or unexported fields
}
func (*AccountstatusesListCall) Do ¶
func (c *AccountstatusesListCall) Do() (*AccountstatusesListResponse, error)
func (*AccountstatusesListCall) MaxResults ¶
func (c *AccountstatusesListCall) MaxResults(maxResults int64) *AccountstatusesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of account statuses to return in the response, used for paging.
func (*AccountstatusesListCall) PageToken ¶
func (c *AccountstatusesListCall) PageToken(pageToken string) *AccountstatusesListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
type AccountstatusesListResponse ¶
type AccountstatusesListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountstatusesListResponse". Kind string `json:"kind,omitempty"` NextPageToken string `json:"nextPageToken,omitempty"` Resources []*AccountStatus `json:"resources,omitempty"` }
type AccountstatusesService ¶
type AccountstatusesService struct {
// contains filtered or unexported fields
}
func NewAccountstatusesService ¶
func NewAccountstatusesService(s *Service) *AccountstatusesService
func (*AccountstatusesService) Custombatch ¶
func (r *AccountstatusesService) Custombatch(accountstatusescustombatchrequest *AccountstatusesCustomBatchRequest) *AccountstatusesCustombatchCall
Custombatch:
func (*AccountstatusesService) Get ¶
func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *AccountstatusesGetCall
Get: Retrieves the status of a Merchant Center account.
func (*AccountstatusesService) List ¶
func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCall
List: Lists the statuses of the sub-accounts in your Merchant Center account.
type AccounttaxPatchCall ¶
type AccounttaxPatchCall struct {
// contains filtered or unexported fields
}
func (*AccounttaxPatchCall) Do ¶
func (c *AccounttaxPatchCall) Do() (*AccountTax, error)
type AccounttaxService ¶
type AccounttaxService struct {
// contains filtered or unexported fields
}
func NewAccounttaxService ¶
func NewAccounttaxService(s *Service) *AccounttaxService
func (*AccounttaxService) Patch ¶
func (r *AccounttaxService) Patch(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxPatchCall
Patch: Updates the tax settings of the account. This method supports patch semantics.
type Datafeed ¶
type Datafeed struct { // AttributeLanguage: The two-letter ISO 639-1 language in which the // attributes are defined in the data feed. AttributeLanguage string `json:"attributeLanguage,omitempty"` // ContentLanguage: The two-letter ISO 639-1 language of the items in // the feed. ContentLanguage string `json:"contentLanguage,omitempty"` // ContentType: The type of data feed. ContentType string `json:"contentType,omitempty"` // FetchSchedule: Fetch schedule for the feed file. FetchSchedule *DatafeedFetchSchedule `json:"fetchSchedule,omitempty"` // FileName: The filename of the feed. All feeds must have a unique file // name. FileName string `json:"fileName,omitempty"` // Format: Format of the feed file. Format *DatafeedFormat `json:"format,omitempty"` // Id: The ID of the data feed. Id int64 `json:"id,omitempty,string"` // IntendedDestinations: The list of intended destinations (corresponds // to checked check boxes in Merchant Center). IntendedDestinations []string `json:"intendedDestinations,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeed". Kind string `json:"kind,omitempty"` // Name: A descriptive name of the data feed. Name string `json:"name,omitempty"` // TargetCountry: The two-letter ISO 3166 country where the items in the // feed will be included in the search index. TargetCountry string `json:"targetCountry,omitempty"` }
type DatafeedFetchSchedule ¶
type DatafeedFetchSchedule struct { // DayOfMonth: The day of the month the feed file should be fetched // (1-31). DayOfMonth int64 `json:"dayOfMonth,omitempty"` // FetchUrl: The URL where the feed file can be fetched. Google Merchant // Center will support automatic scheduled uploads using the HTTP, // HTTPS, FTP, or SFTP protocols, so the value will need to be a valid // link using one of those four protocols. FetchUrl string `json:"fetchUrl,omitempty"` // Hour: The hour of the day the feed file should be fetched (0-24). Hour int64 `json:"hour,omitempty"` // Password: An optional password for fetch_url. Password string `json:"password,omitempty"` // TimeZone: Time zone used for schedule. UTC by default. E.g., // "America/Los_Angeles". TimeZone string `json:"timeZone,omitempty"` // Username: An optional user name for fetch_url. Username string `json:"username,omitempty"` // Weekday: The day of the week the feed file should be fetched. Weekday string `json:"weekday,omitempty"` }
type DatafeedFormat ¶
type DatafeedFormat struct { // ColumnDelimiter: Delimiter for the separation of values in a // delimiter-separated values feed. If not specified, the delimiter will // be auto-detected. Ignored for non-DSV data feeds. ColumnDelimiter string `json:"columnDelimiter,omitempty"` // FileEncoding: Character encoding scheme of the data feed. If not // specified, the encoding will be auto-detected. FileEncoding string `json:"fileEncoding,omitempty"` // QuotingMode: Specifies how double quotes are interpreted. If not // specified, the mode will be auto-detected. Ignored for non-DSV data // feeds. QuotingMode string `json:"quotingMode,omitempty"` }
type DatafeedStatus ¶
type DatafeedStatus struct { // DatafeedId: The ID of the feed for which the status is reported. DatafeedId uint64 `json:"datafeedId,omitempty,string"` // Errors: The list of errors occurring in the feed. Errors []*DatafeedStatusError `json:"errors,omitempty"` // ItemsTotal: The number of items in the feed that were processed. ItemsTotal int64 `json:"itemsTotal,omitempty"` // ItemsValid: The number of items in the feed that were valid. ItemsValid int64 `json:"itemsValid,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeedStatus". Kind string `json:"kind,omitempty"` // ProcessingStatus: The processing status of the feed. ProcessingStatus string `json:"processingStatus,omitempty"` // Warnings: The list of errors occurring in the feed. Warnings []*DatafeedStatusError `json:"warnings,omitempty"` }
type DatafeedStatusError ¶
type DatafeedStatusError struct { // Code: The code of the error, e.g., "validation/invalid_value". Code string `json:"code,omitempty"` // Count: The number of occurrences of the error in the feed. Count int64 `json:"count,omitempty"` // Examples: A list of example occurrences of the error, grouped by // product. Examples []*DatafeedStatusExample `json:"examples,omitempty"` // Message: The error message, e.g., "Invalid price". Message string `json:"message,omitempty"` }
type DatafeedStatusExample ¶
type DatafeedStatusExample struct { // ItemId: The ID of the example item. ItemId string `json:"itemId,omitempty"` // LineNumber: Line number in the data feed where the example is found. LineNumber int64 `json:"lineNumber,omitempty"` // Value: The problematic value. Value string `json:"value,omitempty"` }
type DatafeedsBatchCall ¶
type DatafeedsBatchCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsBatchCall) Do ¶
func (c *DatafeedsBatchCall) Do() (*DatafeedsBatchResponse, error)
type DatafeedsBatchRequest ¶
type DatafeedsBatchRequest struct {
Entrys []*DatafeedsBatchRequestEntry `json:"entrys,omitempty"`
}
type DatafeedsBatchRequestEntry ¶
type DatafeedsBatchRequestEntry struct { BatchId int64 `json:"batchId,omitempty"` Datafeedsinsertrequest *DatafeedsInsertRequest `json:"datafeedsinsertrequest,omitempty"` Datafeedsupdaterequest *DatafeedsUpdateRequest `json:"datafeedsupdaterequest,omitempty"` MethodName string `json:"methodName,omitempty"` }
type DatafeedsBatchResponse ¶
type DatafeedsBatchResponse struct { Entrys []*DatafeedsBatchResponseEntry `json:"entrys,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeedsBatchResponse". Kind string `json:"kind,omitempty"` }
type DatafeedsBatchResponseEntry ¶
type DatafeedsBatchResponseEntry struct { BatchId int64 `json:"batchId,omitempty"` Datafeedsgetresponse *DatafeedsGetResponse `json:"datafeedsgetresponse,omitempty"` Datafeedsinsertresponse *DatafeedsInsertResponse `json:"datafeedsinsertresponse,omitempty"` Datafeedsupdateresponse *DatafeedsUpdateResponse `json:"datafeedsupdateresponse,omitempty"` }
type DatafeedsCustomBatchRequest ¶
type DatafeedsCustomBatchRequest struct {
Entries []*DatafeedsCustomBatchRequestEntry `json:"entries,omitempty"`
}
type DatafeedsCustomBatchRequestEntry ¶
type DatafeedsCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Datafeed: The data feed to insert. Datafeed *Datafeed `json:"datafeed,omitempty"` // DatafeedId: The ID of the data feed to get or delete. DatafeedId uint64 `json:"datafeedId,omitempty,string"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method (get, insert, update, or delete). Method string `json:"method,omitempty"` }
type DatafeedsCustomBatchResponse ¶
type DatafeedsCustomBatchResponse struct { Entries []*DatafeedsCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeedsCustomBatchResponse". Kind string `json:"kind,omitempty"` }
type DatafeedsCustomBatchResponseEntry ¶
type DatafeedsCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Datafeed: The requested data feed. Defined if and only if the request // was successful. Datafeed *Datafeed `json:"datafeed,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` }
type DatafeedsCustombatchCall ¶
type DatafeedsCustombatchCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsCustombatchCall) Do ¶
func (c *DatafeedsCustombatchCall) Do() (*DatafeedsCustomBatchResponse, error)
type DatafeedsDeleteCall ¶
type DatafeedsDeleteCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsDeleteCall) Do ¶
func (c *DatafeedsDeleteCall) Do() error
type DatafeedsGetCall ¶
type DatafeedsGetCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsGetCall) Do ¶
func (c *DatafeedsGetCall) Do() (*Datafeed, error)
type DatafeedsGetResponse ¶
type DatafeedsInsertCall ¶
type DatafeedsInsertCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsInsertCall) Do ¶
func (c *DatafeedsInsertCall) Do() (*Datafeed, error)
type DatafeedsInsertRequest ¶
type DatafeedsInsertRequest struct {
Resource *Datafeed `json:"resource,omitempty"`
}
type DatafeedsInsertResponse ¶
type DatafeedsListCall ¶
type DatafeedsListCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsListCall) Do ¶
func (c *DatafeedsListCall) Do() (*DatafeedsListResponse, error)
type DatafeedsListResponse ¶
type DatafeedsPatchCall ¶
type DatafeedsPatchCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsPatchCall) Do ¶
func (c *DatafeedsPatchCall) Do() (*Datafeed, error)
type DatafeedsService ¶
type DatafeedsService struct {
// contains filtered or unexported fields
}
func NewDatafeedsService ¶
func NewDatafeedsService(s *Service) *DatafeedsService
func (*DatafeedsService) Batch ¶
func (r *DatafeedsService) Batch(datafeedsbatchrequest *DatafeedsBatchRequest) *DatafeedsBatchCall
Batch:
func (*DatafeedsService) Custombatch ¶
func (r *DatafeedsService) Custombatch(datafeedscustombatchrequest *DatafeedsCustomBatchRequest) *DatafeedsCustombatchCall
Custombatch:
func (*DatafeedsService) Delete ¶
func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *DatafeedsDeleteCall
Delete: Deletes a datafeed from your Merchant Center account.
func (*DatafeedsService) Get ¶
func (r *DatafeedsService) Get(merchantId uint64, datafeedId uint64) *DatafeedsGetCall
Get: Retrieves a datafeed from your Merchant Center account.
func (*DatafeedsService) Insert ¶
func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *DatafeedsInsertCall
Insert: Registers a datafeed with your Merchant Center account.
func (*DatafeedsService) List ¶
func (r *DatafeedsService) List(merchantId uint64) *DatafeedsListCall
List: Lists the datafeeds in your Merchant Center account.
func (*DatafeedsService) Patch ¶
func (r *DatafeedsService) Patch(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsPatchCall
Patch: Updates a datafeed of your Merchant Center account. This method supports patch semantics.
func (*DatafeedsService) Update ¶
func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsUpdateCall
Update: Updates a datafeed of your Merchant Center account.
type DatafeedsUpdateCall ¶
type DatafeedsUpdateCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsUpdateCall) Do ¶
func (c *DatafeedsUpdateCall) Do() (*Datafeed, error)
type DatafeedsUpdateRequest ¶
type DatafeedsUpdateRequest struct {
Resource *Datafeed `json:"resource,omitempty"`
}
type DatafeedsUpdateResponse ¶
type DatafeedstatusesBatchCall ¶
type DatafeedstatusesBatchCall struct {
// contains filtered or unexported fields
}
func (*DatafeedstatusesBatchCall) Do ¶
func (c *DatafeedstatusesBatchCall) Do() (*DatafeedstatusesBatchResponse, error)
type DatafeedstatusesBatchRequest ¶
type DatafeedstatusesBatchRequest struct {
Entrys []*DatafeedstatusesBatchRequestEntry `json:"entrys,omitempty"`
}
type DatafeedstatusesBatchResponse ¶
type DatafeedstatusesBatchResponse struct { Entrys []*DatafeedstatusesBatchResponseEntry `json:"entrys,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeedstatusesBatchResponse". Kind string `json:"kind,omitempty"` }
type DatafeedstatusesBatchResponseEntry ¶
type DatafeedstatusesBatchResponseEntry struct { BatchId int64 `json:"batchId,omitempty"` Datafeedstatusesgetresponse *DatafeedstatusesGetResponse `json:"datafeedstatusesgetresponse,omitempty"` }
type DatafeedstatusesCustomBatchRequest ¶
type DatafeedstatusesCustomBatchRequest struct {
Entries []*DatafeedstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
}
type DatafeedstatusesCustomBatchRequestEntry ¶
type DatafeedstatusesCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // DatafeedId: The ID of the data feed to get or delete. DatafeedId uint64 `json:"datafeedId,omitempty,string"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method (get). Method string `json:"method,omitempty"` }
type DatafeedstatusesCustomBatchResponse ¶
type DatafeedstatusesCustomBatchResponse struct { Entries []*DatafeedstatusesCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeedstatusesCustomBatchResponse". Kind string `json:"kind,omitempty"` }
type DatafeedstatusesCustomBatchResponseEntry ¶
type DatafeedstatusesCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // DatafeedStatus: The requested data feed status. Defined if and only // if the request was successful. DatafeedStatus *DatafeedStatus `json:"datafeedStatus,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` }
type DatafeedstatusesCustombatchCall ¶
type DatafeedstatusesCustombatchCall struct {
// contains filtered or unexported fields
}
func (*DatafeedstatusesCustombatchCall) Do ¶
func (c *DatafeedstatusesCustombatchCall) Do() (*DatafeedstatusesCustomBatchResponse, error)
type DatafeedstatusesGetCall ¶
type DatafeedstatusesGetCall struct {
// contains filtered or unexported fields
}
func (*DatafeedstatusesGetCall) Do ¶
func (c *DatafeedstatusesGetCall) Do() (*DatafeedStatus, error)
type DatafeedstatusesGetResponse ¶
type DatafeedstatusesGetResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeedstatusesGetResponse". Kind string `json:"kind,omitempty"` Resource *DatafeedStatus `json:"resource,omitempty"` }
type DatafeedstatusesListCall ¶
type DatafeedstatusesListCall struct {
// contains filtered or unexported fields
}
func (*DatafeedstatusesListCall) Do ¶
func (c *DatafeedstatusesListCall) Do() (*DatafeedstatusesListResponse, error)
type DatafeedstatusesListResponse ¶
type DatafeedstatusesListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeedstatusesListResponse". Kind string `json:"kind,omitempty"` Resources []*DatafeedStatus `json:"resources,omitempty"` }
type DatafeedstatusesService ¶
type DatafeedstatusesService struct {
// contains filtered or unexported fields
}
func NewDatafeedstatusesService ¶
func NewDatafeedstatusesService(s *Service) *DatafeedstatusesService
func (*DatafeedstatusesService) Batch ¶
func (r *DatafeedstatusesService) Batch(datafeedstatusesbatchrequest *DatafeedstatusesBatchRequest) *DatafeedstatusesBatchCall
Batch:
func (*DatafeedstatusesService) Custombatch ¶
func (r *DatafeedstatusesService) Custombatch(datafeedstatusescustombatchrequest *DatafeedstatusesCustomBatchRequest) *DatafeedstatusesCustombatchCall
Custombatch:
func (*DatafeedstatusesService) Get ¶
func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *DatafeedstatusesGetCall
Get: Retrieves the status of a datafeed from your Merchant Center account.
func (*DatafeedstatusesService) List ¶
func (r *DatafeedstatusesService) List(merchantId uint64) *DatafeedstatusesListCall
List: Lists the statuses of the datafeeds in your Merchant Center account.
type Inventory ¶
type Inventory struct { // Availability: The availability of the product. Availability string `json:"availability,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#inventory". Kind string `json:"kind,omitempty"` // Price: The price of the product. Price *Price `json:"price,omitempty"` // Quantity: The quantity of the product. Must be equal to or greater // than zero. Supported only for local products. Quantity int64 `json:"quantity,omitempty"` // SalePrice: The sale price of the product. Mandatory if // sale_price_effective_date is defined. SalePrice *Price `json:"salePrice,omitempty"` // SalePriceEffectiveDate: A date range represented by a pair of ISO // 8601 dates separated by a space, comma, or slash. Both dates might be // specified as 'null' if undecided. SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"` }
type InventoryCustomBatchRequest ¶
type InventoryCustomBatchRequest struct {
Entries []*InventoryCustomBatchRequestEntry `json:"entries,omitempty"`
}
type InventoryCustomBatchRequestEntry ¶
type InventoryCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Inventory: Price and availability of the product. Inventory *Inventory `json:"inventory,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // ProductId: The ID of the product for which to update price and // availability. ProductId string `json:"productId,omitempty"` // StoreCode: The code of the store for which to update price and // availability. Use online to update price and availability of an // online product. StoreCode string `json:"storeCode,omitempty"` }
type InventoryCustomBatchResponse ¶
type InventoryCustomBatchResponse struct { Entries []*InventoryCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#inventoryCustomBatchResponse". Kind string `json:"kind,omitempty"` }
type InventoryCustomBatchResponseEntry ¶
type InventoryCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#inventoryCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` }
type InventoryCustombatchCall ¶
type InventoryCustombatchCall struct {
// contains filtered or unexported fields
}
func (*InventoryCustombatchCall) Do ¶
func (c *InventoryCustombatchCall) Do() (*InventoryCustomBatchResponse, error)
type InventoryService ¶
type InventoryService struct {
// contains filtered or unexported fields
}
func NewInventoryService ¶
func NewInventoryService(s *Service) *InventoryService
func (*InventoryService) Custombatch ¶
func (r *InventoryService) Custombatch(inventorycustombatchrequest *InventoryCustomBatchRequest) *InventoryCustombatchCall
Custombatch: Updates price and availability for multiple products or stores in a single request.
func (*InventoryService) Set ¶
func (r *InventoryService) Set(merchantId uint64, storeCode string, productId string, inventorysetrequest *InventorySetRequest) *InventorySetCall
Set: Updates price and availability of a product in your Merchant Center account.
type InventorySetCall ¶
type InventorySetCall struct {
// contains filtered or unexported fields
}
func (*InventorySetCall) Do ¶
func (c *InventorySetCall) Do() (*InventorySetResponse, error)
type InventorySetRequest ¶
type InventorySetRequest struct { // Availability: The availability of the product. Availability string `json:"availability,omitempty"` // Price: The price of the product. Price *Price `json:"price,omitempty"` // Quantity: The quantity of the product. Must be equal to or greater // than zero. Supported only for local products. Quantity int64 `json:"quantity,omitempty"` // SalePrice: The sale price of the product. Mandatory if // sale_price_effective_date is defined. SalePrice *Price `json:"salePrice,omitempty"` // SalePriceEffectiveDate: A date range represented by a pair of ISO // 8601 dates separated by a space, comma, or slash. Both dates might be // specified as 'null' if undecided. SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"` }
type InventorySetResponse ¶
type InventorySetResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#inventorySetResponse". Kind string `json:"kind,omitempty"` }
type LoyaltyPoints ¶
type LoyaltyPoints struct { // Name: Name of loyalty points program. It is recommended to limit the // name to 12 full-width characters or 24 Roman characters. Name string `json:"name,omitempty"` // PointsValue: The retailer's loyalty points in absolute value. PointsValue uint64 `json:"pointsValue,omitempty,string"` // Ratio: The ratio of a point when converted to currency. Google // assumes currency based on Merchant Center settings. If ratio is left // out, it defaults to 1.0. Ratio float64 `json:"ratio,omitempty"` }
type Product ¶
type Product struct { // AdditionalImageLinks: Additional URLs of images of the item. AdditionalImageLinks []string `json:"additionalImageLinks,omitempty"` // Adult: Set to true if the item is targeted towards adults. Adult bool `json:"adult,omitempty"` // AdwordsGrouping: Used to group items in an arbitrary way. Only for // CPA%, discouraged otherwise. AdwordsGrouping string `json:"adwordsGrouping,omitempty"` // AdwordsLabels: Similar to adwords_grouping, but only works on CPC. AdwordsLabels []string `json:"adwordsLabels,omitempty"` // AdwordsRedirect: Allows advertisers to override the item URL when the // product is shown within the context of Product Ads. AdwordsRedirect string `json:"adwordsRedirect,omitempty"` // AgeGroup: Target age group of the item. AgeGroup string `json:"ageGroup,omitempty"` // Availability: Availability status of the item. Availability string `json:"availability,omitempty"` // AvailabilityDate: The day a pre-ordered product becomes available for // delivery. AvailabilityDate string `json:"availabilityDate,omitempty"` // Brand: Brand of the item. Brand string `json:"brand,omitempty"` // Channel: The item's channel (online or local). Channel string `json:"channel,omitempty"` // Color: Color of the item. Color string `json:"color,omitempty"` // Condition: Condition or state of the item. Condition string `json:"condition,omitempty"` // ContentLanguage: The two-letter ISO 639-1 language code for the item. ContentLanguage string `json:"contentLanguage,omitempty"` // CustomAttributes: A list of custom (merchant-provided) attributes. CustomAttributes []*ProductCustomAttribute `json:"customAttributes,omitempty"` // CustomGroups: A list of custom (merchant-provided) custom attribute // groups. CustomGroups []*ProductCustomGroup `json:"customGroups,omitempty"` // CustomLabel0: Custom label 0 for custom grouping of items in a // Shopping campaign. CustomLabel0 string `json:"customLabel0,omitempty"` // CustomLabel1: Custom label 1 for custom grouping of items in a // Shopping campaign. CustomLabel1 string `json:"customLabel1,omitempty"` // CustomLabel2: Custom label 2 for custom grouping of items in a // Shopping campaign. CustomLabel2 string `json:"customLabel2,omitempty"` // CustomLabel3: Custom label 3 for custom grouping of items in a // Shopping campaign. CustomLabel3 string `json:"customLabel3,omitempty"` // CustomLabel4: Custom label 4 for custom grouping of items in a // Shopping campaign. CustomLabel4 string `json:"customLabel4,omitempty"` // Description: Description of the item. Description string `json:"description,omitempty"` // Destinations: Specifies the intended destinations for the product. Destinations []*ProductDestination `json:"destinations,omitempty"` // EnergyEfficiencyClass: The energy efficiency class as defined in EU // directive 2010/30/EU. EnergyEfficiencyClass string `json:"energyEfficiencyClass,omitempty"` // ExpirationDate: Date that an item will expire. ExpirationDate string `json:"expirationDate,omitempty"` // Gender: Target gender of the item. Gender string `json:"gender,omitempty"` // GoogleProductCategory: Google's category of the item. GoogleProductCategory string `json:"googleProductCategory,omitempty"` // Gtin: Global Trade Item Number (GTIN) of the item. Gtin string `json:"gtin,omitempty"` // Id: The REST id of the product. Id string `json:"id,omitempty"` // IdentifierExists: False when the item does not have unique product // identifiers appropriate to its category, such as GTIN, MPN, and // brand. Required according to the Unique Product Identifier Rules for // all target countries except for Canada. IdentifierExists bool `json:"identifierExists,omitempty"` // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` // Installment: Number and amount of installments to pay for an item. // Brazil only. Installment *ProductInstallment `json:"installment,omitempty"` // IsBundle: 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. IsBundle bool `json:"isBundle,omitempty"` // ItemGroupId: Shared identifier for all variants of the same product. ItemGroupId string `json:"itemGroupId,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#product". Kind string `json:"kind,omitempty"` // Link: URL directly linking to your item's page on your website. Link string `json:"link,omitempty"` // LoyaltyPoints: Loyalty points that users receive after purchasing the // item. Japan only. LoyaltyPoints *LoyaltyPoints `json:"loyaltyPoints,omitempty"` // Material: The material of which the item is made. Material string `json:"material,omitempty"` // MerchantMultipackQuantity: The number of identical products in a // merchant-defined multipack. MerchantMultipackQuantity uint64 `json:"merchantMultipackQuantity,omitempty,string"` // MobileLink: Link to a mobile-optimized version of the landing page. MobileLink string `json:"mobileLink,omitempty"` // Mpn: Manufacturer Part Number (MPN) of the item. Mpn string `json:"mpn,omitempty"` // OfferId: An identifier of the item. OfferId string `json:"offerId,omitempty"` // OnlineOnly: Whether an item is available for purchase only online. OnlineOnly bool `json:"onlineOnly,omitempty"` // Pattern: The item's pattern (e.g. polka dots). Pattern string `json:"pattern,omitempty"` // Price: Price of the item. Price *Price `json:"price,omitempty"` // ProductType: Your category of the item. ProductType string `json:"productType,omitempty"` // SalePrice: Advertised sale price of the item. SalePrice *Price `json:"salePrice,omitempty"` // SalePriceEffectiveDate: Date range during which the item is on sale. SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"` // Shipping: Shipping rules. Shipping []*ProductShipping `json:"shipping,omitempty"` // ShippingWeight: Weight of the item for shipping. ShippingWeight *ProductShippingWeight `json:"shippingWeight,omitempty"` // SizeSystem: System in which the size is specified. Recommended for // apparel items. SizeSystem string `json:"sizeSystem,omitempty"` // SizeType: The cut of the item. Recommended for apparel items. SizeType string `json:"sizeType,omitempty"` // Sizes: Size of the item. Sizes []string `json:"sizes,omitempty"` // TargetCountry: The two-letter ISO 3166 country code for the item. TargetCountry string `json:"targetCountry,omitempty"` // Taxes: Tax information. Taxes []*ProductTax `json:"taxes,omitempty"` // Title: Title of the item. Title string `json:"title,omitempty"` // UnitPricingBaseMeasure: The preference of the denominator of the unit // price. UnitPricingBaseMeasure string `json:"unitPricingBaseMeasure,omitempty"` // UnitPricingMeasure: The measure and dimension of an item. UnitPricingMeasure string `json:"unitPricingMeasure,omitempty"` // ValidatedDestinations: The read-only list of intended destinations // which passed validation. ValidatedDestinations []string `json:"validatedDestinations,omitempty"` // Warnings: Read-only warnings. Warnings []*Error `json:"warnings,omitempty"` }
type ProductCustomAttribute ¶
type ProductCustomAttribute struct { // Name: The name of the attribute. Name string `json:"name,omitempty"` // Type: The type of the attribute. Type string `json:"type,omitempty"` // Unit: Free-form unit of the attribute. Unit can only be used for // values of type INT or FLOAT. Unit string `json:"unit,omitempty"` // Value: The value of the attribute. Value string `json:"value,omitempty"` }
type ProductCustomGroup ¶
type ProductCustomGroup struct { // Attributes: The sub-attributes. Attributes []*ProductCustomAttribute `json:"attributes,omitempty"` // Name: The name of the group. Name string `json:"name,omitempty"` }
type ProductDestination ¶
type ProductInstallment ¶
type ProductShipping ¶
type ProductShipping struct { // Country: The two-letter ISO 3166 country code for the country to // which an item will ship. Country string `json:"country,omitempty"` // Price: Fixed shipping price, represented as a number. Price *Price `json:"price,omitempty"` // Region: The geographic region to which a shipping rate applies (e.g. // zip code). Region string `json:"region,omitempty"` // Service: A free-form description of the service class or delivery // speed. Service string `json:"service,omitempty"` }
type ProductShippingWeight ¶
type ProductStatus ¶
type ProductStatus struct { // DataQualityIssues: A list of data quality issues associated with the // product. DataQualityIssues []*ProductStatusDataQualityIssue `json:"dataQualityIssues,omitempty"` // DestinationStatuses: The intended destinations for the product. DestinationStatuses []*ProductStatusDestinationStatus `json:"destinationStatuses,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productStatus". Kind string `json:"kind,omitempty"` // Link: The link to the product. Link string `json:"link,omitempty"` // ProductId: The id of the product for which status is reported. ProductId string `json:"productId,omitempty"` // Title: The title of the product. Title string `json:"title,omitempty"` }
type ProductStatusDataQualityIssue ¶
type ProductStatusDataQualityIssue struct { // Detail: A more detailed error string. Detail string `json:"detail,omitempty"` // FetchStatus: The fetch status for landing_page_errors. FetchStatus string `json:"fetchStatus,omitempty"` // Id: The id of the data quality issue. Id string `json:"id,omitempty"` // Location: The attribute name that is relevant for the issue. Location string `json:"location,omitempty"` // Timestamp: The time stamp of the data quality issue. Timestamp string `json:"timestamp,omitempty"` // ValueOnLandingPage: The value of that attribute that was found on the // landing page ValueOnLandingPage string `json:"valueOnLandingPage,omitempty"` // ValueProvided: The value the attribute had at time of evaluation. ValueProvided string `json:"valueProvided,omitempty"` }
type ProductStatusDestinationStatus ¶
type ProductStatusDestinationStatus struct { // ApprovalStatus: The destination's approval status. ApprovalStatus string `json:"approvalStatus,omitempty"` // Destination: The name of the destination Destination string `json:"destination,omitempty"` // Intention: Whether the destination is required, excluded, selected by // default or should be validated. Intention string `json:"intention,omitempty"` }
type ProductTax ¶
type ProductTax struct { // Country: The country within which the item is taxed, specified with a // two-letter ISO 3166 country code. Country string `json:"country,omitempty"` // Rate: The percentage of tax rate that applies to the item price. Rate float64 `json:"rate,omitempty"` // Region: The geographic region to which the tax rate applies. Region string `json:"region,omitempty"` // TaxShip: Set to true if tax is charged on shipping. TaxShip bool `json:"taxShip,omitempty"` }
type ProductsCustomBatchRequest ¶
type ProductsCustomBatchRequest struct {
Entries []*ProductsCustomBatchRequestEntry `json:"entries,omitempty"`
}
type ProductsCustomBatchRequestEntry ¶
type ProductsCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method (get, insert or delete). Method string `json:"method,omitempty"` // Product: The product to insert. Only required if the method is // insert. Product *Product `json:"product,omitempty"` // ProductId: The ID of the product to get or delete. Only defined if // the method is get or delete. ProductId string `json:"productId,omitempty"` }
type ProductsCustomBatchResponse ¶
type ProductsCustomBatchResponse struct { Entries []*ProductsCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productsCustomBatchResponse". Kind string `json:"kind,omitempty"` }
type ProductsCustomBatchResponseEntry ¶
type ProductsCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productsCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` // Product: The inserted product. Only defined if the method is insert // and if the request was successful. Product *Product `json:"product,omitempty"` }
type ProductsCustombatchCall ¶
type ProductsCustombatchCall struct {
// contains filtered or unexported fields
}
func (*ProductsCustombatchCall) Do ¶
func (c *ProductsCustombatchCall) Do() (*ProductsCustomBatchResponse, error)
func (*ProductsCustombatchCall) DryRun ¶
func (c *ProductsCustombatchCall) DryRun(dryRun bool) *ProductsCustombatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
type ProductsDeleteCall ¶
type ProductsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProductsDeleteCall) Do ¶
func (c *ProductsDeleteCall) Do() error
func (*ProductsDeleteCall) DryRun ¶
func (c *ProductsDeleteCall) DryRun(dryRun bool) *ProductsDeleteCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
type ProductsGetCall ¶
type ProductsGetCall struct {
// contains filtered or unexported fields
}
func (*ProductsGetCall) Do ¶
func (c *ProductsGetCall) Do() (*Product, error)
type ProductsInsertCall ¶
type ProductsInsertCall struct {
// contains filtered or unexported fields
}
func (*ProductsInsertCall) Do ¶
func (c *ProductsInsertCall) Do() (*Product, error)
func (*ProductsInsertCall) DryRun ¶
func (c *ProductsInsertCall) DryRun(dryRun bool) *ProductsInsertCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
type ProductsListCall ¶
type ProductsListCall struct {
// contains filtered or unexported fields
}
func (*ProductsListCall) Do ¶
func (c *ProductsListCall) Do() (*ProductsListResponse, error)
func (*ProductsListCall) MaxResults ¶
func (c *ProductsListCall) MaxResults(maxResults int64) *ProductsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of products to return in the response, used for paging.
func (*ProductsListCall) PageToken ¶
func (c *ProductsListCall) PageToken(pageToken string) *ProductsListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
type ProductsListResponse ¶
type ProductsService ¶
type ProductsService struct {
// contains filtered or unexported fields
}
func NewProductsService ¶
func NewProductsService(s *Service) *ProductsService
func (*ProductsService) Custombatch ¶
func (r *ProductsService) Custombatch(productscustombatchrequest *ProductsCustomBatchRequest) *ProductsCustombatchCall
Custombatch: Retrieves, inserts, and deletes multiple products in a single request.
func (*ProductsService) Delete ¶
func (r *ProductsService) Delete(merchantId uint64, productId string) *ProductsDeleteCall
Delete: Deletes a product from your Merchant Center account.
func (*ProductsService) Get ¶
func (r *ProductsService) Get(merchantId uint64, productId string) *ProductsGetCall
Get: Retrieves a product from your Merchant Center account.
func (*ProductsService) Insert ¶
func (r *ProductsService) Insert(merchantId uint64, product *Product) *ProductsInsertCall
Insert: Uploads a product to your Merchant Center account.
func (*ProductsService) List ¶
func (r *ProductsService) List(merchantId uint64) *ProductsListCall
List: Lists the products in your Merchant Center account.
type ProductstatusesCustomBatchRequest ¶
type ProductstatusesCustomBatchRequest struct {
Entries []*ProductstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
}
type ProductstatusesCustomBatchRequestEntry ¶
type ProductstatusesCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method (get). Method string `json:"method,omitempty"` // ProductId: The ID of the product whose status to get. ProductId string `json:"productId,omitempty"` }
type ProductstatusesCustomBatchResponse ¶
type ProductstatusesCustomBatchResponse struct { Entries []*ProductstatusesCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productstatusesCustomBatchResponse". Kind string `json:"kind,omitempty"` }
type ProductstatusesCustomBatchResponseEntry ¶
type ProductstatusesCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors, if the request failed. Errors *Errors `json:"errors,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productstatusesCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` // ProductStatus: The requested product status. Only defined if the // request was successful. ProductStatus *ProductStatus `json:"productStatus,omitempty"` }
type ProductstatusesCustombatchCall ¶
type ProductstatusesCustombatchCall struct {
// contains filtered or unexported fields
}
func (*ProductstatusesCustombatchCall) Do ¶
func (c *ProductstatusesCustombatchCall) Do() (*ProductstatusesCustomBatchResponse, error)
type ProductstatusesGetCall ¶
type ProductstatusesGetCall struct {
// contains filtered or unexported fields
}
func (*ProductstatusesGetCall) Do ¶
func (c *ProductstatusesGetCall) Do() (*ProductStatus, error)
type ProductstatusesListCall ¶
type ProductstatusesListCall struct {
// contains filtered or unexported fields
}
func (*ProductstatusesListCall) Do ¶
func (c *ProductstatusesListCall) Do() (*ProductstatusesListResponse, error)
func (*ProductstatusesListCall) MaxResults ¶
func (c *ProductstatusesListCall) MaxResults(maxResults int64) *ProductstatusesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of product statuses to return in the response, used for paging.
func (*ProductstatusesListCall) PageToken ¶
func (c *ProductstatusesListCall) PageToken(pageToken string) *ProductstatusesListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
type ProductstatusesListResponse ¶
type ProductstatusesListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productstatusesListResponse". Kind string `json:"kind,omitempty"` NextPageToken string `json:"nextPageToken,omitempty"` Resources []*ProductStatus `json:"resources,omitempty"` }
type ProductstatusesService ¶
type ProductstatusesService struct {
// contains filtered or unexported fields
}
func NewProductstatusesService ¶
func NewProductstatusesService(s *Service) *ProductstatusesService
func (*ProductstatusesService) Custombatch ¶
func (r *ProductstatusesService) Custombatch(productstatusescustombatchrequest *ProductstatusesCustomBatchRequest) *ProductstatusesCustombatchCall
Custombatch: Gets the statuses of multiple products in a single request.
func (*ProductstatusesService) Get ¶
func (r *ProductstatusesService) Get(merchantId uint64, productId string) *ProductstatusesGetCall
Get: Gets the status of a product from your Merchant Center account.
func (*ProductstatusesService) List ¶
func (r *ProductstatusesService) List(merchantId uint64) *ProductstatusesListCall
List: Lists the statuses of the products in your Merchant Center account.
type Service ¶
type Service struct { BasePath string // API endpoint base URL Accounts *AccountsService Accountshipping *AccountshippingService Accountstatuses *AccountstatusesService Accounttax *AccounttaxService Datafeeds *DatafeedsService Datafeedstatuses *DatafeedstatusesService Inventory *InventoryService Products *ProductsService Productstatuses *ProductstatusesService // contains filtered or unexported fields }