The adwords account is linked to the Analytics account and Adwords report can be seen on Analytics UI. It has been given read access to adwords account. I don't have adwords credentials so can't generate developer token. Using below link I have generated client id, client secret, and refresh token:
https://github.com/googleads/googleads-java-lib/wiki/Using-OAuth2.0 I have kept these value in ads.properties file. Still when I am running below code to create adwords session I am getting error: GoogleCredential credential = new GoogleCredential.Builder() .setTransport(new NetHttpTransport()) .setJsonFactory(new GsonFactory()) .setServiceAccountId("************************@*****.gserviceaccount.com") .setServiceAccountScopes(scopes) .setServiceAccountPrivateKeyFromP12File( new File( "**/**/**/*********.p12")) .build(); AdWordsSession session = new AdWordsSession.Builder() .fromFile() .withOAuth2Credential(credential).build(); Error: Exception in thread "main" A developer token must be set. caused by: [developerToken] at com.google.api.ads.adwords.lib.client.AdWordsSession$Builder.validate(AdWordsSession.java:413) at com.google.api.ads.adwords.lib.client.AdWordsSession$Builder.build(AdWordsSession.java:389) at com.homeunion.analytics.gaevent.GAAdwords.tempMethod(GAAdwords.java:112) at com.homeunion.analytics.gaevent.GAAdwords.main(GAAdwords.java:177) *Is it required to login to Adwords account to get developer token.?* -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/d82a75f0-4f8e-487f-b16d-015e4b9d351c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.