Is there a limit on the number of countries we can exclude from a campaign?

277 views
Skip to first unread message

Lan

unread,
Mar 5, 2024, 10:34:28 AM3/5/24
to Google Ads API and AdWords API Forum

We been getting the error below trying to add more excluded countries to the campaign. I have searched the google ads api doc but not able to find any information on the limit. Is there a unpublished limit of the number of excluded countries for a campaign?

 

FAILURE REQUEST DETAIL.

Request

-------

MethodName: google.ads.googleads.v15.services.CampaignCriterionService/MutateCampaignCriteria

Endpoint: googleads.googleapis.com:443

Headers: {developer-token=REDACTED, login-customer-id=2455939968, x-goog-api-client=gl-java/11.0.15 gccl/28.0.0 gapic/28.0.0 gax/2.32.0 grpc/1.56.1}

Body: customer_id: "4657997300"

operations {

  create {

    location {

      geo_target_constant: "geoTargetConstants/2404"

    }

    campaign: "customers/4657997300/campaigns/21077501203"

    negative: true

  }

}

 

 

Response

--------

Headers: Metadata(content-type=application/grpc,request-id=qEzEA52O6o8EEPO2lHkgYg,date=Mon, 04 Mar 2024 20:28:12 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000)

Body: null

Failure message: errors {

  error_code {

    resource_count_limit_exceeded_error: RESOURCE_LIMIT

  }

  message: "The request would cause a limit on the number of allowed resources of this type to be exceeded."

  trigger {

    int64_value: 2404

  }

  location {

    field_path_elements {

      field_name: "operations"

      index: 0

    }

    field_path_elements {

      field_name: "create"

    }

    field_path_elements {

      field_name: "resource_name"

    }

  }

}

request_id: "qEzEA52O6o8EEPO2lHkgYg"

 

Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}

Google Ads API Forum Advisor

unread,
Mar 5, 2024, 2:51:06 PM3/5/24
to lan...@gmail.com, adwor...@googlegroups.com
Hi,

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

I see that you have already raised this concern on another thread with the subject 'Error adding campaign criteria', and we have already responded there for this issue. To avoid multiple threads on the same issue, please take a look at that thread and continue the discussion on the same for further updates on the issue.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzgZq:ref"

Thanks,
 
Google Logo Google Ads API Team


Scott Langevin

unread,
Mar 5, 2024, 4:25:18 PM3/5/24
to Google Ads API and AdWords API Forum
For the benefit of all can you post a link to this other thread or at least provide the answer here as well.  I could not find this other thread.

Google Ads API Forum Advisor

unread,
Mar 5, 2024, 8:45:12 PM3/5/24
to sc...@atomiq.co, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

By reviewing your concern, I understand that you are encountering a "RESOURCE_LIMIT" error in the Google Ads API. I would like to inform you that this error occurs when the request exceeds the limit and 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. I would suggest you pass the argument within the limit to avoid encountering the error. Kindly refer to the documents for more information on rate limits and system limits.

I hope this helps. Please feel free to get back to us if you have any further queries.

gator...@gmail.com

unread,
Mar 6, 2024, 1:11:11 PM3/6/24
to Google Ads API and AdWords API Forum
Numerous posted 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, 1:57:17 AM3/7/24
to gator...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us. 

I see that you have already raised this concern on another thread with the subject 'Error adding campaign criteria', and we have already responded there for this issue. To avoid multiple threads on the same issue, please take a look at that thread and continue the discussion on the same for further updates on the issue. However, I am posting here the response again. 

I would like to inform you that our team is currently working on this issue. One of our teammates will get back to you once we have an update on this. Meanwhile your patience is appreciated.
Reply all
Reply to author
Forward
0 new messages