Is there a way to construct the client without using the yaml file?

23 views
Skip to first unread message

jinge zhang

unread,
Feb 27, 2019, 5:12:47 PM2/27/19
to AdWords API and Google Ads API Forum
Hi, I am trying to use a python script to automate one of my UAC campaigns, it worked fine when I construct the client with yaml file. but I want to put it in the Google Cloud Function to make it run every 5 mins, but the script can not read yaml from Cloud Function(Or I don't know how to).

So, here comes the question, is it possible that I input the secret, client_id, refresh_token as parameters in the script file?

I did some digging and found a class method called LoadFromString, but when I try to input the 3 strings as keyword arguments, an error occurred saying I did not specify the oauth2 client, I really don't know how to achieve that.

Please help me with it

Thanks in advance


googleadsapi...@google.com

unread,
Feb 27, 2019, 10:20:24 PM2/27/19
to AdWords API and Google Ads API Forum
Hi Jinge,

My apologies as I could not comment if it's possible to run the AdWords API in Google Cloud Function as we do not provide support to any third party integration with the API. We could only provide support on issues/concern specific to AdWords API. We highly recommend to use the client library when running the AdWords API. Also, for specific concern in Python client library, I would suggest to post it here, as the client library owners are better equipped to assist you here.

Thanks and regards,
Luis
AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/ee019c13-d8a8-4e3d-a9eb-34c706382b1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages