diff --git a/sdks/marketingsolutions_2022-07/README.md b/sdks/marketingsolutions_2022-07/README.md
index cfe86a67..973defad 100644
--- a/sdks/marketingsolutions_2022-07/README.md
+++ b/sdks/marketingsolutions_2022-07/README.md
@@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com
Criteo API
-- Package version: 2022.07.0.230728
+- Package version: 2022.07.0.230831
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
@@ -44,7 +44,7 @@ Add this dependency to your project's POM:
com.criteo
criteo-api-marketingsolutions-sdk
- 2022.07.0.230728
+ 2022.07.0.230831
compile
```
@@ -54,7 +54,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:2022.07.0.230728"
+compile "com.criteo:criteo-api-marketingsolutions-sdk:2022.07.0.230831"
```
### Others
@@ -67,7 +67,7 @@ mvn clean package
Then manually install the following JARs:
-* `target/criteo-api-marketingsolutions-sdk-2022.07.0.230728.jar`
+* `target/criteo-api-marketingsolutions-sdk-2022.07.0.230831.jar`
* `target/lib/*.jar`
## Example
diff --git a/sdks/marketingsolutions_2022-07/api/openapi.yaml b/sdks/marketingsolutions_2022-07/api/openapi.yaml
index c0a1bdc9..95ab33ad 100644
--- a/sdks/marketingsolutions_2022-07/api/openapi.yaml
+++ b/sdks/marketingsolutions_2022-07/api/openapi.yaml
@@ -131,10 +131,10 @@ paths:
- Audience
x-content-type: application/json
x-accepts: application/json
- /2022-07/audiences/{audience-id}/contactlist:
+ /2022-07/audiences/{audience-id}:
delete:
- description: delete all identifiers from an Audience
- operationId: deleteIdentifiers
+ description: Delete an audience by id
+ operationId: removeAudience
parameters:
- description: The id of the audience to amend
explode: false
@@ -152,7 +152,7 @@ paths:
example:
data:
id: "1"
- type: AudienceContactlist
+ type: Audience
errors: []
warnings:
- traceId: 56ed4096-f96a-4944-8881-05468efe0ec9
@@ -162,8 +162,8 @@ paths:
title: '''nbValidIds'' is deprecated'
detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers
schema:
- $ref: '#/components/schemas/DeleteAudienceContactListResponse'
- description: The contactlist was deleted
+ $ref: '#/components/schemas/DeleteAudienceResponse'
+ description: The audience was deleted
"403":
content:
application/json:
@@ -189,8 +189,8 @@ paths:
- Audience
x-accepts: application/json
patch:
- description: Add/remove users to or from an audience
- operationId: modifyAudienceUsers
+ description: Update user audience specified by the audience id
+ operationId: modifyAudience
parameters:
- description: The id of the audience to amend
explode: false
@@ -205,7 +205,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ContactlistAmendmentRequest'
+ $ref: '#/components/schemas/ReplaceAudienceRequest'
required: true
x-bodyName: body
responses:
@@ -214,16 +214,11 @@ paths:
application/json:
example:
data:
- type: ContactlistAmendment
+ id: "1"
+ type: AudienceContactlist
attributes:
- contactListId: 12
- operation: add
- requestDate: 2018-12-10T10:00:50.0000000+00:00
- identifierType: madid
- nbValidIdentifiers: 7343
- nbInvalidIdentifiers: 13
- sampleInvalidIdentifiers:
- - InvalidIdentifier
+ name: example audience
+ description: example audience description
errors: []
warnings:
- traceId: 56ed4096-f96a-4944-8881-05468efe0ec9
@@ -233,8 +228,8 @@ paths:
title: '''nbValidIds'' is deprecated'
detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers
schema:
- $ref: '#/components/schemas/ModifyAudienceResponse'
- description: Summary of created request
+ $ref: '#/components/schemas/ReplaceAudienceResponse'
+ description: The audience was updated
"403":
content:
application/json:
@@ -256,35 +251,14 @@ paths:
schema:
$ref: '#/components/schemas/ErrorCodeResponse'
description: Forbidden
- "404":
- content:
- application/json:
- example:
- errors:
- - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9
- type: validation
- code: audience-invalid
- instance: /audience/314159
- title: Audience is invalid
- detail: "Audience is not found, please choose a valid audience"
- warnings:
- - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9
- type: deprecation
- code: deprecated-field
- instance: /audiences/314195
- title: '''nbValidIds'' is deprecated'
- detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers
- schema:
- $ref: '#/components/schemas/ErrorCodeResponse'
- description: Audience 123 not found
tags:
- Audience
x-content-type: application/json
x-accepts: application/json
- /2022-07/audiences/{audience-id}:
+ /2022-07/audiences/{audience-id}/contactlist:
delete:
- description: Delete an audience by id
- operationId: removeAudience
+ description: delete all identifiers from an Audience
+ operationId: deleteIdentifiers
parameters:
- description: The id of the audience to amend
explode: false
@@ -302,7 +276,7 @@ paths:
example:
data:
id: "1"
- type: Audience
+ type: AudienceContactlist
errors: []
warnings:
- traceId: 56ed4096-f96a-4944-8881-05468efe0ec9
@@ -312,8 +286,8 @@ paths:
title: '''nbValidIds'' is deprecated'
detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers
schema:
- $ref: '#/components/schemas/DeleteAudienceResponse'
- description: The audience was deleted
+ $ref: '#/components/schemas/DeleteAudienceContactListResponse'
+ description: The contactlist was deleted
"403":
content:
application/json:
@@ -339,8 +313,8 @@ paths:
- Audience
x-accepts: application/json
patch:
- description: Update user audience specified by the audience id
- operationId: modifyAudience
+ description: Add/remove users to or from an audience
+ operationId: modifyAudienceUsers
parameters:
- description: The id of the audience to amend
explode: false
@@ -355,7 +329,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/ReplaceAudienceRequest'
+ $ref: '#/components/schemas/ContactlistAmendmentRequest'
required: true
x-bodyName: body
responses:
@@ -364,11 +338,16 @@ paths:
application/json:
example:
data:
- id: "1"
- type: AudienceContactlist
+ type: ContactlistAmendment
attributes:
- name: example audience
- description: example audience description
+ contactListId: 12
+ operation: add
+ requestDate: 2018-12-10T10:00:50.0000000+00:00
+ identifierType: madid
+ nbValidIdentifiers: 7343
+ nbInvalidIdentifiers: 13
+ sampleInvalidIdentifiers:
+ - InvalidIdentifier
errors: []
warnings:
- traceId: 56ed4096-f96a-4944-8881-05468efe0ec9
@@ -378,8 +357,8 @@ paths:
title: '''nbValidIds'' is deprecated'
detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers
schema:
- $ref: '#/components/schemas/ReplaceAudienceResponse'
- description: The audience was updated
+ $ref: '#/components/schemas/ModifyAudienceResponse'
+ description: Summary of created request
"403":
content:
application/json:
@@ -401,6 +380,27 @@ paths:
schema:
$ref: '#/components/schemas/ErrorCodeResponse'
description: Forbidden
+ "404":
+ content:
+ application/json:
+ example:
+ errors:
+ - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9
+ type: validation
+ code: audience-invalid
+ instance: /audience/314159
+ title: Audience is invalid
+ detail: "Audience is not found, please choose a valid audience"
+ warnings:
+ - traceId: 56ed4096-f96a-4944-8881-05468efe0ec9
+ type: deprecation
+ code: deprecated-field
+ instance: /audiences/314195
+ title: '''nbValidIds'' is deprecated'
+ detail: The field 'nbValidIds' is deprecated please use 'nbValidIdentifiers
+ schema:
+ $ref: '#/components/schemas/ErrorCodeResponse'
+ description: Audience 123 not found
tags:
- Audience
x-content-type: application/json
@@ -423,32 +423,39 @@ paths:
tags:
- Gateway
x-accepts: application/json
- /2022-07/marketing-solutions/ad-sets/{adSetId}:
- get:
- description: Get the data for the specified ad set
- operationId: GetAdSet
- parameters:
- - description: Id of the ad set
- explode: false
- in: path
- name: adSetId
- required: true
- schema:
- type: string
- style: simple
+ /2022-07/marketing-solutions/ad-sets:
+ patch:
+ description: Patch a list of AdSets.
+ operationId: PatchAdSets
+ requestBody:
+ content:
+ application/json-patch+json:
+ schema:
+ $ref: '#/components/schemas/RequestsPatchAdSet'
+ application/json:
+ schema:
+ $ref: '#/components/schemas/RequestsPatchAdSet'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/RequestsPatchAdSet'
+ application/*+json:
+ schema:
+ $ref: '#/components/schemas/RequestsPatchAdSet'
+ description: List of adsets to patch.
+ x-bodyName: adSets
responses:
"200":
content:
text/plain:
schema:
- $ref: '#/components/schemas/ResponseReadAdSet'
+ $ref: '#/components/schemas/ResponseAdSetId'
application/json:
schema:
- $ref: '#/components/schemas/ResponseReadAdSet'
+ $ref: '#/components/schemas/ResponseAdSetId'
text/json:
schema:
- $ref: '#/components/schemas/ResponseReadAdSet'
- description: data for the ad set
+ $ref: '#/components/schemas/ResponseAdSetId'
+ description: List of patched adSets.
"401":
content:
text/plain: {}
@@ -464,6 +471,7 @@ paths:
the resource does not exist.
tags:
- Campaign
+ x-content-type: application/json-patch+json
x-accepts: application/json
/2022-07/marketing-solutions/ad-sets/search:
post:
@@ -519,56 +527,6 @@ paths:
- Campaign
x-content-type: application/json-patch+json
x-accepts: application/json
- /2022-07/marketing-solutions/ad-sets:
- patch:
- description: Patch a list of AdSets.
- operationId: PatchAdSets
- requestBody:
- content:
- application/json-patch+json:
- schema:
- $ref: '#/components/schemas/RequestsPatchAdSet'
- application/json:
- schema:
- $ref: '#/components/schemas/RequestsPatchAdSet'
- text/json:
- schema:
- $ref: '#/components/schemas/RequestsPatchAdSet'
- application/*+json:
- schema:
- $ref: '#/components/schemas/RequestsPatchAdSet'
- description: List of adsets to patch.
- x-bodyName: adSets
- responses:
- "200":
- content:
- text/plain:
- schema:
- $ref: '#/components/schemas/ResponseAdSetId'
- application/json:
- schema:
- $ref: '#/components/schemas/ResponseAdSetId'
- text/json:
- schema:
- $ref: '#/components/schemas/ResponseAdSetId'
- description: List of patched adSets.
- "401":
- content:
- text/plain: {}
- application/json: {}
- text/json: {}
- description: The API client is not properly authenticated.
- "403":
- content:
- text/plain: {}
- application/json: {}
- text/json: {}
- description: The API client is not authorized to access this resource or
- the resource does not exist.
- tags:
- - Campaign
- x-content-type: application/json-patch+json
- x-accepts: application/json
/2022-07/marketing-solutions/ad-sets/start:
post:
description: Start the specified list of ad sets
@@ -669,15 +627,16 @@ paths:
- Campaign
x-content-type: application/json-patch+json
x-accepts: application/json
- /2022-07/marketing-solutions/campaigns/{campaign-id}:
+ /2022-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids:
get:
- description: Get the data for the specified campaign
- operationId: GetCampaign
+ description: Get the Category Bids for all valid Categories associated to an
+ Ad Set
+ operationId: GetCategoryBidList
parameters:
- - description: Id of the campaign
+ - description: Id of the Ad Set
explode: false
in: path
- name: campaign-id
+ name: ad-set-id
required: true
schema:
type: string
@@ -687,14 +646,21 @@ paths:
content:
text/plain:
schema:
- $ref: '#/components/schemas/CampaignResponse'
+ $ref: '#/components/schemas/AdSetCategoryBidListResponse'
application/json:
schema:
- $ref: '#/components/schemas/CampaignResponse'
+ $ref: '#/components/schemas/AdSetCategoryBidListResponse'
text/json:
schema:
- $ref: '#/components/schemas/CampaignResponse'
- description: data for the campaign
+ $ref: '#/components/schemas/AdSetCategoryBidListResponse'
+ description: List of Category Bids for all valid Categories associated to
+ an Ad Set.
+ "400":
+ content:
+ text/plain: {}
+ application/json: {}
+ text/json: {}
+ description: Bad Request
"401":
content:
text/plain: {}
@@ -711,39 +677,48 @@ paths:
tags:
- Campaign
x-accepts: application/json
- /2022-07/marketing-solutions/campaigns/search:
- post:
- description: Search for campaigns
- operationId: SearchCampaigns
+ patch:
+ description: Patch Category Bids for one or more Categories in a single request.
+ Partial success policy is followed.
+ operationId: PatchCategoryBidList
+ parameters:
+ - description: Id of the Ad Set
+ explode: false
+ in: path
+ name: ad-set-id
+ required: true
+ schema:
+ type: string
+ style: simple
requestBody:
content:
application/json-patch+json:
schema:
- $ref: '#/components/schemas/CampaignSearchRequest'
+ $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest'
application/json:
schema:
- $ref: '#/components/schemas/CampaignSearchRequest'
+ $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest'
text/json:
schema:
- $ref: '#/components/schemas/CampaignSearchRequest'
+ $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest'
application/*+json:
schema:
- $ref: '#/components/schemas/CampaignSearchRequest'
- description: filters on campaigns
- x-bodyName: request
+ $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest'
+ x-bodyName: categoryBidsToUpdate
responses:
"200":
content:
text/plain:
schema:
- $ref: '#/components/schemas/CampaignListResponse'
+ $ref: '#/components/schemas/PatchAdSetCategoryBidResultListResponse'
application/json:
schema:
- $ref: '#/components/schemas/CampaignListResponse'
+ $ref: '#/components/schemas/PatchAdSetCategoryBidResultListResponse'
text/json:
schema:
- $ref: '#/components/schemas/CampaignListResponse'
- description: data for the campaigns
+ $ref: '#/components/schemas/PatchAdSetCategoryBidResultListResponse'
+ description: List of updated Category Bids for given Categories associated
+ to an Ad Set.
"400":
content:
text/plain: {}
@@ -756,55 +731,6 @@ paths:
application/json: {}
text/json: {}
description: The API client is not properly authenticated.
- "403":
- content:
- text/plain: {}
- application/json: {}
- text/json: {}
- description: Forbidden
- tags:
- - Campaign
- x-content-type: application/json-patch+json
- x-accepts: application/json
- /2022-07/marketing-solutions/campaigns:
- patch:
- description: Patch a list of Campaigns.
- operationId: PatchCampaigns
- requestBody:
- content:
- application/json-patch+json:
- schema:
- $ref: '#/components/schemas/PatchCampaignListRequest'
- application/json:
- schema:
- $ref: '#/components/schemas/PatchCampaignListRequest'
- text/json:
- schema:
- $ref: '#/components/schemas/PatchCampaignListRequest'
- application/*+json:
- schema:
- $ref: '#/components/schemas/PatchCampaignListRequest'
- description: List of campaigns to patch.
- x-bodyName: request
- responses:
- "200":
- content:
- text/plain:
- schema:
- $ref: '#/components/schemas/PatchResultCampaignListResponse'
- application/json:
- schema:
- $ref: '#/components/schemas/PatchResultCampaignListResponse'
- text/json:
- schema:
- $ref: '#/components/schemas/PatchResultCampaignListResponse'
- description: List of patched campaigns.
- "401":
- content:
- text/plain: {}
- application/json: {}
- text/json: {}
- description: The API client is not properly authenticated.
"403":
content:
text/plain: {}
@@ -931,16 +857,15 @@ paths:
- Campaign
x-content-type: application/json-patch+json
x-accepts: application/json
- /2022-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids:
+ /2022-07/marketing-solutions/ad-sets/{adSetId}:
get:
- description: Get the Category Bids for all valid Categories associated to an
- Ad Set
- operationId: GetCategoryBidList
+ description: Get the data for the specified ad set
+ operationId: GetAdSet
parameters:
- - description: Id of the Ad Set
+ - description: Id of the ad set
explode: false
in: path
- name: ad-set-id
+ name: adSetId
required: true
schema:
type: string
@@ -950,21 +875,14 @@ paths:
content:
text/plain:
schema:
- $ref: '#/components/schemas/AdSetCategoryBidListResponse'
+ $ref: '#/components/schemas/ResponseReadAdSet'
application/json:
schema:
- $ref: '#/components/schemas/AdSetCategoryBidListResponse'
+ $ref: '#/components/schemas/ResponseReadAdSet'
text/json:
schema:
- $ref: '#/components/schemas/AdSetCategoryBidListResponse'
- description: List of Category Bids for all valid Categories associated to
- an Ad Set.
- "400":
- content:
- text/plain: {}
- application/json: {}
- text/json: {}
- description: Bad Request
+ $ref: '#/components/schemas/ResponseReadAdSet'
+ description: data for the ad set
"401":
content:
text/plain: {}
@@ -981,54 +899,39 @@ paths:
tags:
- Campaign
x-accepts: application/json
+ /2022-07/marketing-solutions/campaigns:
patch:
- description: Patch Category Bids for one or more Categories in a single request.
- Partial success policy is followed.
- operationId: PatchCategoryBidList
- parameters:
- - description: Id of the Ad Set
- explode: false
- in: path
- name: ad-set-id
- required: true
- schema:
- type: string
- style: simple
+ description: Patch a list of Campaigns.
+ operationId: PatchCampaigns
requestBody:
content:
application/json-patch+json:
schema:
- $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest'
+ $ref: '#/components/schemas/PatchCampaignListRequest'
application/json:
schema:
- $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest'
+ $ref: '#/components/schemas/PatchCampaignListRequest'
text/json:
schema:
- $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest'
+ $ref: '#/components/schemas/PatchCampaignListRequest'
application/*+json:
schema:
- $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest'
- x-bodyName: categoryBidsToUpdate
+ $ref: '#/components/schemas/PatchCampaignListRequest'
+ description: List of campaigns to patch.
+ x-bodyName: request
responses:
"200":
content:
text/plain:
schema:
- $ref: '#/components/schemas/PatchAdSetCategoryBidResultListResponse'
+ $ref: '#/components/schemas/PatchResultCampaignListResponse'
application/json:
schema:
- $ref: '#/components/schemas/PatchAdSetCategoryBidResultListResponse'
+ $ref: '#/components/schemas/PatchResultCampaignListResponse'
text/json:
schema:
- $ref: '#/components/schemas/PatchAdSetCategoryBidResultListResponse'
- description: List of updated Category Bids for given Categories associated
- to an Ad Set.
- "400":
- content:
- text/plain: {}
- application/json: {}
- text/json: {}
- description: Bad Request
+ $ref: '#/components/schemas/PatchResultCampaignListResponse'
+ description: List of patched campaigns.
"401":
content:
text/plain: {}
@@ -1046,164 +949,153 @@ paths:
- Campaign
x-content-type: application/json-patch+json
x-accepts: application/json
- /2022-07/statistics/report:
+ /2022-07/marketing-solutions/campaigns/search:
post:
- description: "This Statistics endpoint provides adset related data. It is an\
- \ upgrade of our previous Statistics endpoint, and includes new metrics and\
- \ customization capabilities."
- operationId: GetAdsetReport
+ description: Search for campaigns
+ operationId: SearchCampaigns
requestBody:
content:
application/json-patch+json:
schema:
- $ref: '#/components/schemas/StatisticsReportQueryMessage'
+ $ref: '#/components/schemas/CampaignSearchRequest'
application/json:
schema:
- $ref: '#/components/schemas/StatisticsReportQueryMessage'
+ $ref: '#/components/schemas/CampaignSearchRequest'
text/json:
schema:
- $ref: '#/components/schemas/StatisticsReportQueryMessage'
+ $ref: '#/components/schemas/CampaignSearchRequest'
application/*+json:
schema:
- $ref: '#/components/schemas/StatisticsReportQueryMessage'
- x-bodyName: reportQuery
+ $ref: '#/components/schemas/CampaignSearchRequest'
+ description: filters on campaigns
+ x-bodyName: request
responses:
"200":
content:
text/plain:
schema:
- format: byte
- type: string
+ $ref: '#/components/schemas/CampaignListResponse'
application/json:
schema:
- format: byte
- type: string
+ $ref: '#/components/schemas/CampaignListResponse'
text/json:
schema:
- format: byte
- type: string
- text/csv:
- schema:
- format: byte
- type: string
- text/xml:
- schema:
- format: byte
- type: string
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
- schema:
- format: byte
- type: string
- description: Success
+ $ref: '#/components/schemas/CampaignListResponse'
+ description: data for the campaigns
"400":
content:
- application/json:
- example:
- errors:
- - traceId: b7888125-dddb-c94e-9240-eb930c4ea146
- traceIdentifier: 1234e1717d88aa8a
- type: validation
- code: required-field
- instance: /report
- title: Start date and end date are required.
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- text/plain:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- text/json:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- text/csv:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- text/xml:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
+ text/plain: {}
+ application/json: {}
+ text/json: {}
description: Bad Request
+ "401":
+ content:
+ text/plain: {}
+ application/json: {}
+ text/json: {}
+ description: The API client is not properly authenticated.
"403":
content:
- application/json:
- example:
- errors:
- - traceId: b7888125-dddb-c94e-9240-eb930c4ea146
- traceIdentifier: 1234e1717d88aa8a
- type: access-control
- code: insufficient-advertiser-permission
- instance: /report
- title: Insufficient advertiser permission.
- detail: You do not have the rights to report on this advertiser.
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- text/plain:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- text/json:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- text/csv:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- text/xml:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
+ text/plain: {}
+ application/json: {}
+ text/json: {}
description: Forbidden
tags:
- - Analytics
+ - Campaign
x-content-type: application/json-patch+json
x-accepts: application/json
- /2022-07/transactions/report:
- post:
- description: This Transactions endpoint provides transactions id related data.
- operationId: GetTransactionsReport
- requestBody:
- content:
- application/json-patch+json:
- schema:
- $ref: '#/components/schemas/TransactionsReportQueryDataMessage'
- application/json:
- schema:
- $ref: '#/components/schemas/TransactionsReportQueryDataMessage'
- text/json:
- schema:
- $ref: '#/components/schemas/TransactionsReportQueryDataMessage'
- application/*+json:
- schema:
- $ref: '#/components/schemas/TransactionsReportQueryDataMessage'
- x-bodyName: dataMessage
- responses:
+ /2022-07/marketing-solutions/campaigns/{campaign-id}:
+ get:
+ description: Get the data for the specified campaign
+ operationId: GetCampaign
+ parameters:
+ - description: Id of the campaign
+ explode: false
+ in: path
+ name: campaign-id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
"200":
content:
text/plain:
schema:
- format: byte
- type: string
+ $ref: '#/components/schemas/CampaignResponse'
application/json:
schema:
- format: byte
- type: string
+ $ref: '#/components/schemas/CampaignResponse'
text/json:
schema:
- format: byte
- type: string
- text/csv:
+ $ref: '#/components/schemas/CampaignResponse'
+ description: data for the campaign
+ "401":
+ content:
+ text/plain: {}
+ application/json: {}
+ text/json: {}
+ description: The API client is not properly authenticated.
+ "403":
+ content:
+ text/plain: {}
+ application/json: {}
+ text/json: {}
+ description: The API client is not authorized to access this resource or
+ the resource does not exist.
+ tags:
+ - Campaign
+ x-accepts: application/json
+ /2022-07/log-level/advertisers/{advertiser-id}/report:
+ post:
+ description: This Statistics endpoint provides publisher data.
+ operationId: GetTransparencyReport
+ parameters:
+ - description: The advertiser id to fetch the transparency data.
+ explode: false
+ in: path
+ name: advertiser-id
+ required: true
+ schema:
+ format: int32
+ type: integer
+ style: simple
+ requestBody:
+ content:
+ application/json-patch+json:
+ schema:
+ $ref: '#/components/schemas/TransparencyQueryMessage'
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TransparencyQueryMessage'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/TransparencyQueryMessage'
+ application/*+json:
+ schema:
+ $ref: '#/components/schemas/TransparencyQueryMessage'
+ x-bodyName: queryMessage
+ responses:
+ "200":
+ content:
+ application/json:
+ example:
+ data:
+ - type: TransparencyReport
+ attributes:
+ advertiserId: "123"
+ tokenValidUntil: 2021-01-31T00:00:00.0000000+00:00
+ files:
+ - fileName: report.csv
+ url: https://www.example.com/transparency
schema:
- format: byte
- type: string
- text/xml:
+ $ref: '#/components/schemas/TransparencyReportDataMessage'
+ text/plain:
schema:
- format: byte
- type: string
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
+ $ref: '#/components/schemas/TransparencyReportDataMessage'
+ text/json:
schema:
- format: byte
- type: string
+ $ref: '#/components/schemas/TransparencyReportDataMessage'
description: Success
"400":
content:
@@ -1224,15 +1116,6 @@ paths:
text/json:
schema:
$ref: '#/components/schemas/ProblemsDetails'
- text/csv:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- text/xml:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
- schema:
- $ref: '#/components/schemas/ProblemsDetails'
description: Bad Request
"403":
content:
@@ -1254,13 +1137,87 @@ paths:
text/json:
schema:
$ref: '#/components/schemas/ProblemsDetails'
- text/csv:
+ description: Forbidden
+ tags:
+ - Analytics
+ x-content-type: application/json-patch+json
+ x-accepts: application/json
+ /2022-07/placements/report:
+ post:
+ description: "Your ads are placed in different domains (publishers) and environments\
+ \ (websites and apps). Thanks to the placements endpoint, you can analyse\
+ \ the performances for each publisher, comparing displays, clicks and sales\
+ \ generated."
+ operationId: GetPlacementsReport
+ requestBody:
+ content:
+ application/json-patch+json:
+ schema:
+ $ref: '#/components/schemas/PlacementsReportQueryDataMessage'
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PlacementsReportQueryDataMessage'
+ text/json:
+ schema:
+ $ref: '#/components/schemas/PlacementsReportQueryDataMessage'
+ application/*+json:
+ schema:
+ $ref: '#/components/schemas/PlacementsReportQueryDataMessage'
+ x-bodyName: dataMessage
+ responses:
+ "200":
+ content:
+ text/plain:
+ schema:
+ format: byte
+ type: string
+ application/json:
+ schema:
+ format: byte
+ type: string
+ text/json:
+ schema:
+ format: byte
+ type: string
+ description: Success
+ "400":
+ content:
+ application/json:
+ example:
+ errors:
+ - traceId: b7888125-dddb-c94e-9240-eb930c4ea146
+ traceIdentifier: 1234e1717d88aa8a
+ type: validation
+ code: required-field
+ instance: /report
+ title: Start date and end date are required.
schema:
$ref: '#/components/schemas/ProblemsDetails'
- text/xml:
+ text/plain:
schema:
$ref: '#/components/schemas/ProblemsDetails'
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
+ text/json:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ description: Bad Request
+ "403":
+ content:
+ application/json:
+ example:
+ errors:
+ - traceId: b7888125-dddb-c94e-9240-eb930c4ea146
+ traceIdentifier: 1234e1717d88aa8a
+ type: access-control
+ code: insufficient-advertiser-permission
+ instance: /report
+ title: Insufficient advertiser permission.
+ detail: You do not have the rights to report on this advertiser.
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ text/plain:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ text/json:
schema:
$ref: '#/components/schemas/ProblemsDetails'
description: Forbidden
@@ -1268,56 +1225,54 @@ paths:
- Analytics
x-content-type: application/json-patch+json
x-accepts: application/json
- /2022-07/log-level/advertisers/{advertiser-id}/report:
+ /2022-07/statistics/report:
post:
- description: This Statistics endpoint provides publisher data.
- operationId: GetTransparencyReport
- parameters:
- - description: The advertiser id to fetch the transparency data.
- explode: false
- in: path
- name: advertiser-id
- required: true
- schema:
- format: int32
- type: integer
- style: simple
+ description: "This Statistics endpoint provides adset related data. It is an\
+ \ upgrade of our previous Statistics endpoint, and includes new metrics and\
+ \ customization capabilities."
+ operationId: GetAdsetReport
requestBody:
content:
application/json-patch+json:
schema:
- $ref: '#/components/schemas/TransparencyQueryMessage'
+ $ref: '#/components/schemas/StatisticsReportQueryMessage'
application/json:
schema:
- $ref: '#/components/schemas/TransparencyQueryMessage'
+ $ref: '#/components/schemas/StatisticsReportQueryMessage'
text/json:
schema:
- $ref: '#/components/schemas/TransparencyQueryMessage'
+ $ref: '#/components/schemas/StatisticsReportQueryMessage'
application/*+json:
schema:
- $ref: '#/components/schemas/TransparencyQueryMessage'
- x-bodyName: queryMessage
+ $ref: '#/components/schemas/StatisticsReportQueryMessage'
+ x-bodyName: reportQuery
responses:
"200":
content:
- application/json:
- example:
- data:
- - type: TransparencyReport
- attributes:
- advertiserId: "123"
- tokenValidUntil: 2021-01-31T00:00:00.0000000+00:00
- files:
- - fileName: report.csv
- url: https://www.example.com/transparency
- schema:
- $ref: '#/components/schemas/TransparencyReportDataMessage'
text/plain:
schema:
- $ref: '#/components/schemas/TransparencyReportDataMessage'
+ format: byte
+ type: string
+ application/json:
+ schema:
+ format: byte
+ type: string
text/json:
schema:
- $ref: '#/components/schemas/TransparencyReportDataMessage'
+ format: byte
+ type: string
+ text/csv:
+ schema:
+ format: byte
+ type: string
+ text/xml:
+ schema:
+ format: byte
+ type: string
+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
+ schema:
+ format: byte
+ type: string
description: Success
"400":
content:
@@ -1338,6 +1293,15 @@ paths:
text/json:
schema:
$ref: '#/components/schemas/ProblemsDetails'
+ text/csv:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
description: Bad Request
"403":
content:
@@ -1359,32 +1323,38 @@ paths:
text/json:
schema:
$ref: '#/components/schemas/ProblemsDetails'
+ text/csv:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
description: Forbidden
tags:
- Analytics
x-content-type: application/json-patch+json
x-accepts: application/json
- /2022-07/placements/report:
+ /2022-07/transactions/report:
post:
- description: "Your ads are placed in different domains (publishers) and environments\
- \ (websites and apps). Thanks to the placements endpoint, you can analyse\
- \ the performances for each publisher, comparing displays, clicks and sales\
- \ generated."
- operationId: GetPlacementsReport
+ description: This Transactions endpoint provides transactions id related data.
+ operationId: GetTransactionsReport
requestBody:
content:
application/json-patch+json:
schema:
- $ref: '#/components/schemas/PlacementsReportQueryDataMessage'
+ $ref: '#/components/schemas/TransactionsReportQueryDataMessage'
application/json:
schema:
- $ref: '#/components/schemas/PlacementsReportQueryDataMessage'
+ $ref: '#/components/schemas/TransactionsReportQueryDataMessage'
text/json:
schema:
- $ref: '#/components/schemas/PlacementsReportQueryDataMessage'
+ $ref: '#/components/schemas/TransactionsReportQueryDataMessage'
application/*+json:
schema:
- $ref: '#/components/schemas/PlacementsReportQueryDataMessage'
+ $ref: '#/components/schemas/TransactionsReportQueryDataMessage'
x-bodyName: dataMessage
responses:
"200":
@@ -1401,6 +1371,18 @@ paths:
schema:
format: byte
type: string
+ text/csv:
+ schema:
+ format: byte
+ type: string
+ text/xml:
+ schema:
+ format: byte
+ type: string
+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
+ schema:
+ format: byte
+ type: string
description: Success
"400":
content:
@@ -1421,6 +1403,15 @@ paths:
text/json:
schema:
$ref: '#/components/schemas/ProblemsDetails'
+ text/csv:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
description: Bad Request
"403":
content:
@@ -1442,6 +1433,15 @@ paths:
text/json:
schema:
$ref: '#/components/schemas/ProblemsDetails'
+ text/csv:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ text/xml:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
+ schema:
+ $ref: '#/components/schemas/ProblemsDetails'
description: Forbidden
tags:
- Analytics
@@ -1593,6 +1593,7 @@ components:
warnings:
items:
$ref: '#/components/schemas/AudienceWarning'
+ nullable: true
type: array
required:
- errors
@@ -1664,8 +1665,8 @@ components:
- errors
- warnings
type: object
- DeleteAudienceContactListResponse:
- description: Response of a contactlist deletion
+ DeleteAudienceResponse:
+ description: Response of an audience deletion
example:
data:
attributes:
@@ -1731,20 +1732,14 @@ components:
- errors
- warnings
type: object
- ModifyAudienceResponse:
- description: Parameters to modify an audience
+ ReplaceAudienceResponse:
+ description: Response of an audience replacement
example:
data:
attributes:
- nbValidIdentifiers: 6
- nbInvalidIdentifiers: 1
- sampleInvalidIdentifiers:
- - sampleInvalidIdentifiers
- - sampleInvalidIdentifiers
- contactListId: 0
- requestDate: 2000-01-23T04:56:07.000+00:00
- identifierType: identifierType
- operation: operation
+ name: name
+ description: description
+ id: id
type: type
warnings:
- traceId: traceId
@@ -1790,7 +1785,7 @@ components:
title: title
properties:
data:
- $ref: '#/components/schemas/ContactlistOperation'
+ $ref: '#/components/schemas/BasicAudienceDefinition'
errors:
items:
$ref: '#/components/schemas/AudienceError'
@@ -1804,8 +1799,8 @@ components:
- errors
- warnings
type: object
- DeleteAudienceResponse:
- description: Response of an audience deletion
+ DeleteAudienceContactListResponse:
+ description: Response of a contactlist deletion
example:
data:
attributes:
@@ -1871,14 +1866,20 @@ components:
- errors
- warnings
type: object
- ReplaceAudienceResponse:
- description: Response of an audience replacement
+ ModifyAudienceResponse:
+ description: Parameters to modify an audience
example:
data:
attributes:
- name: name
- description: description
- id: id
+ nbValidIdentifiers: 6
+ nbInvalidIdentifiers: 1
+ sampleInvalidIdentifiers:
+ - sampleInvalidIdentifiers
+ - sampleInvalidIdentifiers
+ contactListId: 0
+ requestDate: 2000-01-23T04:56:07.000+00:00
+ identifierType: identifierType
+ operation: operation
type: type
warnings:
- traceId: traceId
@@ -1924,7 +1925,7 @@ components:
title: title
properties:
data:
- $ref: '#/components/schemas/BasicAudienceDefinition'
+ $ref: '#/components/schemas/ContactlistOperation'
errors:
items:
$ref: '#/components/schemas/AudienceError'
@@ -1951,6 +1952,20 @@ components:
data:
$ref: '#/components/schemas/NewAudience'
type: object
+ ReplaceAudienceRequest:
+ description: Request to replace an audience
+ example:
+ data:
+ attributes:
+ name: name
+ description: description
+ type: Audience
+ properties:
+ data:
+ $ref: '#/components/schemas/ReplaceAudience'
+ required:
+ - data
+ type: object
ContactlistAmendmentRequest:
description: Request for a contactlist amendment
example:
@@ -1969,20 +1984,6 @@ components:
required:
- data
type: object
- ReplaceAudienceRequest:
- description: Request to replace an audience
- example:
- data:
- attributes:
- name: name
- description: description
- type: Audience
- properties:
- data:
- $ref: '#/components/schemas/ReplaceAudience'
- required:
- - data
- type: object
Audience:
description: Definition of an audience and all its information
example:
@@ -2030,6 +2031,7 @@ components:
traceId:
description: (REQUIRED) The Correlation ID provided by the Gateway. It is
also a unique identifier for this particular occurrence of the problem.
+ nullable: true
type: string
type:
description: (REQUIRED) The classification of the error
@@ -2053,20 +2055,24 @@ components:
title:
description: "(RECOMMENDED) A short, human-readable summary of the problem\
\ type"
+ nullable: true
type: string
detail:
description: (RECOMMENDED) A human-readable explanation specific to this
occurrence of the problem
+ nullable: true
type: string
source:
description: (OPTIONAL) A machine-readable structure to reference to the
exact location(s) causing the error(s)
+ nullable: true
type: object
stackTrace:
description: (NEVER IN PRODUCTION) A human-readable stacktrace produced
by the implementation technology
items:
type: string
+ nullable: true
type: array
required:
- code
@@ -2090,6 +2096,7 @@ components:
traceId:
description: (REQUIRED) The Correlation ID provided by the Gateway. It is
also a unique identifier for this particular occurrence of the problem.
+ nullable: true
type: string
type:
description: (REQUIRED) The classification of the error
@@ -2113,6 +2120,7 @@ components:
title:
description: "(RECOMMENDED) A short, human-readable summary of the problem\
\ type"
+ nullable: true
type: string
detail:
description: (REQUIRED) A human-readable explanation specific to this occurrence
@@ -2121,12 +2129,14 @@ components:
source:
description: (OPTIONAL) A machine-readable structure to reference to the
exact location(s) causing the error(s)
+ nullable: true
type: object
stackTrace:
description: (NEVER IN PRODUCTION) A human-readable stacktrace produced
by the implementation technology
items:
type: string
+ nullable: true
type: array
required:
- code
@@ -2185,7 +2195,25 @@ components:
attributes:
name: name
description: description
- advertiserId: advertiserId
+ advertiserId: advertiserId
+ type: Audience
+ properties:
+ type:
+ description: the name of the entity type
+ example: Audience
+ type: string
+ attributes:
+ $ref: '#/components/schemas/NewAudience_attributes'
+ required:
+ - attributes
+ - type
+ type: object
+ ReplaceAudience:
+ description: Parameters required to replace an audience
+ example:
+ attributes:
+ name: name
+ description: description
type: Audience
properties:
type:
@@ -2193,7 +2221,7 @@ components:
example: Audience
type: string
attributes:
- $ref: '#/components/schemas/NewAudience_attributes'
+ $ref: '#/components/schemas/AudienceNameDescription'
required:
- attributes
- type
@@ -2220,24 +2248,6 @@ components:
- attributes
- type
type: object
- ReplaceAudience:
- description: Parameters required to replace an audience
- example:
- attributes:
- name: name
- description: description
- type: Audience
- properties:
- type:
- description: the name of the entity type
- example: Audience
- type: string
- attributes:
- $ref: '#/components/schemas/AudienceNameDescription'
- required:
- - attributes
- - type
- type: object
AudienceNameDescription:
description: Description of an audience with name and detailed description
example:
@@ -2246,9 +2256,11 @@ components:
properties:
name:
description: The name to designate the audience by
+ nullable: true
type: string
description:
description: The description of the audience
+ nullable: true
type: string
type: object
ApplicationSummaryModelResponse:
@@ -2310,12 +2322,14 @@ components:
warnings:
items:
$ref: '#/components/schemas/CommonProblem'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/CommonProblem'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
@@ -2332,6 +2346,7 @@ components:
type: type
properties:
type:
+ nullable: true
type: string
attributes:
$ref: '#/components/schemas/ApplicationSummaryModel'
@@ -2352,10 +2367,12 @@ components:
properties:
traceId:
description: The request correlation ID this problem comes from.
+ nullable: true
type: string
traceIdentifier:
description: "The request correlation ID this problem comes from. (deprecated,\
\ use traceId instead)"
+ nullable: true
type: string
type:
description: The problem's category.
@@ -2368,27 +2385,34 @@ components:
- deprecation
- quota
- validation
+ nullable: true
type: string
code:
description: "A machine-readable error code, expressed as a string value."
+ nullable: true
type: string
instance:
description: A URI that identifies the specific occurrence of the problem.
+ nullable: true
type: string
title:
description: A short human-readable description of the problem type
+ nullable: true
type: string
detail:
description: A human-readable explanation specific to this occurrence of
the problem
+ nullable: true
type: string
source:
additionalProperties:
type: string
description: A machine-readable structure to reference to the exact location(s)
causing the error(s)
+ nullable: true
type: object
stackTrace:
+ nullable: true
type: string
type: object
ApplicationSummaryModel:
@@ -2402,70 +2426,28 @@ components:
properties:
applicationId:
format: int32
+ nullable: true
type: integer
name:
+ nullable: true
type: string
organizationId:
format: int32
+ nullable: true
type: integer
description:
+ nullable: true
type: string
criteoService:
+ nullable: true
type: string
type: object
- ResponseReadAdSet:
+ ResponseAdSetId:
description: output resource
example:
data:
- attributes:
- schedule:
- endDate:
- value: 2000-01-23T04:56:07.000+00:00
- activationStatus: "on"
- startDate:
- value: 2000-01-23T04:56:07.000+00:00
- deliveryStatus: draft
- targeting:
- geoLocation:
- zipCodes:
- value: null
- countries:
- value: null
- subdivisions:
- value: null
- frequencyCapping:
- maximumImpressions: 6
- frequency: hourly
- deliveryLimitations:
- operatingSystems:
- - android
- - android
- environments:
- - web
- - web
- devices:
- - other
- - other
- bidding:
- bidStrategy: actions
- bidAmount:
- value: 0.8008281904610115
- costController: COS
- campaignId: campaignId
- name: name
- datasetId: datasetId
- mediaType: display
- destinationEnvironment: undefined
- advertiserId: advertiserId
- budget:
- budgetDeliverySmoothing: accelerated
- budgetDeliveryWeek: undefined
- budgetAmount:
- value: 0.8008281904610115
- budgetRenewal: undefined
- budgetStrategy: capped
id: id
- type: ReadAdSet
+ type: AdSetId
warnings:
- traceId: traceId
traceIdentifier: traceIdentifier
@@ -2510,16 +2492,18 @@ components:
title: title
properties:
data:
- $ref: '#/components/schemas/ReadModelReadAdSet'
+ $ref: '#/components/schemas/ReadModelAdSetId'
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
@@ -2672,27 +2656,32 @@ components:
data:
items:
$ref: '#/components/schemas/ReadModelReadAdSet'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- ResponseAdSetId:
- description: output resource
+ ResponsesAdSetId:
+ description: List of output resources
example:
data:
- id: id
+ - id: id
+ type: AdSetId
+ - id: id
type: AdSetId
warnings:
- traceId: traceId
@@ -2738,28 +2727,41 @@ components:
title: title
properties:
data:
- $ref: '#/components/schemas/ReadModelAdSetId'
+ items:
+ $ref: '#/components/schemas/ReadModelAdSetId'
+ nullable: true
+ readOnly: true
+ type: array
+ uniqueItems: false
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- ResponsesAdSetId:
- description: List of output resources
+ AdSetCategoryBidListResponse:
+ description: Data model for a list of response resources
example:
data:
- - id: id
- type: AdSetId
- - id: id
- type: AdSetId
+ - attributes:
+ bidAmount: 0.8008281904610115
+ categoryName: categoryName
+ id: id
+ type: AdSetCategoryBid
+ - attributes:
+ bidAmount: 0.8008281904610115
+ categoryName: categoryName
+ id: id
+ type: AdSetCategoryBid
warnings:
- traceId: traceId
traceIdentifier: traceIdentifier
@@ -2805,39 +2807,33 @@ components:
properties:
data:
items:
- $ref: '#/components/schemas/ReadModelAdSetId'
- readOnly: true
+ $ref: '#/components/schemas/AdSetCategoryBidResource'
+ nullable: true
type: array
uniqueItems: false
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- CampaignResponse:
- description: output resource
+ PatchAdSetCategoryBidResultListResponse:
+ description: Data model for a list of response resources
example:
data:
- attributes:
- goal: Unspecified
- name: name
- spendLimit:
- spendLimitRenewal: undefined
- spendLimitAmount:
- value: 0.8008281904610115
- spendLimitType: capped
- advertiserId: advertiserId
- objective: objective
- id: id
- type: Campaign
+ - id: id
+ type: AdSetCategoryBid
+ - id: id
+ type: AdSetCategoryBid
warnings:
- traceId: traceId
traceIdentifier: traceIdentifier
@@ -2882,48 +2878,40 @@ components:
title: title
properties:
data:
- $ref: '#/components/schemas/CampaignReadResource'
+ items:
+ $ref: '#/components/schemas/PatchAdSetCategoryBidResultResource'
+ nullable: true
+ type: array
+ uniqueItems: false
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- CampaignListResponse:
- description: List of output resources
+ AdSetDisplayMultiplierListResponse:
+ description: Data model for a list of response resources
example:
data:
- attributes:
- goal: Unspecified
- name: name
- spendLimit:
- spendLimitRenewal: undefined
- spendLimitAmount:
- value: 0.8008281904610115
- spendLimitType: capped
- advertiserId: advertiserId
- objective: objective
+ displayMultiplier: 0.8008281904610115
+ categoryName: categoryName
id: id
- type: Campaign
+ type: AdSetDisplayMultiplier
- attributes:
- goal: Unspecified
- name: name
- spendLimit:
- spendLimitRenewal: undefined
- spendLimitAmount:
- value: 0.8008281904610115
- spendLimitType: capped
- advertiserId: advertiserId
- objective: objective
+ displayMultiplier: 0.8008281904610115
+ categoryName: categoryName
id: id
- type: Campaign
+ type: AdSetDisplayMultiplier
warnings:
- traceId: traceId
traceIdentifier: traceIdentifier
@@ -2969,31 +2957,33 @@ components:
properties:
data:
items:
- $ref: '#/components/schemas/CampaignReadResource'
- readOnly: true
+ $ref: '#/components/schemas/AdSetDisplayMultiplierResource'
+ nullable: true
type: array
uniqueItems: false
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- PatchResultCampaignListResponse:
- description: List of output resources
+ PatchAdSetDisplayMultiplierResultListResponse:
+ description: Data model for a list of response resources
example:
data:
- id: id
- type: Campaign
+ type: AdSetDisplayMultiplier
- id: id
- type: Campaign
+ type: AdSetDisplayMultiplier
warnings:
- traceId: traceId
traceIdentifier: traceIdentifier
@@ -3039,37 +3029,78 @@ components:
properties:
data:
items:
- $ref: '#/components/schemas/PatchResultCampaignReadResource'
- readOnly: true
+ $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultResource'
+ nullable: true
type: array
uniqueItems: false
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- AdSetDisplayMultiplierListResponse:
- description: Data model for a list of response resources
+ ResponseReadAdSet:
+ description: output resource
example:
data:
- - attributes:
- displayMultiplier: 0.8008281904610115
- categoryName: categoryName
- id: id
- type: AdSetDisplayMultiplier
- - attributes:
- displayMultiplier: 0.8008281904610115
- categoryName: categoryName
+ attributes:
+ schedule:
+ endDate:
+ value: 2000-01-23T04:56:07.000+00:00
+ activationStatus: "on"
+ startDate:
+ value: 2000-01-23T04:56:07.000+00:00
+ deliveryStatus: draft
+ targeting:
+ geoLocation:
+ zipCodes:
+ value: null
+ countries:
+ value: null
+ subdivisions:
+ value: null
+ frequencyCapping:
+ maximumImpressions: 6
+ frequency: hourly
+ deliveryLimitations:
+ operatingSystems:
+ - android
+ - android
+ environments:
+ - web
+ - web
+ devices:
+ - other
+ - other
+ bidding:
+ bidStrategy: actions
+ bidAmount:
+ value: 0.8008281904610115
+ costController: COS
+ campaignId: campaignId
+ name: name
+ datasetId: datasetId
+ mediaType: display
+ destinationEnvironment: undefined
+ advertiserId: advertiserId
+ budget:
+ budgetDeliverySmoothing: accelerated
+ budgetDeliveryWeek: undefined
+ budgetAmount:
+ value: 0.8008281904610115
+ budgetRenewal: undefined
+ budgetStrategy: capped
id: id
- type: AdSetDisplayMultiplier
+ type: ReadAdSet
warnings:
- traceId: traceId
traceIdentifier: traceIdentifier
@@ -3114,31 +3145,30 @@ components:
title: title
properties:
data:
- items:
- $ref: '#/components/schemas/AdSetDisplayMultiplierResource'
- type: array
- uniqueItems: false
+ $ref: '#/components/schemas/ReadModelReadAdSet'
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- PatchAdSetDisplayMultiplierResultListResponse:
- description: Data model for a list of response resources
+ PatchResultCampaignListResponse:
+ description: List of output resources
example:
data:
- id: id
- type: AdSetDisplayMultiplier
+ type: Campaign
- id: id
- type: AdSetDisplayMultiplier
+ type: Campaign
warnings:
- traceId: traceId
traceIdentifier: traceIdentifier
@@ -3184,36 +3214,54 @@ components:
properties:
data:
items:
- $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultResource'
+ $ref: '#/components/schemas/PatchResultCampaignReadResource'
+ nullable: true
+ readOnly: true
type: array
uniqueItems: false
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- AdSetCategoryBidListResponse:
- description: Data model for a list of response resources
+ CampaignListResponse:
+ description: List of output resources
example:
data:
- attributes:
- bidAmount: 0.8008281904610115
- categoryName: categoryName
+ goal: Unspecified
+ name: name
+ spendLimit:
+ spendLimitRenewal: undefined
+ spendLimitAmount:
+ value: 0.8008281904610115
+ spendLimitType: capped
+ advertiserId: advertiserId
+ objective: objective
id: id
- type: AdSetCategoryBid
+ type: Campaign
- attributes:
- bidAmount: 0.8008281904610115
- categoryName: categoryName
+ goal: Unspecified
+ name: name
+ spendLimit:
+ spendLimitRenewal: undefined
+ spendLimitAmount:
+ value: 0.8008281904610115
+ spendLimitType: capped
+ advertiserId: advertiserId
+ objective: objective
id: id
- type: AdSetCategoryBid
+ type: Campaign
warnings:
- traceId: traceId
traceIdentifier: traceIdentifier
@@ -3259,30 +3307,42 @@ components:
properties:
data:
items:
- $ref: '#/components/schemas/AdSetCategoryBidResource'
+ $ref: '#/components/schemas/CampaignReadResource'
+ nullable: true
+ readOnly: true
type: array
uniqueItems: false
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- PatchAdSetCategoryBidResultListResponse:
- description: Data model for a list of response resources
+ CampaignResponse:
+ description: output resource
example:
data:
- - id: id
- type: AdSetCategoryBid
- - id: id
- type: AdSetCategoryBid
+ attributes:
+ goal: Unspecified
+ name: name
+ spendLimit:
+ spendLimitRenewal: undefined
+ spendLimitAmount:
+ value: 0.8008281904610115
+ spendLimitType: capped
+ advertiserId: advertiserId
+ objective: objective
+ id: id
+ type: Campaign
warnings:
- traceId: traceId
traceIdentifier: traceIdentifier
@@ -3327,40 +3387,22 @@ components:
title: title
properties:
data:
- items:
- $ref: '#/components/schemas/PatchAdSetCategoryBidResultResource'
- type: array
- uniqueItems: false
+ $ref: '#/components/schemas/CampaignReadResource'
warnings:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- RequestAdSetSearch:
- description: request payload of the search endpoint
- example:
- filters:
- adSetIds:
- - adSetIds
- - adSetIds
- advertiserIds:
- - advertiserIds
- - advertiserIds
- campaignIds:
- - campaignIds
- - campaignIds
- properties:
- filters:
- $ref: '#/components/schemas/AdSetSearchFilter'
- type: object
RequestsPatchAdSet:
description: List of input resources
example:
@@ -3449,9 +3491,27 @@ components:
data:
items:
$ref: '#/components/schemas/WriteModelPatchAdSet'
+ nullable: true
type: array
uniqueItems: false
type: object
+ RequestAdSetSearch:
+ description: request payload of the search endpoint
+ example:
+ filters:
+ adSetIds:
+ - adSetIds
+ - adSetIds
+ advertiserIds:
+ - advertiserIds
+ - advertiserIds
+ campaignIds:
+ - campaignIds
+ - campaignIds
+ properties:
+ filters:
+ $ref: '#/components/schemas/AdSetSearchFilter'
+ type: object
RequestsAdSetId:
description: List of input resources
example:
@@ -3464,47 +3524,27 @@ components:
data:
items:
$ref: '#/components/schemas/WriteModelAdSetId'
+ nullable: true
type: array
uniqueItems: false
type: object
- CampaignSearchRequest:
- description: request payload of the search endpoint
- example:
- filters:
- advertiserIds:
- - advertiserIds
- - advertiserIds
- campaignIds:
- - campaignIds
- - campaignIds
- properties:
- filters:
- $ref: '#/components/schemas/CampaignSearchFilters'
- type: object
- PatchCampaignListRequest:
- description: List of input resources
+ PatchAdSetCategoryBidListRequest:
+ description: Data model for a list of input resources
example:
data:
- attributes:
- spendLimit:
- spendLimitRenewal: undefined
- spendLimitAmount:
- value: 0.8008281904610115
- spendLimitType: capped
+ bidAmount: 0.8008281904610115
id: id
- type: Campaign
+ type: AdSetCategoryBid
- attributes:
- spendLimit:
- spendLimitRenewal: undefined
- spendLimitAmount:
- value: 0.8008281904610115
- spendLimitType: capped
+ bidAmount: 0.8008281904610115
id: id
- type: Campaign
+ type: AdSetCategoryBid
properties:
data:
items:
- $ref: '#/components/schemas/PatchCampaignWriteResource'
+ $ref: '#/components/schemas/PatchAdSetCategoryBidResource'
+ nullable: true
type: array
uniqueItems: false
type: object
@@ -3524,91 +3564,68 @@ components:
data:
items:
$ref: '#/components/schemas/PatchAdSetDisplayMultiplierResource'
+ nullable: true
type: array
uniqueItems: false
type: object
- PatchAdSetCategoryBidListRequest:
- description: Data model for a list of input resources
+ PatchCampaignListRequest:
+ description: List of input resources
example:
data:
- attributes:
- bidAmount: 0.8008281904610115
+ spendLimit:
+ spendLimitRenewal: undefined
+ spendLimitAmount:
+ value: 0.8008281904610115
+ spendLimitType: capped
id: id
- type: AdSetCategoryBid
+ type: Campaign
- attributes:
- bidAmount: 0.8008281904610115
+ spendLimit:
+ spendLimitRenewal: undefined
+ spendLimitAmount:
+ value: 0.8008281904610115
+ spendLimitType: capped
id: id
- type: AdSetCategoryBid
+ type: Campaign
properties:
data:
items:
- $ref: '#/components/schemas/PatchAdSetCategoryBidResource'
+ $ref: '#/components/schemas/PatchCampaignWriteResource'
+ nullable: true
type: array
uniqueItems: false
type: object
- ReadModelReadAdSet:
- description: read model data for resources
- example:
- attributes:
- schedule:
- endDate:
- value: 2000-01-23T04:56:07.000+00:00
- activationStatus: "on"
- startDate:
- value: 2000-01-23T04:56:07.000+00:00
- deliveryStatus: draft
- targeting:
- geoLocation:
- zipCodes:
- value: null
- countries:
- value: null
- subdivisions:
- value: null
- frequencyCapping:
- maximumImpressions: 6
- frequency: hourly
- deliveryLimitations:
- operatingSystems:
- - android
- - android
- environments:
- - web
- - web
- devices:
- - other
- - other
- bidding:
- bidStrategy: actions
- bidAmount:
- value: 0.8008281904610115
- costController: COS
- campaignId: campaignId
- name: name
- datasetId: datasetId
- mediaType: display
- destinationEnvironment: undefined
- advertiserId: advertiserId
- budget:
- budgetDeliverySmoothing: accelerated
- budgetDeliveryWeek: undefined
- budgetAmount:
- value: 0.8008281904610115
- budgetRenewal: undefined
- budgetStrategy: capped
+ CampaignSearchRequest:
+ description: request payload of the search endpoint
+ example:
+ filters:
+ advertiserIds:
+ - advertiserIds
+ - advertiserIds
+ campaignIds:
+ - campaignIds
+ - campaignIds
+ properties:
+ filters:
+ $ref: '#/components/schemas/CampaignSearchFilters'
+ type: object
+ ReadModelAdSetId:
+ description: read model data for resources
+ example:
id: id
- type: ReadAdSet
+ type: AdSetId
properties:
id:
description: Id of the entity
+ nullable: true
readOnly: true
type: string
type:
- example: ReadAdSet
+ example: AdSetId
+ nullable: true
readOnly: true
type: string
- attributes:
- $ref: '#/components/schemas/ReadAdSet'
type: object
ProblemDetails:
description: Data model for common error or warning
@@ -3626,10 +3643,12 @@ components:
properties:
traceId:
description: The request correlation ID this problem comes from.
+ nullable: true
type: string
traceIdentifier:
description: "The request correlation ID this problem comes from. (deprecated,\
\ use traceId instead)"
+ nullable: true
type: string
type:
enum:
@@ -3641,77 +3660,130 @@ components:
- deprecation
- quota
- validation
+ nullable: true
type: string
code:
+ nullable: true
type: string
instance:
+ nullable: true
type: string
title:
+ nullable: true
type: string
detail:
+ nullable: true
type: string
source:
additionalProperties:
type: string
+ nullable: true
type: object
stackTrace:
+ nullable: true
type: string
type: object
- ReadModelAdSetId:
+ ReadModelReadAdSet:
description: read model data for resources
example:
+ attributes:
+ schedule:
+ endDate:
+ value: 2000-01-23T04:56:07.000+00:00
+ activationStatus: "on"
+ startDate:
+ value: 2000-01-23T04:56:07.000+00:00
+ deliveryStatus: draft
+ targeting:
+ geoLocation:
+ zipCodes:
+ value: null
+ countries:
+ value: null
+ subdivisions:
+ value: null
+ frequencyCapping:
+ maximumImpressions: 6
+ frequency: hourly
+ deliveryLimitations:
+ operatingSystems:
+ - android
+ - android
+ environments:
+ - web
+ - web
+ devices:
+ - other
+ - other
+ bidding:
+ bidStrategy: actions
+ bidAmount:
+ value: 0.8008281904610115
+ costController: COS
+ campaignId: campaignId
+ name: name
+ datasetId: datasetId
+ mediaType: display
+ destinationEnvironment: undefined
+ advertiserId: advertiserId
+ budget:
+ budgetDeliverySmoothing: accelerated
+ budgetDeliveryWeek: undefined
+ budgetAmount:
+ value: 0.8008281904610115
+ budgetRenewal: undefined
+ budgetStrategy: capped
id: id
- type: AdSetId
+ type: ReadAdSet
properties:
id:
description: Id of the entity
+ nullable: true
readOnly: true
type: string
type:
- example: AdSetId
+ example: ReadAdSet
+ nullable: true
readOnly: true
type: string
+ attributes:
+ $ref: '#/components/schemas/ReadAdSet'
type: object
- CampaignReadResource:
- description: read model data for resources
+ AdSetCategoryBidResource:
+ description: Data model for a Resource
example:
attributes:
- goal: Unspecified
- name: name
- spendLimit:
- spendLimitRenewal: undefined
- spendLimitAmount:
- value: 0.8008281904610115
- spendLimitType: capped
- advertiserId: advertiserId
- objective: objective
+ bidAmount: 0.8008281904610115
+ categoryName: categoryName
id: id
- type: Campaign
+ type: AdSetCategoryBid
properties:
+ attributes:
+ $ref: '#/components/schemas/AdSetCategoryBid'
id:
description: Id of the entity
- readOnly: true
+ nullable: true
type: string
type:
- example: Campaign
- readOnly: true
+ description: Canonical type name of the entity
+ example: AdSetCategoryBid
+ nullable: true
type: string
- attributes:
- $ref: '#/components/schemas/Campaign'
type: object
- PatchResultCampaignReadResource:
- description: read model data for resources
+ PatchAdSetCategoryBidResultResource:
+ description: Data model for a Resource
example:
id: id
- type: Campaign
+ type: AdSetCategoryBid
properties:
id:
description: Id of the entity
- readOnly: true
+ nullable: true
type: string
type:
- example: Campaign
- readOnly: true
+ description: Canonical type name of the entity
+ example: AdSetCategoryBid
+ nullable: true
type: string
type: object
AdSetDisplayMultiplierResource:
@@ -3727,10 +3799,12 @@ components:
$ref: '#/components/schemas/AdSetDisplayMultiplier'
id:
description: Id of the entity
+ nullable: true
type: string
type:
description: Canonical type name of the entity
example: AdSetDisplayMultiplier
+ nullable: true
type: string
type: object
PatchAdSetDisplayMultiplierResultResource:
@@ -3741,77 +3815,59 @@ components:
properties:
id:
description: Id of the entity
+ nullable: true
type: string
type:
description: Canonical type name of the entity
example: AdSetDisplayMultiplier
+ nullable: true
type: string
type: object
- AdSetCategoryBidResource:
- description: Data model for a Resource
+ PatchResultCampaignReadResource:
+ description: read model data for resources
example:
- attributes:
- bidAmount: 0.8008281904610115
- categoryName: categoryName
id: id
- type: AdSetCategoryBid
+ type: Campaign
properties:
- attributes:
- $ref: '#/components/schemas/AdSetCategoryBid'
id:
description: Id of the entity
+ nullable: true
+ readOnly: true
type: string
type:
- description: Canonical type name of the entity
- example: AdSetCategoryBid
+ example: Campaign
+ nullable: true
+ readOnly: true
type: string
type: object
- PatchAdSetCategoryBidResultResource:
- description: Data model for a Resource
+ CampaignReadResource:
+ description: read model data for resources
example:
+ attributes:
+ goal: Unspecified
+ name: name
+ spendLimit:
+ spendLimitRenewal: undefined
+ spendLimitAmount:
+ value: 0.8008281904610115
+ spendLimitType: capped
+ advertiserId: advertiserId
+ objective: objective
id: id
- type: AdSetCategoryBid
+ type: Campaign
properties:
id:
description: Id of the entity
+ nullable: true
+ readOnly: true
type: string
type:
- description: Canonical type name of the entity
- example: AdSetCategoryBid
+ example: Campaign
+ nullable: true
+ readOnly: true
type: string
- type: object
- AdSetSearchFilter:
- description: filter on ad set ids
- example:
- adSetIds:
- - adSetIds
- - adSetIds
- advertiserIds:
- - advertiserIds
- - advertiserIds
- campaignIds:
- - campaignIds
- - campaignIds
- properties:
- adSetIds:
- description: Ad set ids to filter on
- items:
- type: string
- type: array
- uniqueItems: false
- advertiserIds:
- description: Advertiser ids which ad sets belongs to (indirectly via their
- marketing campaign)
- items:
- type: string
- type: array
- uniqueItems: false
- campaignIds:
- description: Campaign ids to filter on
- items:
- type: string
- type: array
- uniqueItems: false
+ attributes:
+ $ref: '#/components/schemas/Campaign'
type: object
WriteModelPatchAdSet:
description: write model data for resources
@@ -3859,31 +3915,22 @@ components:
properties:
id:
description: Id of the entity
+ nullable: true
type: string
type:
description: Canonical type name of the entity
example: PatchAdSet
+ nullable: true
type: string
attributes:
$ref: '#/components/schemas/PatchAdSet'
type: object
- WriteModelAdSetId:
- description: write model data for resources
- example:
- id: id
- type: AdSetId
- properties:
- id:
- description: Id of the entity
- type: string
- type:
- description: Canonical type name of the entity
- example: AdSetId
- type: string
- type: object
- CampaignSearchFilters:
- description: filters on campaign
+ AdSetSearchFilter:
+ description: filter on ad set ids
example:
+ adSetIds:
+ - adSetIds
+ - adSetIds
advertiserIds:
- advertiserIds
- advertiserIds
@@ -3891,40 +3938,64 @@ components:
- campaignIds
- campaignIds
properties:
- campaignIds:
- description: Campaign ids to filter on
+ adSetIds:
+ description: Ad set ids to filter on
items:
type: string
+ nullable: true
type: array
uniqueItems: false
advertiserIds:
- description: Advertiser ids to which campaigns are linked to
+ description: Advertiser ids which ad sets belongs to (indirectly via their
+ marketing campaign)
+ items:
+ type: string
+ nullable: true
+ type: array
+ uniqueItems: false
+ campaignIds:
+ description: Campaign ids to filter on
items:
type: string
+ nullable: true
type: array
uniqueItems: false
type: object
- PatchCampaignWriteResource:
- description: write model data for resources
+ WriteModelAdSetId:
+ description: write model data for resources
+ example:
+ id: id
+ type: AdSetId
+ properties:
+ id:
+ description: Id of the entity
+ nullable: true
+ type: string
+ type:
+ description: Canonical type name of the entity
+ example: AdSetId
+ nullable: true
+ type: string
+ type: object
+ PatchAdSetCategoryBidResource:
+ description: Data model for a Resource
example:
attributes:
- spendLimit:
- spendLimitRenewal: undefined
- spendLimitAmount:
- value: 0.8008281904610115
- spendLimitType: capped
+ bidAmount: 0.8008281904610115
id: id
- type: Campaign
+ type: AdSetCategoryBid
properties:
+ attributes:
+ $ref: '#/components/schemas/PatchAdSetCategoryBid'
id:
description: Id of the entity
+ nullable: true
type: string
type:
description: Canonical type name of the entity
- example: Campaign
+ example: AdSetCategoryBid
+ nullable: true
type: string
- attributes:
- $ref: '#/components/schemas/PatchCampaign'
type: object
PatchAdSetDisplayMultiplierResource:
description: Data model for a Resource
@@ -3938,29 +4009,62 @@ components:
$ref: '#/components/schemas/PatchAdSetDisplayMultiplier'
id:
description: Id of the entity
+ nullable: true
type: string
type:
description: Canonical type name of the entity
example: AdSetDisplayMultiplier
+ nullable: true
type: string
type: object
- PatchAdSetCategoryBidResource:
- description: Data model for a Resource
+ PatchCampaignWriteResource:
+ description: write model data for resources
example:
attributes:
- bidAmount: 0.8008281904610115
+ spendLimit:
+ spendLimitRenewal: undefined
+ spendLimitAmount:
+ value: 0.8008281904610115
+ spendLimitType: capped
id: id
- type: AdSetCategoryBid
+ type: Campaign
properties:
- attributes:
- $ref: '#/components/schemas/PatchAdSetCategoryBid'
id:
description: Id of the entity
+ nullable: true
type: string
type:
description: Canonical type name of the entity
- example: AdSetCategoryBid
+ example: Campaign
+ nullable: true
type: string
+ attributes:
+ $ref: '#/components/schemas/PatchCampaign'
+ type: object
+ CampaignSearchFilters:
+ description: filters on campaign
+ example:
+ advertiserIds:
+ - advertiserIds
+ - advertiserIds
+ campaignIds:
+ - campaignIds
+ - campaignIds
+ properties:
+ campaignIds:
+ description: Campaign ids to filter on
+ items:
+ type: string
+ nullable: true
+ type: array
+ uniqueItems: false
+ advertiserIds:
+ description: Advertiser ids to which campaigns are linked to
+ items:
+ type: string
+ nullable: true
+ type: array
+ uniqueItems: false
type: object
ReadAdSet:
description: ad set read model
@@ -4014,15 +4118,19 @@ components:
properties:
name:
description: Name of the ad set
+ nullable: true
type: string
advertiserId:
description: Advertiser id of the campaign this ad set belongs to
+ nullable: true
type: string
datasetId:
description: Dataset id of this ad set
+ nullable: true
type: string
campaignId:
description: Campaign id this ad set belongs to
+ nullable: true
type: string
destinationEnvironment:
description: The environment that an ad click will lead a user to
@@ -4030,6 +4138,7 @@ components:
- undefined
- web
- app
+ nullable: true
type: string
schedule:
$ref: '#/components/schemas/ReadAdSetSchedule'
@@ -4044,7 +4153,45 @@ components:
enum:
- display
- video
+ nullable: true
+ type: string
+ type: object
+ AdSetCategoryBid:
+ description: Category Bid information about a Category for a given Ad Set.
+ example:
+ bidAmount: 0.8008281904610115
+ categoryName: categoryName
+ properties:
+ categoryName:
+ description: The name of the Category to which the Category Bid has been
+ applied.
+ nullable: true
+ type: string
+ bidAmount:
+ description: The Bid amount applied to the given Category associated to
+ an Ad Set. At most 4 decimals are supported. Additional decimals are rounded.
+ format: double
+ nullable: true
+ type: number
+ type: object
+ AdSetDisplayMultiplier:
+ description: Display Multiplier information about a Category for a given Ad
+ Set.
+ example:
+ displayMultiplier: 0.8008281904610115
+ categoryName: categoryName
+ properties:
+ categoryName:
+ description: The name of the Category to which the given for which the Display
+ Multiplier has been applied.
+ nullable: true
type: string
+ displayMultiplier:
+ description: The Display Multiplier applied to the given Category associated
+ to an Ad Set.
+ format: double
+ nullable: true
+ type: number
type: object
Campaign:
description: campaign read model
@@ -4061,12 +4208,15 @@ components:
properties:
name:
description: Name of the campaign
+ nullable: true
type: string
advertiserId:
description: Advertiser id of the campaign
+ nullable: true
type: string
objective:
description: Campaign's marketing objective
+ nullable: true
type: string
spendLimit:
$ref: '#/components/schemas/CampaignSpendLimit'
@@ -4076,41 +4226,9 @@ components:
- Unspecified
- Acquisition
- Retention
+ nullable: true
type: string
type: object
- AdSetDisplayMultiplier:
- description: Display Multiplier information about a Category for a given Ad
- Set.
- example:
- displayMultiplier: 0.8008281904610115
- categoryName: categoryName
- properties:
- categoryName:
- description: The name of the Category to which the given for which the Display
- Multiplier has been applied.
- type: string
- displayMultiplier:
- description: The Display Multiplier applied to the given Category associated
- to an Ad Set.
- format: double
- type: number
- type: object
- AdSetCategoryBid:
- description: Category Bid information about a Category for a given Ad Set.
- example:
- bidAmount: 0.8008281904610115
- categoryName: categoryName
- properties:
- categoryName:
- description: The name of the Category to which the Category Bid has been
- applied.
- type: string
- bidAmount:
- description: The Bid amount applied to the given Category associated to
- an Ad Set. At most 4 decimals are supported. Additional decimals are rounded.
- format: double
- type: number
- type: object
PatchAdSet:
description: ad set patch model
example:
@@ -4154,6 +4272,7 @@ components:
properties:
name:
description: Name of the ad set
+ nullable: true
type: string
scheduling:
$ref: '#/components/schemas/PatchAdSetScheduling'
@@ -4164,17 +4283,17 @@ components:
budget:
$ref: '#/components/schemas/PatchAdSetBudget'
type: object
- PatchCampaign:
- description: campaign patch model
+ PatchAdSetCategoryBid:
+ description: Category Bid to update for a given combination of Ad Set and Category.
example:
- spendLimit:
- spendLimitRenewal: undefined
- spendLimitAmount:
- value: 0.8008281904610115
- spendLimitType: capped
+ bidAmount: 0.8008281904610115
properties:
- spendLimit:
- $ref: '#/components/schemas/PatchCampaignSpendLimit'
+ bidAmount:
+ description: The Bid amount applied to the given Category associated to
+ an Ad Set. At most 4 decimals are supported. Additional decimals are rounded.
+ format: double
+ nullable: true
+ type: number
type: object
PatchAdSetDisplayMultiplier:
description: Display Multiplier to update for a given combination of Ad Set
@@ -4187,18 +4306,20 @@ components:
Multiplier set it to 1. At most 4 decimals are supported. Additional decimals
are rounded.
format: double
+ nullable: true
type: number
type: object
- PatchAdSetCategoryBid:
- description: Category Bid to update for a given combination of Ad Set and Category.
+ PatchCampaign:
+ description: campaign patch model
example:
- bidAmount: 0.8008281904610115
+ spendLimit:
+ spendLimitRenewal: undefined
+ spendLimitAmount:
+ value: 0.8008281904610115
+ spendLimitType: capped
properties:
- bidAmount:
- description: The Bid amount applied to the given Category associated to
- an Ad Set. At most 4 decimals are supported. Additional decimals are rounded.
- format: double
- type: number
+ spendLimit:
+ $ref: '#/components/schemas/PatchCampaignSpendLimit'
type: object
ReadAdSetSchedule:
description: ad set schedule read model
@@ -4220,6 +4341,7 @@ components:
enum:
- "on"
- "off"
+ nullable: true
type: string
deliveryStatus:
description: "Delivery status of the delivery of the ad set, i.e. whether\
@@ -4235,6 +4357,7 @@ components:
- ended
- notDelivering
- archived
+ nullable: true
type: string
type: object
ReadAdSetBidding:
@@ -4261,6 +4384,7 @@ components:
- viewedImpressions
- Visits
- completedVideoViews
+ nullable: true
type: string
costController:
description: How spend is controlled
@@ -4273,6 +4397,7 @@ components:
- CPSV
- CPV
- dailyBudget
+ nullable: true
type: string
type: object
AdSetTargeting:
@@ -4321,6 +4446,7 @@ components:
enum:
- capped
- uncapped
+ nullable: true
type: string
budgetRenewal:
description: The pace of the budget renewal
@@ -4329,12 +4455,14 @@ components:
- daily
- monthly
- lifetime
+ nullable: true
type: string
budgetDeliverySmoothing:
description: The pace at which the budget can be spent
enum:
- accelerated
- standard
+ nullable: true
type: string
budgetDeliveryWeek:
description: The delivery week for the budget
@@ -4347,6 +4475,7 @@ components:
- fridayToThursday
- saturdayToFriday
- sundayToSaturday
+ nullable: true
type: string
budgetAmount:
$ref: '#/components/schemas/NillableDecimal'
@@ -4364,6 +4493,7 @@ components:
enum:
- capped
- uncapped
+ nullable: true
type: string
spendLimitRenewal:
description: The pace of the spend limit renewal
@@ -4372,6 +4502,7 @@ components:
- daily
- monthly
- lifetime
+ nullable: true
type: string
spendLimitAmount:
$ref: '#/components/schemas/NillableDecimal'
@@ -4413,6 +4544,7 @@ components:
enum:
- capped
- uncapped
+ nullable: true
type: string
budgetRenewal:
description: The pace of the budget renewal
@@ -4421,12 +4553,14 @@ components:
- daily
- monthly
- lifetime
+ nullable: true
type: string
budgetDeliverySmoothing:
description: The pace at which the budget can be spent
enum:
- accelerated
- standard
+ nullable: true
type: string
budgetDeliveryWeek:
description: The delivery week for the budget
@@ -4439,6 +4573,7 @@ components:
- fridayToThursday
- saturdayToFriday
- sundayToSaturday
+ nullable: true
type: string
budgetAmount:
$ref: '#/components/schemas/NillableDecimal'
@@ -4456,6 +4591,7 @@ components:
enum:
- capped
- uncapped
+ nullable: true
type: string
spendLimitRenewal:
description: The pace of the spend limit renewal
@@ -4464,6 +4600,7 @@ components:
- daily
- monthly
- lifetime
+ nullable: true
type: string
spendLimitAmount:
$ref: '#/components/schemas/NillableDecimal'
@@ -4518,6 +4655,7 @@ components:
- web
- inApp
type: string
+ nullable: true
type: array
uniqueItems: false
devices:
@@ -4529,6 +4667,7 @@ components:
- mobile
- tablet
type: string
+ nullable: true
type: array
uniqueItems: false
operatingSystems:
@@ -4539,6 +4678,7 @@ components:
- ios
- unknown
type: string
+ nullable: true
type: array
uniqueItems: false
type: object
@@ -4572,10 +4712,12 @@ components:
- daily
- lifetime
- advanced
+ nullable: true
type: string
maximumImpressions:
description: Maximum impressions for the specified period
format: int32
+ nullable: true
type: integer
type: object
NillableAdSetTargetingRule:
@@ -4599,13 +4741,46 @@ components:
- undefined
- in
- notIn
+ nullable: true
type: string
values:
description: List of values to apply
items:
type: string
+ nullable: true
+ type: array
+ uniqueItems: false
+ type: object
+ TransparencyReportDataMessage:
+ description: This is the message defining the response for Transparency report
+ example:
+ data:
+ - attributes:
+ tokenValidUntil: 2000-01-23T04:56:07.000+00:00
+ files:
+ - fileName: fileName
+ url: url
+ - fileName: fileName
+ url: url
+ advertiserId: advertiserId
+ type: type
+ - attributes:
+ tokenValidUntil: 2000-01-23T04:56:07.000+00:00
+ files:
+ - fileName: fileName
+ url: url
+ - fileName: fileName
+ url: url
+ advertiserId: advertiserId
+ type: type
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/TransparencyReportEntityMessage'
type: array
uniqueItems: false
+ required:
+ - data
type: object
ProblemsDetails:
description: Common problems object
@@ -4613,36 +4788,66 @@ components:
errors:
items:
$ref: '#/components/schemas/ProblemDetails'
+ nullable: true
readOnly: true
type: array
uniqueItems: false
type: object
- TransparencyReportDataMessage:
- description: This is the message defining the response for Transparency report
+ TransparencyQueryMessage:
+ description: This is the message defining the query for Transparency report
+ example:
+ shouldDisplayProductIds: false
+ startDate: 2023-04-03T00:00:00.0000000+00:00
+ endDate: 2023-04-06T00:00:00.0000000+00:00
+ properties:
+ shouldDisplayProductIds:
+ default: false
+ description: Specify if the product ids are displayed in the report.
+ nullable: true
+ type: boolean
+ startDate:
+ description: "Start date of the report. Date component of ISO 8061 format,\
+ \ any time or timezone component is ignored."
+ format: date-time
+ type: string
+ endDate:
+ description: "End date of the report. Date component of ISO 8061 format,\
+ \ any time or timezone component is ignored."
+ format: date-time
+ type: string
+ required:
+ - endDate
+ - startDate
+ type: object
+ PlacementsReportQueryDataMessage:
+ description: Contains queries for Placements report
example:
data:
- - attributes:
- tokenValidUntil: 2000-01-23T04:56:07.000+00:00
- files:
- - fileName: fileName
- url: url
- - fileName: fileName
- url: url
- advertiserId: advertiserId
- type: type
- - attributes:
- tokenValidUntil: 2000-01-23T04:56:07.000+00:00
- files:
- - fileName: fileName
- url: url
- - fileName: fileName
- url: url
- advertiserId: advertiserId
- type: type
+ - type: PlacementReport
+ attributes:
+ advertiserIds: "123,456,789"
+ campaignIds: "111,222,333,444"
+ adsetIds: "135,246,357,468"
+ environment: web
+ placement: MyPlacement
+ dimensions:
+ - AdsetId
+ - AdvertiserId
+ - Placement
+ metrics:
+ - clicks
+ - displays
+ - cost
+ currency: EUR
+ disclosed: false
+ format: csv
+ timezone: Europe/Paris
+ startDate: 2022-08-29T00:00:00.0000000+00:00
+ endDate: 2022-08-29T00:00:00.0000000+00:00
properties:
data:
items:
- $ref: '#/components/schemas/TransparencyReportEntityMessage'
+ $ref: '#/components/schemas/PlacementsReportQueryEntityMessage'
type: array
uniqueItems: false
required:
@@ -4694,23 +4899,27 @@ components:
advertiserIds:
description: "The comma-separated list of advertiser ids. If empty, all\
\ the advertisers in the portfolio will be used"
+ nullable: true
type: string
adSetIds:
description: "list of adSets ids. If empty, all the adSets will be fetched"
items:
type: string
+ nullable: true
type: array
uniqueItems: false
adSetNames:
description: "list of adSets names. If empty, all the adSets will be fetched"
items:
type: string
+ nullable: true
type: array
uniqueItems: false
adSetStatus:
description: "list of adSets status. If empty, all the adSets will be fetched"
items:
type: string
+ nullable: true
type: array
uniqueItems: false
dimensions:
@@ -4762,6 +4971,7 @@ components:
default: UTC
description: The timezone used for the report. Timezone Database format
(Tz).
+ nullable: true
type: string
startDate:
description: "Start date of the report. Date component of ISO 8061 format,\
@@ -4803,65 +5013,6 @@ components:
required:
- data
type: object
- TransparencyQueryMessage:
- description: This is the message defining the query for Transparency report
- example:
- shouldDisplayProductIds: false
- startDate: 2023-04-03T00:00:00.0000000+00:00
- endDate: 2023-04-06T00:00:00.0000000+00:00
- properties:
- shouldDisplayProductIds:
- default: false
- description: Specify if the product ids are displayed in the report.
- type: boolean
- startDate:
- description: "Start date of the report. Date component of ISO 8061 format,\
- \ any time or timezone component is ignored."
- format: date-time
- type: string
- endDate:
- description: "End date of the report. Date component of ISO 8061 format,\
- \ any time or timezone component is ignored."
- format: date-time
- type: string
- required:
- - endDate
- - startDate
- type: object
- PlacementsReportQueryDataMessage:
- description: Contains queries for Placements report
- example:
- data:
- - type: PlacementReport
- attributes:
- advertiserIds: "123,456,789"
- campaignIds: "111,222,333,444"
- adsetIds: "135,246,357,468"
- environment: web
- placement: MyPlacement
- dimensions:
- - AdsetId
- - AdvertiserId
- - Placement
- metrics:
- - clicks
- - displays
- - cost
- currency: EUR
- disclosed: false
- format: csv
- timezone: Europe/Paris
- startDate: 2022-08-29T00:00:00.0000000+00:00
- endDate: 2022-08-29T00:00:00.0000000+00:00
- properties:
- data:
- items:
- $ref: '#/components/schemas/PlacementsReportQueryEntityMessage'
- type: array
- uniqueItems: false
- required:
- - data
- type: object
TransparencyReportEntityMessage:
description: This is the message defining the entity response for Transparency
report
@@ -4885,24 +5036,24 @@ components:
- attributes
- type
type: object
- TransactionsReportQueryEntityMessage:
+ PlacementsReportQueryEntityMessage:
description: Contains a query for Transaction report and its type
properties:
type:
type: string
attributes:
- $ref: '#/components/schemas/TransactionsReportQueryMessage'
+ $ref: '#/components/schemas/PlacementsReportQueryMessage'
required:
- attributes
- type
type: object
- PlacementsReportQueryEntityMessage:
+ TransactionsReportQueryEntityMessage:
description: Contains a query for Transaction report and its type
properties:
type:
type: string
attributes:
- $ref: '#/components/schemas/PlacementsReportQueryMessage'
+ $ref: '#/components/schemas/TransactionsReportQueryMessage'
required:
- attributes
- type
@@ -4934,45 +5085,6 @@ components:
- files
- tokenValidUntil
type: object
- TransactionsReportQueryMessage:
- description: This is the message defining the query for Transaction report
- properties:
- advertiserIds:
- description: "The comma-separated list of advertiser ids. If empty, all\
- \ the advertisers in the portfolio will be used"
- type: string
- eventType:
- description: Apply a filter on Event type .
- type: string
- currency:
- description: The currency used for the report. ISO 4217 code (three-letter
- capitals).
- type: string
- format:
- description: "The file format of the generated report: csv, xml, excel or\
- \ json."
- type: string
- timezone:
- default: UTC
- description: The timezone used for the report. Timezone Database format
- (Tz).
- type: string
- startDate:
- description: "Start date of the report. Date component of ISO 8061 format,\
- \ any time or timezone component is ignored."
- format: date-time
- type: string
- endDate:
- description: "End date of the report. Date component of ISO 8061 format,\
- \ any time or timezone component is ignored."
- format: date-time
- type: string
- required:
- - currency
- - endDate
- - format
- - startDate
- type: object
PlacementsReportQueryMessage:
description: This is the message defining the query for Placements report
properties:
@@ -4981,15 +5093,19 @@ components:
type: string
campaignIds:
description: The comma-separated list of campaign ids.
+ nullable: true
type: string
adsetIds:
description: The comma-separated list of adSet ids.
+ nullable: true
type: string
environment:
description: "Type of environment: Web, Android or iOS."
+ nullable: true
type: string
placement:
description: Filter the value of the placement
+ nullable: true
type: string
dimensions:
description: The dimensions for the report.
@@ -5019,6 +5135,7 @@ components:
disclosed:
default: true
description: Returns disclosed or undisclosed placements.
+ nullable: true
type: boolean
format:
description: "The file format of the generated report: csv, xml, excel or\
@@ -5028,6 +5145,7 @@ components:
default: UTC
description: The timezone used for the report. Timezone Database format
(Tz).
+ nullable: true
type: string
startDate:
description: "Start date of the report. Date component of ISO 8061 format,\
@@ -5048,6 +5166,48 @@ components:
- metrics
- startDate
type: object
+ TransactionsReportQueryMessage:
+ description: This is the message defining the query for Transaction report
+ properties:
+ advertiserIds:
+ description: "The comma-separated list of advertiser ids. If empty, all\
+ \ the advertisers in the portfolio will be used"
+ nullable: true
+ type: string
+ eventType:
+ description: Apply a filter on Event type .
+ nullable: true
+ type: string
+ currency:
+ description: The currency used for the report. ISO 4217 code (three-letter
+ capitals).
+ type: string
+ format:
+ description: "The file format of the generated report: csv, xml, excel or\
+ \ json."
+ type: string
+ timezone:
+ default: UTC
+ description: The timezone used for the report. Timezone Database format
+ (Tz).
+ nullable: true
+ type: string
+ startDate:
+ description: "Start date of the report. Date component of ISO 8061 format,\
+ \ any time or timezone component is ignored."
+ format: date-time
+ type: string
+ endDate:
+ description: "End date of the report. Date component of ISO 8061 format,\
+ \ any time or timezone component is ignored."
+ format: date-time
+ type: string
+ required:
+ - currency
+ - endDate
+ - format
+ - startDate
+ type: object
TransparencyReportFile:
description: This is the message defining the file response for Transparency
report
@@ -5112,6 +5272,7 @@ components:
description: The response�s primary data
items:
$ref: '#/components/schemas/EntityOfPortfolioMessage'
+ nullable: true
type: array
uniqueItems: false
errors:
@@ -5119,6 +5280,7 @@ components:
\ it is empty"
items:
$ref: '#/components/schemas/CriteoApiError'
+ nullable: true
type: array
uniqueItems: false
warnings:
@@ -5129,6 +5291,7 @@ components:
\ problems may occur in the future."
items:
$ref: '#/components/schemas/CriteoApiWarning'
+ nullable: true
type: array
uniqueItems: false
type: object
@@ -5155,14 +5318,17 @@ components:
- contact
- industry
example: campaign
+ nullable: true
type: string
id:
description: A opaque string containing the unique Id of the entity
+ nullable: true
type: string
attributes:
$ref: '#/components/schemas/PortfolioMessage'
meta:
description: A meta object that contains application-specific metadata
+ nullable: true
type: object
type: object
CriteoApiError:
@@ -5179,6 +5345,7 @@ components:
properties:
traceId:
description: The correlation ID provided by the gateway
+ nullable: true
type: string
type:
description: A machine-readable code specifying error category
@@ -5191,6 +5358,7 @@ components:
- quota
- validation
example: access_control
+ nullable: true
type: string
code:
description: A machine-readable error code string in kabab-case. Unique
@@ -5205,23 +5373,28 @@ components:
- invalid-ranged
- invalid-timespan
example: internal-error
+ nullable: true
type: string
instance:
description: A URI reference that identifies the specific occurrence of
the problem
+ nullable: true
type: string
title:
description: "A short, human-readable remarks of the problem type."
+ nullable: true
type: string
detail:
description: A human-readable explanation specific to this occurrence of
the problem.
+ nullable: true
type: string
source:
additionalProperties:
type: string
description: A machine-readable structure to reference to the exact location(s)
causing the error(s).
+ nullable: true
type: object
type: object
CriteoApiWarning:
@@ -5236,6 +5409,7 @@ components:
properties:
traceId:
description: The correlation ID provided by the gateway
+ nullable: true
type: string
type:
description: A machine-readable code specifying error category
@@ -5248,6 +5422,7 @@ components:
- quota
- validation
example: access_control
+ nullable: true
type: string
code:
description: A machine-readable error code string in kabab-case. Unique
@@ -5262,17 +5437,21 @@ components:
- invalid-ranged
- invalid-timespan
example: internal-error
+ nullable: true
type: string
instance:
description: A URI reference that identifies the specific occurrence of
the problem
+ nullable: true
type: string
title:
description: "A short, human-readable remarks of the problem type."
+ nullable: true
type: string
detail:
description: A human-readable explanation specific to this occurrence of
the problem.
+ nullable: true
type: string
type: object
PortfolioMessage:
@@ -5281,6 +5460,7 @@ components:
advertiserName: advertiserName
properties:
advertiserName:
+ nullable: true
type: string
type: object
Audience_attributes:
@@ -5297,6 +5477,7 @@ components:
advertiserId:
description: The advertiser id that owns this Audience
format: int32
+ nullable: true
type: string
name:
description: The name of the Audience
@@ -5314,13 +5495,16 @@ components:
type: string
nbLines:
description: The number of line in the audience available once processed
+ nullable: true
type: integer
nbLinesEmail:
description: The number of email line in the audience available once processed
+ nullable: true
type: integer
nbMatchesEmail:
description: The number of email matches in the audience available once
processed
+ nullable: true
type: integer
required:
- created
@@ -5343,6 +5527,7 @@ components:
properties:
contactListId:
description: the affected user list id
+ nullable: true
type: integer
operation:
description: The action recorded
@@ -5350,20 +5535,25 @@ components:
requestDate:
description: When the action was recorded
format: date-time
+ nullable: true
type: string
identifierType:
description: The schema specified for of the identifiers
+ nullable: true
type: string
nbValidIdentifiers:
description: How many identifiers were valid for the specified schema
+ nullable: true
type: integer
nbInvalidIdentifiers:
description: How many identifiers were invalid for the specified schema
+ nullable: true
type: integer
sampleInvalidIdentifiers:
description: A sample of invalid identifiers if there is some
items:
type: string
+ nullable: true
type: array
required:
- operation
@@ -5376,12 +5566,14 @@ components:
properties:
advertiserId:
description: The advertiser id to create the audience for
+ nullable: true
type: string
name:
description: The name of the new audience
type: string
description:
description: The description of the audience
+ nullable: true
type: string
required:
- name
@@ -5410,6 +5602,7 @@ components:
- identityLink
- gum
- customerid
+ nullable: true
type: string
identifiers:
description: "The users tos add or remove, each in the schema specified"
@@ -5419,6 +5612,7 @@ components:
gumCallerId:
description: The Gum caller id of the advertiser patching identifiers of
type Gum
+ nullable: true
type: integer
required:
- identifiers
diff --git a/sdks/marketingsolutions_2022-07/build.gradle b/sdks/marketingsolutions_2022-07/build.gradle
index 3962420d..1f742748 100644
--- a/sdks/marketingsolutions_2022-07/build.gradle
+++ b/sdks/marketingsolutions_2022-07/build.gradle
@@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) {
}
group = 'com.criteo'
-version = '2022.07.0.230728'
+version = '2022.07.0.230831'
repositories {
jcenter()
@@ -75,7 +75,7 @@ publishing {
mavenJava(MavenPublication) {
groupId 'com.criteo'
artifactId 'criteo-api-marketingsolutions-sdk'
- version '2022.07.0.230728'
+ version '2022.07.0.230831'
from components.java
artifact sourcesJar
artifact javadocJar
diff --git a/sdks/marketingsolutions_2022-07/pom.xml b/sdks/marketingsolutions_2022-07/pom.xml
index d64843c5..d9fae1b1 100644
--- a/sdks/marketingsolutions_2022-07/pom.xml
+++ b/sdks/marketingsolutions_2022-07/pom.xml
@@ -5,7 +5,7 @@
criteo-api-marketingsolutions-sdk
jar
criteo-api-marketingsolutions-sdk
- 2022.07.0.230728
+ 2022.07.0.230831
https://github.com/criteo/criteo-api-java-sdk
JAVA SDK for Criteo API marketingsolutions for 2022_07 version
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/ApiClient.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/ApiClient.java
index 952b3125..06661ecb 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/ApiClient.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/ApiClient.java
@@ -213,7 +213,7 @@ private void init() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("OpenAPI-Generator/2022.07.0.230728/java");
+ setUserAgent("OpenAPI-Generator/2022.07.0.230831/java");
authentications = new HashMap();
}
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBid.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBid.java
index a9338492..dc60742e 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBid.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBid.java
@@ -21,6 +21,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -162,11 +163,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, adSetCategoryBid.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(categoryName, bidAmount, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBidListResponse.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBidListResponse.java
index 26ddb127..8bfdde5f 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBidListResponse.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBidListResponse.java
@@ -25,6 +25,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -85,7 +86,7 @@ public AdSetCategoryBidListResponse data(List data) {
public AdSetCategoryBidListResponse addDataItem(AdSetCategoryBidResource dataItem) {
if (this.data == null) {
- this.data = new ArrayList<>();
+ this.data = null;
}
this.data.add(dataItem);
return this;
@@ -193,11 +194,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, adSetCategoryBidListResponse.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(data, warnings, errors, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBidResource.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBidResource.java
index d9f6ac0d..fe7f6566 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBidResource.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetCategoryBidResource.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -190,11 +191,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, adSetCategoryBidResource.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(attributes, id, type, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDeliveryLimitations.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDeliveryLimitations.java
index 7e89ea2e..0859a4f2 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDeliveryLimitations.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDeliveryLimitations.java
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -220,7 +221,7 @@ public AdSetDeliveryLimitations environments(List environments
public AdSetDeliveryLimitations addEnvironmentsItem(EnvironmentsEnum environmentsItem) {
if (this.environments == null) {
- this.environments = new ArrayList<>();
+ this.environments = null;
}
this.environments.add(environmentsItem);
return this;
@@ -250,7 +251,7 @@ public AdSetDeliveryLimitations devices(List devices) {
public AdSetDeliveryLimitations addDevicesItem(DevicesEnum devicesItem) {
if (this.devices == null) {
- this.devices = new ArrayList<>();
+ this.devices = null;
}
this.devices.add(devicesItem);
return this;
@@ -280,7 +281,7 @@ public AdSetDeliveryLimitations operatingSystems(List oper
public AdSetDeliveryLimitations addOperatingSystemsItem(OperatingSystemsEnum operatingSystemsItem) {
if (this.operatingSystems == null) {
- this.operatingSystems = new ArrayList<>();
+ this.operatingSystems = null;
}
this.operatingSystems.add(operatingSystemsItem);
return this;
@@ -362,11 +363,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, adSetDeliveryLimitations.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(environments, devices, operatingSystems, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplier.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplier.java
index 73bd6386..dcd23b5d 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplier.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplier.java
@@ -21,6 +21,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -162,11 +163,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, adSetDisplayMultiplier.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(categoryName, displayMultiplier, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplierListResponse.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplierListResponse.java
index 90111d51..b2d41aba 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplierListResponse.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplierListResponse.java
@@ -25,6 +25,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -85,7 +86,7 @@ public AdSetDisplayMultiplierListResponse data(List();
+ this.data = null;
}
this.data.add(dataItem);
return this;
@@ -193,11 +194,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, adSetDisplayMultiplierListResponse.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(data, warnings, errors, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplierResource.java
index 2d2211fd..3e697ee5 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplierResource.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetDisplayMultiplierResource.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -190,11 +191,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, adSetDisplayMultiplierResource.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(attributes, id, type, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetFrequencyCapping.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetFrequencyCapping.java
index 8f3bd1d1..fca5fcf8 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetFrequencyCapping.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetFrequencyCapping.java
@@ -21,6 +21,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -82,7 +83,7 @@ public static FrequencyEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -213,11 +214,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, adSetFrequencyCapping.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(frequency, maximumImpressions, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetSearchFilter.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetSearchFilter.java
index aeae2f77..2cd5ab3a 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetSearchFilter.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetSearchFilter.java
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -73,7 +74,7 @@ public AdSetSearchFilter adSetIds(List adSetIds) {
public AdSetSearchFilter addAdSetIdsItem(String adSetIdsItem) {
if (this.adSetIds == null) {
- this.adSetIds = new ArrayList<>();
+ this.adSetIds = null;
}
this.adSetIds.add(adSetIdsItem);
return this;
@@ -103,7 +104,7 @@ public AdSetSearchFilter advertiserIds(List advertiserIds) {
public AdSetSearchFilter addAdvertiserIdsItem(String advertiserIdsItem) {
if (this.advertiserIds == null) {
- this.advertiserIds = new ArrayList<>();
+ this.advertiserIds = null;
}
this.advertiserIds.add(advertiserIdsItem);
return this;
@@ -133,7 +134,7 @@ public AdSetSearchFilter campaignIds(List campaignIds) {
public AdSetSearchFilter addCampaignIdsItem(String campaignIdsItem) {
if (this.campaignIds == null) {
- this.campaignIds = new ArrayList<>();
+ this.campaignIds = null;
}
this.campaignIds.add(campaignIdsItem);
return this;
@@ -215,11 +216,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, adSetSearchFilter.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(adSetIds, advertiserIds, campaignIds, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetTargetingRule.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetTargetingRule.java
index 644c57b7..862b643d 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetTargetingRule.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AdSetTargetingRule.java
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -82,7 +83,7 @@ public static OperandEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -140,7 +141,7 @@ public AdSetTargetingRule values(List values) {
public AdSetTargetingRule addValuesItem(String valuesItem) {
if (this.values == null) {
- this.values = new ArrayList<>();
+ this.values = null;
}
this.values.add(valuesItem);
return this;
@@ -221,11 +222,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, adSetTargetingRule.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(operand, values, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModel.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModel.java
index 73ceb487..30021db8 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModel.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModel.java
@@ -21,6 +21,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -243,11 +244,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, applicationSummaryModel.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(applicationId, name, organizationId, description, criteoService, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModelResource.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModelResource.java
index b946694e..45f10a0f 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModelResource.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModelResource.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -163,11 +164,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, applicationSummaryModelResource.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(type, attributes, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModelResponse.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModelResponse.java
index 4d59491f..d990d3dc 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModelResponse.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ApplicationSummaryModelResponse.java
@@ -25,6 +25,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -185,11 +186,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, applicationSummaryModelResponse.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(data, warnings, errors, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceAttributes.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceAttributes.java
index 39a053fd..d1bfcf7c 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceAttributes.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceAttributes.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.time.OffsetDateTime;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -325,11 +326,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, audienceAttributes.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(advertiserId, name, description, created, updated, nbLines, nbLinesEmail, nbMatchesEmail, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceError.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceError.java
index 2c7a4a6c..ac566b5f 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceError.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceError.java
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -304,7 +305,7 @@ public AudienceError stackTrace(List stackTrace) {
public AudienceError addStackTraceItem(String stackTraceItem) {
if (this.stackTrace == null) {
- this.stackTrace = new ArrayList<>();
+ this.stackTrace = null;
}
this.stackTrace.add(stackTraceItem);
return this;
@@ -391,11 +392,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, audienceError.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(traceId, type, code, instance, title, detail, source, stackTrace, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceNameDescription.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceNameDescription.java
index 7784d871..9e8ec048 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceNameDescription.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceNameDescription.java
@@ -21,6 +21,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -162,11 +163,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, audienceNameDescription.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(name, description, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceWarning.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceWarning.java
index 8a9b4872..799d7ad7 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceWarning.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/AudienceWarning.java
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -304,7 +305,7 @@ public AudienceWarning stackTrace(List stackTrace) {
public AudienceWarning addStackTraceItem(String stackTraceItem) {
if (this.stackTrace == null) {
- this.stackTrace = new ArrayList<>();
+ this.stackTrace = null;
}
this.stackTrace.add(stackTraceItem);
return this;
@@ -391,11 +392,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, audienceWarning.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(traceId, type, code, instance, title, detail, source, stackTrace, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/Campaign.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/Campaign.java
index 56ba5946..6aed4912 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/Campaign.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/Campaign.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -97,7 +98,7 @@ public static GoalEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -293,11 +294,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, campaign.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(name, advertiserId, objective, spendLimit, goal, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignListResponse.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignListResponse.java
index a427a9ae..44b8047e 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignListResponse.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignListResponse.java
@@ -25,6 +25,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -178,11 +179,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, campaignListResponse.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(data, warnings, errors, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignReadResource.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignReadResource.java
index 00401fd9..c941ff28 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignReadResource.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignReadResource.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -182,11 +183,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, campaignReadResource.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(id, type, attributes, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignResponse.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignResponse.java
index 72796639..eab3ac9d 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignResponse.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignResponse.java
@@ -25,6 +25,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -185,11 +186,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, campaignResponse.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(data, warnings, errors, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignSearchFilters.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignSearchFilters.java
index fdc9f896..94fcced2 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignSearchFilters.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignSearchFilters.java
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -69,7 +70,7 @@ public CampaignSearchFilters campaignIds(List campaignIds) {
public CampaignSearchFilters addCampaignIdsItem(String campaignIdsItem) {
if (this.campaignIds == null) {
- this.campaignIds = new ArrayList<>();
+ this.campaignIds = null;
}
this.campaignIds.add(campaignIdsItem);
return this;
@@ -99,7 +100,7 @@ public CampaignSearchFilters advertiserIds(List advertiserIds) {
public CampaignSearchFilters addAdvertiserIdsItem(String advertiserIdsItem) {
if (this.advertiserIds == null) {
- this.advertiserIds = new ArrayList<>();
+ this.advertiserIds = null;
}
this.advertiserIds.add(advertiserIdsItem);
return this;
@@ -180,11 +181,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, campaignSearchFilters.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(campaignIds, advertiserIds, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignSpendLimit.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignSpendLimit.java
index 54208a77..af17e35f 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignSpendLimit.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CampaignSpendLimit.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -79,7 +80,7 @@ public static SpendLimitTypeEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -134,7 +135,7 @@ public static SpendLimitRenewalEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -288,11 +289,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, campaignSpendLimit.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(spendLimitType, spendLimitRenewal, spendLimitAmount, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CommonProblem.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CommonProblem.java
index 81c05216..27b2a9a3 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CommonProblem.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CommonProblem.java
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -100,7 +101,7 @@ public static TypeEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -310,7 +311,7 @@ public CommonProblem source(Map source) {
public CommonProblem putSourceItem(String key, String sourceItem) {
if (this.source == null) {
- this.source = new HashMap<>();
+ this.source = null;
}
this.source.put(key, sourceItem);
return this;
@@ -420,11 +421,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, commonProblem.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(traceId, traceIdentifier, type, code, instance, title, detail, source, stackTrace, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ContactlistAmendmentAttributes.java
index 592b21d7..79102605 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ContactlistAmendmentAttributes.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ContactlistAmendmentAttributes.java
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -137,7 +138,7 @@ public static IdentifierTypeEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -323,11 +324,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, contactlistAmendmentAttributes.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(operation, identifierType, identifiers, gumCallerId, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ContactlistOperationAttributes.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ContactlistOperationAttributes.java
index 9affa5a7..811e3859 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ContactlistOperationAttributes.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ContactlistOperationAttributes.java
@@ -24,6 +24,7 @@
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -222,7 +223,7 @@ public ContactlistOperationAttributes sampleInvalidIdentifiers(List samp
public ContactlistOperationAttributes addSampleInvalidIdentifiersItem(String sampleInvalidIdentifiersItem) {
if (this.sampleInvalidIdentifiers == null) {
- this.sampleInvalidIdentifiers = new ArrayList<>();
+ this.sampleInvalidIdentifiers = null;
}
this.sampleInvalidIdentifiers.add(sampleInvalidIdentifiersItem);
return this;
@@ -308,11 +309,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, contactlistOperationAttributes.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(contactListId, operation, requestDate, identifierType, nbValidIdentifiers, nbInvalidIdentifiers, sampleInvalidIdentifiers, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CriteoApiError.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CriteoApiError.java
index d9f74bb2..a3e2e4d1 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CriteoApiError.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CriteoApiError.java
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -94,7 +95,7 @@ public static TypeEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -157,7 +158,7 @@ public static CodeEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -337,7 +338,7 @@ public CriteoApiError source(Map source) {
public CriteoApiError putSourceItem(String key, String sourceItem) {
if (this.source == null) {
- this.source = new HashMap<>();
+ this.source = null;
}
this.source.put(key, sourceItem);
return this;
@@ -423,11 +424,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, criteoApiError.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(traceId, type, code, instance, title, detail, source, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CriteoApiWarning.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CriteoApiWarning.java
index 754a7871..1a3404e8 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CriteoApiWarning.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/CriteoApiWarning.java
@@ -21,6 +21,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -92,7 +93,7 @@ public static TypeEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -155,7 +156,7 @@ public static CodeEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -386,11 +387,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, criteoApiWarning.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(traceId, type, code, instance, title, detail, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/EntityOfPortfolioMessage.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/EntityOfPortfolioMessage.java
index 884d902a..3248949a 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/EntityOfPortfolioMessage.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/EntityOfPortfolioMessage.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -95,7 +96,7 @@ public static TypeEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -280,11 +281,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, entityOfPortfolioMessage.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(type, id, attributes, meta, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ErrorCodeResponse.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ErrorCodeResponse.java
index 0ba21c6b..64f5c88a 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ErrorCodeResponse.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ErrorCodeResponse.java
@@ -25,6 +25,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -98,7 +99,7 @@ public ErrorCodeResponse warnings(List warnings) {
public ErrorCodeResponse addWarningsItem(AudienceWarning warningsItem) {
if (this.warnings == null) {
- this.warnings = new ArrayList<>();
+ this.warnings = null;
}
this.warnings.add(warningsItem);
return this;
@@ -179,11 +180,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, errorCodeResponse.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(errors, warnings, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/GetPortfolioResponse.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/GetPortfolioResponse.java
index de3ba4d3..d94b00e0 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/GetPortfolioResponse.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/GetPortfolioResponse.java
@@ -26,6 +26,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -76,7 +77,7 @@ public GetPortfolioResponse data(List data) {
public GetPortfolioResponse addDataItem(EntityOfPortfolioMessage dataItem) {
if (this.data == null) {
- this.data = new ArrayList<>();
+ this.data = null;
}
this.data.add(dataItem);
return this;
@@ -106,7 +107,7 @@ public GetPortfolioResponse errors(List errors) {
public GetPortfolioResponse addErrorsItem(CriteoApiError errorsItem) {
if (this.errors == null) {
- this.errors = new ArrayList<>();
+ this.errors = null;
}
this.errors.add(errorsItem);
return this;
@@ -136,7 +137,7 @@ public GetPortfolioResponse warnings(List warnings) {
public GetPortfolioResponse addWarningsItem(CriteoApiWarning warningsItem) {
if (this.warnings == null) {
- this.warnings = new ArrayList<>();
+ this.warnings = null;
}
this.warnings.add(warningsItem);
return this;
@@ -218,11 +219,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, getPortfolioResponse.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(data, errors, warnings, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/NewAudienceAttributes.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/NewAudienceAttributes.java
index 5df5823b..c62cf78e 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/NewAudienceAttributes.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/NewAudienceAttributes.java
@@ -21,6 +21,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -189,11 +190,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, newAudienceAttributes.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(advertiserId, name, description, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/NillableAdSetTargetingRuleValue.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/NillableAdSetTargetingRuleValue.java
index 3c08b735..b0acfd70 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/NillableAdSetTargetingRuleValue.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/NillableAdSetTargetingRuleValue.java
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -82,7 +83,7 @@ public static OperandEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -140,7 +141,7 @@ public NillableAdSetTargetingRuleValue values(List values) {
public NillableAdSetTargetingRuleValue addValuesItem(String valuesItem) {
if (this.values == null) {
- this.values = new ArrayList<>();
+ this.values = null;
}
this.values.add(valuesItem);
return this;
@@ -221,11 +222,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, nillableAdSetTargetingRuleValue.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(operand, values, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSet.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSet.java
index 1218434c..b0aaa7a2 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSet.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSet.java
@@ -25,6 +25,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -247,11 +248,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, patchAdSet.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(name, scheduling, bidding, targeting, budget, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetBudget.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetBudget.java
index 0100ee12..84018c08 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetBudget.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetBudget.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -79,7 +80,7 @@ public static BudgetStrategyEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -134,7 +135,7 @@ public static BudgetRenewalEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -185,7 +186,7 @@ public static BudgetDeliverySmoothingEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -248,7 +249,7 @@ public static BudgetDeliveryWeekEnum fromValue(String value) {
return b;
}
}
- throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ return null;
}
public static class Adapter extends TypeAdapter {
@@ -448,11 +449,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, patchAdSetBudget.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(budgetStrategy, budgetRenewal, budgetDeliverySmoothing, budgetDeliveryWeek, budgetAmount, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBid.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBid.java
index 632041ca..e6691bb8 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBid.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBid.java
@@ -21,6 +21,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -135,11 +136,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, patchAdSetCategoryBid.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(bidAmount, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidListRequest.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidListRequest.java
index dad26bd0..7686b382 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidListRequest.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidListRequest.java
@@ -24,6 +24,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -66,7 +67,7 @@ public PatchAdSetCategoryBidListRequest data(List
public PatchAdSetCategoryBidListRequest addDataItem(PatchAdSetCategoryBidResource dataItem) {
if (this.data == null) {
- this.data = new ArrayList<>();
+ this.data = null;
}
this.data.add(dataItem);
return this;
@@ -146,11 +147,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, patchAdSetCategoryBidListRequest.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(data, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResource.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResource.java
index 6ac6dd1d..90fda3af 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResource.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResource.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -190,11 +191,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, patchAdSetCategoryBidResource.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(attributes, id, type, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResultListResponse.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResultListResponse.java
index 8a43ba86..603e0d20 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResultListResponse.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResultListResponse.java
@@ -25,6 +25,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -85,7 +86,7 @@ public PatchAdSetCategoryBidResultListResponse data(List();
+ this.data = null;
}
this.data.add(dataItem);
return this;
@@ -193,11 +194,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, patchAdSetCategoryBidResultListResponse.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(data, warnings, errors, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResultResource.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResultResource.java
index de826b0a..8df2cebf 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResultResource.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetCategoryBidResultResource.java
@@ -21,6 +21,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -162,11 +163,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, patchAdSetCategoryBidResultResource.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(id, type, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplier.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplier.java
index 955d1e15..868c5153 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplier.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplier.java
@@ -21,6 +21,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -135,11 +136,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, patchAdSetDisplayMultiplier.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(displayMultiplier, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierListRequest.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierListRequest.java
index ab800fbd..4d5189cc 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierListRequest.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierListRequest.java
@@ -24,6 +24,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -66,7 +67,7 @@ public PatchAdSetDisplayMultiplierListRequest data(List();
+ this.data = null;
}
this.data.add(dataItem);
return this;
@@ -146,11 +147,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, patchAdSetDisplayMultiplierListRequest.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
@Override
public int hashCode() {
return Objects.hash(data, additionalProperties);
}
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
diff --git a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierResource.java
index 4dfa2c22..db6326c5 100644
--- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierResource.java
+++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierResource.java
@@ -22,6 +22,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
+import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -190,11 +191,22 @@ public boolean equals(Object o) {
Objects.equals(this.additionalProperties, patchAdSetDisplayMultiplierResource.additionalProperties);
}
+ private static boolean equalsNullable(JsonNullable