Skip to content

Commit d7cc9be

Browse files
author
gricher-crto
committed
[250205] Automatic update of SDK.
1 parent 80fa477 commit d7cc9be

File tree

176 files changed

+3790
-4648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+3790
-4648
lines changed

sdks/marketingsolutions_2024-01/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ More information on how to use Criteo API and these SDKs can be found at: [https
88

99
Criteo API
1010

11-
- Package version: 2024.01.0.250129
11+
- Package version: 2024.01.0.250205
1212

1313

1414
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
@@ -38,7 +38,7 @@ Add this dependency to your project's POM:
3838
<dependency>
3939
<groupId>com.criteo</groupId>
4040
<artifactId>criteo-api-marketingsolutions-sdk</artifactId>
41-
<version>2024.01.0.250129</version>
41+
<version>2024.01.0.250205</version>
4242
<scope>compile</scope>
4343
</dependency>
4444
```
@@ -48,7 +48,7 @@ Add this dependency to your project's POM:
4848
Add this dependency to your project's build file:
4949

5050
```groovy
51-
compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.01.0.250129"
51+
compile "com.criteo:criteo-api-marketingsolutions-sdk:2024.01.0.250205"
5252
```
5353

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

6262
Then manually install the following JARs:
6363

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

6666
## Example
6767

sdks/marketingsolutions_2024-01/api/openapi.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,6 +2086,7 @@ paths:
20862086
required: false
20872087
schema:
20882088
format: int32
2089+
nullable: true
20892090
type: integer
20902091
style: form
20912092
x-nullable: true
@@ -2097,6 +2098,7 @@ paths:
20972098
required: false
20982099
schema:
20992100
format: int32
2101+
nullable: true
21002102
type: integer
21012103
style: form
21022104
x-nullable: true
@@ -2217,6 +2219,7 @@ paths:
22172219
required: false
22182220
schema:
22192221
format: int32
2222+
nullable: true
22202223
type: integer
22212224
style: form
22222225
x-nullable: true
@@ -2228,6 +2231,7 @@ paths:
22282231
required: false
22292232
schema:
22302233
format: int32
2234+
nullable: true
22312235
type: integer
22322236
style: form
22332237
x-nullable: true
@@ -2597,6 +2601,7 @@ paths:
25972601
required: false
25982602
schema:
25992603
format: int32
2604+
nullable: true
26002605
type: integer
26012606
style: form
26022607
x-nullable: true
@@ -2608,6 +2613,7 @@ paths:
26082613
required: false
26092614
schema:
26102615
format: int32
2616+
nullable: true
26112617
type: integer
26122618
style: form
26132619
x-nullable: true
@@ -11351,6 +11357,7 @@ components:
1135111357
name: name
1135211358
adSetId: adSetId
1135311359
description: description
11360+
id: id
1135411361
creativeId: creativeId
1135511362
startDate: startDate
1135611363
id: id
@@ -11426,6 +11433,7 @@ components:
1142611433
name: name
1142711434
adSetId: adSetId
1142811435
description: description
11436+
id: id
1142911437
creativeId: creativeId
1143011438
startDate: startDate
1143111439
id: id
@@ -11436,6 +11444,7 @@ components:
1143611444
name: name
1143711445
adSetId: adSetId
1143811446
description: description
11447+
id: id
1143911448
creativeId: creativeId
1144011449
startDate: startDate
1144111450
id: id
@@ -11531,6 +11540,7 @@ components:
1153111540
name: name
1153211541
adSetId: adSetId
1153311542
rotationsNumber: 5
11543+
id: id
1153411544
landingPageUrl: landingPageUrl
1153511545
startDate: startDate
1153611546
status: status
@@ -11558,6 +11568,7 @@ components:
1155811568
name: name
1155911569
adSetId: adSetId
1156011570
rotationsNumber: 5
11571+
id: id
1156111572
landingPageUrl: landingPageUrl
1156211573
startDate: startDate
1156311574
status: status
@@ -11654,6 +11665,7 @@ components:
1165411665
name: name
1165511666
adSetId: adSetId
1165611667
rotationsNumber: 5
11668+
id: id
1165711669
landingPageUrl: landingPageUrl
1165811670
startDate: startDate
1165911671
status: status
@@ -11868,6 +11880,7 @@ components:
1186811880
format: format
1186911881
description: description
1187011882
datasetId: datasetId
11883+
id: id
1187111884
status: status
1187211885
advertiserId: advertiserId
1187311886
htmlTagAttributes:
@@ -11952,6 +11965,7 @@ components:
1195211965
format: format
1195311966
description: description
1195411967
datasetId: datasetId
11968+
id: id
1195511969
status: status
1195611970
advertiserId: advertiserId
1195711971
htmlTagAttributes:
@@ -12105,6 +12119,7 @@ components:
1210512119
format: format
1210612120
description: description
1210712121
datasetId: datasetId
12122+
id: id
1210812123
status: status
1210912124
advertiserId: advertiserId
1211012125
htmlTagAttributes:
@@ -12328,6 +12343,7 @@ components:
1232812343
name: name
1232912344
adSetId: adSetId
1233012345
description: description
12346+
id: id
1233112347
creativeId: creativeId
1233212348
startDate: startDate
1233312349
id: id
@@ -12370,6 +12386,7 @@ components:
1237012386
name: name
1237112387
adSetId: adSetId
1237212388
rotationsNumber: 5
12389+
id: id
1237312390
landingPageUrl: landingPageUrl
1237412391
startDate: startDate
1237512392
status: status
@@ -12486,6 +12503,7 @@ components:
1248612503
format: format
1248712504
description: description
1248812505
datasetId: datasetId
12506+
id: id
1248912507
status: status
1249012508
advertiserId: advertiserId
1249112509
htmlTagAttributes:
@@ -12689,6 +12707,7 @@ components:
1268912707
name: name
1269012708
adSetId: adSetId
1269112709
description: description
12710+
id: id
1269212711
creativeId: creativeId
1269312712
startDate: startDate
1269412713
properties:
@@ -12736,6 +12755,11 @@ components:
1273612755
nullable: true
1273712756
type: string
1273812757
x-nullable: true
12758+
id:
12759+
description: Unique identifier (duplicate of the parent id).
12760+
nullable: true
12761+
type: string
12762+
x-nullable: true
1273912763
type: object
1274012764
Coupon:
1274112765
description: Coupons are static images applied on ad set which can be displayed
@@ -12762,6 +12786,7 @@ components:
1276212786
name: name
1276312787
adSetId: adSetId
1276412788
rotationsNumber: 5
12789+
id: id
1276512790
landingPageUrl: landingPageUrl
1276612791
startDate: startDate
1276712792
status: status
@@ -12842,6 +12867,11 @@ components:
1284212867
format: int32
1284312868
nullable: true
1284412869
type: integer
12870+
id:
12871+
description: Unique identifier (duplicate of the parent id).
12872+
nullable: true
12873+
type: string
12874+
x-nullable: true
1284512875
type: object
1284612876
CouponSupportedSizes:
1284712877
description: Entity containing the list of Coupon supported sizes
@@ -12941,6 +12971,7 @@ components:
1294112971
format: format
1294212972
description: description
1294312973
datasetId: datasetId
12974+
id: id
1294412975
status: status
1294512976
advertiserId: advertiserId
1294612977
htmlTagAttributes:
@@ -12989,6 +13020,11 @@ components:
1298913020
$ref: '#/components/schemas/DynamicAttributes'
1299013021
adaptiveAttributes:
1299113022
$ref: '#/components/schemas/AdaptiveAttributes'
13023+
id:
13024+
description: Unique identifier (duplicate of the parent id).
13025+
nullable: true
13026+
type: string
13027+
x-nullable: true
1299213028
required:
1299313029
- advertiserId
1299413030
- author

sdks/marketingsolutions_2024-01/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) {
2323
}
2424

2525
group = 'com.criteo'
26-
version = '2024.01.0.250129'
26+
version = '2024.01.0.250205'
2727

2828
repositories {
2929
jcenter()
@@ -74,7 +74,7 @@ publishing {
7474
mavenJava(MavenPublication) {
7575
groupId 'com.criteo'
7676
artifactId 'criteo-api-marketingsolutions-sdk'
77-
version '2024.01.0.250129'
77+
version '2024.01.0.250205'
7878
from components.java
7979
artifact sourcesJar
8080
artifact javadocJar

sdks/marketingsolutions_2024-01/docs/Ad.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ An ad is the binding that connects a creative with an ad set
1515
|**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] |
1616
|**startDate** | **String** | The date when the ad will be launched String must be in ISO8601 format | [optional] |
1717
|**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] |
18+
|**id** | **String** | Unique identifier (duplicate of the parent id). | [optional] |
1819

1920

2021

sdks/marketingsolutions_2024-01/docs/Coupon.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Coupons are static images applied on ad set which can be displayed within an ad
2222
|**showEvery** | **Integer** | Show the Coupon every N seconds (between 1 and 10) | [optional] |
2323
|**showDuration** | **Integer** | Show Coupon for a duration of N seconds (between 1 and 5) | [optional] |
2424
|**rotationsNumber** | **Integer** | Number of rotations for the Coupons (from 1 to 10 times) | [optional] |
25+
|**id** | **String** | Unique identifier (duplicate of the parent id). | [optional] |
2526

2627

2728

sdks/marketingsolutions_2024-01/docs/Creative.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ A creative is a project with the necessary information to display a creative
1919
|**htmlTagAttributes** | [**HtmlTagAttributes**](HtmlTagAttributes.md) | | [optional] |
2020
|**dynamicAttributes** | [**DynamicAttributes**](DynamicAttributes.md) | | [optional] |
2121
|**adaptiveAttributes** | [**AdaptiveAttributes**](AdaptiveAttributes.md) | | [optional] |
22+
|**id** | **String** | Unique identifier (duplicate of the parent id). | [optional] |
2223

2324

2425

sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private void init() {
213213
json = new JSON();
214214

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

218218
authentications = new HashMap<String, Authentication>();
219219
}

sdks/marketingsolutions_2024-01/src/main/java/com/criteo/api/marketingsolutions/v2024_01/model/Ad.java

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ public InventoryTypeEnum read(final JsonReader jsonReader) throws IOException {
126126
@SerializedName(SERIALIZED_NAME_END_DATE)
127127
private String endDate;
128128

129+
public static final String SERIALIZED_NAME_ID = "id";
130+
@SerializedName(SERIALIZED_NAME_ID)
131+
private String id;
132+
129133
public Ad() {
130134
}
131135

@@ -282,6 +286,28 @@ public void setEndDate(String endDate) {
282286
this.endDate = endDate;
283287
}
284288

289+
290+
public Ad id(String id) {
291+
292+
this.id = id;
293+
return this;
294+
}
295+
296+
/**
297+
* Unique identifier (duplicate of the parent id).
298+
* @return id
299+
**/
300+
@javax.annotation.Nullable
301+
302+
public String getId() {
303+
return id;
304+
}
305+
306+
307+
public void setId(String id) {
308+
this.id = id;
309+
}
310+
285311
/**
286312
* A container for additional, undeclared properties.
287313
* This is a holder for any undeclared properties as specified with
@@ -343,7 +369,8 @@ public boolean equals(Object o) {
343369
Objects.equals(this.adSetId, ad.adSetId) &&
344370
Objects.equals(this.inventoryType, ad.inventoryType) &&
345371
Objects.equals(this.startDate, ad.startDate) &&
346-
Objects.equals(this.endDate, ad.endDate)&&
372+
Objects.equals(this.endDate, ad.endDate) &&
373+
Objects.equals(this.id, ad.id)&&
347374
Objects.equals(this.additionalProperties, ad.additionalProperties);
348375
}
349376

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

354381
@Override
355382
public int hashCode() {
356-
return Objects.hash(name, description, creativeId, adSetId, inventoryType, startDate, endDate, additionalProperties);
383+
return Objects.hash(name, description, creativeId, adSetId, inventoryType, startDate, endDate, id, additionalProperties);
357384
}
358385

359386
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@@ -374,6 +401,7 @@ public String toString() {
374401
sb.append(" inventoryType: ").append(toIndentedString(inventoryType)).append("\n");
375402
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
376403
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
404+
sb.append(" id: ").append(toIndentedString(id)).append("\n");
377405
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
378406
sb.append("}");
379407
return sb.toString();
@@ -404,6 +432,7 @@ private String toIndentedString(Object o) {
404432
openapiFields.add("inventoryType");
405433
openapiFields.add("startDate");
406434
openapiFields.add("endDate");
435+
openapiFields.add("id");
407436

408437
// a set of required properties/fields (JSON key names)
409438
openapiRequiredFields = new HashSet<String>();
@@ -442,6 +471,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException {
442471
if ((jsonObj.get("endDate") != null && !jsonObj.get("endDate").isJsonNull()) && !jsonObj.get("endDate").isJsonPrimitive()) {
443472
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()));
444473
}
474+
if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) {
475+
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()));
476+
}
445477
}
446478

447479
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)