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: 2015-03-26 20:30:19 UTC)
  * on 2015-07-01 at 01:37:18 UTC 
  * Modify at your own risk.
  */
 
 package com.google.api.services.doubleclicksearch.model;

A conversion containing data relevant to DoubleClick Search.

This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the DoubleClick Search API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON

Author(s):
Google, Inc.
 
 @SuppressWarnings("javadoc")
 public final class Conversion extends com.google.api.client.json.GenericJson {

  
DS ad group ID. The value may be null.
 
   private java.lang.Long adGroupId;

  
DS ad ID. The value may be null.
 
   private java.lang.Long adId;

  
DS advertiser ID. The value may be null.
 
   private java.lang.Long advertiserId;

  
DS agency ID. The value may be null.
 
   private java.lang.Long agencyId;

  
This field is ignored. The value may be null.
 
   private java.lang.String attributionModel;

  
DS campaign ID. The value may be null.
 
   private java.lang.Long campaignId;

  
Sales channel for the product. Acceptable values are: - "local": a physical store - "online": an online store The value may be null.
 
   private java.lang.String channel;

  
DS click ID for the conversion. The value may be null.
 
   private java.lang.String clickId;

  
For offline conversions, this is an ID provided by advertisers. Advertisers can use this property to specify an ID that is meaningful to them. If an advertiser doesn't specify a conversionId, DoubleClick Search generates one. For online conversions, DS copies the dsConversionId or floodlightOrderId into this property depending on the advertiser's Floodlight instructions. The value may be null.
  private java.lang.String conversionId;

  
The time at which the conversion was last modified, in epoch millis UTC. The value may be null.
The time at which the conversion took place, in epoch millis UTC. The value may be null.
This field is ignored. The value may be null.
  private java.lang.Long countMillis;

  
DS criterion (keyword) ID. The value may be null.
  private java.lang.Long criterionId;

  
The currency code for the conversion's revenue. Should be in ISO 4217 alphabetic (3-char) format. The value may be null.
  private java.lang.String currencyCode;

  
Custom dimensions for the conversion, which can be used to filter data in a report. The value may be null.
  static {
    // hack to force ProGuard to consider CustomDimension used, since otherwise it would be stripped out
    // see http://code.google.com/p/google-api-java-client/issues/detail?id=528
    com.google.api.client.util.Data.nullOf(CustomDimension.class);
  }

  
Custom metrics for the conversion. The value may be null.
  static {
    // hack to force ProGuard to consider CustomMetric used, since otherwise it would be stripped out
    // see http://code.google.com/p/google-api-java-client/issues/detail?id=528
    com.google.api.client.util.Data.nullOf(CustomMetric.class);
  }

  
The type of device on which the conversion occurred. The value may be null.
  private java.lang.String deviceType;

  
ID that DoubleClick Search generates for each conversion. The value may be null.
  private java.lang.Long dsConversionId;

  
DS engine account ID. The value may be null.
  private java.lang.Long engineAccountId;

  
The Floodlight order ID provided by the advertiser for the conversion. The value may be null.
ID that DS generates and uses to uniquely identify the inventory account that contains the product. The value may be null.
  private java.lang.Long inventoryAccountId;

  
The country registered for the Merchant Center feed that contains the product. Use an ISO 3166 code to specify a country. The value may be null.
  private java.lang.String productCountry;

  
DS product group ID. The value may be null.
  private java.lang.Long productGroupId;

  
The product ID (SKU). The value may be null.
  private java.lang.String productId;

  
The language registered for the Merchant Center feed that contains the product. Use an ISO 639 code to specify a language. The value may be null.
  private java.lang.String productLanguage;

  
The quantity of this conversion, in millis. The value may be null.
  private java.lang.Long quantityMillis;

  
The revenue amount of this TRANSACTION conversion, in micros. The value may be null.
  private java.lang.Long revenueMicros;

  
The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID). The value may be null.
  private java.lang.Long segmentationId;

  
The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name). The value may be null.
  private java.lang.String segmentationName;

  
The segmentation type of this conversion (for example, FLOODLIGHT). The value may be null.
  private java.lang.String segmentationType;

  
The state of the conversion, that is, either ACTIVE or REMOVED. Note: state DELETED is deprecated. The value may be null.
  private java.lang.String state;

  
The ID of the local store for which the product was advertised. Applicable only when the channel is "local". The value may be null.
  private java.lang.String storeId;

  
The type of the conversion, that is, either ACTION or TRANSACTION. An ACTION conversion is an action by the user that has no monetarily quantifiable value, while a TRANSACTION conversion is an action that does have a monetarily quantifiable value. Examples are email list signups (ACTION) versus ecommerce purchases (TRANSACTION). The value may be null.
  private java.lang.String type;

  
DS ad group ID.

Returns:
value or null for none
  public java.lang.Long getAdGroupId() {
    return ;
  }

  
DS ad group ID.

Parameters:
adGroupId adGroupId or null for none
  public Conversion setAdGroupId(java.lang.Long adGroupId) {
    this. = adGroupId;
    return this;
  }

  
DS ad ID.

Returns:
value or null for none
  public java.lang.Long getAdId() {
    return ;
  }

  
DS ad ID.

Parameters:
adId adId or null for none
  public Conversion setAdId(java.lang.Long adId) {
    this. = adId;
    return this;
  }

  
DS advertiser ID.

Returns:
value or null for none
  public java.lang.Long getAdvertiserId() {
    return ;
  }

  
DS advertiser ID.

Parameters:
advertiserId advertiserId or null for none
  public Conversion setAdvertiserId(java.lang.Long advertiserId) {
    this. = advertiserId;
    return this;
  }

  
DS agency ID.

Returns:
value or null for none
  public java.lang.Long getAgencyId() {
    return ;
  }

  
DS agency ID.

Parameters:
agencyId agencyId or null for none
  public Conversion setAgencyId(java.lang.Long agencyId) {
    this. = agencyId;
    return this;
  }

  
This field is ignored.

Returns:
value or null for none
    return ;
  }

  
This field is ignored.

Parameters:
attributionModel attributionModel or null for none
  public Conversion setAttributionModel(java.lang.String attributionModel) {
    this. = attributionModel;
    return this;
  }

  
DS campaign ID.

Returns:
value or null for none
  public java.lang.Long getCampaignId() {
    return ;
  }

  
DS campaign ID.

Parameters:
campaignId campaignId or null for none
  public Conversion setCampaignId(java.lang.Long campaignId) {
    this. = campaignId;
    return this;
  }

  
Sales channel for the product. Acceptable values are: - "local": a physical store - "online": an online store

Returns:
value or null for none
  public java.lang.String getChannel() {
    return ;
  }

  
Sales channel for the product. Acceptable values are: - "local": a physical store - "online": an online store

Parameters:
channel channel or null for none
  public Conversion setChannel(java.lang.String channel) {
    this. = channel;
    return this;
  }

  
DS click ID for the conversion.

Returns:
value or null for none
  public java.lang.String getClickId() {
    return ;
  }

  
DS click ID for the conversion.

Parameters:
clickId clickId or null for none
  public Conversion setClickId(java.lang.String clickId) {
    this. = clickId;
    return this;
  }

  
For offline conversions, this is an ID provided by advertisers. Advertisers can use this property to specify an ID that is meaningful to them. If an advertiser doesn't specify a conversionId, DoubleClick Search generates one. For online conversions, DS copies the dsConversionId or floodlightOrderId into this property depending on the advertiser's Floodlight instructions.

Returns:
value or null for none
    return ;
  }

  
For offline conversions, this is an ID provided by advertisers. Advertisers can use this property to specify an ID that is meaningful to them. If an advertiser doesn't specify a conversionId, DoubleClick Search generates one. For online conversions, DS copies the dsConversionId or floodlightOrderId into this property depending on the advertiser's Floodlight instructions.

Parameters:
conversionId conversionId or null for none
  public Conversion setConversionId(java.lang.String conversionId) {
    this. = conversionId;
    return this;
  }

  
The time at which the conversion was last modified, in epoch millis UTC.

Returns:
value or null for none
  }

  
The time at which the conversion was last modified, in epoch millis UTC.

Parameters:
conversionModifiedTimestamp conversionModifiedTimestamp or null for none
  public Conversion setConversionModifiedTimestamp(java.math.BigInteger conversionModifiedTimestamp) {
    this. = conversionModifiedTimestamp;
    return this;
  }

  
The time at which the conversion took place, in epoch millis UTC.

Returns:
value or null for none
    return ;
  }

  
The time at which the conversion took place, in epoch millis UTC.

Parameters:
conversionTimestamp conversionTimestamp or null for none
  public Conversion setConversionTimestamp(java.math.BigInteger conversionTimestamp) {
    this. = conversionTimestamp;
    return this;
  }

  
This field is ignored.

Returns:
value or null for none
  public java.lang.Long getCountMillis() {
    return ;
  }

  
This field is ignored.

Parameters:
countMillis countMillis or null for none
  public Conversion setCountMillis(java.lang.Long countMillis) {
    this. = countMillis;
    return this;
  }

  
DS criterion (keyword) ID.

Returns:
value or null for none
  public java.lang.Long getCriterionId() {
    return ;
  }

  
DS criterion (keyword) ID.

Parameters:
criterionId criterionId or null for none
  public Conversion setCriterionId(java.lang.Long criterionId) {
    this. = criterionId;
    return this;
  }

  
The currency code for the conversion's revenue. Should be in ISO 4217 alphabetic (3-char) format.

Returns:
value or null for none
    return ;
  }

  
The currency code for the conversion's revenue. Should be in ISO 4217 alphabetic (3-char) format.

Parameters:
currencyCode currencyCode or null for none
  public Conversion setCurrencyCode(java.lang.String currencyCode) {
    this. = currencyCode;
    return this;
  }

  
Custom dimensions for the conversion, which can be used to filter data in a report.

Returns:
value or null for none
    return ;
  }

  
Custom dimensions for the conversion, which can be used to filter data in a report.

Parameters:
customDimension customDimension or null for none
  public Conversion setCustomDimension(java.util.List<CustomDimensioncustomDimension) {
    this. = customDimension;
    return this;
  }

  
Custom metrics for the conversion.

Returns:
value or null for none
    return ;
  }

  
Custom metrics for the conversion.

Parameters:
customMetric customMetric or null for none
  public Conversion setCustomMetric(java.util.List<CustomMetriccustomMetric) {
    this. = customMetric;
    return this;
  }

  
The type of device on which the conversion occurred.

Returns:
value or null for none
  public java.lang.String getDeviceType() {
    return ;
  }

  
The type of device on which the conversion occurred.

Parameters:
deviceType deviceType or null for none
  public Conversion setDeviceType(java.lang.String deviceType) {
    this. = deviceType;
    return this;
  }

  
ID that DoubleClick Search generates for each conversion.

Returns:
value or null for none
    return ;
  }

  
ID that DoubleClick Search generates for each conversion.

Parameters:
dsConversionId dsConversionId or null for none
  public Conversion setDsConversionId(java.lang.Long dsConversionId) {
    this. = dsConversionId;
    return this;
  }

  
DS engine account ID.

Returns:
value or null for none
    return ;
  }

  
DS engine account ID.

Parameters:
engineAccountId engineAccountId or null for none
  public Conversion setEngineAccountId(java.lang.Long engineAccountId) {
    this. = engineAccountId;
    return this;
  }

  
The Floodlight order ID provided by the advertiser for the conversion.

Returns:
value or null for none
    return ;
  }

  
The Floodlight order ID provided by the advertiser for the conversion.

Parameters:
floodlightOrderId floodlightOrderId or null for none
  public Conversion setFloodlightOrderId(java.lang.String floodlightOrderId) {
    this. = floodlightOrderId;
    return this;
  }

  
ID that DS generates and uses to uniquely identify the inventory account that contains the product.

Returns:
value or null for none
    return ;
  }

  
ID that DS generates and uses to uniquely identify the inventory account that contains the product.

Parameters:
inventoryAccountId inventoryAccountId or null for none
  public Conversion setInventoryAccountId(java.lang.Long inventoryAccountId) {
    this. = inventoryAccountId;
    return this;
  }

  
The country registered for the Merchant Center feed that contains the product. Use an ISO 3166 code to specify a country.

Returns:
value or null for none
    return ;
  }

  
The country registered for the Merchant Center feed that contains the product. Use an ISO 3166 code to specify a country.

Parameters:
productCountry productCountry or null for none
  public Conversion setProductCountry(java.lang.String productCountry) {
    this. = productCountry;
    return this;
  }

  
DS product group ID.

Returns:
value or null for none
    return ;
  }

  
DS product group ID.

Parameters:
productGroupId productGroupId or null for none
  public Conversion setProductGroupId(java.lang.Long productGroupId) {
    this. = productGroupId;
    return this;
  }

  
The product ID (SKU).

Returns:
value or null for none
  public java.lang.String getProductId() {
    return ;
  }

  
The product ID (SKU).

Parameters:
productId productId or null for none
  public Conversion setProductId(java.lang.String productId) {
    this. = productId;
    return this;
  }

  
The language registered for the Merchant Center feed that contains the product. Use an ISO 639 code to specify a language.

Returns:
value or null for none
    return ;
  }

  
The language registered for the Merchant Center feed that contains the product. Use an ISO 639 code to specify a language.

Parameters:
productLanguage productLanguage or null for none
  public Conversion setProductLanguage(java.lang.String productLanguage) {
    this. = productLanguage;
    return this;
  }

  
The quantity of this conversion, in millis.

Returns:
value or null for none
    return ;
  }

  
The quantity of this conversion, in millis.

Parameters:
quantityMillis quantityMillis or null for none
  public Conversion setQuantityMillis(java.lang.Long quantityMillis) {
    this. = quantityMillis;
    return this;
  }

  
The revenue amount of this TRANSACTION conversion, in micros.

Returns:
value or null for none
  public java.lang.Long getRevenueMicros() {
    return ;
  }

  
The revenue amount of this TRANSACTION conversion, in micros.

Parameters:
revenueMicros revenueMicros or null for none
  public Conversion setRevenueMicros(java.lang.Long revenueMicros) {
    this. = revenueMicros;
    return this;
  }

  
The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).

Returns:
value or null for none
    return ;
  }

  
The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID).

Parameters:
segmentationId segmentationId or null for none
  public Conversion setSegmentationId(java.lang.Long segmentationId) {
    this. = segmentationId;
    return this;
  }

  
The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).

Returns:
value or null for none
    return ;
  }

  
The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name).

Parameters:
segmentationName segmentationName or null for none
  public Conversion setSegmentationName(java.lang.String segmentationName) {
    this. = segmentationName;
    return this;
  }

  
The segmentation type of this conversion (for example, FLOODLIGHT).

Returns:
value or null for none
    return ;
  }

  
The segmentation type of this conversion (for example, FLOODLIGHT).

Parameters:
segmentationType segmentationType or null for none
  public Conversion setSegmentationType(java.lang.String segmentationType) {
    this. = segmentationType;
    return this;
  }

  
The state of the conversion, that is, either ACTIVE or REMOVED. Note: state DELETED is deprecated.

Returns:
value or null for none
  public java.lang.String getState() {
    return ;
  }

  
The state of the conversion, that is, either ACTIVE or REMOVED. Note: state DELETED is deprecated.

Parameters:
state state or null for none
  public Conversion setState(java.lang.String state) {
    this. = state;
    return this;
  }

  
The ID of the local store for which the product was advertised. Applicable only when the channel is "local".

Returns:
value or null for none
  public java.lang.String getStoreId() {
    return ;
  }

  
The ID of the local store for which the product was advertised. Applicable only when the channel is "local".

Parameters:
storeId storeId or null for none
  public Conversion setStoreId(java.lang.String storeId) {
    this. = storeId;
    return this;
  }

  
The type of the conversion, that is, either ACTION or TRANSACTION. An ACTION conversion is an action by the user that has no monetarily quantifiable value, while a TRANSACTION conversion is an action that does have a monetarily quantifiable value. Examples are email list signups (ACTION) versus ecommerce purchases (TRANSACTION).

Returns:
value or null for none
  public java.lang.String getType() {
    return ;
  }

  
The type of the conversion, that is, either ACTION or TRANSACTION. An ACTION conversion is an action by the user that has no monetarily quantifiable value, while a TRANSACTION conversion is an action that does have a monetarily quantifiable value. Examples are email list signups (ACTION) versus ecommerce purchases (TRANSACTION).

Parameters:
type type or null for none
  public Conversion setType(java.lang.String type) {
    this. = type;
    return this;
  }
  public Conversion set(String fieldNameObject value) {
    return (Conversionsuper.set(fieldNamevalue);
  }
  public Conversion clone() {
    return (Conversionsuper.clone();
  }
New to GrepCode? Check out our FAQ X