Hi,

When adding too many Responsive Search Ads via MutateAdGroupAds, there 
seems to be a bug on your end within the error response. I get the main 
error as expected, "resource_count_limit_exceeded_error: RESOURCE_LIMIT". 
 This part OK. But the "existing_count" seem wrong. I always get 
existing_count: 3. Should be 0 in my case as new campaign and adgroup

I am guessing that somewhere in your code when populating  existing_count, 
it is not populated with live ads, but rather populated with the limit?  If 
this is the case, should be an easy fix perhaps.

I am including the whole request/response (without any sensitive 
information). request_id: "PG3z92tNF_rs4Bghi3eRhA"

Can you look into this please?

Thanks, Hans

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/83af8ab1-a85e-4b56-8b9e-6322328d2ccfn%40googlegroups.com.
2022-01-31 12:30:32.481  [grpc-default-executor-0] INFO detail: FAILURE REQUEST 
DETAIL.
Request
-------
MethodName: google.ads.googleads.v9.services.AdGroupAdService/MutateAdGroupAds
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=XXXXXXXXXX, 
x-goog-api-client=gl-java/11.0.7 gccl/16.0.2 gapic/16.0.2 gax/2.7.1 grpc/1.43.1}
Body: customer_id: "XXXXXXXXXXXX"
operations {
  create {
    status: ENABLED
    ad {
      responsive_search_ad {
        headlines {
          text: "26e931b1-8289-11ec-a15d-e"
        }
        headlines {
          pinned_field: HEADLINE_1
          text: "26e931b2-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e931b3-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e931b4-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e931b5-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e931b6-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e931b7-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e931b8-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e931b9-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e931ba-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e931bb-8289-11ec-a15d-e"
        }
        descriptions {
          pinned_field: DESCRIPTION_2
          text: "26e931bc-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e931bd-8289-11ec-a15d-e"
        }
        path1: "26e958c0-8289-1"
        path2: "26e958c1-8289-1"
      }
      id: 314351868
      final_urls: "http://www.anywhere.com/26e90aa5-8289-11ec-a15d-ee5c6897ba9f";
    }
    ad_group: "customers/XXXXXXXXXXX/adGroups/XXXXXXXXXXXX"
  }
}
operations {
  create {
    status: ENABLED
    ad {
      responsive_search_ad {
        headlines {
          text: "26e97fd4-8289-11ec-a15d-e"
        }
        headlines {
          pinned_field: HEADLINE_1
          text: "26e97fd5-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97fd6-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97fd7-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97fd8-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97fd9-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97fda-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97fdb-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97fdc-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e97fdd-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e97fde-8289-11ec-a15d-e"
        }
        descriptions {
          pinned_field: DESCRIPTION_2
          text: "26e97fdf-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e97fe0-8289-11ec-a15d-e"
        }
        path1: "26e97fe1-8289-1"
        path2: "26e97fe2-8289-1"
      }
      id: 1046948616
      final_urls: "http://www.anywhere.com/26e97fd2-8289-11ec-a15d-ee5c6897ba9f";
    }
    ad_group: "customers/XXXXXXXXXX/adGroups/XXXXXXXXXXXXXX"
  }
}
operations {
  create {
    status: ENABLED
    ad {
      responsive_search_ad {
        headlines {
          text: "26e97ff0-8289-11ec-a15d-e"
        }
        headlines {
          pinned_field: HEADLINE_1
          text: "26e97ff1-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97ff2-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97ff3-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97ff4-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97ff5-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97ff6-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97ff7-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e97ff8-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e9a6e0-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e9a6e1-8289-11ec-a15d-e"
        }
        descriptions {
          pinned_field: DESCRIPTION_2
          text: "26e9a6e2-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e9a6e3-8289-11ec-a15d-e"
        }
        path1: "26e9a6e4-8289-1"
        path2: "26e9a6e5-8289-1"
      }
      id: 1263256564
      final_urls: "http://www.anywhere.com/26e97fee-8289-11ec-a15d-ee5c6897ba9f";
    }
    ad_group: "customers/XXXXXXX/adGroups/XXXXXXXXXXX"
  }
}
operations {
  create {
    status: ENABLED
    ad {
      responsive_search_ad {
        headlines {
          text: "26e9a6f3-8289-11ec-a15d-e"
        }
        headlines {
          pinned_field: HEADLINE_1
          text: "26e9a6f4-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9a6f5-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9a6f6-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9a6f7-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9a6f8-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9a6f9-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9a6fa-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9a6fb-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e9a6fc-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e9a6fd-8289-11ec-a15d-e"
        }
        descriptions {
          pinned_field: DESCRIPTION_2
          text: "26e9a6fe-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e9a6ff-8289-11ec-a15d-e"
        }
        path1: "26e9cdf0-8289-1"
        path2: "26e9cdf1-8289-1"
      }
      id: 1044905154
      final_urls: "http://www.anywhere.com/26e9a6f1-8289-11ec-a15d-ee5c6897ba9f";
    }
    ad_group: "customers/6257802538/adGroups/133360091272"
  }
}
operations {
  create {
    status: ENABLED
    ad {
      responsive_search_ad {
        headlines {
          text: "26e9cdff-8289-11ec-a15d-e"
        }
        headlines {
          pinned_field: HEADLINE_1
          text: "26e9ce00-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9ce01-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9ce02-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9ce03-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9ce04-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9ce05-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9ce06-8289-11ec-a15d-e"
        }
        headlines {
          text: "26e9ce07-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e9ce08-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e9ce09-8289-11ec-a15d-e"
        }
        descriptions {
          pinned_field: DESCRIPTION_2
          text: "26e9ce0a-8289-11ec-a15d-e"
        }
        descriptions {
          text: "26e9ce0b-8289-11ec-a15d-e"
        }
        path1: "26e9ce0c-8289-1"
        path2: "26e9ce0d-8289-1"
      }
      id: 533383176
      final_urls: "http://www.anywhere.com/26e9cdfd-8289-11ec-a15d-ee5c6897ba9f";
    }
    ad_group: "customers/XXXXXXXXX/adGroups/XXXXXXXXXXXXX"
  }
}
response_content_type: MUTABLE_RESOURCE


Response
--------
Headers: 
Metadata(content-type=application/grpc,request-id=PG3z92tNF_rs4Bghi3eRhA,date=Mon,
 31 Jan 2022 11:30:16 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: 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_RESPONSIVE_SEARCH_CREATIVES_PER_AD_GROUP"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 3
    }
  }
  details {
    resource_count_details {
      enclosing_id: "133360091272"
      limit: 3
      limit_type: RESPONSIVE_SEARCH_ADS_PER_AD_GROUP
      existing_count: 3
      enclosing_resource: "ad_group"
    }
  }
}
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_RESPONSIVE_SEARCH_CREATIVES_PER_AD_GROUP"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 4
    }
  }
  details {
    resource_count_details {
      enclosing_id: "133360091272"
      limit: 3
      limit_type: RESPONSIVE_SEARCH_ADS_PER_AD_GROUP
      existing_count: 3
      enclosing_resource: "ad_group"
    }
  }
}
request_id: "PG3z92tNF_rs4Bghi3eRhA"
  • Bu... Hans Sjulstad
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to