Possible bug while mutating Callout extension?

35 views
Skip to first unread message

Algirdas Jarockis

unread,
Oct 27, 2021, 11:01:56 AM10/27/21
to AdWords API and Google Ads API Forum
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.

Google Ads API Forum Advisor

unread,
Oct 28, 2021, 1:36:12 AM10/28/21
to algirdas...@gmail.com, adwor...@googlegroups.com
Hi Algirdas,

Thank you for reaching out to our API support team.

So our team can take a closer look, could you enable logging if you haven't yet, and provide our team with the complete request and response logs, with the request-id, generated when you encountered the error?

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QFgR8:ref

Algirdas Jarockis

unread,
Oct 28, 2021, 3:02:40 AM10/28/21
to AdWords API and Google Ads API Forum
Hey, thanks for the answer. I was testing in sandbox environment and next day this problem disappeared. Don't know what happened I didn't change my code, I assume the problem was in the API backend? 

Google Ads API Forum Advisor

unread,
Oct 28, 2021, 2:02:05 PM10/28/21
to algirdas...@gmail.com, adwor...@googlegroups.com
Hello,

Without the request and response logs from each call, we are unable to say what the issue may have been. However, if this issue resurfaces, please let us know and our team can look into it. 

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QFgR8:ref
Reply all
Reply to author
Forward
0 new messages