RESOURCE_LIMIT error adding ads to groups

75 views
Skip to first unread message

Evgeniy Lepikov

unread,
Nov 5, 2021, 8:38:07 AM11/5/21
to AdWords API and Google Ads API Forum

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>

Evgeniy Lepikov

unread,
Nov 5, 2021, 8:55:16 AM11/5/21
to AdWords API and Google Ads API Forum
A little formatting of the error output for a better perception
https://pastebin.com/Nfc7jPbW


пятница, 5 ноября 2021 г. в 12:38:07 UTC, Evgeniy Lepikov:

Google Ads API Forum Advisor

unread,
Nov 5, 2021, 3:52:32 PM11/5/21
to lepil...@gmail.com, adwor...@googlegroups.com
Hi Evgeniy,

Thanks for reaching out. The error indicates that you are trying to set more than one enabled App ad in an App Campaign ad group. The error specifies that only one enabled ad is allowed per ad group. Other general Ads limits are listed here.

Regards,
Matt
Google Ads API Team


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


ref:_00D1U1174p._5004Q2R6bFl:ref

Evgeniy Lepikov

unread,
Nov 8, 2021, 4:30:23 AM11/8/21
to AdWords API and Google Ads API Forum
Hi, Matt,
Thanks for help!
 I'm not quite sure what's wrong. Could you explain in more detail exactly where the problem appears? What is the relationship between the Ad and the App?
What is an App? I don't see this relationship in my code.


пятница, 5 ноября 2021 г. в 19:52:32 UTC, adsapi:

Evgeniy Lepikov

unread,
Nov 8, 2021, 11:31:12 AM11/8/21
to AdWords API and Google Ads API Forum
still need help

понедельник, 8 ноября 2021 г. в 09:30:23 UTC, Evgeniy Lepikov:

Google Ads API Forum Advisor

unread,
Nov 8, 2021, 12:21:33 PM11/8/21
to lepil...@gmail.com, adwor...@googlegroups.com
Hi Evgeniy,

The trigger for this error message is "ENABLED_UNIVERSAL_APP_CREATIVES_PER_AD_GROUP". A Universal App creative refers to an ad from an App Campaign. Further details are given in the error message:

 
resource_count_details { enclosing_id: "128780011834" limit: 1 limit_type: APP_ADS_PER_AD_GROUP existing_count: 1 enclosing_resource: "ad_group" }

This indicates that you may only have one ad per App Campaign Ad Group, and that this resource limit is being exceeded with the attempted operation.


Regards,
Matt
Google Ads API Team


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


ref:_00D1U1174p._5004Q2R6bFl:ref

Evgeniy Lepikov

unread,
Nov 9, 2021, 2:54:58 AM11/9/21
to AdWords API and Google Ads API Forum
Thank you. I'll try to figure it out.

понедельник, 8 ноября 2021 г. в 17:21:33 UTC, adsapi:
Reply all
Reply to author
Forward
0 new messages