[ edit to receive updates in Google Docs]
This is currently not possible. You can find out if a cell is merged by looking at the call to getColSpan and getRowSpan , but there are no configuration methods.
Please click the following problem to receive notifications about it.
The merge function that you discovered does not apply to table cells, it must combine any element with a previous relationship of the same type connecting their contents.
[ original answer]
If you were expecting to have a merged cell, which, like what you can do in a spreadsheet, this is not possible. Just because itβs not possible in Google Docs (at least for now). Therefore, the API cannot do this (it can only do what is also possible manually).
This merge function does not apply to table cells, as you probably imagine. It works as designed.
Henrique G. Abreu
source share