RE: [v9] Getting error - resource_count_limit_exceeded_error: RESOURCE_LIMIT, ENABLED_PRICE_ASSET_LINKS_PER_CAMPAIGN

114 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor

unread,
Jan 11, 2022, 9:58:24 PM1/11/22
to alar...@cyberpublicity.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Forum.

I had to delete your post as it contained your logs. I am reposting below without the sensitive log information for reference :

“Hello, 

I'm trying to create price asset and attach to existing campaign, but getting this error.

I don't have any further details, even though it mentioned that the details will eventually be returned in ErrorDetails. 

I couldn't find any documentation about the trigger and what that means.

I do have 3 price offerings per asset and i'm trying to attach just one asset to campaign

This is the operation

Method: /google.ads.googleads.v9.services.BatchJobService/AddBatchJobOperations

Host: googleads.googleapis.com

Headers: {

  "developer-token": "REDACTED",

  "login-customer-id": "**",

  "x-goog-api-client": "",

  "x-goog-request-params": "resource_name=customers/***/batchJobs/***"

}

Request: resource_name: "customers/***/batchJobs/***"

mutate_operations {

  campaign_asset_operation {

    create {

      field_type: PRICE

      campaign: "customers/***/campaigns/**"

      asset: "customers/***/assets/**"

    }

  }

}

Response

-------

Headers: {

  

  "request-id": "**"

}

Response: total_operations: 1

next_sequence_token: "**"

And this is what I'm getting as a result of the operation

Response: results {

  status {

    code: 3

    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., at mutate_operations[0].campaign_asset_operation"

    details {

      [type.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure] {

        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_PRICE_ASSET_LINKS_PER_CAMPAIGN"

          }

          location {

            field_path_elements {

              field_name: "mutate_operations"

              index: 0

            }

            field_path_elements {

              field_name: "campaign_asset_operation"

            }

          }

        }

      }

    }

  }

}

 

Any help would be appreciated!

--”


It seems you are trying to create a price asset using AddBatchJobOperations. I can see that you’re using only one operation in Batch Job. Since ErrorDetails is not returned in AddBatchJobOperations, could you please retry your API request with CampaignAssetOperation without a batch job, so this will provide additional error details from the ErrorDetails class? You provide us with the complete request and response logs with the request-id generated via the Reply privately to author option, so our team can investigate further.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2UizKa:ref
Reply all
Reply to author
Forward
0 new messages