Hi,
the links provided do not list anything related to campaign criteria or
geotarget constants. 122 also seems like a very arbitrary number.
Here is the full error message as provided by the API:
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: 2512
}
location {
field_path_elements {
field_name: "mutate_operations"
index: 124
}
field_path_elements {
field_name: "campaign_criterion_operation"
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "resource_name"
}
}
2512 refers to the geotarget constant ID. It is assigned like this:
builder = CampaignCriterion.newBuilder()
.setCampaign(campaignResourceName)
.setNegative(true)
builder
.getLocationBuilder
.setGeoTargetConstant(ResourceNames.geoTargetConstant(criteriaId))
RequestID: XY8li-E56X8cKNGBaYQGYg
ResponseCode: INVALID_ARGUMENT, Fault: Request contains an invalid
argument..
On Wednesday 6 March 2024 at 22:21:33 UTC+1 Google Ads API Forum Advisor
wrote:
> Hi Marius,
>
> Thank you for contacting the Google Ads API support team.
>
> After reviewing your query, I understand that you are encountering a "
> RESOURCE_LIMIT
> <https://developers.google.com/google-ads/api/reference/rpc/v14/ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError#resource_limit>"
> error
> in the Google Ads API. The 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
> <https://developers.google.com/google-ads/api/docs/best-practices/rate-limits#rate_limits>
> and system limits
> <https://developers.google.com/google-ads/api/docs/best-practices/system-limits>
> .
>
> If the issue still persists, kindly provide us with the complete API logs (
> request
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
> and response
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
> with request-id
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
> and request header
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
> generated
> at your end and uncropped UI screenshot of where you are facing the issue.
>
> 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
> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>
> , .Net
> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
> , PHP
> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
> , Python
> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>
> , Ruby
> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging>
> or Perl
> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging>
> 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.!5004Q02rzj6d:ref"
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d55041b5-0813-4b3d-8d76-0bae8e1b4af2n%40googlegroups.com.