Internal Error while submitting batch job operations. But change history showing same changes multiple times.

215 views
Skip to first unread message

Samarth Gupta

unread,
Apr 19, 2023, 7:33:16 AM4/19/23
to Google Ads API and AdWords API Forum
Hey team, 
I am getting Internal Error when submitting batch job for CustomerNegativeCriterion.
Also change history in GAds interface is showing same changes for that operation 6 times.

Scenario:
1. We first submitted batch job for Removing some placement exclusions at account level. Which worked fine.
2. Then submitted batch job for Excluding other placements (CustomerNegativeCriterion). But it failed with Error specified below
3. Checked change history in gads interface, it shows operations executed 6 times.

Questions:
1. what can cause internal error.
2. If the operation failed, then why it shows multiple times in change history

Error:

Status(StatusCode="Internal", Detail="Internal error encountered.")
Google.Ads.Gax
   at Google.Ads.Gax.Interceptors.UnaryRpcInterceptor.Intercept[T,TResponse](Task`1 task, Action`1 callback)
   at Google.Api.Gax.Grpc.ApiCall.GrpcCallAdapter`2.<>c__DisplayClass4_0.<<CallAsync>g__WaitAndCallHandlers|0>d.MoveNext()
--- End of stack trace from previous location ---
   at Google.Api.Gax.TaskExtensions.WaitWithUnwrappedExceptions(Task task)
   at Google.Api.Gax.Grpc.ApiCall.GrpcCallAdapter`2.CallSync(TRequest request, CallSettings callSettings)
   at Google.Api.Gax.Grpc.ApiCallRetryExtensions.<>c__DisplayClass1_0`2.<WithRetry>b__0(TRequest request, CallSettings callSettings)
   at Google.Api.Gax.Grpc.GrpcPagedEnumerable`3.AsRawResponses()+MoveNext()
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at AccountPlacementsProcessor.ApplyPlacementExclusions.GetBatchJobSuccessfulOperations(BatchJobHelper batchJobHelper, BatchJobResultSummary batchJobResultSummary, Action`1 LogBatchJobStatusByOperationIndex) in C:\server\code\optmyzr\code\backend\OptmyzrProcessorService\AccountPlacementsProcessor\Program.cs:line 1885

Google Ads API and AdWords API Forum

unread,
Apr 19, 2023, 8:03:35 AM4/19/23
to Google Ads API and AdWords API Forum
Re-posting the last inquiry (https://groups.google.com/g/adwords-api/c/lxf1P19A5d8) from the forum as it wasn't routed to our support queue.

Regards,
Google Ads API Team

Google Ads API and AdWords API Forum

unread,
Apr 19, 2023, 8:58:21 AM4/19/23
to Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to the Google Ads API support team. I hope that you are doing well today.

With regards to your concern about "Internal error encountered", this occurs when something unexpected happens while processing the request. The common cause could be the API isn't functioning correctly. With this, what we can do is to advise you to wait for about 30 seconds, then retry the request.

If you frequently encounter the internal error, please reach out to us again and provide the most recent and complete request and response logs with request ID and request header generated on your end. 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.

In addition, could you please provide us also with a full non-cropped and non-redacted screenshot of the UI where we can see the change history that shows the operations executed 6 times.

Best regards,
Google Ads API
Message has been deleted
Message has been deleted

Google Ads API and AdWords API Forum

unread,
Apr 20, 2023, 9:46:48 AM4/20/23
to Google Ads API and AdWords API Forum
Hi, 

Thank you for getting back to us. I just want you to know that I am going to remove your recent post in this thread because it contains sensitive information which is not allowed to be posted in this forum for security purposes.

Moving forward to your concern, it seems that the changes came from another tool. Note that the tool that we can only support is "Google Ads API" and upon checking on the screenshot, the tool used is "OTHER", this means that the Google Ads API is not used in these changes and we cannot provide any support if the tool used is OTHER. However, if you are indeed using a Google Ads API, to further investigate, please provide us the complete request and response logs with request ID and request header generated on your end. 

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.

Kind regards,
Google Ads API

On Wednesday, April 19, 2023 at 7:33:16 PM UTC+8 sam...@optmyzr.com wrote:

Samarth Gupta

unread,
May 1, 2023, 2:28:24 AM5/1/23
to Google Ads API and AdWords API Forum
Hi Team,
I tried debugging this and found that if passing these Youtube channel Id's in request (customer negative criterion)
then I get the upper error. (Not partial failure)
Also if I try adding these channels through Google ads interface, I get error message popup saying: Targeting item limit exceeded.

Some of the Channel Id's (Not sure if there are more channels which cause these problems):

"UCW-UGbKYgl15AcRzNBVJYeA",
 "UCx790E5ndVIGI-q0bAYG_oQ",
 "UCt2MuFmGBgGOB3yPBRekSCg"

If we go to youtube.com/channel/{any upper channel id}
these channels does not exist there. but they exist in Google ads interface when searching by channel id while adding placement exclusions.

but there are some other channels which show in google ads interface but does not exist if we go to link (Example: UCD95txYlo5jMQnj18MMNuDQ, UC5wd7YeKwnYp24D5_Lj71Yg)
If we add them through api or interface, we don't get error but they still not get added to exclusion list.

So if the problem is because channel does not exist, then why don't we get partial failure and if it is not the issue can you please guide me what am i doing wrong?
Thanks

Google Ads API Forum Advisor

unread,
May 2, 2023, 3:30:39 PM5/2/23
to adwor...@googlegroups.com

Hi,

Thanks for getting back with us.

Please note that our team support scope specialize on Google Ads API technical implementation related concerns only. 

With regards to your concern, can you confirm if you are using the Google Ads API directly to implement the following requests? If so, please note that in Google Ads API perspective, we need the complete logs to be able to see if there’s an error thrown on your side and further investigate. With that being said, can you provide the complete request and response logs with request ID generated as shown in the respective links with this error? 

However, if this is not Google Ads API related concern, then can you provide more context about your issue / concern so that we can provide guidance accurately or route you to the correct support team regarding your concern?

You may then send the requested information via the Reply privately to the author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Links included in this email:


Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2koYD4:ref

Samarth Gupta

unread,
May 12, 2023, 5:54:38 AM5/12/23
to Google Ads API and AdWords API Forum
Hey team,

Just checking out quickly,
I sent request and response logs in private message.
Let me know  If we have any update on this.

Regards,
Samarth

Google Ads API and AdWords API Forum

unread,
May 12, 2023, 9:51:07 AM5/12/23
to Google Ads API and AdWords API Forum
Re-posting the last inquiry (https://groups.google.com/g/adwords-api/c/lxf1P19A5d8) from the forum as it wasn't routed to our support queue.

Regards,
Google Ads API Team

Google Ads API and AdWords API Forum

unread,
May 16, 2023, 10:41:34 AM5/16/23
to Google Ads API and AdWords API Forum

Hi,


Thanks for getting back to us.


It seems like we have already replied to you privately regarding the response logs you sent in a private message. However, you may refer below for our previous response, in case you were able to miss it.

With regards to your concern of having the ResourceCountLimitExceededError.ACCOUNT_LIMIT error, it indicates that this request would exceed the number of allowed resources for the Google Ads account. The said error means that the request is attempting to create a resource that would cause the total number of those resources to exceed a specified limit. There are multiple limits on the number of resources that can exist in certain contexts.

Please note that for Negative keyword limits, only 20 shared negative keyword lists per account. For more information, I would suggest checking the count of other limits to see if indeed exceeded the entity limit specified in Google Ads account limits documentation. You may also see System Limits documentation for more information.

If the issue still persists, please provide the complete (request and response with request-id) logs with request ID generated as shown in the respective links? You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

If you haven't enabled logging yet, it can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output.

Reference links:


Let us know if you have further questions.

Regards,
Google Ads API Team

Reply all
Reply to author
Forward
0 new messages