GithubHelp home page GithubHelp logo

Comments (17)

schnere avatar schnere commented on June 27, 2024

Hi,

after the page reloads you should see a message like "Latest Message: Product synchronization with Google Shopping completed" under the menu.
In your case I would expect "Errors happened while adding products to Google Shopping." .
Click on "Go to notifications" on the right side to see the error details.

from googleshoppingapi.

jitendrasaini avatar jitendrasaini commented on June 27, 2024

Yes, i got this notification -

Errors happened while adding products to Google Shopping.

A required attribute is missing. Internal reason: Insufficient product identifiers: Missing two out of three attributes [GTIN, brand, mpn] See 'identifier_exists' for product 'JJ Cole Bundle Me Hat - Cream' (in 'Default Store View' store)

from googleshoppingapi.

schnere avatar schnere commented on June 27, 2024

Okay, I'd suggest to set the following mapping for the attribute set:

Brand = Manufacturer (or add a product attribute for brand)
MPN = SKU
GTIN = EAN or GTIN (you might have to add a product attribute for EAN/GTIN)

Add at least two of them to be able to successfully sync.
The message is from Google, beacause ist mandatory to have two out of three of them...

from googleshoppingapi.

jitendrasaini avatar jitendrasaini commented on June 27, 2024

OK..it means that the product i am choosing does not have two out of three attributes (Brand, MPN, GTIN)

But if i select the product which has the two out of the above three attributes, the page get refreshed with a message "Google Shopping synchronization is running" and after a second, this message got removed but the selected product is still there in "Available Products".

Please advise!

from googleshoppingapi.

schnere avatar schnere commented on June 27, 2024

Then you might have another error in the notifications?

from googleshoppingapi.

jitendrasaini avatar jitendrasaini commented on June 27, 2024

I am not getting any error in the notifications. What may be the reason?

from googleshoppingapi.

schnere avatar schnere commented on June 27, 2024

Are there any errors in var/log/system.log ?

from googleshoppingapi.

jitendrasaini avatar jitendrasaini commented on June 27, 2024

Yes, I can see some warnings there in var/log/system.log

2015-02-17T09:34:46+00:00 ERR (3): Warning: include(Google/Config.php) [function.include]: failed to open stream: No such file or directory in XXXXXX/lib/Varien/Autoload.php on line 94

2015-02-17T09:34:46+00:00 ERR (3): Warning: include(Google/Config.php) [function.include]: failed to open stream: No such file or directory in XXXXXX/lib/Varien/Autoload.php on line 94

2015-02-17T09:34:46+00:00 ERR (3): Warning: include() [function.include]: Failed opening 'Google/Config.php' for inclusion (include_path='XXXXXX/app/code/local:XXXXXX/app/code/community:XXXXXX/app/code/core:XXXXXX/lib:.:/usr/lib/php:/usr/local/lib/php') in XXXXXX/lib/Varien/Autoload.php on line 94

2015-02-17T09:34:46+00:00 ERR (3): Warning: include(Google/Auth/OAuth2.php) [function.include]: failed to open stream: No such file or directory in XXXXXX/lib/Varien/Autoload.php on line 94

2015-02-17T09:34:46+00:00 ERR (3): Warning: include(Google/Auth/OAuth2.php) [function.include]: failed to open stream: No such file or directory in XXXXXX/lib/Varien/Autoload.php on line 94

2015-02-17T09:34:46+00:00 ERR (3): Warning: include() [function.include]: Failed opening 'Google/Auth/OAuth2.php' for inclusion (include_path='XXXXXX/app/code/local:XXXXXX/app/code/community:XXXXXX/app/code/core:XXXXXX/lib:.:/usr/lib/php:/usr/local/lib/php') in XXXXXX/lib/Varien/Autoload.php on line 94

2015-02-17T09:34:46+00:00 ERR (3): Warning: include(Google/Auth/Abstract.php) [function.include]: failed to open stream: No such file or directory in XXXXXX/lib/Varien/Autoload.php on line 94

2015-02-17T09:34:46+00:00 ERR (3): Warning: include(Google/Auth/Abstract.php) [function.include]: failed to open stream: No such file or directory in XXXXXX/lib/Varien/Autoload.php on line 94

2015-02-17T09:34:46+00:00 ERR (3): Warning: include() [function.include]: Failed opening 'Google/Auth/Abstract.php' for inclusion (include_path='XXXXXX/app/code/local:XXXXXX/app/code/community:XXXXXX/app/code/core:XXXXXX/lib:.:/usr/lib/php:/usr/local/lib/php') in XXXXXX/lib/Varien/Autoload.php on line 94

from googleshoppingapi.

schnere avatar schnere commented on June 27, 2024

These warnings can be ignored.
You have set a mapping for the product type you tried to add to Google Content?
Did you check if the item is actually listed in Google Merchant Center?

from googleshoppingapi.

jitendrasaini avatar jitendrasaini commented on June 27, 2024

No, actually i just realized that the error which i discussed above was generated by the old google API v1. Sorry for that !!

This was the error -
A required attribute is missing. Internal reason: Insufficient product identifiers: Missing two out of three attributes [GTIN, brand, mpn] See 'identifier_exists' for product 'JJ Cole Bundle Me Hat - Cream' (in 'Default Store View' store)

But, In case of using Google Content API v2, no notifications are generating. If i get the above error using API v2, i will set the mapping for the product. But in current situation, when i select any of the product, i am not getting any notification/error and the product is still available in "Available Products".

Please advice!

from googleshoppingapi.

schnere avatar schnere commented on June 27, 2024

You might have got an uncaught exception. This would cause the flag to not unlock.
If the flag is locked you would be redirected to Manage Items page without a message.

To unlock the Flag temporary add $flag->unlock(); after line 110 in app/code/community/BlueVisionTec/GoogleShoppingApi/controllers/Adminhtml/ItemsController.php:

        $flag = $this->_getFlag();
        $flag->unlock(); // remove this after fixing your error...
        if ($flag->isLocked()) {
            return;
        }

from googleshoppingapi.

jitendrasaini avatar jitendrasaini commented on June 27, 2024

I added this code and tried again. I got the following notification this time.

Errors happened while adding products to Google Shopping.

The product "Tiny Love Pack and Play Take Along Mobile " hasn't been added to Google Content.
Error calling POST https://www.googleapis.com/content/v2/102158216/products: (400) [item] auth/frontend/not_claimed for AffiliateNetwork,DisplayAds,Shopping,ShoppingApi: Website URL not claimed

Do i need to set Website URL some where in Google Merchant Center? If yes, then please guide.

from googleshoppingapi.

schnere avatar schnere commented on June 27, 2024

Yes, you have to claim it in Merchant Center -> Settings -> General -> About your business

There you have to set the website like http://www.example.com . Then the website must be verified with one of the given options. After that you will be able to claim it.

If you have more than one Domain you will have to either create multiple merchant accounts or ask for a Multi Merchant account...

from googleshoppingapi.

jitendrasaini avatar jitendrasaini commented on June 27, 2024

OK.. i understand. Let me explain my case more clearly. I was working on the dev environment of my website like http://mywebsite.com/dev/ and have used the google API credentials generated by my test google account. That is why i was getting the "Website URL not claimed" error.

But on the live site http://mywebsite.com/, i used the credentials generated by my client's google account and when we are trying to add products to google content, we are getting the following error.

Errors happened while adding products to Google Shopping.
The product "Product ABC" hasn't been added to Google Content.
Error calling POST https://www.googleapis.com/content/v2/XXXXXX/products: (401) User cannot access account XXXXXX

Please advice!

from googleshoppingapi.

jitendrasaini avatar jitendrasaini commented on June 27, 2024

Hi,

I am having issues with the configurable products. When i try to add configurable products to Google Content, i am getting the following error -

The product "Product ABC" hasn't been added to Google Content.
Error calling POST https://www.googleapis.com/content/v2/XXXXXXXX/products: (400) [identifier_exists] validation/missing_required for Shopping,ShoppingApi: Insufficient product identifiers: Missing two out of three attributes [GTIN, brand, mpn]

I have already added SKU and Manufacturer for this product and have already done the mapping like below -

SKU - MPN
Manufacturer - Brand

Please advice! Thanks in advance.

from googleshoppingapi.

schnere avatar schnere commented on June 27, 2024

Hi,

is the Manufacturer also set in the configurable product?

from googleshoppingapi.

jitendrasaini avatar jitendrasaini commented on June 27, 2024

Yes, it seems that the problem was related with the manufacturer field for configurable products.

from googleshoppingapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.