Hello, I am trying to connect to my Google Ads Seat through Google Ads API. I have the simple following code to authenticate.
### from google.ads.googleads.client import GoogleAdsClient DEVELOPER_TOKEN = "xxxx" => Developer token in string USE_PROTO_PLUS = "true" JSON_KEY_FILE_PATH = '/app/service-account.json' ==> the absolute path in string of the service account json file within the docker image which has been authorized for adwords scope IMPERSONATED_EMAIL = "[email protected]" ==> the email of the admin on this service account in string LOGIN_CUSTOMER_ID = "0123456789" ==> The ID in string of my Google Ads Seat credentials = { "developer_token": DEVELOPER_TOKEN , "use_proto_plus": USE_PROTO_PLUS , "json_key_file_path": JSON_KEY_FILE_PATH , "impersonated_email": IMPERSONATED_EMAIL , "login_customer_id": LOGIN_CUSTOMER_ID } client = GoogleAdsClient.load_from_dict(credentials) ### When I run it locally it works perfectly (in locally deployed docker image). However, when my application is deployed and run in docker image on Google Cloud Platform I have the following error : "[Errno 21] Is a directory: '/app/service-account.json' ". I am kind of lost because this code works perfectly locally. I don't understand why it's reading this JSON_KEY_FILE_PATH variable as a directory and not as a path since it has the .json extension. Do you know where this could come from ? Thanks in advance, Adelaide -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/16b50d07-917a-4747-98be-c17075c4628fn%40googlegroups.com.
