CREATE_OPERATION_NOT_PERMITTED

128 views
Skip to first unread message

So

unread,
Jul 18, 2022, 8:17:50 PM7/18/22
to Google Ads API and AdWords API Forum
To  Google Ads API Forum Advisor
Hi. I wanna add a new feeditem to one of my feeds via Google Ads API, but I can't.
The error message that I have been getting is below:

{{ "errorCode": { "operationAccessDeniedError": "CREATE_OPERATION_NOT_PERMITTED" }, "message": "Unauthorized CREATE operation in invoking a service's mutate method.", "trigger": { "stringValue": "AD_PLACEHOLDER" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": 0 } ] } }}

My code did work perfectly on Google Ads API version 8, but now is not working on version 11. I am really confused, and so need any help.

Thanks!




So

unread,
Jul 18, 2022, 8:23:16 PM7/18/22
to Google Ads API and AdWords API Forum
My code is below:

var feedItemService = this.Accessor.AdsClient.GetService(Services.V11.FeedItemService);
var operations = new LinkedList<FeedItemOperation>();
var feedResourceName = ResourceNames.Feed(4671073053, 75891781);
var feedItem = new FeedItem
{
    Feed = feedResourceName
};
var model = new FeedItemAttributeValue
{
    StringValue = "model01",
    FeedAttributeId = 1,
};
feedItem.AttributeValues.Add(model);
var operation = new FeedItemOperation
{
    Create = feedItem
};
operations.AddLast(operation);
var request = new MutateFeedItemsRequest(){ CustomerId = "4671073053", ValidateOnly = false, };
request.Operations.AddRange(operations.ToArray());
var response = await feedItemService.MutateFeedItemsAsync(request).Stay();

2022年7月19日火曜日 9:17:50 UTC+9 So:

Google Ads API Forum Advisor

unread,
Jul 18, 2022, 9:37:31 PM7/18/22
to so.ot...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for posting your concern.

To take a closer look at the issue, could you provide the complete request and response logs with request ID and request header generated on your end with error? These details will be helpful in our investigation.

If you haven't enabled the logging of the API transactions for the specific client library that you are using, then please refer to the specific guide below:
You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cwYVc:ref

Nora

unread,
Aug 8, 2022, 4:49:56 AM8/8/22
to Google Ads API and AdWords API Forum
I see a similar error message when updating my AD_CUSTOMIZER feed:
"OperationAccessDeniedError.UPDATE_OPERATION_NOT_PERMITTED: Unauthorized UPDATE operation in invoking a service's mutate method., trigger: AD_PLACEHOLDER"

Could it be that you are not allowed to update these FeedItems anymore, because the CustomizedAds are ETAs and these are not allowed to be updated anymore.
It is not documented anywhere, but would make sense.

Google Ads API Forum Advisor

unread,
Aug 8, 2022, 9:08:02 AM8/8/22
to nora...@web.de, adwor...@googlegroups.com
Hi Nora, 

Thank you for the reply. To give you the background of this error, it occurs when you are modifying a feed using an API which is attached to an expanded text Ads. However, so that we can check if this is indeed a scenario that you encountered, it would be helpful if you can provide us the complete request and response logs with request ID and request header generated on your end also with error as also mentioned by my colleague.

For logging instructions for our Java.NETPHPPythonRuby and Perl Ads API Client Libraries. If you are using our REST interface then the full multi line curl command line is a request log and adding curl command line option '-i' will also generate a response log.

For security privacy purposes, you can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Best regards,
Google Logo
Jinky
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2cwYVc:ref

Nora

unread,
Aug 9, 2022, 2:08:39 AM8/9/22
to Google Ads API and AdWords API Forum
Hello,
thank you for the quick reply. This is exactly what I had already suspected.
Only this behavior has not been documented so far

Regards
Nora

Google Ads API Forum Advisor

unread,
Aug 9, 2022, 2:52:19 AM8/9/22
to nora...@web.de, adwor...@googlegroups.com
Hi Nora,

Thank you for the reply and for the confirmation. Allow me to raise a feature request for a documentation update about this. Please keep an eye on our API document and our blog as we will post updates when it becomes available.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cwYVc:ref

Google Ads API Forum Advisor

unread,
Aug 9, 2022, 6:49:02 AM8/9/22
to nora...@web.de, adwor...@googlegroups.com
Hi Nora,

Allow me to provide the correct link for the API document that I've mentioned previously. I am referring to this link: https://developers.google.com/google-ads/api/docs/start .

Let me know if you have further questions.

Lukas Kelling

unread,
Oct 6, 2022, 7:12:24 AM10/6/22
to Google Ads API and AdWords API Forum
Hello,

reopening this thread to ask for confirmation from Google Ads API Team.

This page (https://developers.google.com/google-ads/api/docs/extensions/feeds/feed-items) mentions ad customizers as one of "the only feed placeholder types that are not yet deprecated". 

However, while ad customizer feeds have not been removed from Google Ads accounts & new ones can still be created, there appears to be no way to add new feed items to ad customizer feeds or modify existing ones, as other users in this thread mentioned. 

This matches error messages from Google Ads UI: 
  • Adding a feed item 
    • UI
      add_ad_customizer_feed_feed_item.png
    • API
      add_ad_customizer_feed_feed_item_google_ads_api.png
  • Updating a feed item
    • UI
      update_ad_customizer_feed_feed_item.png
Can you please confirm whether there is yet any way to add or edit ad customizer feed items (meant for deprecated expanded text ads, not responsive search ads) & provide some clarification?

Thank you,
Lukas

Google Ads API Forum Advisor

unread,
Oct 6, 2022, 3:26:59 PM10/6/22
to lukas....@flixbus.com, adwor...@googlegroups.com

Hi Lukas,

Thanks for posting your concern on this thread.

Yes it is true that the ad customizer feeds have not been removed. Also, the only feed placeholder types that are not yet deprecated are:

  • Ad customizers
  • Location extensions (and affiliate location extensions)
  • Dynamic remarketing (Flight, Hotel, Real estate, Travel, Location, Job, and Custom)

With regards to the errors that you encountered, both Ads UI and API is working as expected. This is because the feed is attached to an expanded text ad. By updating the feed and its contents, it would be changing the content of an expanded text ad. This is why there is an error.  You may note that you can no longer create or edit Expanded Text Ads. If you attempt to create an ETA you will receive the error CANNOT_CREATE_DEPRECATED_ADS. If you attempt to modify an ETA you will receive the error CANNOT_MODIFY_AD. Expanded text ads will continue to serve, and you will still see reports on their performance going forward.You are still able to pause and resume your expanded text ads, or remove them if needed. However, you may use Responsive Search Ads (RSA) instead.

Regards,

Google Logo
Yasar
Google Ads API Team
 

 



ref:_00D1U1174p._5004Q2cwYVc:ref

Lukas Kelling

unread,
Oct 7, 2022, 8:30:25 AM10/7/22
to Google Ads API and AdWords API Forum
Hello Yasar,

thank you for the quick confirmation. Have a nice day!

Regards,
Lukas

Reply all
Reply to author
Forward
0 new messages