This issue smells of jar-hell to me. Please check your classpath and make 
sure you do not have multiple jars that have a version of 
com.google.api.client.http.HttpHeaders class in them. 

This utility could be helpful:

https://java.net/projects/jarscan

Hope this helps,

Jason

On Tuesday, May 7, 2013 10:20:59 AM UTC-4, Paulo Fernandes wrote:
>
> Hi
>
> I'm receiving this message when I tryed do download the Adhoc Report.
>
> Exception in thread "main" java.lang.NoSuchMethodError: 
>>> com.google.api.client.http.HttpHeaders.setAuthorization(Ljava/lang/String;)Lcom/google/api/client/http/HttpHeaders;
>>
>> at 
>>> com.google.api.ads.adwords.lib.utils.ReportRequestFactoryHelper.createHeaders(ReportRequestFactoryHelper.java:123)
>>
>> at 
>>> com.google.api.ads.adwords.lib.utils.ReportRequestFactoryHelper.getHttpRequestFactory(ReportRequestFactoryHelper.java:103)
>>
>> at 
>>> com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelper.downloadReport(AdHocReportDownloadHelper.java:98)
>>
>> at 
>>> com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelper.downloadReport(AdHocReportDownloadHelper.java:68)
>>
>> at 
>>> com.google.api.ads.adwords.lib.utils.v201302.ReportDownloader.downloadReport(ReportDownloader.java:93)
>>
>>
> My code is here  https://gist.github.com/paulofernandesjr/5532908 
>
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to