FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

No Ability to Specify ServiceAccountUser in OfflineCredentials Builder · Issue #122 · googleads/googleads-java-lib · GitHub

No Ability to Specify ServiceAccountUser in OfflineCredentials Builder #122

Description

I am receiving an AuthenticationError.NOT_ADS_USER when using a ServiceAccount to access our MCC Account.

This is what I have in ads.properties:
api.adwords.jsonKeyFilePath=src/main/resources/JSONFILENAME.json api.adwords.developerToken=DEVELOPERTOKEN api.adwords.clientCustomerId=CUSTOMERID

This returns an accessToken, but the serviceAccountUser is null on the Credential from the Builder, created as follows:
Credential oAuth2Credential = new OfflineCredentials.Builder() .forApi(OfflineCredentials.Api.ADWORDS) .fromFile() .build() .generateCredential();

I've looked through the source code and don't see where it would pull serviceAccountUser from the properties file or JSON file if I were to add it there. How can I specify the user to impersonate when making the call? Is there some other reason this AuthenticationError would occur?

I'm creating this as an issue on the Java Lib, as other libs have the ability to specify.

Appreciate any support on this issue.

Thanks!
John

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL