"resourceCountLimitExceededError": "RESOURCE_LIMIT" error

494 views
Skip to first unread message

gator...@gmail.com

unread,
Mar 5, 2024, 4:37:27 PM3/5/24
to Google Ads API and AdWords API Forum
We recently created a new campaign and tried to set location data when we received a RESOURCE_LIMIT error.  However, setting location data on existing campaigns works fine.  We asked a colleague with a separate Google Ads account to perform the same operation and they received the same error.  

The exception is thrown when a call is made to CampaignCriterionServiceClient.MutateCampaignCriteria

A snippet of the returned errors is listed below.  Not that the index starts at 123 if that may be a clue.  The error that my colleague received also had an index that started at 123 which seems too coincidental.

{
    "errors": [
        {
            "errorCode": {
                "resourceCountLimitExceededError": "RESOURCE_LIMIT"
            },
            "message": "The request would cause a limit on the number of allowed resources of this type to be exceeded.",
            "trigger": {
                "int64Value": "2504"
            },
            "location": {
                "fieldPathElements": [
                    {
                        "fieldName": "operations",
                        "index": 123
                    },
                    {
                        "fieldName": "create"
                    },
                    {
                        "fieldName": "resource_name"
                    }
                ]
            }
        },
        {
            "errorCode": {
                "resourceCountLimitExceededError": "RESOURCE_LIMIT"
            },
            "message": "The request would cause a limit on the number of allowed resources of this type to be exceeded.",
            "trigger": {
                "int64Value": "2508"
            },
            "location": {
                "fieldPathElements": [
                    {
                        "fieldName": "operations",
                        "index": 124
                    },
                    {
                        "fieldName": "create"
                    },
                    {
                        "fieldName": "resource_name"
                    }
                ]
            }
        },

gator...@gmail.com

unread,
Mar 5, 2024, 6:15:44 PM3/5/24
to Google Ads API and AdWords API Forum
I think this is related to other posts about not being able to exclude more than 122 countries.  Still waiting for a solution.

Google Ads API Forum Advisor

unread,
Mar 5, 2024, 6:54:08 PM3/5/24
to gator...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

After reviewing your concern, I understand that you are encountering the "RESOURCE_LIMIT" error while trying to set location data for a new campaign via the Google Ads API.

The "RESOURCE_LIMIT" error means the request is attempting to create a resource that would cause the total number of those resources to exceed a specified limit. Kindly note that there are multiple limits on the number of resources that can exist in certain contexts. So, identify the limit that's being encountered by reviewing System limits. Either reuse an existing resource, or remove resources to create space for new ones.

Also, in order to investigate the issue further, kindly provide us with the "complete" API logs (request and response with request-id and request header) generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzhk6:ref"

Thanks,
 
Google Logo Google Ads API Team


gator...@gmail.com

unread,
Mar 7, 2024, 11:58:15 AM3/7/24
to Google Ads API and AdWords API Forum
Numerous posts have identified what appears to be a bug with excluding countries.  It appears to be limiting to 122.  We are seeing this with the API, the offline tool, and the web interface.  

To reproduce, try to bulk add all 217 countries (all but US) to a campaign's excluded locations.  It will fail with the message "The number of entities exceeds the limit".  It will continue to fail until you reduce the list to 122.

Please escalate this to the appropriate devs to investigate. 

Google Ads API Forum Advisor

unread,
Mar 7, 2024, 11:04:22 PM3/7/24
to gator...@gmail.com, adwor...@googlegroups.com
Hi, 

Thank you for getting back to us. 

By reviewing your concern, I understand that you are still encountering the "RESOURCE_LIMIT" error while trying to set location data for a new campaign via the Google Ads API. Kindly note that you have not shared the complete API logs including the customer ID to further investigate your issue. So I would request you to kindly provide us with the complete API logs (request and response logs with request-id and request header) generated at your end to better assist you further. 
Reply all
Reply to author
Forward
0 new messages