New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on Running DFPSession [INSERT_APPLICATION_NAME] #34
Comments
Since you're not using the ads.properties file, you'll need to explicitly set your application name and network code for the Session. See withApplicationName and withNetworkCode. I'll leave this issue open until the example is updated. |
I use this file https://github.com/googleads/googleads-java-lib/blob/1.36.0/examples/dfp_axis/src/main/java/dfp/axis/auth/CreateDfpSessionWithoutPropertiesFile.java and I try to modify this part // Copyright 2014 Google Inc. All Rights Reserved. package dfp.axis.auth; import com.google.api.ads.common.lib.auth.OfflineCredentials; /**
But it still through exception: AxisFault Kind regards |
Can you please start a new thread in the DFP API forum? That's a more appropriate channel for support than the issue tracker. |
Closing per the previous comment. |
Hello everbody,
i'm using dfp-axis-1.33 with Eclipse. I can run the file GetRefreshTokenWithoutPropertiesFile.java and recieve refreshToken, but when I run the file CreateDfpSessionWithoutPropertiesFile.java I recieve following exception:
Exception in thread "main" Application name must be set and not be the default [INSERT_APPLICATION_NAME_HERE] caused by: [applicationName]
at com.google.api.ads.dfp.lib.client.DfpSession$Builder.validate(DfpSession.java:332)
at com.google.api.ads.dfp.lib.client.DfpSession$Builder.build(DfpSession.java:305)
at dfp.axis.auth.CreateDfpSessionWithoutPropertiesFile.createDfpSession(CreateDfpSessionWithoutPropertiesFile.java:53)
at dfp.axis.auth.CreateDfpSessionWithoutPropertiesFile.main(CreateDfpSessionWithoutPropertiesFile.java:82)
Where must I fill the applicationName? I have already filled this in the ads.properties but I don't use this.
Kind regards
PM
The text was updated successfully, but these errors were encountered: