Hello Jyothi,

Thank you. The library maintainer will investigate this and follow up 
within the bug.


-Danial, AdWords API Team.


On Friday, July 4, 2014 1:39:07 PM UTC+4, Jyothi Vejju wrote:
>
> Hi Danial,
>
> I have logged this issue on the library bug tracker.
> https://github.com/googleads/googleads-java-lib/issues/19
>
> Thanks,
> Jyothi
>
> On Friday, July 4, 2014 9:07:43 AM UTC, Danial Klimkin wrote:
>>
>> Hello Jyothi,
>>
>>
>> Please log this as an issue on the library bug tracker:
>>
>>   https://github.com/googleads/googleads-java-lib/issues
>>
>> The library should report a better error on what's missing.
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Friday, July 4, 2014 8:30:01 AM UTC+4, Jyothi Vejju wrote:
>>>
>>> Hey Danial,
>>>
>>> Yes, none of the parameters is null. I am printing those values to check 
>>> the same. 
>>> I am not reading it from ads.properties file, and getting the parameters 
>>> from database.
>>>
>>> When I read parameters from ads.properties file, it works. But getting 
>>> them from database does n't work.
>>>
>>>
>>> On Thursday, July 3, 2014 2:04:06 PM UTC, Danial Klimkin wrote:
>>>>
>>>> Hello Jyothi,
>>>>
>>>>
>>>> Please make sure all the parameters you are passing are not null. Also, 
>>>> did you set up the ads.properties file?
>>>>
>>>>
>>>> -Danial, AdWords API Team.
>>>>
>>>>
>>>> On Thursday, July 3, 2014 4:07:51 PM UTC+4, Jyothi Vejju wrote:
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I am trying to get account level stats using adhoc reports.
>>>>> But when I run my program, I get this error :
>>>>>
>>>>> Caused by: java.lang.NullPointerException
>>>>> at 
>>>>> com.google.api.client.repackaged.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
>>>>> at 
>>>>> com.google.api.client.util.Preconditions.checkNotNull(Preconditions.java:127)
>>>>> at 
>>>>> com.google.api.client.json.jackson2.JacksonFactory.createJsonParser(JacksonFactory.java:96)
>>>>> at 
>>>>> com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:85)
>>>>> at 
>>>>> com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81)
>>>>> at 
>>>>> com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:88)
>>>>> at 
>>>>> com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
>>>>> at 
>>>>> com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
>>>>> at 
>>>>> com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
>>>>> at 
>>>>> com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:247)
>>>>> at 
>>>>> com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
>>>>> at 
>>>>> com.google.api.ads.common.lib.auth.OAuth2Helper.callRefreshToken(OAuth2Helper.java:70)
>>>>> at 
>>>>> com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:144)
>>>>>         ...
>>>>>
>>>>> The code is :
>>>>>         Credential oAuth2Credential = 
>>>>>             new OfflineCredentials.Builder().forApi(Api.ADWORDS)
>>>>>                                             
>>>>> .withClientSecrets(clientId, clientSecret)
>>>>>                                             
>>>>> .withRefreshToken(refreshToken)
>>>>>                                             
>>>>> .build().generateCredential();
>>>>>             
>>>>>         AdWordsSession session = new 
>>>>> AdWordsSession.Builder().withDeveloperToken(developerToken)
>>>>>                                                                       
>>>>>            .withOAuth2Credential(oAuth2Credential)
>>>>>                                                                       
>>>>>            .build();
>>>>>
>>>>> Can someone help me with the possible causes?
>>>>>
>>>>> Thanks,
>>>>> Jyothi
>>>>>
>>>>

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

Reply via email to