Hi, I am getting this value: com.google.api.ads.common.lib.auth.OfflineCredentials.Api.ADWORDS as null in code and it is causing nullPointerException
as In code: credential = new OfflineCredentials.Builder() .forApi(com.google.api.ads.common.lib.auth.OfflineCredentials.Api.ADWORDS) .withClientSecrets(m_clientAppId, m_clientAppSecret) .withRefreshToken(m_refreshToken) .build() .generateCredential(); accessToken = credential.getAccessToken(); <https://lh4.googleusercontent.com/-zfPm_dEtDBU/U6MGJhX-jSI/AAAAAAAAAOU/smQnVsDEi44/s1600/NPE+oauth+api.png> Any idea what could be the issue? and how to resolve it ??? Thanks in advance, Vikash PS: i posted this question 5 mins ago also but couldn't find it later. so posting it again. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.