css

package
v0.213.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package css provides access to the CSS API.

For product documentation, see: https://developers.google.com/comparison-shopping-services/api/overview

Library status

These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/css/v1"
...
ctx := context.Background()
cssService, err := css.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:

cssService, err := css.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
cssService, err := css.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See google.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
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 {
	// AccountType: Output only. The type of this account.
	//
	// Possible values:
	//   "ACCOUNT_TYPE_UNSPECIFIED" - Unknown account type.
	//   "CSS_GROUP" - CSS group account.
	//   "CSS_DOMAIN" - CSS domain account.
	//   "MC_PRIMARY_CSS_MCA" - MC Primary CSS MCA account.
	//   "MC_CSS_MCA" - MC CSS MCA account.
	//   "MC_MARKETPLACE_MCA" - MC Marketplace MCA account.
	//   "MC_OTHER_MCA" - MC Other MCA account.
	//   "MC_STANDALONE" - MC Standalone account.
	//   "MC_MCA_SUBACCOUNT" - MC MCA sub-account.
	AccountType string `json:"accountType,omitempty"`
	// AutomaticLabelIds: Automatically created label IDs assigned to the MC
	// account by CSS Center.
	AutomaticLabelIds googleapi.Int64s `json:"automaticLabelIds,omitempty"`
	// DisplayName: The CSS/MC account's short display name.
	DisplayName string `json:"displayName,omitempty"`
	// FullName: Output only. Immutable. The CSS/MC account's full name.
	FullName string `json:"fullName,omitempty"`
	// HomepageUri: Output only. Immutable. The CSS/MC account's homepage.
	HomepageUri string `json:"homepageUri,omitempty"`
	// LabelIds: Manually created label IDs assigned to the CSS/MC account by a CSS
	// parent account.
	LabelIds googleapi.Int64s `json:"labelIds,omitempty"`
	// Name: The label resource name. Format: accounts/{account}
	Name string `json:"name,omitempty"`
	// Parent: The CSS/MC account's parent resource. CSS group for CSS domains; CSS
	// domain for MC accounts. Returned only if the user has access to the parent
	// account.
	Parent string `json:"parent,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AccountType") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AccountType") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Account: Information about CSS/MC account.

func (Account) MarshalJSON

func (s Account) MarshalJSON() ([]byte, error)

type AccountLabel

type AccountLabel struct {
	// AccountId: Output only. The ID of account this label belongs to.
	AccountId int64 `json:"accountId,omitempty,string"`
	// Description: The description of this label.
	Description string `json:"description,omitempty"`
	// DisplayName: The display name of this label.
	DisplayName string `json:"displayName,omitempty"`
	// LabelId: Output only. The ID of the label.
	LabelId int64 `json:"labelId,omitempty,string"`
	// LabelType: Output only. The type of this label.
	//
	// Possible values:
	//   "LABEL_TYPE_UNSPECIFIED" - Unknown label type.
	//   "MANUAL" - Indicates that the label was created manually.
	//   "AUTOMATIC" - Indicates that the label was created automatically by CSS
	// Center.
	LabelType string `json:"labelType,omitempty"`
	// Name: The resource name of the label. Format:
	// accounts/{account}/labels/{label}
	Name string `json:"name,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AccountId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AccountLabel: Label assigned by CSS domain or CSS group to one of its sub-accounts.

func (AccountLabel) MarshalJSON

func (s AccountLabel) MarshalJSON() ([]byte, error)

type AccountsCssProductInputsDeleteCall

type AccountsCssProductInputsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsCssProductInputsDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsCssProductInputsDeleteCall) Do

Do executes the "css.accounts.cssProductInputs.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsCssProductInputsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsCssProductInputsDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*AccountsCssProductInputsDeleteCall) SupplementalFeedId

func (c *AccountsCssProductInputsDeleteCall) SupplementalFeedId(supplementalFeedId int64) *AccountsCssProductInputsDeleteCall

SupplementalFeedId sets the optional parameter "supplementalFeedId": The Content API Supplemental Feed ID. The field must not be set if the action applies to a primary feed. If the field is set, then product action applies to a supplemental feed instead of primary Content API feed.

type AccountsCssProductInputsInsertCall

type AccountsCssProductInputsInsertCall struct {
	// contains filtered or unexported fields
}

func (*AccountsCssProductInputsInsertCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsCssProductInputsInsertCall) Do

Do executes the "css.accounts.cssProductInputs.insert" call. Any non-2xx status code is an error. Response headers are in either *CssProductInput.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsCssProductInputsInsertCall) FeedId

FeedId sets the optional parameter "feedId": The primary or supplemental feed id. If CSS Product already exists and feed id provided is different, then the CSS Product will be moved to a new feed. Note: For now, CSSs do not need to provide feed ids as we create feeds on the fly. We do not have supplemental feed support for CSS Products yet.

func (*AccountsCssProductInputsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsCssProductInputsInsertCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type AccountsCssProductInputsService

type AccountsCssProductInputsService struct {
	// contains filtered or unexported fields
}

func NewAccountsCssProductInputsService

func NewAccountsCssProductInputsService(s *Service) *AccountsCssProductInputsService

func (*AccountsCssProductInputsService) Delete

Delete: Deletes a CSS Product input from your CSS Center account. After a delete it may take several minutes until the input is no longer available.

  • name: The name of the CSS product input resource to delete. Format: accounts/{account}/cssProductInputs/{css_product_input}.

func (*AccountsCssProductInputsService) Insert

Insert: Uploads a CssProductInput to your CSS Center account. If an input with the same contentLanguage, identity, feedLabel and feedId already exists, this method replaces that entry. After inserting, updating, or deleting a CSS Product input, it may take several minutes before the processed CSS Product can be retrieved.

  • parent: The account where this CSS Product will be inserted. Format: accounts/{account}.

type AccountsCssProductsGetCall

type AccountsCssProductsGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsCssProductsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsCssProductsGetCall) Do

Do executes the "css.accounts.cssProducts.get" call. Any non-2xx status code is an error. Response headers are in either *CssProduct.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsCssProductsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsCssProductsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*AccountsCssProductsGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type AccountsCssProductsListCall

type AccountsCssProductsListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsCssProductsListCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsCssProductsListCall) Do

Do executes the "css.accounts.cssProducts.list" call. Any non-2xx status code is an error. Response headers are in either *ListCssProductsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsCssProductsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsCssProductsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*AccountsCssProductsListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*AccountsCssProductsListCall) PageSize

PageSize sets the optional parameter "pageSize": The maximum number of CSS Products to return. The service may return fewer than this value. The maximum value is 1000; values above 1000 will be coerced to 1000. If unspecified, the maximum number of CSS products will be returned.

func (*AccountsCssProductsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListCssProducts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCssProducts` must match the call that provided the page token.

func (*AccountsCssProductsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AccountsCssProductsService

type AccountsCssProductsService struct {
	// contains filtered or unexported fields
}

func NewAccountsCssProductsService

func NewAccountsCssProductsService(s *Service) *AccountsCssProductsService

func (*AccountsCssProductsService) Get

Get: Retrieves the processed CSS Product from your CSS Center account. After inserting, updating, or deleting a product input, it may take several minutes before the updated final product can be retrieved.

- name: The name of the CSS product to retrieve.

func (*AccountsCssProductsService) List

List: Lists the processed CSS Products in your CSS Center account. The response might contain fewer items than specified by pageSize. Rely on pageToken to determine if there are more items to be requested. After inserting, updating, or deleting a CSS product input, it may take several minutes before the updated processed CSS product can be retrieved.

  • parent: The account/domain to list processed CSS Products for. Format: accounts/{account}.

type AccountsGetCall

type AccountsGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsGetCall) Do

func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error)

Do executes the "css.accounts.get" call. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsGetCall) Header

func (c *AccountsGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*AccountsGetCall) IfNoneMatch

func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*AccountsGetCall) Parent

func (c *AccountsGetCall) Parent(parent string) *AccountsGetCall

Parent sets the optional parameter "parent": Only required when retrieving MC account information. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}

type AccountsLabelsCreateCall

type AccountsLabelsCreateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsLabelsCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsLabelsCreateCall) Do

Do executes the "css.accounts.labels.create" call. Any non-2xx status code is an error. Response headers are in either *AccountLabel.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsLabelsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsLabelsCreateCall) Header

func (c *AccountsLabelsCreateCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type AccountsLabelsDeleteCall

type AccountsLabelsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsLabelsDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsLabelsDeleteCall) Do

Do executes the "css.accounts.labels.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsLabelsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsLabelsDeleteCall) Header

func (c *AccountsLabelsDeleteCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type AccountsLabelsListCall

type AccountsLabelsListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsLabelsListCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsLabelsListCall) Do

Do executes the "css.accounts.labels.list" call. Any non-2xx status code is an error. Response headers are in either *ListAccountLabelsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsLabelsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsLabelsListCall) Header

func (c *AccountsLabelsListCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*AccountsLabelsListCall) IfNoneMatch

func (c *AccountsLabelsListCall) IfNoneMatch(entityTag string) *AccountsLabelsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*AccountsLabelsListCall) PageSize

func (c *AccountsLabelsListCall) PageSize(pageSize int64) *AccountsLabelsListCall

PageSize sets the optional parameter "pageSize": The maximum number of labels to return. The service may return fewer than this value. If unspecified, at most 50 labels will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

func (*AccountsLabelsListCall) PageToken

func (c *AccountsLabelsListCall) PageToken(pageToken string) *AccountsLabelsListCall

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListAccountLabels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLabels` must match the call that provided the page token.

func (*AccountsLabelsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AccountsLabelsPatchCall

type AccountsLabelsPatchCall struct {
	// contains filtered or unexported fields
}

func (*AccountsLabelsPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsLabelsPatchCall) Do

Do executes the "css.accounts.labels.patch" call. Any non-2xx status code is an error. Response headers are in either *AccountLabel.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsLabelsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsLabelsPatchCall) Header

func (c *AccountsLabelsPatchCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type AccountsLabelsService

type AccountsLabelsService struct {
	// contains filtered or unexported fields
}

func NewAccountsLabelsService

func NewAccountsLabelsService(s *Service) *AccountsLabelsService

func (*AccountsLabelsService) Create

func (r *AccountsLabelsService) Create(parent string, accountlabel *AccountLabel) *AccountsLabelsCreateCall

Create: Creates a new label, not assigned to any account.

- parent: The parent account. Format: accounts/{account}.

func (*AccountsLabelsService) Delete

Delete: Deletes a label and removes it from all accounts to which it was assigned.

  • name: The name of the label to delete. Format: accounts/{account}/labels/{label}.

func (*AccountsLabelsService) List

List: Lists the labels owned by an account.

- parent: The parent account. Format: accounts/{account}.

func (*AccountsLabelsService) Patch

func (r *AccountsLabelsService) Patch(name string, accountlabel *AccountLabel) *AccountsLabelsPatchCall

Patch: Updates a label.

  • name: The resource name of the label. Format: accounts/{account}/labels/{label}.

type AccountsListChildAccountsCall

type AccountsListChildAccountsCall struct {
	// contains filtered or unexported fields
}

func (*AccountsListChildAccountsCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsListChildAccountsCall) Do

Do executes the "css.accounts.listChildAccounts" call. Any non-2xx status code is an error. Response headers are in either *ListChildAccountsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsListChildAccountsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsListChildAccountsCall) FullName

FullName sets the optional parameter "fullName": If set, only the MC accounts with the given name (case sensitive) will be returned.

func (*AccountsListChildAccountsCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*AccountsListChildAccountsCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*AccountsListChildAccountsCall) LabelId

LabelId sets the optional parameter "labelId": If set, only the MC accounts with the given label ID will be returned.

func (*AccountsListChildAccountsCall) PageSize

PageSize sets the optional parameter "pageSize": The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 50 accounts will be returned. The maximum value is 100; values above 100 will be coerced to 100.

func (*AccountsListChildAccountsCall) PageToken

PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListChildAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListChildAccounts` must match the call that provided the page token.

func (*AccountsListChildAccountsCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AccountsService

type AccountsService struct {
	CssProductInputs *AccountsCssProductInputsService

	CssProducts *AccountsCssProductsService

	Labels *AccountsLabelsService
	// contains filtered or unexported fields
}

func NewAccountsService

func NewAccountsService(s *Service) *AccountsService

func (*AccountsService) Get

func (r *AccountsService) Get(name string) *AccountsGetCall

Get: Retrieves a single CSS/MC account by ID.

- name: The name of the managed CSS/MC account. Format: accounts/{account}.

func (*AccountsService) ListChildAccounts

func (r *AccountsService) ListChildAccounts(parent string) *AccountsListChildAccountsCall

ListChildAccounts: Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name.

  • parent: The parent account. Must be a CSS group or domain. Format: accounts/{account}.

func (*AccountsService) UpdateLabels

func (r *AccountsService) UpdateLabels(name string, updateaccountlabelsrequest *UpdateAccountLabelsRequest) *AccountsUpdateLabelsCall

UpdateLabels: Updates labels assigned to CSS/MC accounts by a CSS domain.

- name: The label resource name. Format: accounts/{account}.

type AccountsUpdateLabelsCall

type AccountsUpdateLabelsCall struct {
	// contains filtered or unexported fields
}

func (*AccountsUpdateLabelsCall) Context

Context sets the context to be used in this call's Do method.

func (*AccountsUpdateLabelsCall) Do

Do executes the "css.accounts.updateLabels" call. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsUpdateLabelsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*AccountsUpdateLabelsCall) Header

func (c *AccountsUpdateLabelsCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type Attributes

type Attributes struct {
	// AdditionalImageLinks: Additional URL 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"`
	// AgeGroup: Target age group of the item.
	AgeGroup string `json:"ageGroup,omitempty"`
	// Brand: Product Related Attributes.[14-36] Brand of the item.
	Brand string `json:"brand,omitempty"`
	// Certifications: A list of certificates claimed by the CSS for the given
	// product.
	Certifications []*Certification `json:"certifications,omitempty"`
	// Color: Color of the item.
	Color string `json:"color,omitempty"`
	// CppAdsRedirect: Allows advertisers to override the item URL when the product
	// is shown within the context of Product Ads.
	CppAdsRedirect string `json:"cppAdsRedirect,omitempty"`
	// CppLink: URL directly linking to your the Product Detail Page of the CSS.
	CppLink string `json:"cppLink,omitempty"`
	// CppMobileLink: URL for the mobile-optimized version of the Product Detail
	// Page of the CSS.
	CppMobileLink string `json:"cppMobileLink,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"`
	// ExcludedDestinations: The list of destinations to exclude for this target
	// (corresponds to unchecked check boxes in Merchant Center).
	ExcludedDestinations []string `json:"excludedDestinations,omitempty"`
	// ExpirationDate: Date on which the item should expire, as specified upon
	// insertion, in ISO 8601 (http://en.wikipedia.org/wiki/ISO_8601) format. The
	// actual expiration date is exposed in `productstatuses` as
	// googleExpirationDate (https://support.google.com/merchants/answer/6324499)
	// 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.
	ExpirationDate string `json:"expirationDate,omitempty"`
	// Gender: Target gender of the item.
	Gender string `json:"gender,omitempty"`
	// GoogleProductCategory: Google's category of the item (see Google product
	// taxonomy (https://support.google.com/merchants/answer/1705911)). 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.
	GoogleProductCategory string `json:"googleProductCategory,omitempty"`
	// Gtin: Global Trade Item Number (GTIN
	// (https://support.google.com/merchants/answer/188494#gtin)) of the item.
	Gtin string `json:"gtin,omitempty"`
	// HeadlineOfferCondition: Condition of the headline offer.
	HeadlineOfferCondition string `json:"headlineOfferCondition,omitempty"`
	// HeadlineOfferInstallment: Number and amount of installments to pay for an
	// item.
	HeadlineOfferInstallment *HeadlineOfferInstallment `json:"headlineOfferInstallment,omitempty"`
	// HeadlineOfferLink: Link to the headline offer.
	HeadlineOfferLink string `json:"headlineOfferLink,omitempty"`
	// HeadlineOfferMobileLink: Mobile Link to the headline offer.
	HeadlineOfferMobileLink string `json:"headlineOfferMobileLink,omitempty"`
	// HeadlineOfferPrice: Headline Price of the CSS Product.
	HeadlineOfferPrice *Price `json:"headlineOfferPrice,omitempty"`
	// HeadlineOfferShippingPrice: Headline Price of the CSS Product.
	HeadlineOfferShippingPrice *Price `json:"headlineOfferShippingPrice,omitempty"`
	// HeadlineOfferSubscriptionCost: Number of periods (months or years) and
	// amount of payment per period for an item with an associated subscription
	// contract.
	HeadlineOfferSubscriptionCost *HeadlineOfferSubscriptionCost `json:"headlineOfferSubscriptionCost,omitempty"`
	// HighPrice: High Price of the CSS Product.
	HighPrice *Price `json:"highPrice,omitempty"`
	// ImageLink: URL of an image of the item.
	ImageLink string `json:"imageLink,omitempty"`
	// IncludedDestinations: 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`.
	IncludedDestinations []string `json:"includedDestinations,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"`
	// LowPrice: Low Price of the CSS Product.
	LowPrice *Price `json:"lowPrice,omitempty"`
	// Material: The material of which the item is made.
	Material string `json:"material,omitempty"`
	// Mpn: Manufacturer Part Number (MPN
	// (https://support.google.com/merchants/answer/188494#mpn)) of the item.
	Mpn string `json:"mpn,omitempty"`
	// Multipack: The number of identical products in a merchant-defined multipack.
	Multipack int64 `json:"multipack,omitempty,string"`
	// NumberOfOffers: The number of CSS Products.
	NumberOfOffers int64 `json:"numberOfOffers,omitempty,string"`
	// Pattern: The item's pattern (e.g. polka dots).
	Pattern string `json:"pattern,omitempty"`
	// Pause: Publication of this item will be temporarily paused.
	Pause string `json:"pause,omitempty"`
	// ProductDetails: Technical specification or additional product details.
	ProductDetails []*ProductDetail `json:"productDetails,omitempty"`
	// ProductHeight: The height of the product in the units provided. The value
	// must be between 0 (exclusive) and 3000 (inclusive).
	ProductHeight *ProductDimension `json:"productHeight,omitempty"`
	// ProductHighlights: Bullet points describing the most relevant highlights of
	// a product.
	ProductHighlights []string `json:"productHighlights,omitempty"`
	// ProductLength: The length of the product in the units provided. The value
	// must be between 0 (exclusive) and 3000 (inclusive).
	ProductLength *ProductDimension `json:"productLength,omitempty"`
	// ProductTypes: Categories of the item (formatted as in products data
	// specification (https://support.google.com/merchants/answer/6324406)).
	ProductTypes []string `json:"productTypes,omitempty"`
	// ProductWeight: The weight of the product in the units provided. The value
	// must be between 0 (exclusive) and 2000 (inclusive).
	ProductWeight *ProductWeight `json:"productWeight,omitempty"`
	// ProductWidth: The width of the product in the units provided. The value must
	// be between 0 (exclusive) and 3000 (inclusive).
	ProductWidth *ProductDimension `json:"productWidth,omitempty"`
	// Size: 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 string `json:"size,omitempty"`
	// SizeSystem: System in which the size is specified. Recommended for apparel
	// items.
	SizeSystem string `json:"sizeSystem,omitempty"`
	// SizeTypes: 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)).
	SizeTypes []string `json:"sizeTypes,omitempty"`
	// Title: Title of the item.
	Title string `json:"title,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AdditionalImageLinks") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AdditionalImageLinks") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Attributes: Attributes for CSS Product.

func (Attributes) MarshalJSON

func (s Attributes) MarshalJSON() ([]byte, error)

type Certification

type Certification struct {
	// Authority: The authority or certification body responsible for issuing the
	// certification. At this time, the most common value is "EC" or
	// “European_Commission” for energy labels in the EU.
	Authority string `json:"authority,omitempty"`
	// Code: The code of the certification. For example, for the EPREL certificate
	// with the link
	// https://eprel.ec.europa.eu/screen/product/dishwashers2019/123456 the code is
	// 123456. The code is required for European Energy Labels.
	Code string `json:"code,omitempty"`
	// Name: The name of the certification. At this time, the most common value is
	// "EPREL", which represents energy efficiency certifications in the EU
	// European Registry for Energy Labeling (EPREL) database.
	Name string `json:"name,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Authority") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Authority") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Certification: The certification for the product. Use the this attribute to describe certifications, such as energy efficiency ratings, associated with a product.

func (Certification) MarshalJSON

func (s Certification) MarshalJSON() ([]byte, error)

type CssProduct

type CssProduct struct {
	// Attributes: Output only. A list of product attributes.
	Attributes *Attributes `json:"attributes,omitempty"`
	// ContentLanguage: Output only. The two-letter ISO 639-1
	// (http://en.wikipedia.org/wiki/ISO_639-1) language code for the product.
	ContentLanguage string `json:"contentLanguage,omitempty"`
	// CssProductStatus: Output only. The status of a product, data validation
	// issues, that is, information about a product computed asynchronously.
	CssProductStatus *CssProductStatus `json:"cssProductStatus,omitempty"`
	// CustomAttributes: Output only. A list of custom (CSS-provided) attributes.
	// It can also be used to submit any attribute of the feed specification in its
	// generic form (for example, `{ "name": "size type", "value": "regular" }`).
	// This is useful for submitting attributes not explicitly exposed by the API,
	// such as additional attributes used for Buy on Google.
	CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"`
	// FeedLabel: Output only. The feed label for the product.
	FeedLabel string `json:"feedLabel,omitempty"`
	// Name: The name of the CSS Product. Format:
	// "accounts/{account}/cssProducts/{css_product}"
	Name string `json:"name,omitempty"`
	// RawProvidedId: Output only. Your unique raw identifier for the product.
	RawProvidedId string `json:"rawProvidedId,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Attributes") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Attributes") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CssProduct: The processed CSS Product.

func (CssProduct) MarshalJSON

func (s CssProduct) MarshalJSON() ([]byte, error)

type CssProductInput

type CssProductInput struct {
	// Attributes: A list of CSS Product attributes.
	Attributes *Attributes `json:"attributes,omitempty"`
	// ContentLanguage: Required. The two-letter ISO 639-1
	// (http://en.wikipedia.org/wiki/ISO_639-1) language code for the CSS Product.
	ContentLanguage string `json:"contentLanguage,omitempty"`
	// CustomAttributes: A list of custom (CSS-provided) attributes. It can also be
	// used for submitting any attribute of the feed specification in its generic
	// form (for example: `{ "name": "size type", "value": "regular" }`). This is
	// useful for submitting attributes not explicitly exposed by the API, such as
	// additional attributes used for Buy on Google.
	CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"`
	// FeedLabel: Required. The feed label
	// (https://developers.google.com/shopping-content/guides/products/feed-labels)
	// for the CSS Product. Feed Label is synonymous to "target country" and hence
	// should always be a valid region code. For example: 'DE' for Germany, 'FR'
	// for France.
	FeedLabel string `json:"feedLabel,omitempty"`
	// FinalName: Output only. The name of the processed CSS Product. Format:
	// `accounts/{account}/cssProducts/{css_product}` "
	FinalName string `json:"finalName,omitempty"`
	// FreshnessTime: Represents the existing version (freshness) of the CSS
	// Product, which can be used to preserve the right order when multiple updates
	// are done at the same time. This field must not be set to the future time. If
	// set, the update is prevented if a newer version of the item already exists
	// in our system (that is the last update time of the existing CSS products is
	// later than the freshness time set in the update). If the update happens, the
	// last update time is then set to this freshness time. If not set, the update
	// will not be prevented and the last update time will default to when this
	// request was received by the CSS API. If the operation is prevented, the
	// aborted exception will be thrown.
	FreshnessTime string `json:"freshnessTime,omitempty"`
	// Name: The name of the CSS Product input. Format:
	// `accounts/{account}/cssProductInputs/{css_product_input}`
	Name string `json:"name,omitempty"`
	// RawProvidedId: Required. Your unique identifier for the CSS Product. This is
	// the same for the CSS Product input and processed CSS Product. We only allow
	// ids with alphanumerics, underscores and dashes. See the products feed
	// specification (https://support.google.com/merchants/answer/188494#id) for
	// details.
	RawProvidedId string `json:"rawProvidedId,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Attributes") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Attributes") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CssProductInput: This resource represents input data you submit for a CSS Product, not the processed CSS Product that you see in CSS Center, in Shopping Ads, or across Google surfaces.

func (CssProductInput) MarshalJSON

func (s CssProductInput) MarshalJSON() ([]byte, error)

type CssProductStatus

type CssProductStatus struct {
	// CreationDate: Date on which the item has been created, in ISO 8601
	// (http://en.wikipedia.org/wiki/ISO_8601) format.
	CreationDate string `json:"creationDate,omitempty"`
	// DestinationStatuses: The intended destinations for the product.
	DestinationStatuses []*DestinationStatus `json:"destinationStatuses,omitempty"`
	// GoogleExpirationDate: Date on which the item expires, in ISO 8601
	// (http://en.wikipedia.org/wiki/ISO_8601) format.
	GoogleExpirationDate string `json:"googleExpirationDate,omitempty"`
	// ItemLevelIssues: A list of all issues associated with the product.
	ItemLevelIssues []*ItemLevelIssue `json:"itemLevelIssues,omitempty"`
	// LastUpdateDate: Date on which the item has been last updated, in ISO 8601
	// (http://en.wikipedia.org/wiki/ISO_8601) format.
	LastUpdateDate string `json:"lastUpdateDate,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CreationDate") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CreationDate") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CssProductStatus: The status of the Css Product, data validation issues, that is, information about the Css Product computed asynchronously.

func (CssProductStatus) MarshalJSON

func (s CssProductStatus) MarshalJSON() ([]byte, error)

type CustomAttribute

type CustomAttribute struct {
	// GroupValues: Subattributes within this attribute group. If `group_values` is
	// not empty, `value` must be empty.
	GroupValues []*CustomAttribute `json:"groupValues,omitempty"`
	// Name: The name of the attribute.
	Name string `json:"name,omitempty"`
	// Value: The value of the attribute. If `value` is not empty, `group_values`
	// must be empty.
	Value string `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "GroupValues") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "GroupValues") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomAttribute: A message that represents custom attributes. Exactly one of `value` or `group_values` must not be empty.

func (CustomAttribute) MarshalJSON

func (s CustomAttribute) MarshalJSON() ([]byte, error)

type DestinationStatus

type DestinationStatus struct {
	// ApprovedCountries: List of country codes (ISO 3166-1 alpha-2) where the CSS
	// Product is approved.
	ApprovedCountries []string `json:"approvedCountries,omitempty"`
	// Destination: The name of the destination
	Destination string `json:"destination,omitempty"`
	// DisapprovedCountries: List of country codes (ISO 3166-1 alpha-2) where the
	// CSS Product is disapproved.
	DisapprovedCountries []string `json:"disapprovedCountries,omitempty"`
	// PendingCountries: List of country codes (ISO 3166-1 alpha-2) where the CSS
	// Product is pending approval.
	PendingCountries []string `json:"pendingCountries,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ApprovedCountries") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ApprovedCountries") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DestinationStatus: The destination status of the product status.

func (DestinationStatus) MarshalJSON

func (s DestinationStatus) MarshalJSON() ([]byte, error)

type Empty

type Empty struct {
	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
}

Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

type HeadlineOfferInstallment added in v0.198.0

type HeadlineOfferInstallment struct {
	// Amount: The amount the buyer has to pay per month.
	Amount *Price `json:"amount,omitempty"`
	// Downpayment: The up-front down payment amount the buyer has to pay.
	Downpayment *Price `json:"downpayment,omitempty"`
	// Months: The number of installments the buyer has to pay.
	Months int64 `json:"months,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Amount") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

HeadlineOfferInstallment: A message that represents installment.

func (HeadlineOfferInstallment) MarshalJSON added in v0.198.0

func (s HeadlineOfferInstallment) MarshalJSON() ([]byte, error)

type HeadlineOfferSubscriptionCost added in v0.198.0

type HeadlineOfferSubscriptionCost struct {
	// Amount: The amount the buyer has to pay per subscription period.
	Amount *Price `json:"amount,omitempty"`
	// Period: The type of subscription period. Supported values are: * "month" *
	// "year"
	//
	// Possible values:
	//   "SUBSCRIPTION_PERIOD_UNSPECIFIED" - Indicates that the subscription period
	// is unspecified.
	//   "MONTH" - Indicates that the subscription period is month.
	//   "YEAR" - Indicates that the subscription period is year.
	Period string `json:"period,omitempty"`
	// PeriodLength: The number of subscription periods the buyer has to pay.
	PeriodLength int64 `json:"periodLength,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Amount") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

HeadlineOfferSubscriptionCost: The SubscriptionCost of the product.

func (HeadlineOfferSubscriptionCost) MarshalJSON added in v0.198.0

func (s HeadlineOfferSubscriptionCost) MarshalJSON() ([]byte, error)

type ItemLevelIssue

type ItemLevelIssue struct {
	// ApplicableCountries: List of country codes (ISO 3166-1 alpha-2) where issue
	// applies to the CSS Product.
	ApplicableCountries []string `json:"applicableCountries,omitempty"`
	// Attribute: The attribute's name, if the issue is caused by a single
	// attribute.
	Attribute string `json:"attribute,omitempty"`
	// Code: The error code of the issue.
	Code string `json:"code,omitempty"`
	// Description: A short issue description in English.
	Description string `json:"description,omitempty"`
	// Destination: The destination the issue applies to.
	Destination string `json:"destination,omitempty"`
	// Detail: A detailed issue description in English.
	Detail string `json:"detail,omitempty"`
	// Documentation: The URL of a web page to help with resolving this issue.
	Documentation string `json:"documentation,omitempty"`
	// Resolution: Whether the issue can be resolved by the merchant.
	Resolution string `json:"resolution,omitempty"`
	// Servability: How this issue affects serving of the CSS Product.
	Servability string `json:"servability,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ApplicableCountries") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ApplicableCountries") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ItemLevelIssue: The ItemLevelIssue of the product status.

func (ItemLevelIssue) MarshalJSON

func (s ItemLevelIssue) MarshalJSON() ([]byte, error)

type ListAccountLabelsResponse

type ListAccountLabelsResponse struct {
	// AccountLabels: The labels from the specified account.
	AccountLabels []*AccountLabel `json:"accountLabels,omitempty"`
	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
	// next page. If this field is omitted, there are no subsequent pages.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AccountLabels") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AccountLabels") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListAccountLabelsResponse: Response message for the `ListAccountLabels` method.

func (ListAccountLabelsResponse) MarshalJSON

func (s ListAccountLabelsResponse) MarshalJSON() ([]byte, error)

type ListChildAccountsResponse

type ListChildAccountsResponse struct {
	// Accounts: The CSS/MC accounts returned for the specified CSS parent account.
	Accounts []*Account `json:"accounts,omitempty"`
	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
	// next page. If this field is omitted, there are no subsequent pages.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Accounts") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Accounts") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListChildAccountsResponse: Response message for the `ListChildAccounts` method.

func (ListChildAccountsResponse) MarshalJSON

func (s ListChildAccountsResponse) MarshalJSON() ([]byte, error)

type ListCssProductsResponse

type ListCssProductsResponse struct {
	// CssProducts: The processed CSS products from the specified account. These
	// are your processed CSS products after applying rules and supplemental feeds.
	CssProducts []*CssProduct `json:"cssProducts,omitempty"`
	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
	// next page. If this field is omitted, there are no subsequent pages.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "CssProducts") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CssProducts") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListCssProductsResponse: Response message for the ListCssProducts method.

func (ListCssProductsResponse) MarshalJSON

func (s ListCssProductsResponse) MarshalJSON() ([]byte, error)

type Price

type Price struct {
	// AmountMicros: The price represented as a number in micros (1 million micros
	// is an equivalent to one's currency standard unit, for example, 1 USD =
	// 1000000 micros).
	AmountMicros int64 `json:"amountMicros,omitempty,string"`
	// CurrencyCode: The currency of the price using three-letter acronyms
	// according to ISO 4217 (http://en.wikipedia.org/wiki/ISO_4217).
	CurrencyCode string `json:"currencyCode,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AmountMicros") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AmountMicros") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Price: The price represented as a number and currency.

func (Price) MarshalJSON

func (s Price) MarshalJSON() ([]byte, error)

type ProductDetail

type ProductDetail struct {
	// AttributeName: The name of the product detail.
	AttributeName string `json:"attributeName,omitempty"`
	// AttributeValue: The value of the product detail.
	AttributeValue string `json:"attributeValue,omitempty"`
	// SectionName: The section header used to group a set of product details.
	SectionName string `json:"sectionName,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AttributeName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AttributeName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ProductDetail: The product details.

func (ProductDetail) MarshalJSON

func (s ProductDetail) MarshalJSON() ([]byte, error)

type ProductDimension

type ProductDimension struct {
	// Unit: Required. The dimension units. Acceptable values are: * "in" *
	// "cm"
	Unit string `json:"unit,omitempty"`
	// Value: Required. The dimension value represented as a number. The value can
	// have a maximum precision of four decimal places.
	Value float64 `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Unit") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Unit") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ProductDimension: The dimension of the product.

func (ProductDimension) MarshalJSON

func (s ProductDimension) MarshalJSON() ([]byte, error)

func (*ProductDimension) UnmarshalJSON

func (s *ProductDimension) UnmarshalJSON(data []byte) error

type ProductWeight

type ProductWeight struct {
	// Unit: Required. The weight unit. Acceptable values are: * "g" * "kg" *
	// "oz" * "lb"
	Unit string `json:"unit,omitempty"`
	// Value: Required. The weight represented as a number. The weight can have a
	// maximum precision of four decimal places.
	Value float64 `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Unit") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Unit") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ProductWeight: The weight of the product.

func (ProductWeight) MarshalJSON

func (s ProductWeight) MarshalJSON() ([]byte, error)

func (*ProductWeight) UnmarshalJSON

func (s *ProductWeight) UnmarshalJSON(data []byte) error

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Accounts *AccountsService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type UpdateAccountLabelsRequest

type UpdateAccountLabelsRequest struct {
	// LabelIds: The list of label IDs to overwrite the existing account label IDs.
	// If the list is empty, all currently assigned label IDs will be deleted.
	LabelIds googleapi.Int64s `json:"labelIds,omitempty"`
	// Parent: Optional. Only required when updating MC account labels. The CSS
	// domain that is the parent resource of the MC account. Format:
	// accounts/{account}
	Parent string `json:"parent,omitempty"`
	// ForceSendFields is a list of field names (e.g. "LabelIds") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "LabelIds") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

UpdateAccountLabelsRequest: The request message for the `UpdateLabels` method.

func (UpdateAccountLabelsRequest) MarshalJSON

func (s UpdateAccountLabelsRequest) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL