# Google Shopping XML Feed Validator

**Use case:** 

Validate a Google Shopping (Merchant Center) RSS/XML product feed before upload. Checks required fields, GTIN check digits, price and availability formats, and landing pages. The example uses a public demo feed that has deliberate errors (no product links, invalid GTINs); replace it with your feed URL.

## Input

```json
{
  "feeds": [
    {
      "name": "demostore-google-xml",
      "url": "https://amp-product.s3.eu-west-1.amazonaws.com/content-studio/commerce-repository/product-feed-examples/products-google-feed.xml",
      "format": "google-xml"
    }
  ],
  "channels": [
    "google"
  ],
  "checkLandingPages": true,
  "landingPageSampleSize": 3,
  "maxItemsPerFeed": 100,
  "checkImageUrls": false,
  "generateFixedFeed": true,
  "strictMode": false
}
```

## Output

```json
{
  "feedName": {
    "label": "Feed name",
    "format": "string"
  },
  "itemId": {
    "label": "Item id",
    "format": "string"
  },
  "field": {
    "label": "Field",
    "format": "string"
  },
  "severity": {
    "label": "Severity",
    "format": "string"
  },
  "rule": {
    "label": "Rule",
    "format": "string"
  },
  "message": {
    "label": "Message",
    "format": "string"
  },
  "fixSuggestion": {
    "label": "Fix suggestion",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Merchant FeedGuard: Google Merchant Center Feed Validator Actor is ready to run with the inputs already set for "Google Shopping XML Feed Validator". [Sign up or log in](https://console.apify.com/create-task-from-example/cXS2xCQwidmYGSsqe) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Google Shopping XML Feed Validator" task

The Merchant FeedGuard: Google Merchant Center Feed Validator Actor will start running based on the input automatically. You can also change all the input fields, like product feeds, target channels, and more, to match your specific use case.

### 3. Receive the "Google Shopping XML Feed Validator" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as feed name, item id, field, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Google Shopping XML Feed Validator" task via API](https://apify.com/aladzhov/merchant-feedguard.md).

## FAQ

### Which XML formats are supported?

Google Merchant Center RSS 2.0 and Atom feeds with the g: namespace. CSV, TSV, JSON and Shopify feeds work too.

### How much does it cost?

$0.0005 per product and $0.01 per landing page checked.

### Why does the example show errors?

The demo feed is a public sample with no product links and placeholder GTINs, so it shows what the validator catches.

## About this Actor

This example demonstrates how to use [Merchant FeedGuard: Google Merchant Center Feed Validator](https://apify.com/aladzhov/merchant-feedguard.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/aladzhov/merchant-feedguard.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/aladzhov/merchant-feedguard.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
