google-api-php-client icon indicating copy to clipboard operation
google-api-php-client copied to clipboard

Remove sale price set previously through content api

Open AaronHibbett opened this issue 1 year ago • 1 comments

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?

AaronHibbett avatar May 17 '24 14:05 AaronHibbett

Hello @AaronHibbett! Thanks for your message.

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

Hectorhammett avatar Jun 28 '24 19:06 Hectorhammett