A little formatting of the error output for a better perception https://pastebin.com/Nfc7jPbW
пятница, 5 ноября 2021 г. в 12:38:07 UTC, Evgeniy Lepikov: > Hi there! > I try to add a new ad to the group (using python lib), but I get an error > <code> File > "/home/jekson/virtualenvs/marketing/lib/python3.7/site-packages/google/ads/googleads/interceptors/exception_interceptor.py", > > line 169, in intercept_unary_unary self._handle_grpc_failure(response) File > "/home/jekson/virtualenvs/marketing/lib/python3.7/site-packages/google/ads/googleads/interceptors/exception_interceptor.py", > > line 141, in _handle_grpc_failure raise > self._get_error_from_response(response) > google.ads.googleads.errors.GoogleAdsException: (<_InactiveRpcError of RPC > that terminated with: status = StatusCode.INVALID_ARGUMENT details = > "Request contains an invalid argument." debug_error_string = > "{"created":"@1636113318.810270409","description":"Error received from peer > ipv4:172.217.168.170:443","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Request > > contains an invalid argument.","grpc_status":3}" >, <_InactiveRpcError of > RPC that terminated with: status = StatusCode.INVALID_ARGUMENT details = > "Request contains an invalid argument." debug_error_string = > "{"created":"@1636113318.810270409","description":"Error received from peer > ipv4:172.217.168.170:443","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Request > > contains an invalid argument.","grpc_status":3}" >, errors { error_code { > resource_count_limit_exceeded_error: RESOURCE_LIMIT } message: "This > request would exceed a limit on the number of allowed resources. The > details of which type of limit was exceeded will eventually be returned in > ErrorDetails." trigger { string_value: > "ENABLED_UNIVERSAL_APP_CREATIVES_PER_AD_GROUP" } location { > field_path_elements { field_name: "operations" index: 0 } } details { > resource_count_details { enclosing_id: "128780011834" limit: 1 limit_type: > APP_ADS_PER_AD_GROUP existing_count: 1 enclosing_resource: "ad_group" } } } > </code> > > > I see in the error description that a wrong parameter was passed, but from > the context of the error I cannot understand what exactly is wrong The > request body to google api is > > <code>ad_group_ad_operations [create { status: ENABLED ad { app_ad { > headlines { text: > "\343\202\255\343\203\237\343\201\256\343\201\256\345\217\257\350\203\275\346\200\247\343\202\222\350\247\243\343\201\215\346\224\276\343\201\250\343\201\206" > > } headlines { text: > "\343\201\212\345\261\213\346\225\267\343\202\222\346\224\271\350\243\205\343\201\227\343\202\210\343\201\206" > > } descriptions { text: > "\351\255\205\345\212\233\347\232\204\343\201\252\345\237\267\344\272\213\343\201\253\343\201\252\343\202\215\343\201\206\357\274\201" > > } html5_media_bundles { asset: "customers/2309565764/assets/14640462629" } > html5_media_bundles { asset: "customers/2309565764/assets/14658508974" } } > } ad_group: "customers/2309565764/adGroups/128780011834" } ]</code> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/0ed7ff08-a97a-4638-ba2c-f2cdc773bc1cn%40googlegroups.com.