Hello Vincent,

Im trying not to use the google.yaml and in the adwords.AdwordsClient 
parameters there's no indicating that I need the secret token and the 
refresh token.

On Friday, March 2, 2018 at 5:20:19 AM UTC+8, Mark Anthony Gutierrez wrote:
>
> Traceback (most recent call last):
>   File 
> "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\exception.py",
>  
> line 35, in inner
>     response = get_response(request)
>   File 
> "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py",
>  
> line 128, in _get_response
>     response = self.process_exception_by_middleware(e, request)
>   File 
> "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py",
>  
> line 126, in _get_response
>     response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File "C:\Users\xxx\Desktop\project\ksvt\views.py", line 68, in generate
>     main(adwords_client)
>   File "C:\Users\xxx\Desktop\project\ksvt\views.py", line 118, in main
>     page = targeting_idea_service.get(selector)
>   File 
> "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\googleads\common.py",
>  
> line 774, in MakeSoapRequest
>     self._header_handler.SetHeaders(self.suds_client)
>   File 
> "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\googleads\adwords.py",
>  
> line 514, in SetHeaders
>     http_headers = self._adwords_client.oauth2_client.CreateHttpHeader()
> AttributeError: 'str' object has no attribute 'CreateHttpHeader'
>
>
> All credentials are passed correctly:
> adwords_client = adwords.AdWordsClient(
> 'dev-token', 
> 'client-id',
> 'user-agent', 
> client_customer_id= 'xxx-xxx-xxx')
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@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/5131f5cc-cce2-4d95-ba1e-5585e28c3b66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Im stock here in... Mark Anthony Gutierrez
    • Re: Im stoc... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
      • Re: Im ... Mark Anthony Gutierrez
        • Re:... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
          • ... Mark Anthony Gutierrez
    • Re: Im stoc... Mark Anthony Gutierrez

Reply via email to