Skip to content

GoogleOptimizer throws exception when adding product via API #2315

@matthewwiggins

Description

@matthewwiggins

If Google Contents Experiments is enabled, adding a product using the V1/products/ endpoint causes GoogleOptimizer/Observer/AbstractSave.php line 117 to throw InvalidArgumentException. With contents experiments disabled the product add completes successfully.

Example valid request json:

    "product": {
        "sku": "abc1",
        "name": "abc",
        "visibility": 4,
        "type_id": "simple",
        "price": 3.62,
        "status": 1,
        "attribute_set_id": 4
    }

Metadata

Metadata

Assignees

Labels

Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions