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: > 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! > > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/df76dbbc-7c22-47e6-8977-f923668b5c73n%40googlegroups.com.