Error : Google Ads Api Image Extension : A mutate action is not allowed on this resource, from this client.stringValue

557 views
Skip to first unread message

Shirly J

unread,
Oct 27, 2021, 9:06:32 AM10/27/21
to AdWords API and Google Ads API Forum

// Creates an extension feed item using the specified image asset ID.
$extensionFeedItem = new ExtensionFeedItem([
'extension_type' => ExtensionType::IMAGE,
'image_feed_item' => new ImageFeedItem([
'image_asset' => $this->createImageAsset($imagePath)
])
]);

// Issues a mutate request to add the extension feed item and prints its information.
$extensionFeedItemServiceClient = $this->googleAdsClientSession->getExtensionFeedItemServiceClient();
$response = $extensionFeedItemServiceClient->mutateExtensionFeedItems(
$clientId,
[new ExtensionFeedItemOperation(['create' => $extensionFeedItem])]
);
$extensionFeedItemResourceName = $response->getResults()[0]->getResourceName();



throwing the below error

"errorCode": { "operationAccessDeniedError": "MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT" }, "message": "A mutate action is not allowed on this resource, from this client.", "trigger": { "stringValue": "ADVERTISER_PROVIDED_IMAGE" },

Please help me to fix.

Thanks

Google Ads API Forum Advisor

unread,
Oct 28, 2021, 1:49:13 AM10/28/21
to pons...@gmail.com, adwor...@googlegroups.com

Hi Shirly,

 

I'm Kevin from the Google Ads API team. I'll try my best to assist you.

 

It appears that the error you've encountered is related to this blog post. Based from the blog post, you will no longer be able to create or mutate Feed-based extensions in the AdWords API or the Google Ads API after the auto migration date. You can check this link for a sample on how to create an asset based extension instead.

 

Regards,

Google Logo
Kevin Gil Soriano
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QFdjc:ref

Shirly J

unread,
Nov 22, 2021, 4:49:20 AM11/22/21
to AdWords API and Google Ads API Forum
Thanks Kevin for the information. That error is fixed.

But getting another error when calling mutateAdGroupAssets (reference : https://groups.google.com/g/adwords-api/c/Wk6AKHi-sPw/m/bgW4IL12AAAJ)

Any help would be appreciated.

Thanks

Google Ads API Forum Advisor

unread,
Nov 22, 2021, 3:52:51 PM11/22/21
to pons...@gmail.com, adwor...@googlegroups.com
Hi Shirley,

I gave an answer on that thread. You can use image assets in ads and not in ad Groups.

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Regards,
Google Logo
Aryeh Baker
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QFdjc:ref

Shirly J

unread,
Nov 23, 2021, 7:49:49 AM11/23/21
to AdWords API and Google Ads API Forum
Ok, then how do we implement imageextension for adGroup?

Google Ads API Forum Advisor

unread,
Nov 23, 2021, 9:35:17 PM11/23/21
to pons...@gmail.com, adwor...@googlegroups.com
Hi Shirly,

I'm also from the Google Ads API support team and I also sent a response in the thread that my colleague Aryeh pointed out. Should you see this thread before the previous one, below are the contents of my response :

"Thank you for providing additional details.

Image assets can be set for certain types of ads, as seen here. However, it currently cannot be used for extensions.

Listed here are the asset based extensions that are currently supported and can be created/managed via the API, and stating that other types would follow later. For now, you may keep an eye on our blog for updates or announcements on when image extensions can be included.

If you wish to create image extensions for your account, you may reach out to the Google Ads Product Support team instead, via this link, to confirm whether this is already possible via the Google Ads UI.

I hope this helps.
"

Best regards,


Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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