Journal

Integrate Google Shopping With Magento Go – Part 2

Integrate Google Shopping With Magento Go – Part 2

Following on from our first part here, we look at how to integrate the Google Shopping API with Magento Go.

In the first part we set up a Google Merchants account and linked it up with Magento Go. In this part we’ll look at adding the necessary attributes required by Google Shopping and adding them to products.

Step One

Google Shopping requires certain non-standard attributes applying to each product before it will allow them to appear. These attributes are Condition and Product Type.

Navigate to Catalog -> Attributes -> Manage Attributes.

First we will add the Condition attribute.

Click “Add New Attribute” and populate the fields as follows:

  • Attribute Code: condition
  • Scope: Global
  • Catalog Input Type For Store Owner: Dropdown
  • Unique Value: No
  • Values Required: No
  • Everything else leave as they are.

Click Manage “Label/Options” and populate the following:

  • Admin: Condition
  • Default Store View: Condition
  • (Any other languages populate the field with the appropriate translation).

Click “Add Option” and add the following:

  • Admin: New
  • Default Store View: New
  • Position: 1
  • Click “Is Default” button

Click “Add Option” again and add the following:

  • Admin: Used
  • Default Store View: Used
  • Position: 2
  • (Also add any appropriate language translations for the above)

Click “Save Attribute”.

Now we need to add the “Product Type” attribute, which is similar to above requires a bit more work.

As above, click “Add New Attribute” and populate the fields as follows:

  • Attribute Code: product_type
  • Scope: Global
  • Catalog Input Type For Store Owner: Dropdown
  • Unique Value: No
  • Values Required: No
  • Everything else leave as they are

Click Manage “Label/Options” and populate the following:

  • Admin: Product Type
  • English: Product Type
  • (Any other languages populate the field with the appropriate translation).

This is where things differ from the “Condition” attribute above. We need to find an appropriate Product Category from Google, which we can find at this link.

Scroll down the page until you find the heading “The Google Product Category attribute”, scroll a bit further until you see the Search box. In here enter the name of your first category (For example, if your site sells Laptop Cases and Mobile Phone Cases enter “Laptop Cases” into this search box). Under the Search box you will see all categories that Google will accept for this product type. Copy the one that most closely relates to your product category, this must be word for word.

Back in Magento, click “Add Option”. In both the Admin and Default Store View boxes enter the Category title you got from Google above. In position put “1” and select “Is Default”.

Do this for every category that you want to use, first finding them at the above Google link, then clicking “Add Option” and adding each one, word for word, and increasing the Position number by 1. Leave the first Category as “Is Default” (Unless of course you specifically want to change this).

Once all your Google approved Category names are entered, click “Save Attribute”.

Navigate to Catalog -> Attributes -> Manage Attribute Sets. For each Attribute Set do the following:

  • Click on the Attribute title
  • Find “Condition” in the “Unassigned Attributes” column and drag it to the bottom of the “General” section in the “Groups” column.
  • Do the same for Product Type.
  • Click “Save Attribute Set”

Step Two

We now need to add these new attributes to any existing products

All new products added from now on will have the option for the client to choose the Condition (Generally “New”, but Google requires “New” and “Used” to both be options) and Product Type.

Navigate to Catalog -> Manage Products. Select every product you want to update from a particular category (every product you want to add to Google Shopping must be updated). From the “Actions” dropdown select “Update attributes” and click “Submit”. On the next page find the attribute “Condition” (probably at the very bottom of the page), tick the box that says “Change” and select the option you want for “Condition” (this will more than likely be New). Do the same for Product Type, choosing whichever option is closest to the products you have selected.

Click Save and all products that you had selected will now have the two new attributes updated.

Repeat this process for all products that fall under a particular product type/category.

Clients with existing sites will need to be told that all future products will have to have these two attributes filled in for all products they want adding to Google Shopping and clients with new sites will need to be informed of what these fields are for.

Next time we’ll look at mapping the Magento and Google Shopping attributes together and finally pushing the items up to our Google Merchants account.

Read Part One here.
Read Part Three here.

Your Comments

  1. Hi there,

    I’m integrating the Google Content API for Shopping extension.

    I was wondering – when you say that you have to copy the text of a category do you mean:
    Toys & Games > Toys > Riding Toys
    or JUST
    Riding Toys ?

    I’m guessing that it is the former.

    I’m suspicious that this extension will work anyhow judging from the comments on MagentoCommerce!

    BTW – nice to see a Magento dev in my part of the world – I live in sunny Scarborough!

    Thanks,

    Nathan.

    Posted on

    Reply | Permalink to this comment

  2. Hi Nathan,

    This guide (which will hopefully be finished soon) is for the built in Magento Go Google Shopping functionality, which off the top of my head I think works slightly differently to the Community extension, so I wouldn’t rely too much on this for what you need. We do use the extension in house and while it does work it’s needed a bit of custom work to get the best out of it.

    Back to your question, I think any of the three (Toys & Games, Toys or Riding Toys) would be acceptable, just depends on how specific you need to be. So if it is “Riding Toys” you need then just “Riding Toys” on it’s own should be sufficient

    Hope that helps!
    Jamie.

    Posted on

    Reply | Permalink to this comment

  3. I cannot seem to add the available products to Google Content Items in magento go..get the following errors: The store’s currency should be set to US Dollar for United States in system configuration. Otherwise item prices won’t be correct in Google Content.

    Can you help?

    Posted on

    Reply | Permalink to this comment

    • We had the same issue with “The store’s currency should be set to US Dollar for United States in system configuration” as well.

      We sorted it by changing the ‘Target Country’ to something that matches your currency (ours was United Kingdom). This is in System > Configuration > Sales > Google API > Google Shopping

      Posted on

      Permalink to this comment

  4. Hi Harry,

    I’m afraid I haven’t encountered that error before. I think you will be best contacting either Google Merchants help or Magento Go help.

    Posted on

    Reply | Permalink to this comment

  5. Thanks for the excellent tutorial. I seem to have into a problem though. I have submitted 6 products and all of them show product crawl issues in Google Merchant Center. In the data quality section it says the URLs are blocked by robots.txt. Is there something I should change in the robots file?

    Posted on

    Reply | Permalink to this comment

  6. One of the disallowed URLs is:
    http://www.thaibeautybar.com/pond-s-flawless-white-visible-lightening-day-cream-50g.html?___store=default

    I see this line in the robots file:
    Disallow: /*?

    Do you think I should delete this line from the robots file?

    Posted on

    Reply | Permalink to this comment

  7. Hi,
    Thanks for your comments. You’ll need to contact Google Merchants about that kind of issue.

    Posted on

    Reply | Permalink to this comment

  8. I solved the problem by following Google’s instruction to add the following lines to the end of my robots.txt file:

    User-agent: Googlebot
    Disallow:

    User-agent: Googlebot-image
    Disallow:

    Posted on

    Reply | Permalink to this comment

  9. Part 3 is now up, thanks for your patience.

    Posted on

    Reply | Permalink to this comment

  10. Hello Jamie,

    Excellent article. I’ve got a couple of questions though…

    This page reads as if we’re creating several attributes; Condition, I understand. The next one is the Product_Type attribute. This is where things get a bit confusing.

    In Magento Go, when you set up the Google Products, you map the Attribute Sset to a Google Product_Type.
    The way the article reads though, we’re creating a new attribute that we’ll fill with each taxonomy that matches our products. That in itself makes sense, since each product would then be categorized more granularly, leading to lower competition and better Data Quality scores, and thus lower PPC prices.

    The first question I’ve got is, is there a difference between mapping the products via an attribute vs. using the default Attribute_Set mapping?
    2nd, does Magento Go submit both? Does Google accept both? If that’s the case, would the Attribute_Set mapping then be considered the broad category, and the product_type attribute should be considered the narrowed result?

    3rd, Going with the assumption that the article is saying that we make a new attribute (not set) called product_type, fill it with the correct Google Taxonomy, and map that to Google’s product_type attribute, we’re having an issue when trying to assign Google Product Taxonomies to products in an import spreadsheet, whereby every time our client copies/pastes them into the spreadsheet and uploads them, they show up in Magento Go looking like the XML formatting, but with too many ampersand codes. Has this happened to you?

    4th, is my understanding incorrect, and you were saying that each Product_Type attribute needs to be created and then assigned its own corresponding Attribute Set? The article doesn’t explicitly say that, which is why we’ve been going with the assumption that we are to create attributes, not new attribute sets.

    Posted on

    Reply | Permalink to this comment

  11. Hi Ryne,

    Thanks for the comments. Are you in the UK? If so the guide should work step by step, however if you are outside of the UK I’m afraid it is possibly a very different set up and I won’t be able to be of any further help.

    Also, I’m afraid I haven’t done anything with importing the info into Google Shopping via a Spreadsheet, having only used the built in Google Shopping extension for Magento Go, so can’t help you there either I’m afraid.

    Thanks,
    Jamie

    Posted on

    Reply | Permalink to this comment

  12. Hi Jamie,

    Thanks for the quick response! No, I’m not in the UK, but the guide seems to work step by step for the most part.

    2nd, I wasn’t referring to importing into Google Shopping via spreadsheet. What I was saying is that, using your guide, you’re advocating creating a new attribute called “product_type”, where each Google Taxonomy would be listed under the Admin and Store View.
    Naturally, attributes are to be filled out when importing products into Magento Go.
    For instance, for every new product imported into Magento Go, the client would set the Condition to either “New” or “Used” in their product spreadsheet.
    The same thing needs to be done for the product_type attribute, if it’s an attribute and not an attribute set.
    So, when we’re doing this, our client is getting an issue where the taxonomies look like this: “Electronics amp; amp; amp; amp; gt; Electronics Accessories amp; amp; amp; amp; gt; Antennas”.

    I’ve got a screenshot of the Attribute I created based on your guide here, that I sent to the client to show them how the formatting should look. This will show you what I mean: http://screencast.com/t/kDkKcAMUR

    Posted on

    Reply | Permalink to this comment

  13. Hi Ryne,

    I think I understand what you are saying, and I think that what you need to do is the following:

    Instead of selecting “Electronics > Electronics Accessories > Antennas” you need to just select either “Antennas” or “Electronics Accessories” depending on how specific you want to be.

    Hope that helps,
    Jamie

    Posted on

    Reply | Permalink to this comment

Leave Your Thoughts