Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@datafire/google_content

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datafire/google_content

DataFire integration for Content API for Shopping

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@datafire/google_content

Client library for Content API for Shopping

Installation and Usage

npm install --save datafire @datafire/google_content
let datafire = require('datafire');
let google_content = require('@datafire/google_content').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: "",
});

google_content.shippingsettings.custombatch({}).then(data => {
  console.log(data);
})

Description

Manages product items, inventory, and Merchant Center accounts for Google Shopping.

Actions

oauthCallback

Exchange the code passed to your redirect URI for an access_token

google_content.oauthCallback({
  "code": ""
}, context)
Parameters
  • code (string) required

oauthRefresh

Exchange a refresh_token for an access_token

google_content.oauthRefresh(null, context)
Parameters

This action has no parameters

accounts.authinfo

Returns information about the authenticated user.

google_content.accounts.authinfo({}, context)
Parameters
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounts.custombatch

Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.

google_content.accounts.custombatch({}, context)
Parameters
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • body (object)
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accountstatuses.custombatch

google_content.accountstatuses.custombatch({}, context)
Parameters
  • body (object)
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounttax.custombatch

Retrieves and updates tax settings of multiple accounts in a single request.

google_content.accounttax.custombatch({}, context)
Parameters
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • body (object)
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

datafeeds.custombatch

google_content.datafeeds.custombatch({}, context)
Parameters
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • body (object)
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

datafeedstatuses.custombatch

google_content.datafeedstatuses.custombatch({}, context)
Parameters
  • body (object)
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

inventory.custombatch

Updates price and availability for multiple products or stores in a single request. This operation does not update the expiration date of the products.

google_content.inventory.custombatch({}, context)
Parameters
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • body (object)
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.custombatch

Retrieves or modifies multiple orders in a single request.

google_content.orders.custombatch({}, context)
Parameters
  • body (object)
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

products.custombatch

Retrieves, inserts, and deletes multiple products in a single request.

google_content.products.custombatch({}, context)
Parameters
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • body (object)
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

productstatuses.custombatch

Gets the statuses of multiple products in a single request.

google_content.productstatuses.custombatch({}, context)
Parameters
  • body (object)
  • includeAttributes (boolean) - Flag to include full product data in the results of this request. The default value is false.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

shippingsettings.custombatch

Retrieves and updates the shipping settings of multiple accounts in a single request.

google_content.shippingsettings.custombatch({}, context)
Parameters
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • body (object)
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounts.list

Lists the sub-accounts in your Merchant Center account.

google_content.accounts.list({
  "merchantId": ""
}, context)
Parameters
  • maxResults (integer) - The maximum number of accounts to return in the response, used for paging.
  • merchantId (string) required - The ID of the managing account. This must be a multi-client account.
  • pageToken (string) - The token returned by the previous request.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounts.insert

Creates a Merchant Center sub-account.

google_content.accounts.insert({
  "merchantId": ""
}, context)
Parameters
  • body (object) - Account data.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the managing account. This must be a multi-client account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounts.delete

Deletes a Merchant Center sub-account.

google_content.accounts.delete({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • force (boolean) - Flag to delete sub-accounts with products. The default value is false.
  • merchantId (string) required - The ID of the managing account. This must be a multi-client account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounts.get

Retrieves a Merchant Center account.

google_content.accounts.get({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounts.patch

Updates a Merchant Center account. This method supports patch semantics.

google_content.accounts.patch({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account.
  • body (object) - Account data.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounts.update

Updates a Merchant Center account.

google_content.accounts.update({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account.
  • body (object) - Account data.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounts.claimwebsite

Claims the website of a Merchant Center sub-account.

google_content.accounts.claimwebsite({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account whose website is claimed.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • overwrite (boolean) - Only available to selected merchants. When set to True, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accountstatuses.list

Lists the statuses of the sub-accounts in your Merchant Center account.

google_content.accountstatuses.list({
  "merchantId": ""
}, context)
Parameters
  • maxResults (integer) - The maximum number of account statuses to return in the response, used for paging.
  • merchantId (string) required - The ID of the managing account. This must be a multi-client account.
  • pageToken (string) - The token returned by the previous request.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accountstatuses.get

Retrieves the status of a Merchant Center account.

google_content.accountstatuses.get({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounttax.list

Lists the tax settings of the sub-accounts in your Merchant Center account.

google_content.accounttax.list({
  "merchantId": ""
}, context)
Parameters
  • maxResults (integer) - The maximum number of tax settings to return in the response, used for paging.
  • merchantId (string) required - The ID of the managing account. This must be a multi-client account.
  • pageToken (string) - The token returned by the previous request.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounttax.get

Retrieves the tax settings of the account.

google_content.accounttax.get({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account for which to get/update account tax settings.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounttax.patch

Updates the tax settings of the account. This method supports patch semantics.

google_content.accounttax.patch({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account for which to get/update account tax settings.
  • body (object) - The tax settings of a merchant account.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

accounttax.update

Updates the tax settings of the account.

google_content.accounttax.update({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account for which to get/update account tax settings.
  • body (object) - The tax settings of a merchant account.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

datafeeds.list

Lists the datafeeds in your Merchant Center account.

google_content.datafeeds.list({
  "merchantId": ""
}, context)
Parameters
  • maxResults (integer) - The maximum number of products to return in the response, used for paging.
  • merchantId (string) required - The ID of the account that manages the datafeeds. This account cannot be a multi-client account.
  • pageToken (string) - The token returned by the previous request.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

datafeeds.insert

Registers a datafeed configuration with your Merchant Center account.

google_content.datafeeds.insert({
  "merchantId": ""
}, context)
Parameters
  • body (object) - Datafeed configuration data.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the account that manages the datafeed. This account cannot be a multi-client account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

datafeeds.delete

Deletes a datafeed configuration from your Merchant Center account.

google_content.datafeeds.delete({
  "datafeedId": "",
  "merchantId": ""
}, context)
Parameters
  • datafeedId (string) required - The ID of the datafeed.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the account that manages the datafeed. This account cannot be a multi-client account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

datafeeds.get

Retrieves a datafeed configuration from your Merchant Center account.

google_content.datafeeds.get({
  "datafeedId": "",
  "merchantId": ""
}, context)
Parameters
  • datafeedId (string) required - The ID of the datafeed.
  • merchantId (string) required - The ID of the account that manages the datafeed. This account cannot be a multi-client account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

datafeeds.patch

Updates a datafeed configuration of your Merchant Center account. This method supports patch semantics.

google_content.datafeeds.patch({
  "datafeedId": "",
  "merchantId": ""
}, context)
Parameters
  • body (object) - Datafeed configuration data.
  • datafeedId (string) required - The ID of the datafeed.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the account that manages the datafeed. This account cannot be a multi-client account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

datafeeds.update

Updates a datafeed configuration of your Merchant Center account.

google_content.datafeeds.update({
  "datafeedId": "",
  "merchantId": ""
}, context)
Parameters
  • body (object) - Datafeed configuration data.
  • datafeedId (string) required - The ID of the datafeed.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the account that manages the datafeed. This account cannot be a multi-client account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

datafeedstatuses.list

Lists the statuses of the datafeeds in your Merchant Center account.

google_content.datafeedstatuses.list({
  "merchantId": ""
}, context)
Parameters
  • maxResults (integer) - The maximum number of products to return in the response, used for paging.
  • merchantId (string) required - The ID of the account that manages the datafeeds. This account cannot be a multi-client account.
  • pageToken (string) - The token returned by the previous request.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

datafeedstatuses.get

Retrieves the status of a datafeed from your Merchant Center account.

google_content.datafeedstatuses.get({
  "datafeedId": "",
  "merchantId": ""
}, context)
Parameters
  • country (string) - The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.
  • datafeedId (string) required - The ID of the datafeed.
  • language (string) - The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.
  • merchantId (string) required - The ID of the account that manages the datafeed. This account cannot be a multi-client account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

inventory.set

Updates price and availability of a product in your Merchant Center account.

google_content.inventory.set({
  "merchantId": "",
  "productId": "",
  "storeCode": ""
}, context)
Parameters
  • body (object)
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the account that contains the product. This account cannot be a multi-client account.
  • productId (string) required - The REST id of the product for which to update price and availability.
  • storeCode (string) required - The code of the store for which to update price and availability. Use online to update price and availability of an online product.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.list

Lists the orders in your Merchant Center account.

google_content.orders.list({
  "merchantId": ""
}, context)
Parameters
  • acknowledged (boolean) - Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged.
  • maxResults (integer) - The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page.
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderBy (string) - The ordering of the returned list. The only supported value are placedDate desc and placedDate asc for now, which returns orders sorted by placement date. "placedDate desc" stands for listing orders by placement date, from oldest to most recent. "placedDate asc" stands for listing orders by placement date, from most recent to oldest. In future releases we'll support other sorting criteria.
  • pageToken (string) - The token returned by the previous request.
  • placedDateEnd (string) - Obtains orders placed before this date (exclusively), in ISO 8601 format.
  • placedDateStart (string) - Obtains orders placed after this date (inclusively), in ISO 8601 format.
  • statuses (array) - Obtains orders that match any of the specified statuses. Multiple values can be specified with comma separation. Additionally, please note that active is a shortcut for pendingShipment and partiallyShipped, and completed is a shortcut for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and canceled.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.get

Retrieves an order from your Merchant Center account.

google_content.orders.get({
  "merchantId": "",
  "orderId": ""
}, context)
Parameters
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId (string) required - The ID of the order.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.acknowledge

Marks an order as acknowledged.

google_content.orders.acknowledge({
  "merchantId": "",
  "orderId": ""
}, context)
Parameters
  • body (object)
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId (string) required - The ID of the order.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.cancel

Cancels all line items in an order, making a full refund.

google_content.orders.cancel({
  "merchantId": "",
  "orderId": ""
}, context)
Parameters
  • body (object)
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId (string) required - The ID of the order to cancel.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.cancellineitem

Cancels a line item, making a full refund.

google_content.orders.cancellineitem({
  "merchantId": "",
  "orderId": ""
}, context)
Parameters
  • body (object)
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId (string) required - The ID of the order.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.refund

Refund a portion of the order, up to the full amount paid.

google_content.orders.refund({
  "merchantId": "",
  "orderId": ""
}, context)
Parameters
  • body (object)
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId (string) required - The ID of the order to refund.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.returnlineitem

Returns a line item.

google_content.orders.returnlineitem({
  "merchantId": "",
  "orderId": ""
}, context)
Parameters
  • body (object)
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId (string) required - The ID of the order.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.shiplineitems

Marks line item(s) as shipped.

google_content.orders.shiplineitems({
  "merchantId": "",
  "orderId": ""
}, context)
Parameters
  • body (object)
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId (string) required - The ID of the order.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.updatemerchantorderid

Updates the merchant order ID for a given order.

google_content.orders.updatemerchantorderid({
  "merchantId": "",
  "orderId": ""
}, context)
Parameters
  • body (object)
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId (string) required - The ID of the order.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.updateshipment

Updates a shipment's status, carrier, and/or tracking ID.

google_content.orders.updateshipment({
  "merchantId": "",
  "orderId": ""
}, context)
Parameters
  • body (object)
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId (string) required - The ID of the order.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.getbymerchantorderid

Retrieves an order using merchant order id.

google_content.orders.getbymerchantorderid({
  "merchantId": "",
  "merchantOrderId": ""
}, context)
Parameters
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • merchantOrderId (string) required - The merchant order id to be looked for.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

products.list

Lists the products in your Merchant Center account.

google_content.products.list({
  "merchantId": ""
}, context)
Parameters
  • includeInvalidInsertedItems (boolean) - Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false).
  • maxResults (integer) - The maximum number of products to return in the response, used for paging.
  • merchantId (string) required - The ID of the account that contains the products. This account cannot be a multi-client account.
  • pageToken (string) - The token returned by the previous request.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

products.insert

Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry.

google_content.products.insert({
  "merchantId": ""
}, context)
Parameters
  • body (object) - Product data.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the account that contains the product. This account cannot be a multi-client account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

products.delete

Deletes a product from your Merchant Center account.

google_content.products.delete({
  "merchantId": "",
  "productId": ""
}, context)
Parameters
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the account that contains the product. This account cannot be a multi-client account.
  • productId (string) required - The REST id of the product.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

products.get

Retrieves a product from your Merchant Center account.

google_content.products.get({
  "merchantId": "",
  "productId": ""
}, context)
Parameters
  • merchantId (string) required - The ID of the account that contains the product. This account cannot be a multi-client account.
  • productId (string) required - The REST id of the product.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

productstatuses.list

Lists the statuses of the products in your Merchant Center account.

google_content.productstatuses.list({
  "merchantId": ""
}, context)
Parameters
  • includeAttributes (boolean) - Flag to include full product data in the results of the list request. The default value is false.
  • includeInvalidInsertedItems (boolean) - Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false).
  • maxResults (integer) - The maximum number of product statuses to return in the response, used for paging.
  • merchantId (string) required - The ID of the account that contains the products. This account cannot be a multi-client account.
  • pageToken (string) - The token returned by the previous request.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

productstatuses.get

Gets the status of a product from your Merchant Center account.

google_content.productstatuses.get({
  "merchantId": "",
  "productId": ""
}, context)
Parameters
  • includeAttributes (boolean) - Flag to include full product data in the result of this get request. The default value is false.
  • merchantId (string) required - The ID of the account that contains the product. This account cannot be a multi-client account.
  • productId (string) required - The REST id of the product.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

shippingsettings.list

Lists the shipping settings of the sub-accounts in your Merchant Center account.

google_content.shippingsettings.list({
  "merchantId": ""
}, context)
Parameters
  • maxResults (integer) - The maximum number of shipping settings to return in the response, used for paging.
  • merchantId (string) required - The ID of the managing account. This must be a multi-client account.
  • pageToken (string) - The token returned by the previous request.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

shippingsettings.get

Retrieves the shipping settings of the account.

google_content.shippingsettings.get({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account for which to get/update shipping settings.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

shippingsettings.patch

Updates the shipping settings of the account. This method supports patch semantics.

google_content.shippingsettings.patch({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account for which to get/update shipping settings.
  • body (object) - The merchant account's shipping settings.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

shippingsettings.update

Updates the shipping settings of the account.

google_content.shippingsettings.update({
  "accountId": "",
  "merchantId": ""
}, context)
Parameters
  • accountId (string) required - The ID of the account for which to get/update shipping settings.
  • body (object) - The merchant account's shipping settings.
  • dryRun (boolean) - Flag to run the request in dry-run mode.
  • merchantId (string) required - The ID of the managing account. If this account is not a multi-client account, then this parameter must be the same as accountId.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

shippingsettings.getsupportedcarriers

Retrieves supported carriers and carrier services for an account.

google_content.shippingsettings.getsupportedcarriers({
  "merchantId": ""
}, context)
Parameters
  • merchantId (string) required - The ID of the account for which to retrieve the supported carriers.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.createtestorder

Sandbox only. Creates a test order.

google_content.orders.createtestorder({
  "merchantId": ""
}, context)
Parameters
  • body (object)
  • merchantId (string) required - The ID of the account that should manage the order. This cannot be a multi-client account.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.advancetestorder

Sandbox only. Moves a test order from state "inProgress" to state "pendingShipment".

google_content.orders.advancetestorder({
  "merchantId": "",
  "orderId": ""
}, context)
Parameters
  • merchantId (string) required - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId (string) required - The ID of the test order to modify.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

orders.gettestordertemplate

Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.

google_content.orders.gettestordertemplate({
  "merchantId": "",
  "templateName": ""
}, context)
Parameters
  • merchantId (string) required - The ID of the account that should manage the order. This cannot be a multi-client account.
  • templateName (string) required - The name of the template to retrieve.
  • alt (string) - Data format for the response.
  • fields (string) - Selector specifying which fields to include in a partial response.
  • key (string) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • oauth_token (string) - OAuth 2.0 token for the current user.
  • prettyPrint (boolean) - Returns response with indentations and line breaks.
  • quotaUser (string) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  • userIp (string) - IP address of the site where the request originates. Use this if you want to enforce per-user limits.

FAQs

Package last updated on 10 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc