Re: 'ReflectionException' while using ReportUtils in Adwords API v201605

2016-08-16 Thread Foluso Ogunlana
Oh wow okay.

That's great, thank you very much!

It's great that it gives a helpful error, maybe it could be improved if the
message could bubble up enough to be in the stack trace?

I say this because I spent a lot of time hunting it down, and if I had seen
a single ZERO_IMPRESSIONS_NOT_SUPPORTED, it would have been obvious to me.

I can imagine other developers running into that.

Perhaps I just missed the error message and I should be looking somewhere
else?

Thanks
Foluso



On Tue, Aug 16, 2016 at 6:06 PM 'Shwetha Vastrad (AdWords API Team)' via
AdWords API Forum  wrote:

> Hi,
>
> Search Query Performance Report
> 
>  doesn't
> support zero impressions. Setting the includeZeroImpressions header to true
> will result in ReportDownloadError.ZERO_IMPRESSIONS_REQUEST_NOT_SUPPORTED
> .
> This is most likely the reason for the exception you encountered.
>
> Regards,
> Shwetha, AdWords API Team.
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 a topic in the
> Google Groups "AdWords API Forum" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/adwords-api/QbZ5pe4sTeA/unsubscribe.
> To unsubscribe from this group and all its topics, 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/0941eab0-0930-4918-84d4-f87505837d7a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAGSMpfnbPyqghzLdh4%3DjwwfXFpCdJypW7fqYust-kzNbw7n3MQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Miminal Python Example

2015-10-14 Thread Foluso Ogunlana
Hi Everyone, 

I've had this exact same problem and I solved it by including the path to 
googleads.yaml as an argument to LoadFromStorage.

adwords.AdWordsClient.LoadFromStorage('PATH_TO_GOOGLEADS.YAML')

Thanks

On Tuesday, 7 July 2015 14:26:46 UTC+1, Aydoğan Karagöz wrote:
>
> Hello Everyone!
>
> I am very new with AdWords API and trying to execute very basic example 
> 
>  
> from the library.
>
> I just filled   *developer_token*, *user_agent*, *client_id*, 
> *client_secret* and *refresh_token* fields in googleads.yaml file and put 
> it in my home directory.
>
> When I run that example script, I get the following error:
>
> Traceback (most recent call last):
>
>   File "get_campaigns.py", line 81, in 
>
> main(adwords_client)
>
>   File "get_campaigns.py", line 58, in main
>
> print campaign_service.get(selector)
>
>   File "build/bdist.macosx-10.10-intel/egg/googleads/common.py", line 294, 
> in MakeSoapRequest
>
>   File "build/bdist.macosx-10.10-intel/egg/googleads/adwords.py", line 
> 335, in SetHeaders
>
>   File "build/bdist.macosx-10.10-intel/egg/googleads/oauth2.py", line 150, 
> in CreateHttpHeader
>
>   File "build/bdist.macosx-10.10-intel/egg/googleads/oauth2.py", line 166, 
> in Refresh
>
>   File 
> "/Library/Python/2.7/site-packages/oauth2client-1.4.11-py2.7.egg/oauth2client/client.py",
>  
> line 598, in refresh
>
>   File 
> "/Library/Python/2.7/site-packages/oauth2client-1.4.11-py2.7.egg/oauth2client/client.py",
>  
> line 769, in _refresh
>
>   File 
> "/Library/Python/2.7/site-packages/oauth2client-1.4.11-py2.7.egg/oauth2client/client.py",
>  
> line 834, in _do_refresh_request
>
> oauth2client.client.AccessTokenRefreshError: invalid_grant
>
>
> Any suggestion of your to fix that error is welcome.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c58fd23c-a79b-4059-9bda-a2df0b6f43cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.