Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Manufacturers

import { Manufacturers } from "https://googleapis.deno.dev/v1/manufacturers:v1.ts";

Public API for managing Manufacturer Center related data.

class Manufacturers {
constructor(client?: CredentialsClient, baseUrl?: string);
async accountsLanguagesProductCertificationsDelete(name: string): Promise<Empty>;
async accountsLanguagesProductCertificationsGet(name: string): Promise<ProductCertification>;
async accountsLanguagesProductCertificationsList(parent: string, opts?: AccountsLanguagesProductCertificationsListOptions): Promise<ListProductCertificationsResponse>;
async accountsLanguagesProductCertificationsPatch(
name: string,
): Promise<ProductCertification>;
async accountsProductsDelete(name: string, parent: string): Promise<Empty>;
async accountsProductsGet(
name: string,
parent: string,
): Promise<Product>;
async accountsProductsList(parent: string, opts?: AccountsProductsListOptions): Promise<ListProductsResponse>;
async accountsProductsUpdate(
name: string,
parent: string,
): Promise<Empty>;
}

§Constructors

§
new Manufacturers(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
accountsLanguagesProductCertificationsDelete(name: string): Promise<Empty>
[src]

Deletes a product certification by its name. This method can only be called by certification bodies.

@param name

Required. The name of the product certification to delete. Format: accounts/{account}/languages/{language_code}/productCertifications/{id}

§
accountsLanguagesProductCertificationsGet(name: string): Promise<ProductCertification>
[src]

Gets a product certification by its name. This method can only be called by certification bodies.

@param name

Required. The name of the product certification to get. Format: accounts/{account}/languages/{language_code}/productCertifications/{id}

§
accountsLanguagesProductCertificationsList(parent: string, opts?: AccountsLanguagesProductCertificationsListOptions): Promise<ListProductCertificationsResponse>
[src]

Lists product certifications from a specified certification body. This method can only be called by certification bodies.

@param parent

Required. The parent, which owns this collection of product certifications. Format: accounts/{account}/languages/{language_code}

§
accountsLanguagesProductCertificationsPatch(name: string, req: ProductCertification, opts?: AccountsLanguagesProductCertificationsPatchOptions): Promise<ProductCertification>
[src]

Updates (or creates if allow_missing = true) a product certification which links certifications with products. This method can only be called by certification bodies.

@param name

Required. The unique name identifier of a product certification Format: accounts/{account}/languages/{language_code}/productCertifications/{id} Where id is a some unique identifier and language_code is a 2-letter ISO 639-1 code of a Shopping supported language according to https://support.google.com/merchants/answer/160637.

§
accountsProductsDelete(name: string, parent: string): Promise<Empty>
[src]

Deletes the product from a Manufacturer Center account.

@param name

Name in the format {target_country}:{content_language}:{product_id}. target_country - The target country of the product as a CLDR territory code (for example, US). content_language - The content language of the product as a two-letter ISO 639-1 language code (for example, en). product_id - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.

@param parent

Parent ID in the format accounts/{account_id}. account_id - The ID of the Manufacturer Center account.

§
accountsProductsGet(name: string, parent: string, opts?: AccountsProductsGetOptions): Promise<Product>
[src]

Gets the product from a Manufacturer Center account, including product issues. A recently updated product takes around 15 minutes to process. Changes are only visible after it has been processed. While some issues may be available once the product has been processed, other issues may take days to appear.

@param name

Name in the format {target_country}:{content_language}:{product_id}. target_country - The target country of the product as a CLDR territory code (for example, US). content_language - The content language of the product as a two-letter ISO 639-1 language code (for example, en). product_id - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.

@param parent

Parent ID in the format accounts/{account_id}. account_id - The ID of the Manufacturer Center account.

§
accountsProductsList(parent: string, opts?: AccountsProductsListOptions): Promise<ListProductsResponse>
[src]

Lists all the products in a Manufacturer Center account.

@param parent

Parent ID in the format accounts/{account_id}. account_id - The ID of the Manufacturer Center account.

§
accountsProductsUpdate(name: string, parent: string, req: Attributes): Promise<Empty>
[src]

Inserts or updates the attributes of the product in a Manufacturer Center account. Creates a product with the provided attributes. If the product already exists, then all attributes are replaced with the new ones. The checks at upload time are minimal. All required attributes need to be present for a product to be valid. Issues may show up later after the API has accepted a new upload for a product and it is possible to overwrite an existing valid product with an invalid product. To detect this, you should retrieve the product and check it for issues once the new version is available. Uploaded attributes first need to be processed before they can be retrieved. Until then, new products will be unavailable, and retrieval of previously uploaded products will return the original state of the product.

@param name

Name in the format {target_country}:{content_language}:{product_id}. target_country - The target country of the product as a CLDR territory code (for example, US). content_language - The content language of the product as a two-letter ISO 639-1 language code (for example, en). product_id - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.

@param parent

Parent ID in the format accounts/{account_id}. account_id - The ID of the Manufacturer Center account.