@Test public void testBuilder_withReportingConfiguration() throws Exception { ReportingConfiguration reportingConfiguration = new ReportingConfiguration.Builder().skipReportHeader(true).skipReportSummary(true).build(); AdWordsSession adWordsSession = build( new AdWordsSession.Builder() .withUserAgent("FooBar") .withEndpoint("https: .withOAuth2Credential(credential) .withDeveloperToken("developerToken") .withReportingConfiguration(reportingConfiguration)); ReportingConfiguration sessionReportingConfig = adWordsSession.getReportingConfiguration(); assertNotNull( "reporting configuration should not be null when passed to the builder", sessionReportingConfig); }
@Nullable public ReportingConfiguration getReportingConfiguration() { return reportingConfiguration; }
AdWordsSession implements AdsSession, OAuth2Compatible { @Nullable public ReportingConfiguration getReportingConfiguration() { return reportingConfiguration; } }
AdWordsSession implements AdsSession, OAuth2Compatible { @Nullable public ReportingConfiguration getReportingConfiguration() { return reportingConfiguration; } private  AdWordsSession(Builder builder); }
AdWordsSession implements AdsSession, OAuth2Compatible { @Nullable public ReportingConfiguration getReportingConfiguration() { return reportingConfiguration; } 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 { @Nullable public ReportingConfiguration getReportingConfiguration() { return reportingConfiguration; } 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; }