Skip to content

Commit

Permalink
[250205] Automatic update of SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
gricher-crto committed Feb 5, 2025
1 parent 80fa477 commit d7cc9be
Show file tree
Hide file tree
Showing 176 changed files with 3,790 additions and 4,648 deletions.
8 changes: 4 additions & 4 deletions sdks/marketingsolutions_2024-01/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ More information on how to use Criteo API and these SDKs can be found at: [https

Criteo API

- Package version: 2024.01.0.250129
- Package version: 2024.01.0.250205


*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
Expand Down Expand Up @@ -38,7 +38,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.criteo</groupId>
<artifactId>criteo-api-marketingsolutions-sdk</artifactId>
<version>2024.01.0.250129</version>
<version>2024.01.0.250205</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -48,7 +48,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.01.0.250129"
compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.01.0.250205"
```

### Others
Expand All @@ -61,7 +61,7 @@ At first generate the JAR by executing:

Then manually install the following JARs:

* `build/libs/criteo-api-marketingsolutions-sdk-2024.01.0.250129.jar`
* `build/libs/criteo-api-marketingsolutions-sdk-2024.01.0.250205.jar`

## Example

Expand Down
36 changes: 36 additions & 0 deletions sdks/marketingsolutions_2024-01/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2086,6 +2086,7 @@ paths:
required: false
schema:
format: int32
nullable: true
type: integer
style: form
x-nullable: true
Expand All @@ -2097,6 +2098,7 @@ paths:
required: false
schema:
format: int32
nullable: true
type: integer
style: form
x-nullable: true
Expand Down Expand Up @@ -2217,6 +2219,7 @@ paths:
required: false
schema:
format: int32
nullable: true
type: integer
style: form
x-nullable: true
Expand All @@ -2228,6 +2231,7 @@ paths:
required: false
schema:
format: int32
nullable: true
type: integer
style: form
x-nullable: true
Expand Down Expand Up @@ -2597,6 +2601,7 @@ paths:
required: false
schema:
format: int32
nullable: true
type: integer
style: form
x-nullable: true
Expand All @@ -2608,6 +2613,7 @@ paths:
required: false
schema:
format: int32
nullable: true
type: integer
style: form
x-nullable: true
Expand Down Expand Up @@ -11351,6 +11357,7 @@ components:
name: name
adSetId: adSetId
description: description
id: id
creativeId: creativeId
startDate: startDate
id: id
Expand Down Expand Up @@ -11426,6 +11433,7 @@ components:
name: name
adSetId: adSetId
description: description
id: id
creativeId: creativeId
startDate: startDate
id: id
Expand All @@ -11436,6 +11444,7 @@ components:
name: name
adSetId: adSetId
description: description
id: id
creativeId: creativeId
startDate: startDate
id: id
Expand Down Expand Up @@ -11531,6 +11540,7 @@ components:
name: name
adSetId: adSetId
rotationsNumber: 5
id: id
landingPageUrl: landingPageUrl
startDate: startDate
status: status
Expand Down Expand Up @@ -11558,6 +11568,7 @@ components:
name: name
adSetId: adSetId
rotationsNumber: 5
id: id
landingPageUrl: landingPageUrl
startDate: startDate
status: status
Expand Down Expand Up @@ -11654,6 +11665,7 @@ components:
name: name
adSetId: adSetId
rotationsNumber: 5
id: id
landingPageUrl: landingPageUrl
startDate: startDate
status: status
Expand Down Expand Up @@ -11868,6 +11880,7 @@ components:
format: format
description: description
datasetId: datasetId
id: id
status: status
advertiserId: advertiserId
htmlTagAttributes:
Expand Down Expand Up @@ -11952,6 +11965,7 @@ components:
format: format
description: description
datasetId: datasetId
id: id
status: status
advertiserId: advertiserId
htmlTagAttributes:
Expand Down Expand Up @@ -12105,6 +12119,7 @@ components:
format: format
description: description
datasetId: datasetId
id: id
status: status
advertiserId: advertiserId
htmlTagAttributes:
Expand Down Expand Up @@ -12328,6 +12343,7 @@ components:
name: name
adSetId: adSetId
description: description
id: id
creativeId: creativeId
startDate: startDate
id: id
Expand Down Expand Up @@ -12370,6 +12386,7 @@ components:
name: name
adSetId: adSetId
rotationsNumber: 5
id: id
landingPageUrl: landingPageUrl
startDate: startDate
status: status
Expand Down Expand Up @@ -12486,6 +12503,7 @@ components:
format: format
description: description
datasetId: datasetId
id: id
status: status
advertiserId: advertiserId
htmlTagAttributes:
Expand Down Expand Up @@ -12689,6 +12707,7 @@ components:
name: name
adSetId: adSetId
description: description
id: id
creativeId: creativeId
startDate: startDate
properties:
Expand Down Expand Up @@ -12736,6 +12755,11 @@ components:
nullable: true
type: string
x-nullable: true
id:
description: Unique identifier (duplicate of the parent id).
nullable: true
type: string
x-nullable: true
type: object
Coupon:
description: Coupons are static images applied on ad set which can be displayed
Expand All @@ -12762,6 +12786,7 @@ components:
name: name
adSetId: adSetId
rotationsNumber: 5
id: id
landingPageUrl: landingPageUrl
startDate: startDate
status: status
Expand Down Expand Up @@ -12842,6 +12867,11 @@ components:
format: int32
nullable: true
type: integer
id:
description: Unique identifier (duplicate of the parent id).
nullable: true
type: string
x-nullable: true
type: object
CouponSupportedSizes:
description: Entity containing the list of Coupon supported sizes
Expand Down Expand Up @@ -12941,6 +12971,7 @@ components:
format: format
description: description
datasetId: datasetId
id: id
status: status
advertiserId: advertiserId
htmlTagAttributes:
Expand Down Expand Up @@ -12989,6 +13020,11 @@ components:
$ref: '#/components/schemas/DynamicAttributes'
adaptiveAttributes:
$ref: '#/components/schemas/AdaptiveAttributes'
id:
description: Unique identifier (duplicate of the parent id).
nullable: true
type: string
x-nullable: true
required:
- advertiserId
- author
Expand Down
4 changes: 2 additions & 2 deletions sdks/marketingsolutions_2024-01/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) {
}

group = 'com.criteo'
version = '2024.01.0.250129'
version = '2024.01.0.250205'

repositories {
jcenter()
Expand Down Expand Up @@ -74,7 +74,7 @@ publishing {
mavenJava(MavenPublication) {
groupId 'com.criteo'
artifactId 'criteo-api-marketingsolutions-sdk'
version '2024.01.0.250129'
version '2024.01.0.250205'
from components.java
artifact sourcesJar
artifact javadocJar
Expand Down
1 change: 1 addition & 0 deletions sdks/marketingsolutions_2024-01/docs/Ad.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ An ad is the binding that connects a creative with an ad set
|**inventoryType** | [**InventoryTypeEnum**](#InventoryTypeEnum) | The inventory the Ad belongs to. Possible values are \&quot;Display\&quot; and \&quot;Native\&quot;. This is optional since this doesn&#39;t make sense for every creative type but will throw an error if not set for a dynamic creative. | [optional] |
|**startDate** | **String** | The date when the ad will be launched String must be in ISO8601 format | [optional] |
|**endDate** | **String** | The date when when we will stop to show this ad. If the end date is not specified (i.e. null) then the ad will go on forever String must be in ISO8601 format | [optional] |
|**id** | **String** | Unique identifier (duplicate of the parent id). | [optional] |



Expand Down
1 change: 1 addition & 0 deletions sdks/marketingsolutions_2024-01/docs/Coupon.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Coupons are static images applied on ad set which can be displayed within an ad
|**showEvery** | **Integer** | Show the Coupon every N seconds (between 1 and 10) | [optional] |
|**showDuration** | **Integer** | Show Coupon for a duration of N seconds (between 1 and 5) | [optional] |
|**rotationsNumber** | **Integer** | Number of rotations for the Coupons (from 1 to 10 times) | [optional] |
|**id** | **String** | Unique identifier (duplicate of the parent id). | [optional] |



1 change: 1 addition & 0 deletions sdks/marketingsolutions_2024-01/docs/Creative.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ A creative is a project with the necessary information to display a creative
|**htmlTagAttributes** | [**HtmlTagAttributes**](HtmlTagAttributes.md) | | [optional] |
|**dynamicAttributes** | [**DynamicAttributes**](DynamicAttributes.md) | | [optional] |
|**adaptiveAttributes** | [**AdaptiveAttributes**](AdaptiveAttributes.md) | | [optional] |
|**id** | **String** | Unique identifier (duplicate of the parent id). | [optional] |



Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/2024.01.0.250129/java");
setUserAgent("OpenAPI-Generator/2024.01.0.250205/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ public InventoryTypeEnum read(final JsonReader jsonReader) throws IOException {
@SerializedName(SERIALIZED_NAME_END_DATE)
private String endDate;

public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;

public Ad() {
}

Expand Down Expand Up @@ -282,6 +286,28 @@ public void setEndDate(String endDate) {
this.endDate = endDate;
}


public Ad id(String id) {

this.id = id;
return this;
}

/**
* Unique identifier (duplicate of the parent id).
* @return id
**/
@javax.annotation.Nullable

public String getId() {
return id;
}


public void setId(String id) {
this.id = id;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -343,7 +369,8 @@ public boolean equals(Object o) {
Objects.equals(this.adSetId, ad.adSetId) &&
Objects.equals(this.inventoryType, ad.inventoryType) &&
Objects.equals(this.startDate, ad.startDate) &&
Objects.equals(this.endDate, ad.endDate)&&
Objects.equals(this.endDate, ad.endDate) &&
Objects.equals(this.id, ad.id)&&
Objects.equals(this.additionalProperties, ad.additionalProperties);
}

Expand All @@ -353,7 +380,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(name, description, creativeId, adSetId, inventoryType, startDate, endDate, additionalProperties);
return Objects.hash(name, description, creativeId, adSetId, inventoryType, startDate, endDate, id, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -374,6 +401,7 @@ public String toString() {
sb.append(" inventoryType: ").append(toIndentedString(inventoryType)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand Down Expand Up @@ -404,6 +432,7 @@ private String toIndentedString(Object o) {
openapiFields.add("inventoryType");
openapiFields.add("startDate");
openapiFields.add("endDate");
openapiFields.add("id");

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
Expand Down Expand Up @@ -442,6 +471,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException {
if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString()));
}
if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString()));
}
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading

0 comments on commit d7cc9be

Please sign in to comment.