No, the problem isnt fix and this is the problem
=====START HERE ====
*System information:*
- python 3.9.9
- package version google-ads==17.0.0
- using service account
*The Code*
from google.ads.googleads.client import GoogleAdsClient
from google.ads.googleads.errors import GoogleAdsException
credentials = {
"developer_token": "devELOPERTOkeen",
"json_key_file_path" : PATH_TO_SERVICE_ACCOUNT_JSON,
"impersonated_email":"[email protected]
<https://groups.google.com/>",
"use_proto_plus": True,
'login_customer_id' : '1111111122' #MMC ID
}
googleads_client = GoogleAdsClient.load_from_dict(credentials)
def stream_response(client, customer_id, query):
return
client.get_service("GoogleAdsService").search_stream(customer_id,
query=query)
def main(client, customer_id):
query = "SELECT campaign.name FROM campaign LIMIT 10"
response = stream_response(client, customer_id, query=query)
for batch in response:
print(batch)
customer_id = '1223334445'
main(googleads_client, customer_id)
*The Response /error*
GoogleAdsException: (<_SingleThreadedRendezvous of RPC that terminated
with: status = StatusCode.UNAUTHENTICATED details = "Request is
missing required authentication credential. Expected OAuth 2 access token,
login cookie or other valid authentication credential. See
https://developers.google.com/identity/sign-in/web/devconsole-project."
debug_error_string =
"{"created":"@1658341926.845702000","description":"Error received from peer
ipv6:[2800:3f0:4002:80c::200a]:443","file":"src/core/lib/surface/call.cc","file_line":967,"grpc_message":"Request
is missing required authentication credential. Expected OAuth 2 access
token, login cookie or other valid authentication credential. See
https://developers.google.com/identity/sign-in/web/devconsole-project.","grpc_status":16}"
>,
<_SingleThreadedRendezvous of RPC that terminated with: status =
StatusCode.UNAUTHENTICATED details = "Request is missing required
authentication credential. Expected OAuth 2 access token, login cookie or
other valid authentication credential. See
https://developers.google.com/identity/sign-in/web/devconsole-project."
debug_error_string =
"{"created":"@1658341926.845702000","description":"Error received from peer
ipv6:[2800:3f0:4002:80c::200a]:443","file":"src/core/lib/surface/call.cc","file_line":967,"grpc_message":"Request
is missing required authentication credential. Expected OAuth 2 access
token, login cookie or other valid authentication credential. See
https://developers.google.com/identity/sign-in/web/devconsole-project.","grpc_status":16}"
>,
errors { error_code { authentication_error: NOT_ADS_USER } message: "User
in the cookie is not a valid Ads user." } request_id:
"8ykzEeM7wVjZoJ1VDI54aw" , '8ykzEeM7wVjZoJ1VDI54aw')
==== ENDS HERE ===
On Friday, July 22, 2022 at 1:00:27 AM UTC-3 adsapi wrote:
> Hi Jose,
>
>
> Thank you for getting back to us. I work with Nirmita and allow me to
> assist you here. I hope you are doing well today.
>
>
> Moving forward, could you please confirm again if your problem is fixed
> now? I ask this because upon checking the duplicate of this thread you say
> this *"I have fix that error, the solution was reinstall google-ads
> python package". *Also , please use one thread only for better tracking
> and to avoid confusion
>
>
> Regards,
> [image: Google Logo]
> Darwin
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2bm7gu:ref
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6a163399-badb-4869-ad29-a39ab61fb5adn%40googlegroups.com.