GMC Document
GMC Document
https://developers.google.com/shopping-content/guides/quickstart/exploring-the-
content-api:
## Content API for Shopping - Summary
### Overview
The Content API for Shopping allows developers to manage their product listings and
orders in the Google Merchant Center via API calls. This API integrates data from a
selling partner and posts it to the customer's selling account.
response = service.products().insert(merchantId='YOUR_MERCHANT_ID',
body=product).execute()
```
This summary provides the essential information needed to start integrating with
the Google Content API for Shopping using Python. Developers should refer to the
documentation for more in-depth details about specific fields and advanced
features.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/how-tos/authorizing:
# Google Merchant Center Content API: Authorization Guide
## Overview
The authorization process for accessing the Google Merchant Center's Content API
follows the OAuth 2.0 protocol. This process allows third-party applications to
request access to user data and ensures secure communication between your
application and Google's services.
## Key Concepts
- **Scopes**: Determine the level of access requested. For the Content API, the
relevant scope is:
- `https://www.googleapis.com/auth/content`: Read/write access.
### Verification
Apps that access the Content API must undergo an OAuth verification review.
Unverified apps will display warnings and may have limited functionality. The
review process typically takes 3-5 business days.
## API Example
```php
require_once 'Google/Client.php';
session_start();
$client = new Google_Client();
$client->setApplicationName('Sample Content API application');
$client->setClientId('YOUR_CLIENT_ID');
$client->setClientSecret('YOUR_CLIENT_SECRET');
$client->setRedirectUri('YOUR_REDIRECT_URI');
$client->setScopes('https://www.googleapis.com/auth/content');
if (isset($_SESSION['oauth_access_token'])) {
$client->setAccessToken($_SESSION['oauth_access_token']);
} elseif (isset($_GET['code'])) {
$token = $client->authenticate($_GET['code']);
$_SESSION['oauth_access_token'] = $token;
} else {
header('Location: ' . $client->createAuthUrl());
exit;
}
## Important Notes
- Ensure your application is OAuth verified to avoid limitations and warnings for
users.
- Use session management to store and retrieve the access token for user sessions.
- Follow best practices for handling sensitive data like client secrets and access
tokens.
- Refer to the Google OAuth 2.0 documentation for more extensive details on
additional flows and methods.
This guide focuses exclusively on Python examples related to the Google Merchant
Center APIs for those specifically looking for Python implementations, while
acknowledging that alternate options in other languages (like Node.js, PHP, and
Ruby) are available as needed.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/how-tos/service-accounts:
### Summary of Service Accounts for the Content API for Shopping
#### Prerequisites
- A Merchant Center account.
```python
from google.oauth2 import service_account
from googleapiclient.discovery import build
# Load the service account credentials from the JSON key file
credentials = service_account.Credentials.from_service_account_file(
'path/to/your/service-account.json'
)
print(accounts)
```
For detailed examples specific to Python, consult the [Content API for Shopping
Samples](https://developers.google.com/shopping-content/samples).
_____________________________
### Overview
The Control Access section of the Content API for Shopping outlines how to manage
user permissions within a Merchant Center account.
### Licensing
Content is offered under the Creative Commons Attribution 4.0 License, and code
samples are under the Apache 2.0 License. Please refer to the Google Developers
Site Policies for further information.
---
For practical coding examples and the latest updates, developers should consult the
API Reference and other guides available on the official [Google Developers site]
(https://developers.google.com/shopping-content/guides/control-access).
_____________________________
## Overview
The Google Content API for Shopping allows users to manage product data in a
Merchant Center account programmatically. This documentation guide provides code
snippets primarily for Python for creating, retrieving, and updating products,
using the API efficiently and following best practices.
## Key Concepts
- **Merchant Account**: You need an active Merchant Center account to interact with
the API.
- **API Requests**: Interaction with the API is done through HTTP requests,
including GET, POST, and batch requests.
- **Authorization**: All requests must be authorized, typically using OAuth 2.0.
## API Snippets
**Endpoint:**
```
POST /content/v2.1/YOUR_MERCHANT_ID/products
```
**Request Body:**
```json
{
"offerId": "book123",
"title": "A Tale of Two Cities",
"description": "A classic novel about the French Revolution",
"link": "http://my-book-shop.com/tale-of-two-cities.html",
"imageLink": "http://my-book-shop.com/tale-of-two-cities.jpg",
"contentLanguage": "en",
"targetCountry": "GB",
"feedLabel": "GB",
"channel": "online",
"availability": "in stock",
"condition": "new",
"googleProductCategory": "Media > Books",
"gtin": "9780007350896",
"price": {
"value": "2.50",
"currency": "GBP"
},
"shipping": [{
"country": "GB",
"service": "Standard shipping",
"price": {
"value": "0.99",
"currency": "GBP"
}
}],
"shippingWeight": {
"value": "200",
"unit": "grams"
}
}
```
**Endpoint:**
```
GET /content/v2.1/YOUR_MERCHANT_ID/products
```
**Endpoint:**
```
GET /content/v2.1/YOUR_MERCHANT_ID/products/online:en:GB:book123
```
**Endpoint:**
```
POST /content/v2.1/YOUR_MERCHANT_ID/products?YOUR_SUPPLEMENTAL_FEED_ID
```
**Request Body:**
```json
{
"offerId": "book123",
"contentLanguage": "en",
"targetCountry": "GB",
"feedLabel": "GB",
"channel": "online",
"availability": "out of stock"
}
```
**Endpoint:**
```
POST
/content/v2.1/YOUR_MERCHANT_ID/localinventory/online/products/online:en:GB:book123
```
**Request Body:**
```json
{
"availability": "out of stock"
}
```
## Important Notes
- **Batch Requests**: The API supports batch requests, which can be more efficient
for multiple operations.
- **Best Practices**: Following best practices for error handling and API calls is
essential. Refer to related best practices documentation.
- **Quotas and Limits**: Be aware of usage limits to avoid service interruptions.
- **Merchant API Beta**: There is a newer Merchant API Beta version available, with
enhancements for integration.
## Conclusion
This guide provides essential information to interact with the Google Content API
for Shopping through Python code examples. Be sure to refer to the official
documentation for the most recent updates and comprehensive details.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/how-tos/batch:
### Summary: Google Merchant Center Batch Requests
The Google Merchant Center APIs allow you to gather data from customers and post
data to their selling accounts using various API calls. The focus here is on batch
requests, which enable multiple calls to be executed in a single request.
1. **Batch Requests**:
- Group several API calls (entries) into a single HTTP request using the
`custombatch` method.
- Suitable for initial uploads or synchronizing large amounts of data.
2. **Execution Order**:
- There is no guarantee that entries will be executed in the order they are
sent.
- Responses may also be returned out of order; use `BatchId` to correlate
requests and responses.
3. **Failure Modes**:
- Two types of failures:
- Top-level errors: Individual entry responses are not returned.
- Individual entry errors: Responds with details for each failing entry.
You can organize your batch requests using the following custom batch methods for
different resources:
- **Accounts**: `accounts.custombatch`
- **Account Statuses**: `accountstatuses.custombatch`
- **Account Tax**: `accounttax.custombatch`
- **Datafeeds**: `datafeeds.custombatch`
- **Datafeed Statuses**: `datafeedstatuses.custombatch`
- **Local Inventory**: `localinventory.custombatch`
- **Local Inventory Settings**: `liasettings.custombatch`
- **POS**: `pos.custombatch`
- **Products**: `products.custombatch`
- **Product Statuses**: `productstatuses.custombatch`
- **Shipping Settings**: `shippingsettings.custombatch`
```json
POST https://shoppingcontent.googleapis.com/content/v2.1/accounts/custombatch
{
"entries": [
{
"batchId": "1",
"method": "insert",
"accountId": 123456,
"product": {
"offerId": "ABC123",
"title": "Sample Product",
"description": "Sample product description.",
"link": "http://www.example.com/product/ABC123",
"condition": "new",
"availability": "in stock",
"price": "19.99 USD"
}
},
{
"batchId": "2",
"method": "update",
"accountId": 123456,
"product": {
"offerId": "DEF456",
"price": "24.99 USD"
}
}
]
}
```
- **Do not include interdependent calls** in a single batch request to avoid order
issues.
- Ensure your implementation is updated to comply with limits imposed as of May 31,
2022.
- This API is currently in beta, and information can be found in the [Merchant API
Beta announcement](https://developers.google.com/shopping-content/guides/how-tos/
batch).
This summary provides a clear reference for developers looking to utilize Google
Merchant Center's batch request capabilities through its API, focusing on Python
programming for API interaction.
_____________________________
## Overview
The Google Content API for Shopping allows developers to interact programmatically
with the Google Merchant Center. It is designed to gather data from a selling
partner’s account and post data to that account. The API is being succeeded by the
Merchant API Beta, which is more advanced. Relevant query parameters apply to all
operations within the API.
## Key Features
- **API Methods:** The API offers methods for managing product data, shipping, and
ads.
- **Authorization:** Uses OAuth for service accounts to control access.
- **Query Parameters:** Standard query parameters are documented and are applicable
to all methods.
## Code Examples
Currently, no specific code snippets or API requests are provided in the extracted
content. However, developers looking for Python examples should only refer to the
Python SDK and avoid other languages like Node.js, PHP, or Ruby.
url = 'https://content.googleapis.com/content/v2.1/accounts/{accountId}/products'
headers = {'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
response = requests.get(url, headers=headers)
if response.status_code == 200:
data = response.json()
print(data) # Handle the retrieved product data
else:
print(f'Error: {response.status_code} - {response.text}')
```
## Key Concepts
- **OAuth for Service Accounts**: Required for accessing the API securely.
- **Query Parameters**: Standard query parameters applicable across API methods
must be referenced to understand integration deeply.
- **Merchant API Beta**: Future-focused API with enhanced capabilities, which
developers can provide feedback on to improve.
## Conclusion
Developers should focus on the query parameters applicable to their required
operations and stay updated on the transition to the Merchant API Beta, ensuring
they are using the most appropriate resources for interactions with Google Merchant
accounts.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/how-tos/testing:
### Summary of Google Merchant Center Testing Documentation
#### Overview
The documentation provides guidance on testing code that utilizes the Content API
for Shopping. The approach is to set up a separate Merchant Center account
specifically for testing purposes, which allows you to conduct manual and automated
tests without impacting active feeds or Shopping campaigns.
### Conclusion
Developers looking to test the Google Merchant Center APIs should focus on setting
up a dedicated test environment with the steps provided and keep in mind the
limitations associated with using an account without a valid storefront. Utilizing
the Python client library will enhance the ease of testing and integration.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/how-tos/severity-mapping:
### Summary of Google Merchant Center API: Issue Severity Mapping
#### Overview
The Google Merchant Center APIs allow users to monitor their product status and
manage issues affecting their accounts or products. This is particularly useful for
automating alerts regarding issues through the Content API.
```json
{
"kind": "content#accountStatus",
"accountId": "...",
"accountLevelIssues": [
{
"id": "editorial_and_professional_standards_destination_url_down_policy",
"title": "Account suspended due to policy violation",
"country": "US",
"severity": "critical",
"documentation": "https://support.google.com/merchants/answer/6150244#wycd-
usefulness"
},
{
"id": "missing_ad_words_link",
"title": "No Google Ads account linked",
"severity": "error",
"documentation": "https://support.google.com/merchants/answer/6159060"
}
],
"products": [
{
"channel": "online",
"destination": "Shopping",
"country": "US",
"statistics": {
"active": "0",
"pending": "0",
"disapproved": "5",
"expiring": "0"
},
"itemLevelIssues": [
{
"code": "image_link_broken",
"servability": "disapproved",
"resolution": "merchant_action",
"attributeName": "image link",
"description": "Invalid image [image link]",
"detail": "Ensure the image is accessible.",
"documentation": "https://support.google.com/merchants/answer/6098289",
"numItems": "2"
}
]
}
]
}
```
```json
{
"kind": "content#productstatusesListResponse",
"resources": [
{
"kind": "content#productStatus",
"productId": "online:en:US:online-en-US-GGL614",
"itemLevelIssues": [
{
"code": "mobile_landing_page_crawling_not_allowed",
"servability": "disapproved",
"resolution": "merchant_action",
"attributeName": "link",
"description": "Mobile page not crawlable due to robots.txt",
"documentation": "https://support.google.com/merchants/answer/6098296"
}
]
}
]
}
```
#### Caveats
- Stay updated with the relevant documentation for each error type to resolve
issues effectively.
- Maintain a routine check on the account and product statuses using the provided
API methods to ensure compliance and optimal performance.
By understanding and utilizing these API methods along with the severity levels,
developers can manage their Google Merchant Center accounts proactively.
_____________________________
## Overview
The Merchant API is the newer version of the Content API for Shopping, designed to
help third-party developers create diagnostic pages for merchants. This guide
provides insights on accessing and utilizing the MerchantSupport service for
troubleshooting within the Merchant Center.
## Key Concepts
2. **Trigger Action**
- **Endpoint**:
```
POST
https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/merchantsupport/
triggeraction
```
- **Parameters**:
- `{merchantId}`: Unique identifier for the merchant account.
- Request Body:
```json
{
"actionContext": "ActionContextValue=",
"actionInput": {
"actionFlowId": "flow1",
"inputValues": [
{ "input_field_id": "input1", "checkbox_input_value": { "value":
true } }
]
}
}
```
## Implementation Notes
- **UI Integration**:
- Use of pre-rendered HTML content directly from the API response should be
embedded in the application.
- Ensure to sanitize HTML inputs to prevent XSS vulnerabilities (recommended
usage of libraries like DOMPurify).
- **Caching**:
- Do not cache responses from the MerchantSupport service to always display the
most recent data.
- **Error Handling**:
- Anticipate possible errors such as `INVALID_ARGUMENT` and `FAILED_PRECONDITION`
and guide users to reload or provide the correct inputs.
## Examples
## Key Caveats
- Ensure compliance with Google policies for content representation when using the
API.
- Regularly review changes in API and policy as Google may introduce updates that
could affect functionality.
This summary provides the essential steps and considerations for developers to
utilize the Merchant API effectively. For a successful integration, developers
should actively follow the guidelines, handle errors adeptly, and maintain up-to-
date knowledge of documentation changes.
_____________________________
### UI Considerations
- Use styled elements for displaying issues, recommendations, and user input
dialogues.
- Ensure that tooltips and messages visually stand out to assist merchants easily.
### Useful Links
- [Misrepresentation Policy](https://support.google.com/merchants/answer/6150127?
hl=en-US)
- [Adult-oriented Content
Policy](https://support.google.com/merchants/answer/6150138?hl=en-US#wycd-
restricted-adult-content)
- [Missing Policy Information](https://support.google.com/merchants/answer/9158778?
hl=en-US)
By following these guidelines and using the provided API snippets, developers can
effectively integrate Google Merchant Center's functionalities into their
applications.
_____________________________
## Overview
The Content API for Shopping allows users to programmatically manage their product
inventory and account settings in Google Merchant Center. This guide highlights
best practices and critical considerations for utilizing the API.
- **Account Management**:
- Methods related to account settings: `Accounts.link`, `Accounts.approve`,
`Accounts.remove`.
# Insert a product
product = {
"offerId": "12345",
"title": "Sample Product",
"description": "This is a sample product description.",
"link": "http://www.example.com/sample-product",
"imageLink": "http://www.example.com/image.jpg",
"condition": "new",
"availability": "in stock",
"price": {"value": "15.00", "currency": "USD"}
}
## Key Concepts
- **Tokens**: Utilize refresh tokens for maintaining user authentication after
initial access tokens expire (60 mins).
- **Destinations Attributes**: Control which products appear in various shopping
programs using `includedDestinations` and `excludedDestinations`.
## Important Notes
- **Keep Client Libraries Updated**: Always ensure that you are using the latest
version of Google client libraries to prevent issues.
- **Focusing on Product Updates**: Be strategic about when to conduct large updates
or clean-up actions to avoid deactivating items.
- **Managing Item Expiration**: Items must be updated before they reach 30 days of
expiration to prevent deactivation.
## Caveats
- **Interchanging Between API and Data Feeds**: Understand how product ownership
operates between data feeds and API to avoid loss of product data when switching
methods.
- **Deleting Content API Feeds**: Do not delete Content API feeds in the Merchant
Center, as it may lead to loss of product data added through the API.
### Conclusion
The Content API for Shopping is a powerful tool for managing product data, provided
developers adhere to best practices to maintain operational efficiency and data
integrity.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/how-tos/performance:
# Summary of Google Merchant Center Content API Performance Tips
## Key Concepts
1. **Gzip Compression**:
- To reduce bandwidth for API requests, enable gzip compression.
- Required HTTP headers:
```http
Accept-Encoding: gzip
User-Agent: my program (gzip)
```
2. **Partial Responses**:
- Request only the necessary fields in a response to improve performance, which
conserves network, CPU, and memory resources.
- Use the `fields` request parameter to specify the desired fields.
- Example request for full response:
```http
GET https://www.googleapis.com/demo/v1
```
## Code Examples
- If an error occurs with the `fields` parameter, the server will respond with:
```http
400 Bad Request
```
Example error message: "Invalid field selection a/b".
## Important Notes
- **API Pagination**: For APIs supporting pagination (like `maxResults`), use these
parameters to keep responses manageable. This enhances performance when dealing
with large datasets.
- Always URL encode the `fields` parameter values for successful requests.
By following these guidelines, you can optimize interactions with the Google
Merchant Center APIs effectively.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/how-tos/performance#partial-
response:
### Summary of Google Merchant Center APIs - Performance Tips
- **Examples**:
```plaintext
fields=items // Selects all items
fields=etag,items // Selects etag and all items
fields=items/title // Selects only the title field of items
fields=items(id,author/email) // Selects id and author's email only
```
## Overview
The Content API for Shopping has strict quotas and limits to ensure fair usage.
These quotas can change without notice. Key points include limits on how often you
can update product data and account information.
## Key Concepts
### Quotas
- **General Policy**: Recommended to update products no more than twice a day and
sub-accounts once a day.
- **Quota Tracking**: Quotas are per-method. Different methods like `get` and
`update` have separate limits.
- **Batch Requests**: Each method call (like those in `custombatch`) counts against
its respective quota.
These limits mirror those in the Merchant Center and cannot be extended.
## Important Notes
- **Method Call Limits**: Calls to `datafeeds.fetchnow` should be minimized; use
the products service for updates more than once daily.
- **Quota Increases**: If you hit quota limits, you can request increases by
providing:
- Your Merchant Center ID
- Methods hitting limits
- Estimated daily calls needed
- Reason for the increase
## Conclusion
Being aware of these quotas and limits is critical for developers using the Content
API for Shopping to avoid service disruptions. Regularly monitor usage and follow
best practices to stay within limits and ensure smooth operation.
---
This summary contains the essential information about quotas, API usage guidelines,
and error handling for the Google Content API for Shopping, focusing on practical
considerations for developers.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/accountstatuses:
# Summary of Google Merchant Center APIs - Account Statuses Resource
The Google Merchant Center API provides methods to view the status of a Merchant
Center account or multi-client accounts (MCAs) and all associated sub-accounts. The
key resource discussed on the documentation page is `accountstatuses`, which allows
merchants to manage and troubleshoot their accounts.
- **Account Status**: Utilizes resources to observe the current state and any
issues associated with the Merchant Center account or its sub-accounts.
- **Multi-Client Account (MCA)**: Allows a merchant to manage multiple sub-accounts
under one main account, ideal for merchants with multiple stores or brands.
- **Account Level Issues**: Problems that affect the entire account, such as policy
violations or missing configurations.
1. **accountstatuses.get**
- **Description**: Retrieves the status for a single merchant account.
- **Request**:
```http
GET
https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/accountstatuses/
{accountId}
```
- **Response**: Returns account status and associated issues.
- **Example Response**:
```json
{
"kind": "content#accountStatus",
"accountId": "123456789",
"websiteClaimed": true,
"accountLevelIssues": [
{
"id":
"editorial_and_professional_standards_destination_url_down_policy",
"title": "Account suspended due to policy violation: landing page not
working",
"country": "US",
"severity": "critical"
},
...
],
...
}
```
2. **accountstatuses.list**
- **Description**: Fetches status information for all sub-accounts of a given
MCA.
- **Request**:
```http
GET
https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/accountstatuses
```
- **Response**: Returns a list of account status information across all sub-
accounts.
3. **accountstatuses.custombatch**
- **Description**: Allows querying of multiple sub-accounts in a single request.
- **Request**:
```http
POST https://shoppingcontent.googleapis.com/content/v2.1/accountstatuses/batch
```
- **Request Body (Sample)**:
```json
{
"entries": [
{
"accountId": "1212121212",
"merchantId": "4444444444",
"method": "get",
"batchId": 1
},
...
]
}
```
- **Response**: Returns status for multiple accounts.
- Always ensure that your Merchant Center account adheres to Google's policies to
avoid critical issues such as account suspension.
### Conclusion
The Account Status resource of Google Merchant Center API is essential for managing
and troubleshooting merchant accounts in an efficient manner. Through the
utilization of the `accountstatuses.get`, `accountstatuses.list`, and
`accountstatuses.custombatch` methods, merchants can effectively monitor their
account status and resolve any issues related to account compliance and product
listings.
_____________________________
#### Overview
The Google Merchant Center APIs help gather data from a customer’s selling partner
and enable posting data to the customer’s selling account. This documentation
focuses on the free listings and the methods available to manage them.
---
---
- **Free Listings**: These are product listings which appear in Google Search for
free without requiring a paid advertisement. Merchants must comply with the
policies set forth by Google.
- **Severity Levels**:
- Issues can have different severity levels:
- **WARNING**: Could lead to future disapproval if unresolved.
- **DISAPPROVED**: Products cannot appear in free listings until resolved.
---
---
Adherence to this overview will assist in using the Google Merchant Center APIs
effectively for managing free listings.
_____________________________
## Overview
The Content API for Shopping allows sellers to provide a direct checkout link for
customers through free listings in Google Merchant Center. You must meet specific
criteria and use the appropriate API calls to set up and manage checkout links.
## Key Concepts
- **checkoutSettings Attribute**: Used to provide a direct link to the checkout
page from free listings.
- **Requirements**:
- Have an active product feed in Google Merchant Center.
- Your merchant account must be enrolled in the free listings program.
## Important Notes
- Ensure that you have completed the onboarding steps to enroll in the free
listings program.
- The checkout URL must be formatted correctly, and the `{id}` placeholder is
essential for the API to function correctly.
- The checkout functionality is currently in beta with the Merchant API, which may
change in future releases.
By following the outlined API methods and noting the essential requirements, you
can effectively integrate checkout links into your free listings on Google Merchant
Center using the Content API for Shopping.
_____________________________
## Overview
The Content API for Shopping allows access to shopping ads and facilitates the
management of products within a Google Merchant account. It provides methods to
retrieve, submit, and manage shopping ads and product information through APIs.
## Key Concepts
- **Merchant API**: A new version of the Content API for Shopping designed to
improve integration with additional features in beta.
- **Merchant ID**: A unique identifier required for making API calls to interact
with your shopping ads and Merchant Center account.
- **Shopping Ads Program**: A program that allows merchants to showcase their
products to users through ads.
## Important Notes
- **Warnings and Disapprovals**: Warnings may lead to disapprovals if not resolved
by certain deadlines. Some warnings impact impressions, while others do not.
- **Compliance**: Merchants are responsible for adhering to the Shopping ads
policies set by Google. Non-compliance can result in account actions.
- **Issue Severity**: Issues reported can either be warnings or errors that require
action to avoid potential disapprovals or impression impacts.
## Key Takeaways
- Focus on resolving issues promptly to maintain healthy ad performance.
- Utilize the `get` and `requestreview` methods effectively to manage and optimize
your shopping ads.
- Stay informed about potential policy changes and adhere to established guidelines
to prevent account penalties.
With the above information, developers can effectively utilize the Google Merchant
Center APIs to manage their shopping ads and ensure compliance while benefiting
from the available resources.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/flagging/overview:
### Summary of Google Merchant Center APIs - Content API for Shopping
#### Overview
The Content API for Shopping allows Google Shopping partners to manage
relationships with merchants, enabling services such as product data management and
order management.
- **Account Linking**:
- Partners can programmatically create and manage links between their Merchant
Center account and other merchants using the `accounts.link` method.
- Link requests must be approved by the merchant before being finalized.
#### Notes
- The API is currently available only to enabled Shopping partners.
- Flagging an account with `accounts.link` does not automatically merge accounts
into a multi-client account.
### Conclusion
For further integration, users should refer to the **Requesting Links** page for
additional details about defining services and finalizing account link setups.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/flagging/request:
# Google Merchant Center Content API for Shopping - Request Links Overview
This documentation provides an overview of the Content API for Shopping, focusing
on linking requests between Shopping partners and merchants.
## Key Concepts
2. **Services Provided**: Each linking request must specify which services the
partner offers. The supported service values include:
- `shoppingAdsProductManagement`: Manages product data for Shopping ads.
- `shoppingActionsProductManagement`: Manages product data for Buy on Google.
- `shoppingActionsOrderManagement`: Manages orders for Buy on Google.
## Code Example
Here is an example of how to send a link request using the Content API:
### API Call
```http
POST https://shoppingcontent.googleapis.com/content/v2.1/123456789/accounts/
123456789/link
```
```json
{
"linkedAccountId": "98765",
"linkType": "eCommercePlatform",
"services": [
"shoppingAdsProductManagement",
"shoppingActionsOrderManagement"
],
"action": "request"
}
```
## Important Notes
## Additional Information
- This beta version of the Merchant API is part of ongoing improvements to the
Content API for Shopping. For more information on how to adapt to the changes,
consult the "Announcing the Merchant API Beta" section.
Summary of URL:
https://developers.google.com/shopping-content/guides/flagging/list:
# Google Merchant Center API: List Links Overview
## API Functionality
The `listlinks` method retrieves all links associated with a merchant center
account. It allows merchants to manage linking requests from partners.
## API Usage
To list link requests, send an HTTP GET request to the following endpoint:
```
GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/accounts/
{accountId}/listlinks
```
To list the link requests for partner `123456789`, use the following request:
```http
GET https://shoppingcontent.googleapis.com/content/v2.1/123456789/accounts/
123456789/listlinks
```
## Important Notes
- **Approval Process**: Merchants must approve each service link for it to become
active. Services remain in a `pending` state until action is taken.
- **Service Removal**: If all services within a link are removed, the link will no
longer be retrieved by subsequent `listlinks` calls.
## Conclusion
This API allows for effective management of linked accounts in the Google Merchant
Center. It is vital for developers to understand the status transitions and
approval responsibilities to ensure proper integration and data sharing between
accounts.
### Note
For any integration, always refer to the latest documentation as APIs evolve and
may introduce new features or endpoints.
---
This summary is tailored specifically for Python developers interested in using the
Google Merchant Center APIs. No other programming languages were detailed per user
intent.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/flagging/approve:
## Summary of Google Merchant Center API - Approving Links
### Overview
The "Approve Links" feature allows a merchant to approve link requests from
partners within the Google Merchant Center. This can be done either through the
Google Merchant Center user interface or programmatically using the Content API for
Shopping.
```http
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/accounts/
{merchantId}/link
```
2. **Beta Version**: This functionality is part of the beta version of the Merchant
API, which is set to improve integration and overall functionality in the future.
By utilizing the above API approach, developers can programmatically manage link
approvals with flexibility in service selection.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/flagging/remove:
### Summary of Google Merchant Center Content API for Shopping - Remove Links
#### Overview
The Content API for Shopping allows merchants to manage their listings on Google
Merchant Center programmatically. This documentation focuses on how to remove links
between the merchant account and partners.
1. **Link Management**:
- Merchants can remove links to partners at any time through the Google Merchant
Center interface or programmatically via the API.
2. **Remove Action**:
- The `remove` action is used to unlink a specific service or a subset of
services associated with a partner.
- **Endpoint**:
```
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/accounts/
{accountId}/link
```
- **Fields**:
- `linkedAccountId`: The ID of the partner account to be unlinked.
- `linkType`: Type of the link (e.g., `eCommercePlatform`).
- `services`: List of services to be affected by the removal.
- `action`: Set to `"remove"` to indicate the operation type.
- **Example Request**:
```json
POST https://shoppingcontent.googleapis.com/content/v2.1/98765/accounts/98765/link
{
"linkedAccountId": "123456789",
"linkType": "eCommercePlatform",
"services": ["shoppingAdsProductManagement"],
"action": "remove"
}
```
In this example, the request is made to remove the link between the merchant
account **98765** and the partner account **123456789**, specifically for the
`shoppingAdsProductManagement` service.
- Once a link is removed, it can no longer be accessed and must be re-requested and
re-approved if needed.
- The new Merchant API, a beta version, is being developed as the future
replacement for the Content API for Shopping—information on its enhancements will
be available in the related documentation.
- Ensure that actions on links align with the overall strategy for managing
services in Google Merchant Center.
- Be aware of potential delays in the reflection of link removals in the Merchant
Center interface after making API calls.
#### Conclusion
This API allows merchants to effectively manage their partnerships with different
platforms by utilizing the remove link functionality, promoting better organization
and control of their listings on Google Merchant Center. For complete integration,
consider following the guidelines and updates about the Merchant API as it evolves.
_____________________________
#### Overview
The **Content API for Shopping** allows you to automate updates to product data in
your Merchant Center account. Automatic improvements can enhance user experience by
ensuring that product prices, availability, and images are current, leading to
increased traffic and conversion rates.
**API Snippet**:
```json
{
"accountItemUpdatesSettings": {
"allowPriceUpdates": true,
"allowAvailabilityUpdates": false,
"allowStrictAvailabilityUpdates": false,
"allowConditionUpdates": true
},
"effectiveAllowPriceUpdates": true,
"effectiveAllowAvailabilityUpdates": false,
"effectiveAllowStrictAvailabilityUpdates": false,
"effectiveConditionUpdates": true
}
```
**API Snippet**:
```json
{
"accountImageImprovementsSettings": {
"allowAutomaticImageImprovements": true
},
"effectiveAllowAutomaticImageImprovements": true
}
```
**API Snippet**:
```json
{
"allowShippingImprovements": true
}
```
#### Usage
To successfully use the Content API, developers must implement structured data on
their websites and utilize the above settings through the provided API snippets.
Each update allows for granular control over how product information is reflected
in Google’s shopping ecosystem, enhancing visibility and potential sales
conversions.
## Overview
The Content API for Shopping in the Google Merchant Center allows you to manage
conversion sources for your merchant account, enabling the tracking of conversion
data from both free listings and your website.
## Key Concepts
1. **Conversion Sources**: Sources that allow merchants to track conversions from
Google Analytics or directly through a website.
2. **Auto-Tagging**: A prerequisite for managing conversion sources, which involves
linking your Google Analytics account to your Merchant account.
3. **Google Analytics Integration**: Enables tracking of conversion data through
Google Analytics properties linked to the Merchant Center.
```http
POST
https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionsources/
```
**Request Body:**
```json
{
"googleAnalyticsLink": {
"propertyId": "{propertyId}"
}
}
```
**Response Example:**
```json
{
"conversionSourceId": "galk:{propertyId}",
"googleAnalyticsLink": {
"propertyId": "{propertyId}",
"attributionSettings": {
"attributionLookbackWindowInDays": 90,
"attributionModel": "CROSS_CHANNEL_DATA_DRIVEN",
"conversionType": [
{
"name": "purchase",
"includeInReporting": true
}
]
},
"propertyName": "My Property Name"
},
"state": "ACTIVE",
"controller": "MERCHANT"
}
```
```http
POST
https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionsources/
```
**Request Body:**
```json
{
"merchantCenterDestination": {
"displayName": "My tag destination",
"attributionSettings": {
"attributionLookbackWindowInDays": 60,
"attributionModel": "CROSS_CHANNEL_LAST_CLICK"
},
"currencyCode": "CHF"
}
}
```
**Response Example:**
```json
{
"conversionSourceId": "mcdn:12341241234",
"merchantCenterDestination": {
"destinationId": "MC-ABCD1234",
"attributionSettings": {
"attributionLookbackWindowInDays": 60,
"attributionModel": "CROSS_CHANNEL_LAST_CLICK"
},
"displayName": "My tag destination",
"currencyCode": "CHF"
},
"state": "ACTIVE",
"controller": "MERCHANT"
}
```
## Conclusion
This API facilitates the tracking and management of conversion sources effectively
within your Google Merchant Center account, ensuring accurate analytics and
reporting capabilities for your e-commerce operations. Only the Python data should
be downloaded for implementation, as stated in your intent.
_____________________________
### Overview
The Google Merchant Center Content API provides functionality to manage merchant
accounts and handle account-level issues that may impact a merchant’s ability to
operate effectively within the platform.
### Caveats
- Ensure all API endpoints are accessed following Google’s API usage guidelines,
including authorization requirements (OAuth).
- Regularly update any application using the Merchant API to align with the current
specifications and emerging practices outlined by Google.
### Conclusion
This summary provides an essential overview of account management issues within the
Google Merchant Center API, focusing on common issues, descriptions, and best
practices for maintaining a compliant merchant account. For further implementation
details or troubleshooting, refer to the specific API documentation entries related
to account management.
_____________________________
## Key Concepts
- **Google Merchant Center**: A platform used to upload and manage product listings
for Google Shopping ads.
- **Content API for Shopping**: Allows developers to programmatically manage the
account, including product listings, orders, and promotions.
- **Account Issues**: Common problems related to account setup that can affect
marketing performance such as product visibility and ad status.
## API Usage
**Authorization**: Use OAuth for securing API calls to the Merchant Center.
## Important Notes
- **Error Handling**: Always check for errors after making an API call. Handle
exceptional cases based on the error returned.
- **Account Verification**: Ensure that your phone number and address are verified
before trying to resolve other issues.
- **Documentation Updates**: The guidelines are subject to change; refer to the
[Content API Documentation](https://developers.google.com/shopping-content/guides/
account-issues#missing_ad_words_link) for the latest information.
- **Language Preferences**: The documentation focuses on supporting Python. Other
languages like Node.js, PHP, and Ruby are not supported for download.
## Conclusion
This summary outlines the critical issues related to Google Merchant accounts and
provides a basic structure for making API calls related to account linkage and
verification. Developers should ensure that their accounts are properly set up to
avoid critical errors and maintain compliance with Google’s policies.
_____________________________
1. **merchant_quality_low**
- **Description**: The account is not eligible for enhanced free listings.
- **Severity**: Error
2. **home_page_issue**
- **Description**: Website not claimed or website URL not provided.
- **Severity**: Critical
3. **pending_phone_verification**
- **Description**: Your phone number needs to be verified.
- **Severity**: Critical
4. **missing_ad_words_link**
- **Description**: No Google Ads account linked or pending Google Ads account
link request.
- **Severity**: Error
While the specific code snippets for API calls are not provided in the document,
it’s essential to follow these guidelines for implementing API calls within your
code:
- Use **OAuth** for authorization to access the Google Merchant Center APIs.
- Use the provided issue IDs when dealing with account issues in API requests.
- **Account Issues**: Familiarize yourself with the potential issue types and their
severity ratings. This knowledge will be essential for troubleshooting.
- **Merchant API**: The future version of the Content API expected to streamline
integrations.
- **Authorization**: Ensure you are using OAuth for secure access to your Merchant
Center account.
- **Batch Requests**: Implement batch processing to manage multiple API calls
efficiently.
- **Account Status**: Regularly check your account's status and resolve any issues
listed in the 'Account Issues' guide.
- Regularly monitor your Merchant Center account for issues and resolve them
promptly to prevent account suspension or ineligibility for features like enhanced
free listings.
- Ensure that your contact information and website URL are accurate and that your
website conforms to Google’s specifications to avoid misrepresentation issues.
- Familiarize yourself with policies regarding prohibited and misrepresented
content to ensure compliance and maintain account integrity.
### Conclusion
Utilizing the Google Merchant Center APIs effectively involves understanding common
account issues, proper API integration, adherence to guidelines for authorization,
and ensuring account compliance with Google’s policies. Regular monitoring and
prompt issue resolution are critical for maintaining the health of your merchant
account.
_____________________________
**Overview:**
The Google Merchant Center Content API enables interaction with the customer's
selling partner by gathering data and posting to their selling account. It's
essential for managing account issues that may impact merchant functionality and
visibility on Google platforms.
3. **Important Fields:**
- Commonly used fields in API calls include:
- **merchantId** (required): The ID of the merchant account.
- **accountStatus**: Indicates if the account status is good, suspended, etc.
- **productId**: Unique identifier for the product being managed.
```python
import requests
- **Accounts Resource:**
- Manages account-level settings, including **status**, **linking**, and
**settings**.
- **Products Resource:**
- Handles product data including API calls for adding/updating products, status
checks, and managing supplemental feeds.
- Ensure that your website is fully functional and that there are no placeholders
or generic text. Accounts may face suspension if landing pages do not load
correctly or contain outdated content.
- Always provide visible contact information and return/refund policies to comply
with Google’s merchant guidelines and enhance user trust.
- Keep track of quota limits and performance tips mentioned in the documentation to
avoid disruptions in service.
### Conclusion
This summary provides a foundational understanding of the Account Conditions and
Content API for Shopping essential for engaging effectively with Google Merchant
Center. Ensure to refer to specific API documentation for complete usage details
and further advanced features.
_____________________________
#### Overview
The Google Content API for Shopping enables developers to manage their Merchant
Center accounts, which includes operations like gathering and posting product data
from a selling partner. This documentation specifically addresses issues related to
merchant accounts, especially regarding pending phone verification.
#### Conclusion
Ensure compliance with Google Merchant Center policies to maintain account health.
Address pending verification issues urgently and utilize API features to optimize
product listings and account management.
_____________________________
**Overview:**
The Google Merchant Center APIs facilitate the retrieval of data from customer's
selling partners using APIs and enable posting data to the merchant account. This
includes managing account issues, product information, and customer interactions.
- **Content API for Shopping**: An API used to manage product listings, account
statuses, and various settings on Google Merchant Center.
- **Merchant API**: A beta version of the new Content API for Shopping aimed at
improving integration with additional functionality.
The API helps manage various aspects of the merchant account. Example API calls
typically involve resources such as accounts, products, orders, and settings. Below
are useful snippets (similar to the typical GO MENT API calls):
```python
# Example code to insert a product
import requests
url = "https://content.googleapis.com/content/v2.1/{merchantId}/products"
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
product_data = {
"offerId": "123456",
"title": "Sample Product",
"description": "This is a sample product description.",
"link": "http://www.example.com/product",
"imageLink": "http://www.example.com/product.jpg",
"contentLanguage": "en",
"targetCountry": "US",
"channel": "online",
"price": {
"value": "99.99",
"currency": "USD"
},
"availability": "in stock"
}
if response.status_code == 200:
print("Product inserted successfully.")
else:
print("Error inserting product:", response.text)
```
1. **Authorization**: All API requests require OAuth 2.0 authentication. Ensure you
have implemented the OAuth service for secure access.
2. **Account Management**: Familiarize yourself with how to set up and verify your
Merchant Center account, paying special attention to security measures such as
phone verification and providing clear business contact information.
3. **Batch Requests**: The API supports batch processes, which can improve
efficiency when dealing with large datasets.
4. **Quotas and Limits**: Be mindful of the usage limits imposed by Google Merchant
Center APIs to avoid service interruption.
5. **Error Handling**: Always include error handling in your API calls. Monitor for
different severity levels of issues to maintain compliance.
This summary provides essential information for developers looking to use the
Google Merchant Center APIs effectively, particularly focusing on account
management and product operations. Please refer to the official documentation for
further details on specific endpoints and their functionalities.
_____________________________
### Overview
The Google Merchant Center Content API allows interaction with Merchant accounts
through API calls to both gather data and post information related to products and
account status. The API has been under constant development with its beta version
announced recently.
1. **Critical Issues**
- **custom_label**: Suspended due to policy violation for misrepresentation.
- **missing_ad_words_link**: No Google Ads account linked.
- **home_page_issue**: Website not claimed or URL not provided.
- **pending_phone_verification**: Phone number needs to be verified, requiring
verification via the business information page.
For a complete list of issues, developers can refer to the Account statuses guide.
### Caveats
- **Stay Updated**: The API frequently receives updates, and developers should stay
informed about changes.
- **Endpoint Variations**: API endpoints may change; always refer to the [official
documentation](https://developers.google.com/shopping-content/guides/account-
issues#custom_label) for the most current information.
### Overview
The Content API for Shopping allows you to manage your Merchant Center account,
handling various account issues that may arise. Specifically, the focus is on the
API responses related to account issues such as pending verification or quality
concerns.
1. **pending_address_and_phone**:
- **Description**: You need to enter your business address and phone number.
- **Severity**: Critical
- **Detail**: Verify a valid phone number for your business.
2. **pending_phone_verification**:
- **Description**: Your phone number needs to be verified.
- **Severity**: Critical
- **Detail**: Go to the business information page to verify your business phone
number.
3. **missing_ad_words_link**:
- **Description**: No Google Ads account linked/Pending Google Ads account link
request.
- **Severity**: Error
4. **merchant_quality_low**:
- **Description**: Account isn't eligible for enhanced free listings.
- **Severity**: Error
Here's a hypothetical example of how one might retrieve account status issues using
the API:
```python
import requests
headers = {
'Authorization': f'Bearer {access_token}',
'Content-Type': 'application/json',
}
By keeping these points in mind and referring to the example snippets, developers
can effectively manage account issues and enhance their integration with the Google
Merchant Center APIs.
_____________________________
#### Overview
The Google Merchant Center APIs primarily facilitate the collection and posting of
data related to customers' selling partners using API calls. This document
specifically addresses common account issues that may impact a merchant's account.
1. **missing_ad_words_link**
- *Description*: No Google Ads account linked or pending link request.
- *Severity*: Error
2. **merchant_image_rejected**
- *Description*: The uploaded logo contains errors or does not conform to logo
requirements.
- *Severity*: Error
3. **merchant_quality_low**
- *Description*: Account isn't eligible for enhanced free listings.
- *Severity*: Error
4. **home_page_issue**
- *Description*: Website not claimed or website URL not provided.
- *Severity*: Critical
5. **pending_phone_verification**
- *Description*: Phone number needs verification.
- *Severity*: Critical
6. **pending_address_and_phone**
- *Description*: Business address and phone number need to be entered.
- *Severity*: Critical
7. **misrepresentation_of_self_or_products**
- *Description*: Various issues related to false representation of self or
products.
- *Severity*: Critical, with multiple sub-policies including insufficient
contact/payment info and missing refund policy.
- **API Version**: The documentation mentions a beta version of the Merchant API,
which is the future of the Content API for Shopping. Developers should explore the
beta for improvements in integration.
- **Image Guidelines**: Ensure that uploaded logos comply with the specified
requirements to avoid rejection.
url = "https://api.merchantcenter.google.com/v1/accounts/{accountId}/status"
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
if response.status_code == 200:
account_status = response.json()
print(account_status)
else:
print("Error fetching account status:", response.status_code, response.text)
```
payload = {
"businessAddress": "123 Example St, City, State, Zip",
"phone": "+1234567890"
}
if response.status_code == 200:
print("Business information updated successfully.")
else:
print("Failed to update business information:", response.status_code,
response.text)
```
### Conclusion
To maintain a healthy merchant account and ensure compliance, familiarize yourself
with common account issues and their resolutions provided in this documentation.
Make sure to leverage the APIs effectively, especially in relation to account
verification and data submission. Always ensure that the required images and
information meet Google's guidelines.
_____________________________
```python
import requests
# Example API endpoint for checking account status
API_ENDPOINT = 'https://content.googleapis.com/content/v2.1/accounts/accountId'
HEADERS = {'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
- **Authorization:**
Ensure complete OAuth 2.0 setup for authorization when making API requests.
Tokens should be valid and refreshed as necessary.
- **Handling Errors:**
Always handle errors explicitly by checking response status codes and
implementing retries for rate limits when making API calls.
```python
import requests
data = {
"businessAddress": "123 Example St.",
"phoneNumber": "+1234567890"
}
This summary should provide developers with a clear overview of how to interact
with the Google Merchant Center APIs and resolve common account issues with coding
examples. Always refer to the official documentation for detailed implementation
guides and updates.
_____________________________
Summary of URL: https://developers.google.com/shopping-content/guides/account-
issues#misrepresentation_of_self_or_products_insufficient_contact_info_policy:
### Summary of Google Merchant Center Account Issues through Content API for
Shopping
#### Overview
The Google Merchant Center Content API allows merchants to gather and manage data
related to their shopping accounts. It is crucial for maintaining account status
and addressing common merchant issues that may impede the use of the platform.
url = "https://content.googleapis.com/content/v2.1/<merchantId>/accountIssues"
headers = {"Authorization": "Bearer <your_access_token>"}
response = requests.get(url, headers=headers)
if response.status_code == 200:
print("Account Issues:", response.json())
else:
print("Error:", response.status_code)
```
This summary provides a targeted view of how to utilize the Content API for
Shopping to manage common account issues effectively within the Google Merchant
Center.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/products/overview:
### Overview of Google Merchant Center Content API for Shopping
The **Content API for Shopping** allows merchants to manage their product listings
and online store catalogs on Google Shopping. This API provides resources for
creating, updating, and deleting product information in a more efficient manner
compared to traditional file uploads.
- **Products Resource**: The primary method for managing product data within the
Merchant Center. Merchants can create an online catalog of products, upload initial
product sets, and manage listings through various API calls.
- **Primary Feed**: A file used to load products into the merchant account. While
effective, using the Content API has advantages such as faster responses and real-
time updates without needing to manage multiple feeds.
**Code Example**:
Here's a simplified Python example of how to interact with the Content API:
```python
import google.auth
from googleapiclient.discovery import build
# Create a product
product = {
"offerId": "12345",
"title": "Sample Product",
"description": "This is a sample product description.",
"link": "http://www.example.com/sample-product",
"imageLink": "http://www.example.com/sample-product-image.jpg",
"contentLanguage": "en",
"targetCountry": "US",
"channel": "online",
"availability": "in stock",
"price": {
"value": "19.99",
"currency": "USD"
}
}
- **Policy Compliance**: Merchants must ensure that their product listings comply
with Google’s Shopping ads and free listings policies. Violations could result in
enforcement actions.
- **Batch Processing**: While API calls can process products individually, batch
processing enables multiple products to be updated simultaneously, which is more
efficient.
- **Latency**: There can be a delay of up to several hours for changes made through
the API to reflect in the Merchant Center database.
- **Automatic improvements** need to be enabled separately and may have specific
requirements to be effective.
### Summary
The Content API for Shopping equips merchants with the tools to effectively manage
their product listings, providing flexibility and real-time updates compared to
traditional methods. Developers should ensure compliance with policies and consider
using batch operations for efficiency. Python is the recommended language for
implementation as per the user's request.
For further details, please refer to the [official Content API documentation]
(https://developers.google.com/shopping-content/guides/products/overview).
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/products/product-id:
### Summary of Google Merchant Center Product IDs Documentation
#### Overview
The Content API for Shopping allows merchants to manage their product data in
Google Merchant Center. Understanding the various product identifiers is crucial
for effective integration and data management.
1. **Product Identifiers**:
- **Offer ID**:
- Unique string assigned by the merchant to a product.
- Represents an individual product.
- Format: Usually a numeric sequential number.
- **REST ID**:
- Unique identifier assigned by Google for a product.
- Used in REST API calls.
- Format: `channel:contentLanguage:feedLabel:offerId`.
- Example: `online:en:label:1111111111`.
| Attribute | Description
| Example | Notes
|
|------------------|---------------------------------------------------------------
-----|-------------------------------------|---------------------------------------
-----------------------------------------------|
| **offerId** | Merchant-assigned ID for the product.
| `1111111111` | Unique identifier for a product's offer.
|
| **REST ID** | Google-assigned ID in the format
`channel:contentLanguage:feedLabel:offerId`. | `online:en:label:1111111111` |
Full ID including offerId.
|
| **productId** | REST ID used in API calls.
| `online:en:label:1111111111` | Represents the product in REST API calls.
|
| **id** | Same value as REST ID and productId.
| `online:en:label:1111111111` | Used inside JSON body to refer to its
productId. |
| **external_seller_id** | Marketplace-assigned seller ID for multi-seller
accounts. | `example-Seller1` | Must be 1-50 characters and
case-sensitive. |
This information is critical for any developer working with the Google Merchant
Center APIs to successfully manage product listings, especially when integrating
with multi-seller accounts.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/products/testing:
## Summary of Testing the Products Resource | Content API for Shopping
1. **Add a Product**
- **Endpoint**:
```
POST https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products
```
- **Request Body**: Construct valid JSON for a product.
- **Expected Response**: HTTP 200 status code.
2. **View a Product**
- **Endpoint**:
```
GET https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products/
productId
```
- **Parameters**:
- `merchantId`: Your Merchant ID.
- `productId`: The ID of the product you want to view.
- **Expected Response**: HTTP 200 status code and the JSON data for the product.
3. **Update a Product**
- **Endpoint**:
```
POST https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products
```
- **Request Body**: Construct new JSON for the product (e.g., changing
`availability`).
- **Expected Response**: HTTP 200 status code.
- **Note**: Wait at least five minutes to confirm changes using a GET request.
4. **Delete a Product**
- **Endpoint**:
```
DELETE
https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products/productId
```
- **Parameters**:
- `merchantId`: Your Merchant ID.
- `productId`: The ID of the product you want to delete.
- **Expected Response**: HTTP 204 status code.
Summary of URL:
https://developers.google.com/shopping-content/guides/products/rich-product-data:
## Summary of Rich Product Data for Google Merchant Center API
### Overview
The Google Content API for Shopping allows developers to upload rich product data
to enhance product description pages (PDP) for improved customer experience and
product discovery. This rich data includes product features, images, variants, and
detailed descriptions, which help build customer trust and improve conversion
rates.
{
"channel": "online",
"contentLanguage": "en",
"offerId": "pixel4",
"targetCountry": "US",
"feedLabel": "US",
"title": "Google Pixel 4 64GB Unlocked Smartphone 5.7' FHD Display 6GB RAM 4G
Clear White",
"description": "The Google phone. MotionSense, an evolved camera, and the new
Google Assistant make Pixel 4 our most helpful phone yet.",
"imageLink": "https://example.com/gallery/500/image1.jpg",
"additionalImageLinks": [
"https://example.com/gallery/500/image2.jpg",
"https://example.com/gallery/500/image3.jpg"
],
"brand": "Google",
"gtin": "842776114952",
"mpn": "GA01188-US",
"price": {
"currency": "USD",
"value": "549.99"
},
"productHighlights": [
"6GB RAM lets you enjoy multitasking conveniently",
"Touch screen feature offers user friendly interface"
],
"productDetails": [
{
"sectionName": "General",
"attributeName": "Product Type",
"attributeValue": "Smartphone"
}
],
"availability": "in stock",
"condition": "new"
}
```
By following the guide and using the provided sample request, developers can
effectively utilize the Content API for Shopping to upload rich product data to
their Google Merchant Center account.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/products/rich-product-
data#example:
# Summary of Google Merchant Center API for Rich Product Data
## Overview
The Google Merchant Center's **Content API for Shopping** allows sellers to upload
and manage their product data, including rich descriptions that enhance product
discovery and customer trust.
## Key Concepts
```json
{
"channel": "online",
"contentLanguage": "en",
"offerId": "pixel4",
"targetCountry": "US",
"feedLabel": "US",
"title": "Google Pixel 4 64GB Unlocked Smartphone 5.7' FHD Display 6GB RAM 4G
Clear White",
"description": "The Google phone...",
"imageLink": "https://example.com/gallery/500/image1.jpg",
"additionalImageLinks": [
"https://example.com/gallery/500/image2.jpg",
"https://example.com/gallery/500/image3.jpg"
],
"brand": "Google",
"gtin": "842776114952",
"mpn": "GA01188-US",
"productHighlights": [
"6GB RAM allows multitasking",
"Touch screen feature"
],
"productDetails": [
{
"sectionName": "General",
"attributeName": "Product Type",
"attributeValue": "Smartphone"
}
],
"availability": "in stock",
"condition": "new"
}
```
## Important Methods
- **products.insert**: Use this method to upload rich product data. This method
will replace existing product data by default unless supplemental feeds are used
for updates.
## Sample Request
Here’s an example of a request for `products.insert` to upload rich product data:
```http
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/products
{
"channel": "online",
"contentLanguage": "en",
"offerId": "pixel4",
... // Additional product attributes
}
```
## Notes
- Ensure that the provided product details match the GTIN, as Google may use this
for matching with review data.
- Maintain high-quality product images, providing multiple angles and contexts to
enhance the product description pages.
## Conclusion
Utilizing the Content API for Shopping effectively allows sellers to provide
detailed, rich product experiences that can improve search visibility and
conversion rates on Google Shopping. Ensure adherence to the structure and
requirements of the API for successful integration.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/productstatuses:
# Summary of Google Merchant Center Product Statuses API
The Product Statuses API is part of the Content API for Shopping and allows
merchants to view and manage the status of their products in Google Merchant
Center. This API provides detailed information about product approval statuses and
common issues that may affect the visibility of products.
## Key Concepts
- **Example Request**:
```http
GET
https://shoppingcontent.googleapis.com/content/v2.1/123456/productstatuses/
online:en:US:63?destinations=Shopping&fields=productId,title
```
- **Example Request**:
```http
GET
https://shoppingcontent.googleapis.com/content/v2.1/123456/productstatuses?
destinations=Shopping&maxResults=3&pageToken=5108b52782905aa9
```
The Product Statuses API is part of the Content API for Shopping, enabling
developers to retrieve and manage product statuses for a Merchant Center account.
The following is a concise overview of key functions, code examples, and important
concepts.
### Destinations
The API supports multiple destinations for shopping products:
- **Shopping Ads**: Products that appear in shopping ads.
- **Buy on Google (Shopping Actions)**: Allows purchases directly through Google
services.
- **Free Listings**: Products available in Google's free listing services.
- **Local Inventory Ads**: Local inventories of products available for sale.
## API Methods
**Method**: `productstatuses.get`
- **Endpoint**:
```
GET
https://shoppingcontent.googleapis.com/content/v2.1/{merchantID}/productstatuses/
{productId}?destinations={destination}&fields=productId%2Ctitle
```
- **Response Fields**:
- `kind`: Always `content#productStatus`.
- `creationDate`: Date the product was created.
- `lastUpdateDate`: Date the product was last updated.
- `googleExpirationDate`: Expiration date of the product.
- `productId`: REST ID of the product.
- `title`: Title of the product.
- `link`: URL link of the product.
- `destinationStatuses`: Object detailing the product's status for each
destination and country.
- `itemLevelIssues`: List of item-specific issues affecting the product based on
the request.
**Example Request**:
```http
GET https://shoppingcontent.googleapis.com/content/v2.1/123456789/productstatuses/
online:en:US:63?destinations=Shopping&fields=productId%2Ctitle
```
**Method**: `productstatuses.list`
- **Endpoint**:
```
GET
https://shoppingcontent.googleapis.com/content/v2.1/{merchantID}/productstatuses?
destinations={destination}&maxResults={number}&pageToken={token}
```
- **Parameters**:
- `destinations`: Specific destination to view statuses for.
- `pageToken`: Token to fetch subsequent pages.
- `maxResults`: Maximum results per page.
**Response Fields**:
- `kind`: Always `content#productstatusesListResponse`.
- `nextPageToken`: Token for the next page of results.
- `resources`: Array of `productStatus` objects containing status details for each
product.
**Example Request**:
```http
GET https://shoppingcontent.googleapis.com/content/v2.1/123456789/productstatuses?
destinations=Shopping&maxResults=3&pageToken=5108b52782905aa9
```
## Item-Level Issues
Each issue associated with a product includes:
- `code`: Error code for identifying the problem.
- `servability`: Indicates if the product is **disapproved** or **unaffected**.
- `resolution`: Suggested remediation action.
- `attributeName`: Specific attribute impacted by the issue.
- `destination`: The affected destination.
- `description`: Brief description of the problem.
- `detail`: Additional information.
- `documentation`: Link to further documentation.
- `applicableCountries`: Countries where the issue is applicable.
## Important Notes
- The `productstatuses.list` method is safe to test in production since it doesn't
modify any data.
- Ensure to follow the policies set by Google for Shopping to prevent product
disapproval.
Summary of URL:
https://developers.google.com/shopping-content/guides/productstatuses#item-
level_issues:
# Google Merchant Center APIs: Product Statuses Overview
The **Content API for Shopping** provides methods for accessing and managing
product statuses in Google Merchant Center. Below is a summary of key
functionalities, code examples, and important concepts relevant for developers
using Python.
## Key Concepts
1. **Product Statuses Resource**: Allows you to view the detailed status of your
Shopping products and manage item-level issues.
3. **Item-Level Issues**: Each product can have item-level issues that detail
specific problems affecting its visibility. Key fields for these issues include:
- **code**: Identifier for the issue.
- **servability**: Indicates if the product is disapproved or unaffected.
- **resolution**: Suggests actions the merchant can take to resolve the issue.
- **documentation**: A link to further documentation on how to address the
issue.
Use the `productstatuses.get` method to retrieve the status for a specific product.
**Endpoint:**
```http
GET
https://shoppingcontent.googleapis.com/content/v2.1/{merchantID}/productstatuses/
{productId}?destinations=Shopping&fields=productId%2Ctitle
```
To get a list of all products and their statuses, use the `productstatuses.list`
method.
**Endpoint:**
```http
GET
https://shoppingcontent.googleapis.com/content/v2.1/{merchantID}/productstatuses?
destinations=Shopping&maxResults=3&pageToken=5108b52782905aa9
```
- Ensure that your account is enrolled in a destination and you provide a valid
country code in feed labels or shipping settings to see product statuses.
- The `productstatuses.list` method does not alter any data, making it safe to test
in production.
- Always check the item-level issues and follow documentation links for resolutions
if products are disapproved or have issues.
### Conclusion
The **Content API for Shopping** allows you to efficiently manage product statuses.
By utilizing the provided endpoints and maintaining an awareness of the item-level
issues, developers can ensure their products remain compliant and visible across
Google platforms. Always refer to the latest API documentation when implementing or
updating your integration.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/products/supplemental-feeds:
### Google Merchant Center Supplemental Feeds Documentation Summary
#### Overview
Supplemental feeds are part of the Content API for Shopping, allowing for partial
updates of product data. This feature enables requests to include only the fields
to be modified without affecting the entire product data.
1. **Supplemental Feeds**:
- These are used for performing partial updates to existing product data.
- You can create supplemental feeds in the Merchant Center to help update
product attributes selectively.
2. **Partial Updates**:
- Only fields specified in the supplemental feed will be updated.
- The expiration date of the product will not reset when a supplemental feed is
used. To reset the expiration date, a full `Products.insert` request must be
submitted.
3. **Limitations**:
- Supplemental feeds can only update existing products; new products cannot be
created via supplemental feeds.
#### API Usage
- **API Methods**:
- **`Products.insert`**: Used for creating new products or partially updating
existing ones. When updating, include the `feedId` query parameter to specify the
supplemental feed being used.
- **`Products.delete`**: Used to delete an existing product.
### Licensing
- Content on this page is licensed under the Creative Commons Attribution 4.0
License, and code samples are licensed under the Apache 2.0 License.
This summary includes aspects critical for understanding and utilizing the
supplemental feeds feature within the Google Merchant Center's API effectively. For
practical coding, focus on the `Products.insert` and `Products.delete` methods as
primary tools for managing your product listings.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/products/supplemental-feeds/
creating-supplemental-feeds:
### Summary of Creating Supplemental Feeds in Google Merchant Center using Content
API for Shopping
#### Overview
To interact with the Google Merchant Center using the Content API for Shopping, you
must create a supplemental feed. Supplemental feeds allow for additional data to
complement your primary feed, which can utilize various sources including Google
Sheets or direct upload.
```python
import requests
if response.status_code == 200:
return response.json() # Return the feed details
else:
print(f"Error: {response.status_code}, {response.text}")
# Example usage
merchant_id = 'your-merchant-id'
feed_id = 'your-feed-id'
access_token = 'your-oauth-access-token'
feed_details = get_supplemental_feed(feed_id, access_token)
print(feed_details)
```
### Caveats
- Supplemental feeds cannot be created using the Content API directly, so setup
must be completed within the Merchant Center interface first.
- Stay updated with API changes as there is a beta version of the Merchant API that
is expected to replace the current Content API in the future.
#### Overview
Supplemental feeds allow you to make partial updates to product data in Google
Merchant Center using the Content API. These updates can overwrite existing fields
without affecting other product data.
3. **products.custombatch**
- **Function**: Allows batch insertion or deletion of supplemental feed data.
- **URL**:
```
POST https://shoppingcontent.googleapis.com/content/v2.1/products/batch
```
- **Required Fields** in Request Body:
- `batchId`
- `merchantId`
- `method` (either "insert" or "delete")
- `feedId`
- **Example to Insert**:
```json
{
"entries": [
{
"batchId": 1111,
"merchantId": 1234567,
"method": "insert",
"feedId": "7654321",
"product": {
"offerId": "1111111111",
"contentLanguage": "en",
"feedLabel": "US",
"channel": "online",
"price": {
"value": "30.99",
"currency": "USD"
}
}
}
]
}
```
- **Example to Delete**:
```json
{
"entries": [
{
"batchId": 1115,
"merchantId": 1234567,
"method": "delete",
"feedId": "7654321",
"productId": "online:en:US:1111111111"
}
]
}
```
### Summary
The Content API for Shopping enables users to create and manage supplemental feeds
for updating product data efficiently. Understanding the methods, required fields,
and behaviors associated with product data will facilitate better integration and
management of the Google Merchant Center.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/products/supplemental-feeds/
using-feed-rules:
### Summary: Using Merchant Center Feed Rules with Supplemental Feeds
**Overview:**
This documentation page introduces how to apply feed rules to supplemental feeds
within the Google Merchant Center using the Content API for Shopping. The main goal
is to enhance product data management by providing additional control and
flexibility.
- **Supplemental Feeds:**
- These are additional feeds that provide more granular data updates for
products.
- You can create unique feed rules for different types of supplemental data
(e.g., price, availability).
- **Feed Rules:**
- Feed rules enable more specific modifications to your product data based on the
supplemental feeds.
- **Note:** Feed rules can only be created directly in the Merchant Center; they
are not accessible via the Content API.
- A new version of the Content API, referred to as the **Merchant API Beta**, is
available. This version promises to improve the integration experience.
- The documentation encourages users to explore feed rules for managing product
data effectively.
- Only supplemental feeds can utilize feed rules. Direct API calls cannot generate
or alter feed rules.
For comprehensive integration and coding practices, developers should refer to the
[Google Merchant API
Beta](https://developers.google.com/shopping-content/guides/products/supplemental-
feeds/using-feed-rules).
1. **Setting Up:**
- Ensure you have a Merchant Center account and access to the Content API.
2. **Best Practices:**
- Utilize separate feed rules for each supplemental feed for better data
organization.
- Regularly check updates and improvements to the Merchant API Beta for enhanced
functionalities.
This page provides an essential guide for developers seeking to enhance product
data management through the use of supplemental feeds and feed rules in the Google
Merchant Center.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/products/feed-labels:
## Google Merchant Center API: Feed Labels
### Overview
The Google Merchant Center API facilitates management of product data, enabling
users to label and categorize products effectively within their selling accounts.
The introduction of feed labels is part of the transition to the Merchant API beta,
which improves integration and data handling.
- **Datafeeds Resource**:
- `targetCountries`: Configure explicit country targeting for datafeeds using
this field along with `feedLabel` instead of earlier country configuration methods.
### Conclusion
The transition to using feed labels in the Google Merchant Center API represents a
significant change in how products are categorized and targeted. Developers must
ensure that they are using the correct format and mindful of the deprecation of
older fields to maintain effective data management.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/products/local-inventory:
# Google Merchant Center Local Inventory API Summary
## Overview
The **Local Inventory Service** is part of the **Content API for Shopping** that
enables users to create and update local inventory instances tied to physical store
locations. This data can be used for Local surfaces across Google and Local
Inventory Ads programs.
## Methods
### 1. `localinventory.insert`
- **Description**: Creates a local inventory instance for a single local product.
- **Request Format**:
```http
POST https://shoppingcontent.googleapis.com/content/v2.1/merchantId/products/
productId/localinventory
{
"storeCode": "1235",
"salePrice": {
"value": "100.00",
"currency": "USD"
},
"salePriceEffectiveDate": "2021-02-24T13:00-0800/2021-02-28T15:30-0800",
"quantity": 200
}
```
### 2. `localinventory.custombatch`
- **Description**: Allows the creation of multiple local inventory instances for
either a single product across multiple stores or multiple local products.
For a complete list of local inventory fields, refer to the local inventory
reference page.
## Important Notes
- Local products need to be created first, either through the Content API products
service or Merchant Center data feeds by setting the channel to local before using
local inventory service.
- You cannot retrieve, list, or delete local inventory instances through the API.
They can be viewed in Merchant Center under the product’s local inventory section.
- If the Merchant Center account is not enrolled in a local program, setting a
product’s channel field to local will return an error.
## Conclusion
Utilizing the Local Inventory Service allows merchants to effectively manage in-
store inventory and promote products through Google's local advertising
initiatives. Follow the prerequisites and use the provided API methods to integrate
this functionality into your application.
_____________________________
## Overview
Google Merchant Center's Content API allows the management of product collections
that can be utilized with various rich formats, primarily Shoppable Images. This
beta feature introduces a new way to group products for enhanced advertisement
capabilities.
## Key Concepts
- **Product Collections**: A collection can contain up to 100 products. It helps in
organizing products for advertising formats, especially Shoppable Images.
- **Services**:
- `collections`: For getting, listing, inserting, and deleting collections.
- `collectionstatuses`: For checking the status of collections to identify
potential issues affecting their validity for ads.
### Request:
```
POST https://shoppingcontent.googleapis.com/content/v2.1/merchantId/collections
```
### Caveats:
- If a collection ID already exists, making a new request with the same ID will
replace the existing resource entirely.
### Request:
```
GET
https://shoppingcontent.googleapis.com/content/v2.1/merchantID/collectionstatuses/
collectionID
```
## Important Notes:
- **Shoppable Images**:
- Configured through collections.
- Use an array for `imageLink`, but only the first value is used.
- **Coordinates**: For Shoppable Images, ensure that x and y coordinates for each
product are between 0 and 1.
- **Headlines**: While the `headline` accepts an array, only the first value is
relevant for Shoppable Images.
## Additional Resources
- For a more detailed integration with the Merchant API and to keep updated with
its future changes, refer to the provided documentation and announcements regarding
the Merchant API Beta.
This summary contains essential guidelines, code snippets, and caveats needed for
developers to effectively utilize the Product Collections feature in the Content
API for Shopping.
_____________________________
Summary of URL:
https://developers.google.com/shopping-content/guides/products/product-delivery-
time:
### Summary of Google Merchant Center Product Delivery Time API
The **Product Delivery Time** API allows shipping signals partners to set and
manage estimated delivery times for orders placed through a Merchant account. Below
are key components and usage instructions for this API.
---
---
---
---
This summary provides essential details for developing with the Google Merchant
Center APIs related to product delivery times and should serve as a quick reference
for coders working within this domain.
_____________________________
## Overview
The Promotions section of the Content API for Shopping allows you to showcase
special offers for products sold on Google, such as discounts or free shipping.
Promotions can appear on Google Search, Shopping, and Chrome. To utilize this
feature, you need to meet certain criteria, including having an active product feed
in the Google Merchant Center and belonging to the Promotions program.
3. **Ending Promotions:**
- A promotion can be ended by updating the promotion's `timePeriod` to a past
date using the `promotions.create` method.
## API Snippets
## Useful Links
- Participation criteria and policies (for enrolling in the Promotions program).
- Promotion approval process documentation (for understanding how Google reviews
promotions).
This summary provides a clear and concise overview of the Promotions functionality
within the Google Merchant Center APIs, including usage examples and important
considerations for developers.
_____________________________
#### Overview
The Order Tracking Signals feature in the Content API for Shopping allows merchants
to submit historical order tracking data to Google. This enhances product listings
by providing more accurate shipping estimates and enables free and fast shipping
annotations.
---
---
**Endpoint:**
```
POST
https://shoppingcontent.googleapis.com/content/v2.1/merchantId/ordertrackingsignals
```
**Request Body:**
```json
{
"merchantId": "987654321",
"orderCreatedTime": {
"year": 2020,
"month": 1,
"day": 2,
"hours": 0,
"minutes": 0,
"seconds": 0,
"timeZone": { "id": "America/Los_Angeles" }
},
"orderId": "123456789",
"shippingInfo": [
{
"shipmentId": "1",
"trackingId": "100",
"carrierName": "FEDEX",
"carrierServiceName": "GROUND",
"shippedTime": {
"year": 2020,
"month": 1,
"day": 3,
"hours": 0,
"minutes": 0,
"seconds": 0,
"timeZone": { "id": "America/Los_Angeles" }
},
"shippingStatus": "DELIVERED"
}
],
"lineItems": [
{
"lineItemId": "item1",
"productId": "online:en:US:item1",
"quantity": "3"
}
],
"shipmentLineItemMapping": [
{
"shipmentId": "1",
"lineItemId": "item1",
"quantity": "1"
}
],
"customerShippingFee": {
"value": "4.5",
"currency": "USD"
},
"deliveryPostalCode": "94043",
"deliveryRegionCode": "US"
}
```
---
---
This summary consolidates the key information and API usage for developers looking
to implement order tracking signals to enhance their merchant accounts in the
Google Merchant Center.
_____________________________