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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ac154280-eedf-486a-9186-71040ba69e27n%40googlegroups.com.
  • Po... Algirdas Jarockis
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Algirdas Jarockis
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to