Skip to content
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

CH-14472: Add eCPM Partitions and AdQuery #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/Placement.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ Name | Type | Description | Notes
**count** | **Integer** | (BETA) The number of ads to return per placement. Integer between 1 and 20 | [optional]
**proportionality** | **Boolean** | (BETA) If true, fills ads in a multi-winner placement in proportion to the flight's goals | [optional]
**ecpmPartition** | **String** | (BETA) The name of the eCPM Partition that should be used to source eCPM data for auctions | [optional]
**ecpmPartitions** | **List<String>** | (BETA) The names of the eCPM Partitions that should be used to source eCPM data for auctions | [optional]
**eventMultiplier** | **Integer** | | [optional]
**skipSelection** | **Boolean** | | [optional]
**adQuery** | [**Object**](.md) | | [optional]


## Implemented Interfaces
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/adzerk/sdk/generated/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/adzerk/sdk/generated/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package com.adzerk.sdk.generated;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class Configuration {
private static ApiClient defaultApiClient = new ApiClient();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/adzerk/sdk/generated/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package com.adzerk.sdk.generated;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class Pair {
private String name = "";
private String value = "";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/adzerk/sdk/generated/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package com.adzerk.sdk.generated;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class HttpBearerAuth implements Authentication {
private final String scheme;
private String bearerToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* ConsentRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class ConsentRequest implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/adzerk/sdk/generated/model/Content.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* Content
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class Content implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/adzerk/sdk/generated/model/Decision.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/**
* Decision
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class Decision implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
/**
* DecisionRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class DecisionRequest implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* DecisionResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class DecisionResponse implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/adzerk/sdk/generated/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* Event
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class Event implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* MatchedPoint
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class MatchedPoint implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down
72 changes: 69 additions & 3 deletions src/main/java/com/adzerk/sdk/generated/model/Placement.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
/**
* Placement
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class Placement implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down Expand Up @@ -100,6 +100,10 @@ public class Placement implements Serializable {
@SerializedName(SERIALIZED_NAME_ECPM_PARTITION)
private String ecpmPartition;

public static final String SERIALIZED_NAME_ECPM_PARTITIONS = "ecpmPartitions";
@SerializedName(SERIALIZED_NAME_ECPM_PARTITIONS)
private List<String> ecpmPartitions = null;

public static final String SERIALIZED_NAME_EVENT_MULTIPLIER = "eventMultiplier";
@SerializedName(SERIALIZED_NAME_EVENT_MULTIPLIER)
private Integer eventMultiplier;
Expand All @@ -108,6 +112,10 @@ public class Placement implements Serializable {
@SerializedName(SERIALIZED_NAME_SKIP_SELECTION)
private Boolean skipSelection;

public static final String SERIALIZED_NAME_AD_QUERY = "adQuery";
@SerializedName(SERIALIZED_NAME_AD_QUERY)
private Object adQuery;


public Placement divName(String divName) {

Expand Down Expand Up @@ -509,6 +517,37 @@ public void setEcpmPartition(String ecpmPartition) {
}


public Placement ecpmPartitions(List<String> ecpmPartitions) {

this.ecpmPartitions = ecpmPartitions;
return this;
}

public Placement addEcpmPartitionsItem(String ecpmPartitionsItem) {
if (this.ecpmPartitions == null) {
this.ecpmPartitions = new ArrayList<String>();
}
this.ecpmPartitions.add(ecpmPartitionsItem);
return this;
}

/**
* (BETA) The names of the eCPM Partitions that should be used to source eCPM data for auctions
* @return ecpmPartitions
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "(BETA) The names of the eCPM Partitions that should be used to source eCPM data for auctions")

public List<String> getEcpmPartitions() {
return ecpmPartitions;
}


public void setEcpmPartitions(List<String> ecpmPartitions) {
this.ecpmPartitions = ecpmPartitions;
}


public Placement eventMultiplier(Integer eventMultiplier) {

this.eventMultiplier = eventMultiplier;
Expand Down Expand Up @@ -557,6 +596,29 @@ public void setSkipSelection(Boolean skipSelection) {
}


public Placement adQuery(Object adQuery) {

this.adQuery = adQuery;
return this;
}

/**
* Get adQuery
* @return adQuery
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")

public Object getAdQuery() {
return adQuery;
}


public void setAdQuery(Object adQuery) {
this.adQuery = adQuery;
}


@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -582,13 +644,15 @@ public boolean equals(java.lang.Object o) {
Objects.equals(this.count, placement.count) &&
Objects.equals(this.proportionality, placement.proportionality) &&
Objects.equals(this.ecpmPartition, placement.ecpmPartition) &&
Objects.equals(this.ecpmPartitions, placement.ecpmPartitions) &&
Objects.equals(this.eventMultiplier, placement.eventMultiplier) &&
Objects.equals(this.skipSelection, placement.skipSelection);
Objects.equals(this.skipSelection, placement.skipSelection) &&
Objects.equals(this.adQuery, placement.adQuery);
}

@Override
public int hashCode() {
return Objects.hash(divName, networkId, siteId, adTypes, zoneIds, campaignId, flightId, adId, clickUrl, properties, eventIds, overrides, contentKeys, count, proportionality, ecpmPartition, eventMultiplier, skipSelection);
return Objects.hash(divName, networkId, siteId, adTypes, zoneIds, campaignId, flightId, adId, clickUrl, properties, eventIds, overrides, contentKeys, count, proportionality, ecpmPartition, ecpmPartitions, eventMultiplier, skipSelection, adQuery);
}


Expand All @@ -612,8 +676,10 @@ public String toString() {
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" proportionality: ").append(toIndentedString(proportionality)).append("\n");
sb.append(" ecpmPartition: ").append(toIndentedString(ecpmPartition)).append("\n");
sb.append(" ecpmPartitions: ").append(toIndentedString(ecpmPartitions)).append("\n");
sb.append(" eventMultiplier: ").append(toIndentedString(eventMultiplier)).append("\n");
sb.append(" skipSelection: ").append(toIndentedString(skipSelection)).append("\n");
sb.append(" adQuery: ").append(toIndentedString(adQuery)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* PricingData
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class PricingData implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/adzerk/sdk/generated/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* Object containing the UserKey used for [UserDB targeting](https://dev.adzerk.com/docs/userdb-1)
*/
@ApiModel(description = "Object containing the UserKey used for [UserDB targeting](https://dev.adzerk.com/docs/userdb-1)")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-10-25T21:13:51.475-04:00[America/New_York]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-01-15T12:36:13.873-05:00[America/New_York]")
public class User implements Serializable {
private static final long serialVersionUID = 1L;

Expand Down