Getting error "GoogleJsonResponseException: API call to slides.presentations.batchUpdate failed with error: Invalid requests[3].updateShapeProperties: Invalid field: autofit_type"
but I think my code is right:
'updateShapeProperties': {
'objectId': pageElementId,
'fields': 'autofitType',
'shapeProperties': {
'autofit': {
'autofitType':'SHAPE_AUTOFIT'
}
}
}
Any help much appreciated Cheers Greg
I thought that the error message means that the value of fields
is not correct. In your script, how about modifying as follows.
'fields': 'autofitType',
'fields': 'autofit.autofitType',
autofitType
can only use NONE
. So, when SHAPE_AUTOFIT
and TEXT_AUTOFIT
is used for autofitType
, an error of Autofit types other than NONE are not supported.
occurs. Please be careful this.
'autofitType':'SHAPE_AUTOFIT'
to 'autofitType':'NONE'
. By this, the request occurs no error.