How to generate the USER_AGENT for AdWords API script

风格不统一 提交于 2019-12-12 10:55:02

问题


What is the most effective way to generate the USER_AGENT in order to pull data from the AdWords-API using Python? This value is the last value I need to be able to pull data. Any help would be greatly appreciated.

user_agent: INSERT_USER_AGENT_HERE

回答1:


Thankfully, I figured out how to resolve this. As noted here:

http://googleadsdeveloper.blogspot.ca/2013/11/please-set-user-agent-or-application.html

the USER_AGENT field is an optional field. The AdWords, DFP, and DFA APIs can take a user agent string in the SOAP headers, and the client libraries all allow you to set this string in their configuration files. That said, it is in your own best interests to set this value to something unique and useful for each of your applications.



来源:https://stackoverflow.com/questions/22646560/how-to-generate-the-user-agent-for-adwords-api-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!