@Test public void testReadPropertiesFromConfiguration_noUserAgent() throws ValidationException { PropertiesConfiguration config = new PropertiesConfiguration(); AdWordsSession adWordsSession = build( new AdWordsSession.Builder() .from(config) .withDeveloperToken("devTokendevTokendevTok") .withOAuth2Credential(credential)); assertEquals(AdWordsSession.UNKNOWN_USER_AGENT, adWordsSession.getUserAgent()); }
public String getUserAgent() { return userAgent; }
AdWordsSession implements AdsSession, OAuth2Compatible { public String getUserAgent() { return userAgent; } }
AdWordsSession implements AdsSession, OAuth2Compatible { public String getUserAgent() { return userAgent; } private  AdWordsSession(Builder builder); }
AdWordsSession implements AdsSession, OAuth2Compatible { public String getUserAgent() { return userAgent; } private  AdWordsSession(Builder builder); String getClientCustomerId(); void setClientCustomerId(String clientCustomerId); @Nullable Boolean isValidateOnly(); void setValidateOnly(@Nullable Boolean isValidateOnly); String getUserAgent(); String getDeveloperToken(); @Nullable Boolean isPartialFailure(); void setPartialFailure(@Nullable Boolean isPartialFailure); @Override Credential getOAuth2Credential(); void setOAuth2Credential(Credential oAuth2Credential); @Nullable ReportingConfiguration getReportingConfiguration(); void setReportingConfiguration(@Nullable ReportingConfiguration reportingConfiguration); @Override String getEndpoint(); Builder newBuilder(); }
AdWordsSession implements AdsSession, OAuth2Compatible { public String getUserAgent() { return userAgent; } private  AdWordsSession(Builder builder); String getClientCustomerId(); void setClientCustomerId(String clientCustomerId); @Nullable Boolean isValidateOnly(); void setValidateOnly(@Nullable Boolean isValidateOnly); String getUserAgent(); String getDeveloperToken(); @Nullable Boolean isPartialFailure(); void setPartialFailure(@Nullable Boolean isPartialFailure); @Override Credential getOAuth2Credential(); void setOAuth2Credential(Credential oAuth2Credential); @Nullable ReportingConfiguration getReportingConfiguration(); void setReportingConfiguration(@Nullable ReportingConfiguration reportingConfiguration); @Override String getEndpoint(); Builder newBuilder(); static final String DEFAULT_ENDPOINT; }