Di Dannison, This is the full request:
ad_customizer_feed_service = client.GetService("AdCustomizerFeedService", version='v201809') feed_name = "feed_xyz" customizer_feed = { 'feedName': feed_name, 'feedAttributes': [ {'type': 'STRING', 'name': 'some string name'}, {'type': 'INT64', 'name': 'Int Name'}, ], } # Types: https://developers.google.com/adwords/api/docs/reference/v201809/FeedService.FeedAttribute feed_service_operation = {'operator': 'ADD', 'operand': customizer_feed} response = ad_customizer_feed_service.mutate([feed_service_operation]) The mutate fails and gives me this: Error summary: {'faultMessage': '[RequiredError.REQUIRED @ operations[0].operand.feedAttributes[1].type]', 'requestId': '00057c1de8XXXXXX', 'serviceName': 'AdCustomizerFeedService', 'methodName': 'mutate', 'operations': '1', 'responseTime': '311'} ...... line 1394, in MakeSoapRequest e.detail, errors=error_list, message=e.message) googleads.errors.GoogleAdsServerFault: [RequiredError.REQUIRED @ operations[0].operand.feedAttributes[1].type] This identical request with 'STRING' as the type for the second element (Int Name) works without any issue. Please let me know if I can provide more info. p.s. I'm using the official python library with Python 3.6 On Thursday, November 29, 2018 at 11:19:39 PM UTC+2, Dannison Yao (AdWords API Team) wrote: > > Hi Costantin, > > The RequiredError.REQUIRED > <https://developers.google.com/adwords/api/docs/common-errors#RequiredError.REQUIRED> > only > error occurs when there are missing required fields. > > Can you provide the complete XML SOAP request and response logs so we can > investigate this further? You may use the *R**eply privately to author * > option. If you have not enabled the logging, you can tell me what client > library you are using so I can point you to the proper guide. > > Regards, > Dannison > AdWords API Team > > On Friday, November 30, 2018 at 12:22:31 AM UTC+8, cos...@gmail.com > <javascript:> wrote: >> >> I'm trying to add a customizer via the API. I would like to add it as an >> integer or float. I do the following: >> >> customizer_feed = { >> 'feedName': feed_name, >> 'feedAttributes': [ >> {'type': 'STRING', 'name': 'a'}, >> ], >> } >> feed_service_operation = {'operator': 'ADD', 'operand': >> customizer_feed} >> response = ad_customizer_feed_service.mutate([feed_service_operation]) >> >> The code above works, however, If I replace STRING with INT64 or FLOAT I >> get the following error: >> >> googleads.errors.GoogleAdsServerFault: [RequiredError.REQUIRED @ >> operations[0].operand.feedAttributes[1].type] >> >> I thought that the valid field types are these ones >> <https://developers.google.com/adwords/api/docs/reference/v201809/FeedService.FeedAttribute.Type>- >> >> Why it doesn't work? >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/d2e7f46e-158f-4a39-b38f-c52a53a73f4e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.