GithubHelp home page GithubHelp logo

Comments (3)

schnere avatar schnere commented on July 26, 2024

Hi,

there are fields for custom attributes in Google Shopping API. I will take a look at it and see how this can get implemented. But can you tell me the reason why you want to upload this?

from googleshoppingapi.

ter700 avatar ter700 commented on July 26, 2024

Thanks for your quick answers Schnere!

Because our store has a lot of 'custom goods'.
Google requires the flag 'identifier exists' to be set to 'false' if you send custom goods, and if you do you can withhold the GTIN/MPN and brand attributes.
(Google summary of attribute requirements: https://support.google.com/merchants/answer/1344057 )

Edit:
It seems that custom clothing does not fall under the category 'Custom goods' at google, so i'm trying to map the product as you should map clothing. However the age group mapping keeps giving me the same error as above:

exception 'Google_Service_Exception' with message 'Error calling POST https://www.googleapis.com/content/v2/8980377/products: (400) Unknown field name: age_group' in /vendor/google/apiclient/src/Google/Http/REST.php:83

The age group attribute has the value 'adult' (i tried 'Adult' as well), so the value should be correct.
Mapping like this:
capture

What am i missing here?

from googleshoppingapi.

schnere avatar schnere commented on July 26, 2024

Okay, age_group should be ageGroup. I've added a line that transforms all attribute names to lower camel case. Should be fixed with next commit.

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.