-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mutate gender bid: google.api_core.exceptions.InternalServerError: 500 Internal error encountered. #222
Comments
Your code snippet looks fine. You may have found a bug in the server. Please email googleadsapi-support@google.com with private information like your DevToken, customer Id, request id, etc. Mention this GitHub issue as ask them to escalate the case to David Wihl. We can then do a more detailed investigation. Thanks for the bug report! |
See this line for an example of retrieving the request id. |
it return a None Request_id [WARNING] 2020-02-17T16:48:58.960Z Request made: ClientCustomerId: customer_id, Host: googleads.googleapis.com:443, Method: /google.ads.googleads.v2.services.AdGroupCriterionService/MutateAdGroupCriteria, RequestId: None, IsFault: True, FaultMessage: Internal error encountered. |
Also I have this header:
|
I don't think it is an issue with Python 3.6 / google-ads=4.0.0. Thanks for the additional information. |
This is the whole traceback:
Traceback (most recent call last):
File "/var/task/google/api_core/grpc_helpers.py", line 57, in
error_remapped_callable
return callable_(*args, **kwargs)
File "/var/task/grpc/_interceptor.py", line 222, in __call__
compression=compression)
File "/var/task/grpc/_interceptor.py", line 257, in _with_call
return call.result(), call
File "/var/task/grpc/_channel.py", line 333, in result
raise self
File "/var/task/grpc/_interceptor.py", line 248, in continuation
compression=new_compression)
File "/var/task/grpc/_interceptor.py", line 272, in with_call
compression=compression)
File "/var/task/grpc/_interceptor.py", line 257, in _with_call
return call.result(), call
File "/var/task/grpc/_channel.py", line 333, in result
raise self
File "/var/task/grpc/_interceptor.py", line 248, in continuation
compression=new_compression)
File "/var/task/grpc/_interceptor.py", line 272, in with_call
compression=compression)
File "/var/task/grpc/_interceptor.py", line 256, in _with_call
continuation, client_call_details, request)
File "/var/task/google/ads/google_ads/interceptors/exception_interceptor.py",
line 139, in intercept_unary_unary
self._handle_grpc_failure(response)
File "/var/task/google/ads/google_ads/interceptors/exception_interceptor.py",
line 118, in _handle_grpc_failure
raise exception
File "/var/task/grpc/_interceptor.py", line 248, in continuation
compression=new_compression)
File "/var/task/grpc/_channel.py", line 835, in with_call
return _end_unary_response_blocking(state, call, True, None)
File "/var/task/grpc/_channel.py", line 726, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INTERNAL
details = "Internal error encountered."
debug_error_string =
"{"created":"@1582014045.636110340","description":"Error received from
peer ipv4:74.125.193.95:443","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Internal
error encountered.","grpc_status":13}"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 132, in applyer
changes['changes']['mutater'])
File "/var/task/mutator.py", line 591, in ad_group_criterion_bid_modifier
ad_group_criterion_update_bid_modifier(client, customer_id, changes)
File "/var/task/mutator.py", line 524, in
ad_group_criterion_update_bid_modifier
customer_id, operators))
File "/var/task/google/ads/google_ads/v2/services/ad_group_criterion_service_client.py",
line 325, in mutate_ad_group_criteria
return self._inner_api_calls['mutate_ad_group_criteria'](request,
retry=retry, timeout=timeout, metadata=metadata)
File "/var/task/google/api_core/gapyouic_v1/method.py", line 143, in __call__
return wrapped_func(*args, **kwargs)
File "/var/task/google/api_core/retry.py", line 286, in retry_wrapped_func
on_error=on_error,
File "/var/task/google/api_core/retry.py", line 184, in retry_target
return target()
File "/var/task/google/api_core/timeout.py", line 214, in func_with_timeout
return func(*args, **kwargs)
File "/var/task/google/api_core/grpc_helpers.py", line 59, in
error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "<string>", line 3, in raise_from
google.api_core.exceptions.InternalServerError: 500 Internal error encountered.
if you want me to provide some extra information. you can ask for it
Thanks for the help
El lun., 17 feb. 2020 a las 18:16, David Wihl (<notifications@github.com>)
escribió:
… I don't think it is an issue with Python 3.6 / google-ads=4.0.0. Thanks
for the additional information.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#222?email_source=notifications&email_token=AIJD2BZUEKB7TQORX2WLRBLRDLA75A5CNFSM4KVF5W2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL7EVNI#issuecomment-587090613>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIJD2BY52MZR3YEZ37IBMP3RDLA75ANCNFSM4KVF5W2A>
.
|
Hey David (@wihl). I'm having a similar error response (Internal Error Encountered) but through a call to the KeywordPlanService: client.get_type('KeywordPlanForecastIntervalEnum', version='v3') The script I'm running is an almost exact copy from: examples/planning/add_keyword_plan.py Here's the error |
@ricardocancar @elviskahoro thanks for raising this issue. Does this problem occur consistently or is it always reproducible? Can you each share your version of Python, the version of the Google Ads API you're using (i.e |
Hi Ben Karl , I solved already this issue.
my environment was python 3.6.9
google-ads==4.0.0
pymongo[tls2, srv]==3.7.2
ikp3db==1.4.1
ok, so the problem is that, we have several google ads account with 2 or
more MCC_ID because we exceed the limit in the UI of 80.000. It seems I can
only do mutation with one mcc not both. If you want I can provide you the
mcc_id. Also I would to have some Error info, if I use the wrong MCC
account to do mutations in one of our customers.
Thanks.
Greetings, Ricardo.
El lun., 30 mar. 2020 a las 16:57, Ben Karl (<notifications@github.com>)
escribió:
… @ricardocancar <https://github.com/ricardocancar> @elviskahoro
<https://github.com/elviskahoro> thanks for raising this issue. Does this
problem occur consistently or is it always reproducible? Can you each share
your version of Python, the version of the Google Ads API you're using (i.e
version='v2' when calling client.get_service) and the result of running pip
freeze so that I can try to reproduce myself?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#222 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIJD2B2FZHOU3G2FGVKEB2TRKCXNZANCNFSM4KVF5W2A>
.
|
I've tried both the MCC for our manager account and the ads account. keyword_plan_service` = client.get_service('KeywordPlanService', version='v3') breaks on this following lineresponse = keyword_plan_service.mutate_keyword_plans(customer_id, [operation]) PIP Freeze (python 3.7.3) Same line: 1055 as rivardo |
@elviskahoro That error might indicate that an exception was returned by the API that this library doesn't know how to handle. You can print the error details by printing the raw trailing_metadata by inserting a print statement like this. Can you try adding this print statement and pasting the trailing metadata here? Be sure to scan the output and remove any credentials, such as your CID or developer token, before pasting. |
@elviskahoro closing this out, assuming the issue has been resolved by now. Please reopen if that's not the case. |
Hi,
this is one operator example to modify the age bid
operator example
update {
resource_name: "customers/customer_id/adGroupCriteria/ad_group_id~503006"
bid_modifier {
value: 0.9
}
}
update_mask {
paths: "resource_name"
paths: "bid_modifier"
}
I getting the following error
Response
Fault: {
"created": "@1581675413.638711689","description":"Error received from peer ipv4:74.125.193.95:443",
"file": "src/core/lib/surface/call.cc",
"file_line": 1056,
"grpc_message": "Internal error encountered.",
"grpc_status": 13
}
I checked that the ad_group_id exist and is enable the criterion id 503006 is enable also and
the campaign type is search this code were working before and the error doesn't give me some information
i just trying to change our bid by age target.
this is the output that i get when I run this code.
The text was updated successfully, but these errors were encountered: