Facing Resource limit exceeded error for LABELS_PER_CAMPAIGN limit type in Google Ads API

905 views
Skip to first unread message

Safetynet Devs

unread,
May 9, 2022, 12:28:52 PM5/9/22
to Google Ads API and AdWords API Forum
Hello Team,

We are facing below error while applying the label on multiple campaigns through Google Ads API.

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: "LABELS_PER_CAMPAIGN"
    }
    location {
        field_path_elements {
        field_name: "operations"
        index: 115
        }
    }
    details {
        resource_count_details {
        enclosing_id: "xxxxxxxx"
        limit: 50
        limit_type: LABELS_PER_CAMPAIGN
        existing_count: 51

        enclosing_resource: "campaign"
        }
    }
}

When we went through the document, we found that Google Ads allows to apply maximum 50 labels on single campaign as described below (reference link) :
Maximum number of labels that can be applied to a single entity (campaign, ad group, etc.) : 50    

However, we have below queries/concerns for the above issue.
(1) We wanted to know the reason of throwing above error because in our case we are passing only single label in the request (mutateCampaignLabels operations).
And we also observed that this issue was occurred for particular campaign instead of all campaigns and also checked for that campaign which causing the above error and found that that campaign does not contain any label.

(2) We also wanted to know the reason why this above error was thrown only for the particular campaign instead of all the campaigns. Is there any setting provided by Google Ads to apply this  LABELS_PER_CAMPAIGN limitation on specific campaign?

Thanks.

Google Ads API Forum Advisor

unread,
May 11, 2022, 3:06:57 AM5/11/22
to safety...@jellyfish.com, adwor...@googlegroups.com
Hi,  

Thank you for raising this concern to the Google Ads API Forum

With regard to your concern, please refer to my answers below:

(1) "We wanted to know the reason of throwing above error because in our case we are passing only single label in the request (mutateCampaignLabels operations)... And we also observed that this issue was occurred for particular campaign instead of all campaigns and also checked for that campaign which causing the above error and found that that campaign does not contain any label."

For the LABELS_PER_CAMPAIGN, I am afraid that according to the document that provided each campaign can have 50 labels only the same as your understanding. 


(2)" We also wanted to know the reason why this above error was thrown only for the particular campaign instead of all the campaigns. Is there any setting provided by Google Ads to apply this  LABELS_PER_CAMPAIGN limitation on specific campaign?"

It would be helpful to check this in our end by providing the complete logs without redacting CID, within the format of the request and response logs with request-id and login-customer-id that generated on your end. This information will help our team to further investigate why this error occurred. For security purposes, you can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ar69S:ref

Safetynet Devs

unread,
May 12, 2022, 10:51:51 AM5/12/22
to Google Ads API and AdWords API Forum
Hello,

We have sent the required details via Reply privately to the author option.
Thanks.
Reply all
Reply to author
Forward
0 new messages