I get this error: FIELD_INCOMPATIBLE_WITH_ASSET_TYPE when updating existing Callout asset. Diving more into error details it says that final_urls being set but I'm not setting any. I'm using PHP library, here are my code fragments:
$asset = new Asset(null);
$ext = new CalloutAsset();
$ext->setCalloutText('Some example text');
$asset->setType(AssetType::CALLOUT);
$asset->setCalloutAsset($ext);
$asset->setResourceName($resourceName);
$assetOperation = new AssetOperation();
$assetOperation->setUpdate($asset);
$assetOperation->setUpdateMask(FieldMasks::allSetFieldsOf($asset));
$operation = (new MutateOperation())->setAssetOperation($assetOperation);
I was suspecting FieldMasks::allSetFieldsOf($asset) did something, but debugger revealed that it hadn't any final urls set. Any help appreciated.