Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010 Google Inc.
    *
    * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
    * in compliance with the License. You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software distributed under the License
   * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
   * or implied. See the License for the specific language governing permissions and limitations under
   * the License.
   */
  /*
   * This code was generated by https://code.google.com/p/google-apis-client-generator/
   * (build: 2013-12-19 23:55:21 UTC)
   * on 2014-01-07 at 19:44:24 UTC 
   * Modify at your own risk.
   */
  
  package com.google.api.services.doubleclicksearch;

Service definition for Doubleclicksearch (v2).

Report and modify your advertising data in DoubleClick Search (for example, campaigns, ad groups, keywords, and conversions).

For more information about this service, see the API Documentation

This service uses DoubleclicksearchRequestInitializer to initialize global parameters via its Doubleclicksearch.Builder.

Author(s):
Google, Inc.
Since:
1.3
  
  @SuppressWarnings("javadoc")
  
    // Note: Leave this static initializer at the top of the file.
    static {
      com.google.api.client.util.Preconditions.checkState(
          ...... == 1 &&
          "You are currently running with version %s of google-api-client. " +
          "You need at least version 1.15 of google-api-client to run version " +
          "1.15.0-rc of the DoubleClick Search API library."......);
    }

  
The default encoded root URL of the service. This is determined when the library is generated and normally should not be changed.

Since:
1.7
  
    public static final String DEFAULT_ROOT_URL = "https://www.googleapis.com/";

  
The default encoded service path of the service. This is determined when the library is generated and normally should not be changed.

Since:
1.7
  
    public static final String DEFAULT_SERVICE_PATH = "doubleclicksearch/v2/";

  
The default encoded base URL of the service. This is determined when the library is generated and normally should not be changed.
  
    public static final String DEFAULT_BASE_URL =  + ;

  
Constructor.

Use Doubleclicksearch.Builder if you need to specify any of the optional parameters.

Parameters:
transport HTTP transport, which should normally be:
jsonFactory JSON factory, which may be:
  • Jackson: com.google.api.client.json.jackson2.JacksonFactory
  • Google GSON: com.google.api.client.json.gson.GsonFactory
  • Android Honeycomb or higher: com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer HTTP request initializer or null for none
Since:
1.7
 
       com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) {
     this(new Builder(transportjsonFactoryhttpRequestInitializer));
   }

  

Parameters:
builder builder
 
   Doubleclicksearch(Builder builder) {
     super(builder);
   }
 
   protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequestthrows java.io.IOException {
     super.initialize(httpClientRequest);
   }

  
An accessor for creating requests from the Conversion collection.

The typical use is:

   Doubleclicksearch doubleclicksearch = new Doubleclicksearch(...);
   Doubleclicksearch.Conversion.List request = doubleclicksearch.conversion().list(parameters ...)
 

Returns:
the resource collection
 
   public Conversion conversion() {
     return new Conversion();
   }

  
The "conversion" collection of methods.
 
   public class Conversion {

    
Retrieves a list of conversions from a DoubleClick Search engine account. Create a request for the method "conversion.get". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
agencyId Numeric ID of the agency.
advertiserId Numeric ID of the advertiser.
engineAccountId Numeric ID of the engine account.
endDate Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
rowCount The number of conversions to return per call. [minimum: 1] [maximum: 1000]
startDate First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
startRow The 0-based starting index for retrieving conversions results.
Returns:
the request
 
     public Get get(java.lang.Long agencyIdjava.lang.Long advertiserIdjava.lang.Long engineAccountIdjava.lang.Integer endDatejava.lang.Integer rowCountjava.lang.Integer startDatejava.lang.Long startRowthrows java.io.IOException {
       Get result = new Get(agencyIdadvertiserIdengineAccountIdendDaterowCountstartDatestartRow);
       initialize(result);
       return result;
     }
 
 
       private static final String REST_PATH = "agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion";

      
Retrieves a list of conversions from a DoubleClick Search engine account. Create a request for the method "conversion.get". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Doubleclicksearch.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

Parameters:
agencyId Numeric ID of the agency.
advertiserId Numeric ID of the advertiser.
engineAccountId Numeric ID of the engine account.
endDate Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
rowCount The number of conversions to return per call. [minimum: 1] [maximum: 1000]
startDate First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
startRow The 0-based starting index for retrieving conversions results.
Since:
1.13
 
       protected Get(java.lang.Long agencyIdjava.lang.Long advertiserIdjava.lang.Long engineAccountIdjava.lang.Integer endDatejava.lang.Integer rowCountjava.lang.Integer startDatejava.lang.Long startRow) {
         super(Doubleclicksearch.this"GET"nullcom.google.api.services.doubleclicksearch.model.ConversionList.class);
         this. = com.google.api.client.util.Preconditions.checkNotNull(agencyId"Required parameter agencyId must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(advertiserId"Required parameter advertiserId must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(engineAccountId"Required parameter engineAccountId must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(endDate"Required parameter endDate must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(rowCount"Required parameter rowCount must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(startDate"Required parameter startDate must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(startRow"Required parameter startRow must be specified.");
       }
 
       @Override
         return super.executeUsingHead();
       }
 
       @Override
         return super.buildHttpRequestUsingHead();
       }
 
       @Override
       public Get setAlt(java.lang.String alt) {
         return (Getsuper.setAlt(alt);
       }
 
       @Override
       public Get setFields(java.lang.String fields) {
         return (Getsuper.setFields(fields);
       }
 
       @Override
       public Get setKey(java.lang.String key) {
         return (Getsuper.setKey(key);
       }
 
       @Override
       public Get setOauthToken(java.lang.String oauthToken) {
         return (Getsuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Getsuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Get setQuotaUser(java.lang.String quotaUser) {
         return (Getsuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Get setUserIp(java.lang.String userIp) {
         return (Getsuper.setUserIp(userIp);
       }

      
Numeric ID of the agency.
 
       @com.google.api.client.util.Key
       private java.lang.Long agencyId;

      
Numeric ID of the agency.
 
       public java.lang.Long getAgencyId() {
         return ;
       }

      
Numeric ID of the agency.
 
       public Get setAgencyId(java.lang.Long agencyId) {
         this. = agencyId;
         return this;
       }

      
Numeric ID of the advertiser.
 
       @com.google.api.client.util.Key
       private java.lang.Long advertiserId;

      
Numeric ID of the advertiser.
 
       public java.lang.Long getAdvertiserId() {
         return ;
       }

      
Numeric ID of the advertiser.
 
       public Get setAdvertiserId(java.lang.Long advertiserId) {
         this. = advertiserId;
         return this;
       }

      
Numeric ID of the engine account.
 
       @com.google.api.client.util.Key
       private java.lang.Long engineAccountId;

      
Numeric ID of the engine account.
 
       public java.lang.Long getEngineAccountId() {
         return ;
       }

      
Numeric ID of the engine account.
 
       public Get setEngineAccountId(java.lang.Long engineAccountId) {
         this. = engineAccountId;
         return this;
       }

      
Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
 
       @com.google.api.client.util.Key
       private java.lang.Integer endDate;

      
Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
 
       public java.lang.Integer getEndDate() {
         return ;
       }

      
Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
 
       public Get setEndDate(java.lang.Integer endDate) {
         this. = endDate;
         return this;
       }

      
The number of conversions to return per call.
 
       @com.google.api.client.util.Key
       private java.lang.Integer rowCount;

      
The number of conversions to return per call. [minimum: 1] [maximum: 1000]
 
       public java.lang.Integer getRowCount() {
         return ;
       }

      
The number of conversions to return per call.
 
       public Get setRowCount(java.lang.Integer rowCount) {
         this. = rowCount;
         return this;
       }

      
First date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
 
       @com.google.api.client.util.Key
       private java.lang.Integer startDate;

      
First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
 
       public java.lang.Integer getStartDate() {
         return ;
       }

      
First date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
 
       public Get setStartDate(java.lang.Integer startDate) {
         this. = startDate;
         return this;
       }

      
The 0-based starting index for retrieving conversions results.
 
       @com.google.api.client.util.Key
       private java.lang.Long startRow;

      
The 0-based starting index for retrieving conversions results.
 
       public java.lang.Long getStartRow() {
         return ;
       }

      
The 0-based starting index for retrieving conversions results.
 
       public Get setStartRow(java.lang.Long startRow) {
         this. = startRow;
         return this;
       }

      
Numeric ID of the ad group.
 
       @com.google.api.client.util.Key
       private java.lang.Long adGroupId;

      
Numeric ID of the ad group.
 
       public java.lang.Long getAdGroupId() {
         return ;
       }

      
Numeric ID of the ad group.
 
       public Get setAdGroupId(java.lang.Long adGroupId) {
         this. = adGroupId;
         return this;
       }

      
Numeric ID of the campaign.
 
       @com.google.api.client.util.Key
       private java.lang.Long campaignId;

      
Numeric ID of the campaign.
 
       public java.lang.Long getCampaignId() {
         return ;
       }

      
Numeric ID of the campaign.
 
       public Get setCampaignId(java.lang.Long campaignId) {
         this. = campaignId;
         return this;
       }

      
Numeric ID of the ad.
 
       @com.google.api.client.util.Key
       private java.lang.Long adId;

      
Numeric ID of the ad.
 
       public java.lang.Long getAdId() {
         return ;
       }

      
Numeric ID of the ad.
 
       public Get setAdId(java.lang.Long adId) {
         this. = adId;
         return this;
       }

      
Numeric ID of the criterion.
 
       @com.google.api.client.util.Key
       private java.lang.Long criterionId;

      
Numeric ID of the criterion.
 
       public java.lang.Long getCriterionId() {
         return ;
       }

      
Numeric ID of the criterion.
 
       public Get setCriterionId(java.lang.Long criterionId) {
         this. = criterionId;
         return this;
       }
 
       @Override
       public Get set(String parameterNameObject value) {
         return (Getsuper.set(parameterNamevalue);
       }
     }
    
Inserts a batch of new conversions into DoubleClick Search. Create a request for the method "conversion.insert". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
content the com.google.api.services.doubleclicksearch.model.ConversionList
Returns:
the request
 
       Insert result = new Insert(content);
       initialize(result);
       return result;
     }
 
 
       private static final String REST_PATH = "conversion";

      
Inserts a batch of new conversions into DoubleClick Search. Create a request for the method "conversion.insert". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Doubleclicksearch.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

 
       protected Insert(com.google.api.services.doubleclicksearch.model.ConversionList content) {
         super(Doubleclicksearch.this"POST"contentcom.google.api.services.doubleclicksearch.model.ConversionList.class);
       }
 
       @Override
       public Insert setAlt(java.lang.String alt) {
         return (Insertsuper.setAlt(alt);
       }
 
       @Override
       public Insert setFields(java.lang.String fields) {
         return (Insertsuper.setFields(fields);
       }
 
       @Override
       public Insert setKey(java.lang.String key) {
         return (Insertsuper.setKey(key);
       }
 
       @Override
       public Insert setOauthToken(java.lang.String oauthToken) {
         return (Insertsuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Insert setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Insertsuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Insert setQuotaUser(java.lang.String quotaUser) {
         return (Insertsuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Insert setUserIp(java.lang.String userIp) {
         return (Insertsuper.setUserIp(userIp);
       }
 
       @Override
       public Insert set(String parameterNameObject value) {
         return (Insertsuper.set(parameterNamevalue);
       }
     }
    
Updates a batch of conversions in DoubleClick Search. This method supports patch semantics. Create a request for the method "conversion.patch". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
advertiserId Numeric ID of the advertiser.
agencyId Numeric ID of the agency.
endDate Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
engineAccountId Numeric ID of the engine account.
rowCount The number of conversions to return per call. [minimum: 1] [maximum: 1000]
startDate First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
startRow The 0-based starting index for retrieving conversions results.
content the com.google.api.services.doubleclicksearch.model.ConversionList
Returns:
the request
 
     public Patch patch(java.lang.Long advertiserIdjava.lang.Long agencyIdjava.lang.Integer endDatejava.lang.Long engineAccountIdjava.lang.Integer rowCountjava.lang.Integer startDatejava.lang.Long startRowcom.google.api.services.doubleclicksearch.model.ConversionList contentthrows java.io.IOException {
       Patch result = new Patch(advertiserIdagencyIdendDateengineAccountIdrowCountstartDatestartRowcontent);
       initialize(result);
       return result;
     }
 
 
       private static final String REST_PATH = "conversion";

      
Updates a batch of conversions in DoubleClick Search. This method supports patch semantics. Create a request for the method "conversion.patch". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Doubleclicksearch.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

Parameters:
advertiserId Numeric ID of the advertiser.
agencyId Numeric ID of the agency.
endDate Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
engineAccountId Numeric ID of the engine account.
rowCount The number of conversions to return per call. [minimum: 1] [maximum: 1000]
startDate First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
startRow The 0-based starting index for retrieving conversions results.
content the com.google.api.services.doubleclicksearch.model.ConversionList
Since:
1.13
 
       protected Patch(java.lang.Long advertiserIdjava.lang.Long agencyIdjava.lang.Integer endDatejava.lang.Long engineAccountIdjava.lang.Integer rowCountjava.lang.Integer startDatejava.lang.Long startRowcom.google.api.services.doubleclicksearch.model.ConversionList content) {
         super(Doubleclicksearch.this"PATCH"contentcom.google.api.services.doubleclicksearch.model.ConversionList.class);
         this. = com.google.api.client.util.Preconditions.checkNotNull(advertiserId"Required parameter advertiserId must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(agencyId"Required parameter agencyId must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(endDate"Required parameter endDate must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(engineAccountId"Required parameter engineAccountId must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(rowCount"Required parameter rowCount must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(startDate"Required parameter startDate must be specified.");
         this. = com.google.api.client.util.Preconditions.checkNotNull(startRow"Required parameter startRow must be specified.");
       }
 
       @Override
       public Patch setAlt(java.lang.String alt) {
         return (Patchsuper.setAlt(alt);
       }
 
       @Override
       public Patch setFields(java.lang.String fields) {
         return (Patchsuper.setFields(fields);
       }
 
       @Override
       public Patch setKey(java.lang.String key) {
         return (Patchsuper.setKey(key);
       }
 
       @Override
       public Patch setOauthToken(java.lang.String oauthToken) {
         return (Patchsuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Patchsuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Patch setQuotaUser(java.lang.String quotaUser) {
         return (Patchsuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Patch setUserIp(java.lang.String userIp) {
         return (Patchsuper.setUserIp(userIp);
       }

      
Numeric ID of the advertiser.
 
       @com.google.api.client.util.Key
       private java.lang.Long advertiserId;

      
Numeric ID of the advertiser.
 
       public java.lang.Long getAdvertiserId() {
         return ;
       }

      
Numeric ID of the advertiser.
 
       public Patch setAdvertiserId(java.lang.Long advertiserId) {
         this. = advertiserId;
         return this;
       }

      
Numeric ID of the agency.
 
       @com.google.api.client.util.Key
       private java.lang.Long agencyId;

      
Numeric ID of the agency.
 
       public java.lang.Long getAgencyId() {
         return ;
       }

      
Numeric ID of the agency.
 
       public Patch setAgencyId(java.lang.Long agencyId) {
         this. = agencyId;
         return this;
       }

      
Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
 
       @com.google.api.client.util.Key
       private java.lang.Integer endDate;

      
Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
 
       public java.lang.Integer getEndDate() {
         return ;
       }

      
Last date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
 
       public Patch setEndDate(java.lang.Integer endDate) {
         this. = endDate;
         return this;
       }

      
Numeric ID of the engine account.
 
       @com.google.api.client.util.Key
       private java.lang.Long engineAccountId;

      
Numeric ID of the engine account.
 
       public java.lang.Long getEngineAccountId() {
         return ;
       }

      
Numeric ID of the engine account.
 
       public Patch setEngineAccountId(java.lang.Long engineAccountId) {
         this. = engineAccountId;
         return this;
       }

      
The number of conversions to return per call.
 
       @com.google.api.client.util.Key
       private java.lang.Integer rowCount;

      
The number of conversions to return per call. [minimum: 1] [maximum: 1000]
 
       public java.lang.Integer getRowCount() {
         return ;
       }

      
The number of conversions to return per call.
 
       public Patch setRowCount(java.lang.Integer rowCount) {
         this. = rowCount;
         return this;
       }

      
First date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
 
       @com.google.api.client.util.Key
       private java.lang.Integer startDate;

      
First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. [minimum: 20091101] [maximum: 99991231]
 
       public java.lang.Integer getStartDate() {
         return ;
       }

      
First date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
 
       public Patch setStartDate(java.lang.Integer startDate) {
         this. = startDate;
         return this;
       }

      
The 0-based starting index for retrieving conversions results.
 
       @com.google.api.client.util.Key
       private java.lang.Long startRow;

      
The 0-based starting index for retrieving conversions results.
 
       public java.lang.Long getStartRow() {
         return ;
       }

      
The 0-based starting index for retrieving conversions results.
 
       public Patch setStartRow(java.lang.Long startRow) {
         this. = startRow;
         return this;
       }
 
       @Override
       public Patch set(String parameterNameObject value) {
         return (Patchsuper.set(parameterNamevalue);
       }
     }
    
Updates a batch of conversions in DoubleClick Search. Create a request for the method "conversion.update". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
content the com.google.api.services.doubleclicksearch.model.ConversionList
Returns:
the request
 
       Update result = new Update(content);
       initialize(result);
       return result;
     }
 
 
       private static final String REST_PATH = "conversion";

      
Updates a batch of conversions in DoubleClick Search. Create a request for the method "conversion.update". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Doubleclicksearch.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

 
       protected Update(com.google.api.services.doubleclicksearch.model.ConversionList content) {
         super(Doubleclicksearch.this"PUT"contentcom.google.api.services.doubleclicksearch.model.ConversionList.class);
       }
 
       @Override
       public Update setAlt(java.lang.String alt) {
         return (Updatesuper.setAlt(alt);
       }
 
       @Override
       public Update setFields(java.lang.String fields) {
         return (Updatesuper.setFields(fields);
       }
 
       @Override
       public Update setKey(java.lang.String key) {
         return (Updatesuper.setKey(key);
       }
 
       @Override
       public Update setOauthToken(java.lang.String oauthToken) {
         return (Updatesuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Update setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Updatesuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Update setQuotaUser(java.lang.String quotaUser) {
         return (Updatesuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Update setUserIp(java.lang.String userIp) {
         return (Updatesuper.setUserIp(userIp);
       }
 
       @Override
       public Update set(String parameterNameObject value) {
         return (Updatesuper.set(parameterNamevalue);
       }
     }
 
   }

  
An accessor for creating requests from the Reports collection.

The typical use is:

   Doubleclicksearch doubleclicksearch = new Doubleclicksearch(...);
   Doubleclicksearch.Reports.List request = doubleclicksearch.reports().list(parameters ...)
 

Returns:
the resource collection
 
   public Reports reports() {
     return new Reports();
   }

  
The "reports" collection of methods.
 
   public class Reports {

    
Generates and returns a report immediately. Create a request for the method "reports.generate". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
content the com.google.api.services.doubleclicksearch.model.ReportRequest
Returns:
the request
 
       Generate result = new Generate(content);
       initialize(result);
       return result;
     }
 
 
       private static final String REST_PATH = "reports/generate";

      
Generates and returns a report immediately. Create a request for the method "reports.generate". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Doubleclicksearch.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

 
       protected Generate(com.google.api.services.doubleclicksearch.model.ReportRequest content) {
         super(Doubleclicksearch.this"POST"contentcom.google.api.services.doubleclicksearch.model.Report.class);
       }
 
       @Override
       public Generate setAlt(java.lang.String alt) {
         return (Generatesuper.setAlt(alt);
       }
 
       @Override
       public Generate setFields(java.lang.String fields) {
         return (Generatesuper.setFields(fields);
       }
 
       @Override
       public Generate setKey(java.lang.String key) {
         return (Generatesuper.setKey(key);
       }
 
       @Override
       public Generate setOauthToken(java.lang.String oauthToken) {
         return (Generatesuper.setOauthToken(oauthToken);
       }
 
       @Override
       public Generate setPrettyPrint(java.lang.Boolean prettyPrint) {
         return (Generatesuper.setPrettyPrint(prettyPrint);
       }
 
       @Override
       public Generate setQuotaUser(java.lang.String quotaUser) {
         return (Generatesuper.setQuotaUser(quotaUser);
       }
 
       @Override
       public Generate setUserIp(java.lang.String userIp) {
         return (Generatesuper.setUserIp(userIp);
       }
 
       @Override
       public Generate set(String parameterNameObject value) {
         return (Generatesuper.set(parameterNamevalue);
       }
     }
    
Polls for the status of a report request. Create a request for the method "reports.get". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
reportId ID of the report request being polled.
Returns:
the request
 
     public Get get(java.lang.String reportIdthrows java.io.IOException {
       Get result = new Get(reportId);
       initialize(result);
       return result;
     }
 
 
       private static final String REST_PATH = "reports/{reportId}";

      
Polls for the status of a report request. Create a request for the method "reports.get". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Doubleclicksearch.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

Parameters:
reportId ID of the report request being polled.
Since:
1.13
 
       protected Get(java.lang.String reportId) {
         super(Doubleclicksearch.this"GET"nullcom.google.api.services.doubleclicksearch.model.Report.class);
         this. = com.google.api.client.util.Preconditions.checkNotNull(reportId"Required parameter reportId must be specified.");
       }
 
       @Override
         return super.executeUsingHead();
       }
 
       @Override
         return super.buildHttpRequestUsingHead();
       }
 
       @Override
       public Get setAlt(java.lang.String alt) {
         return (Getsuper.setAlt(alt);
       }
 
       @Override
       public Get setFields(java.lang.String fields) {
         return (Getsuper.setFields(fields);
       }
 
       @Override
       public Get setKey(java.lang.String key) {
         return (Getsuper.setKey(key);
       }
 
       @Override
       public Get setOauthToken(java.lang.String oauthToken) {
        return (Getsuper.setOauthToken(oauthToken);
      }
      @Override
      public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
        return (Getsuper.setPrettyPrint(prettyPrint);
      }
      @Override
      public Get setQuotaUser(java.lang.String quotaUser) {
        return (Getsuper.setQuotaUser(quotaUser);
      }
      @Override
      public Get setUserIp(java.lang.String userIp) {
        return (Getsuper.setUserIp(userIp);
      }

      
ID of the report request being polled.
      private java.lang.String reportId;

      
ID of the report request being polled.
      public java.lang.String getReportId() {
        return ;
      }

      
ID of the report request being polled.
      public Get setReportId(java.lang.String reportId) {
        this. = reportId;
        return this;
      }
      @Override
      public Get set(String parameterNameObject value) {
        return (Getsuper.set(parameterNamevalue);
      }
    }
    
Downloads a report file. Create a request for the method "reports.getFile". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
reportId ID of the report.
reportFragment The index of the report fragment to download. [minimum: 0]
Returns:
the request
    public GetFile getFile(java.lang.String reportIdjava.lang.Integer reportFragmentthrows java.io.IOException {
      GetFile result = new GetFile(reportIdreportFragment);
      initialize(result);
      return result;
    }
    public class GetFile extends DoubleclicksearchRequest<Void> {
      private static final String REST_PATH = "reports/{reportId}/files/{reportFragment}";

      
Downloads a report file. Create a request for the method "reports.getFile". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Doubleclicksearch.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

Parameters:
reportId ID of the report.
reportFragment The index of the report fragment to download. [minimum: 0]
Since:
1.13
      protected GetFile(java.lang.String reportIdjava.lang.Integer reportFragment) {
        super(Doubleclicksearch.this"GET"nullVoid.class);
        this. = com.google.api.client.util.Preconditions.checkNotNull(reportId"Required parameter reportId must be specified.");
        this. = com.google.api.client.util.Preconditions.checkNotNull(reportFragment"Required parameter reportFragment must be specified.");
        initializeMediaDownload();
      }
      @Override
      public void executeMediaAndDownloadTo(java.io.OutputStream outputStreamthrows java.io.IOException {
        super.executeMediaAndDownloadTo(outputStream);
      }
      @Override
        return super.executeMediaAsInputStream();
      }
      @Override
        return super.executeMedia();
      }
      @Override
        return super.executeUsingHead();
      }
      @Override
        return super.buildHttpRequestUsingHead();
      }
      @Override
      public GetFile setAlt(java.lang.String alt) {
        return (GetFilesuper.setAlt(alt);
      }
      @Override
      public GetFile setFields(java.lang.String fields) {
        return (GetFilesuper.setFields(fields);
      }
      @Override
      public GetFile setKey(java.lang.String key) {
        return (GetFilesuper.setKey(key);
      }
      @Override
      public GetFile setOauthToken(java.lang.String oauthToken) {
        return (GetFilesuper.setOauthToken(oauthToken);
      }
      @Override
      public GetFile setPrettyPrint(java.lang.Boolean prettyPrint) {
        return (GetFilesuper.setPrettyPrint(prettyPrint);
      }
      @Override
      public GetFile setQuotaUser(java.lang.String quotaUser) {
        return (GetFilesuper.setQuotaUser(quotaUser);
      }
      @Override
      public GetFile setUserIp(java.lang.String userIp) {
        return (GetFilesuper.setUserIp(userIp);
      }

      
ID of the report.
      private java.lang.String reportId;

      
ID of the report.
      public java.lang.String getReportId() {
        return ;
      }

      
ID of the report.
      public GetFile setReportId(java.lang.String reportId) {
        this. = reportId;
        return this;
      }

      
The index of the report fragment to download.
      private java.lang.Integer reportFragment;

      
The index of the report fragment to download. [minimum: 0]
      public java.lang.Integer getReportFragment() {
        return ;
      }

      
The index of the report fragment to download.
      public GetFile setReportFragment(java.lang.Integer reportFragment) {
        this. = reportFragment;
        return this;
      }
      @Override
      public GetFile set(String parameterNameObject value) {
        return (GetFilesuper.set(parameterNamevalue);
      }
    }
    
Inserts a report request into the reporting system. Create a request for the method "reports.request". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
content the com.google.api.services.doubleclicksearch.model.ReportRequest
Returns:
the request
      Request result = new Request(content);
      initialize(result);
      return result;
    }
      private static final String REST_PATH = "reports";

      
Inserts a report request into the reporting system. Create a request for the method "reports.request". This request holds the parameters needed by the the doubleclicksearch server. After setting any optional parameters, call the com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Doubleclicksearch.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

        super(Doubleclicksearch.this"POST"