googleapis / google-api-php-client

A PHP client library for accessing Google APIs
http://googleapis.github.io/google-api-php-client/
Apache License 2.0
9.31k stars 3.52k forks source link

Remove sale price set previously through content api #2592

Open AaronHibbett opened 4 months ago

AaronHibbett commented 4 months ago

Through Google_Service_ShoppingContent_Product I am unable to set the sale price of a product to empty, as I must supply a Price object to the function, which seemingly cannot be set in a way to null the sale price. As no sale scheduling is used on the connected site, is there as way to set this to empty this as part of the api? Or a best practice way of avoiding this potential limitation, for example by setting the effective date into the past once the sale price is removed on the site?

Hectorhammett commented 3 months ago

Hello @AaronHibbett! Thanks for your message.

Do you have an example code for us to take a look at?