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 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/PatchAdSetDisplayMultiplierResultListResponse.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierResultListResponse.java index e8fce02d..9e76bb2f 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierResultListResponse.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierResultListResponse.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 PatchAdSetDisplayMultiplierResultListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchAdSetDisplayMultiplierResultListResponse.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/PatchAdSetDisplayMultiplierResultResource.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierResultResource.java index 09eeced7..bb6ffd3a 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierResultResource.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchAdSetDisplayMultiplierResultResource.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, patchAdSetDisplayMultiplierResultResource.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/PatchCampaignListRequest.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchCampaignListRequest.java index d14ccf70..4d9778ba 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchCampaignListRequest.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchCampaignListRequest.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 PatchCampaignListRequest data(List data) { public PatchCampaignListRequest addDataItem(PatchCampaignWriteResource 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, patchCampaignListRequest.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/PatchCampaignSpendLimit.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchCampaignSpendLimit.java index 18bfdd62..d708fe2c 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchCampaignSpendLimit.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchCampaignSpendLimit.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, patchCampaignSpendLimit.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/PatchCampaignWriteResource.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchCampaignWriteResource.java index d0101ce7..5cf74a5a 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchCampaignWriteResource.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchCampaignWriteResource.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, patchCampaignWriteResource.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/PatchResultCampaignListResponse.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchResultCampaignListResponse.java index ec3b608d..34241f8f 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchResultCampaignListResponse.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchResultCampaignListResponse.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, patchResultCampaignListResponse.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/PatchResultCampaignReadResource.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchResultCampaignReadResource.java index d2f3ce1f..25fc6723 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchResultCampaignReadResource.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PatchResultCampaignReadResource.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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchResultCampaignReadResource.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/PlacementsReportQueryMessage.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PlacementsReportQueryMessage.java index f51f9e06..2c2ffa63 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PlacementsReportQueryMessage.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PlacementsReportQueryMessage.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; @@ -531,11 +532,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, placementsReportQueryMessage.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(advertiserIds, campaignIds, adsetIds, environment, placement, dimensions, metrics, currency, disclosed, format, timezone, startDate, endDate, 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/PortfolioMessage.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PortfolioMessage.java index 4cdd76ec..fea75ccb 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PortfolioMessage.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/PortfolioMessage.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, portfolioMessage.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(advertiserName, 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/ProblemDetails.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ProblemDetails.java index d038a2d9..d2929c4d 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ProblemDetails.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ProblemDetails.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 ProblemDetails source(Map source) { public ProblemDetails 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, problemDetails.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/ProblemsDetails.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ProblemsDetails.java index ad83e0e2..08161cd6 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ProblemsDetails.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ProblemsDetails.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; @@ -137,11 +138,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemsDetails.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, 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/ReadAdSet.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSet.java index e70a5113..506e2833 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSet.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSet.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; @@ -100,7 +101,7 @@ public static DestinationEnvironmentEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -167,7 +168,7 @@ public static MediaTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -478,11 +479,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSet.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, datasetId, campaignId, destinationEnvironment, schedule, bidding, targeting, budget, mediaType, 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/ReadAdSetBidding.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSetBidding.java index 3d766733..b6097a1e 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSetBidding.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSetBidding.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; @@ -101,7 +102,7 @@ public static BidStrategyEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -164,7 +165,7 @@ public static CostControllerEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -314,11 +315,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetBidding.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, bidStrategy, costController, 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/ReadAdSetBudget.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSetBudget.java index 789a6b87..b2cc2bce 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSetBudget.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSetBudget.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, readAdSetBudget.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/ReadAdSetSchedule.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSetSchedule.java index 6b802864..9504102e 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSetSchedule.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadAdSetSchedule.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; @@ -87,7 +88,7 @@ public static ActivationStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -154,7 +155,7 @@ public static DeliveryStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -327,11 +328,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetSchedule.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(startDate, endDate, activationStatus, deliveryStatus, 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/ReadModelAdSetId.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadModelAdSetId.java index 06041f28..a9a84809 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadModelAdSetId.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadModelAdSetId.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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readModelAdSetId.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/ReadModelReadAdSet.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadModelReadAdSet.java index 7cc4066e..55616128 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadModelReadAdSet.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ReadModelReadAdSet.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, readModelReadAdSet.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/RequestsAdSetId.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/RequestsAdSetId.java index 821dbd13..e34c1dbe 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/RequestsAdSetId.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/RequestsAdSetId.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 RequestsAdSetId data(List data) { public RequestsAdSetId addDataItem(WriteModelAdSetId 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, requestsAdSetId.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/RequestsPatchAdSet.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/RequestsPatchAdSet.java index 911f9822..b2c7ec0b 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/RequestsPatchAdSet.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/RequestsPatchAdSet.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 RequestsPatchAdSet data(List data) { public RequestsPatchAdSet addDataItem(WriteModelPatchAdSet 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, requestsPatchAdSet.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/ResponseAdSetId.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponseAdSetId.java index 3f57b002..e3217a6b 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponseAdSetId.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponseAdSetId.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, responseAdSetId.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/ResponseReadAdSet.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponseReadAdSet.java index b6816f18..698b27b2 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponseReadAdSet.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponseReadAdSet.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, responseReadAdSet.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/ResponsesAdSetId.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponsesAdSetId.java index b2de57e2..fbd468aa 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponsesAdSetId.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponsesAdSetId.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, responsesAdSetId.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/ResponsesReadAdSet.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponsesReadAdSet.java index c4e8cc7d..6db6643c 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponsesReadAdSet.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/ResponsesReadAdSet.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, responsesReadAdSet.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/StatisticsReportQueryMessage.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/StatisticsReportQueryMessage.java index 901ee25f..a19bfeaf 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/StatisticsReportQueryMessage.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/StatisticsReportQueryMessage.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; @@ -219,7 +220,7 @@ public StatisticsReportQueryMessage adSetIds(List adSetIds) { public StatisticsReportQueryMessage addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -249,7 +250,7 @@ public StatisticsReportQueryMessage adSetNames(List adSetNames) { public StatisticsReportQueryMessage addAdSetNamesItem(String adSetNamesItem) { if (this.adSetNames == null) { - this.adSetNames = new ArrayList<>(); + this.adSetNames = null; } this.adSetNames.add(adSetNamesItem); return this; @@ -279,7 +280,7 @@ public StatisticsReportQueryMessage adSetStatus(List adSetStatus) { public StatisticsReportQueryMessage addAdSetStatusItem(String adSetStatusItem) { if (this.adSetStatus == null) { - this.adSetStatus = new ArrayList<>(); + this.adSetStatus = null; } this.adSetStatus.add(adSetStatusItem); return this; @@ -533,11 +534,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, statisticsReportQueryMessage.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(advertiserIds, adSetIds, adSetNames, adSetStatus, dimensions, metrics, currency, format, timezone, startDate, endDate, 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/TransactionsReportQueryMessage.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/TransactionsReportQueryMessage.java index 715f6125..cc7dbe7c 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/TransactionsReportQueryMessage.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/TransactionsReportQueryMessage.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; @@ -298,11 +299,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transactionsReportQueryMessage.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(advertiserIds, eventType, currency, format, timezone, startDate, endDate, 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/TransparencyQueryMessage.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/TransparencyQueryMessage.java index 277a99a6..1433c7bb 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/TransparencyQueryMessage.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/TransparencyQueryMessage.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; @@ -190,11 +191,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transparencyQueryMessage.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(shouldDisplayProductIds, startDate, endDate, 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/WriteModelAdSetId.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/WriteModelAdSetId.java index c24bf46f..f76de81d 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/WriteModelAdSetId.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/WriteModelAdSetId.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, writeModelAdSetId.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/WriteModelPatchAdSet.java b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/WriteModelPatchAdSet.java index 88f614da..93db256e 100644 --- a/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/WriteModelPatchAdSet.java +++ b/sdks/marketingsolutions_2022-07/src/main/java/com/criteo/api/marketingsolutions/v2022_07/model/WriteModelPatchAdSet.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, writeModelPatchAdSet.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-10/README.md b/sdks/marketingsolutions_2022-10/README.md index bc6cfc68..866fb128 100644 --- a/sdks/marketingsolutions_2022-10/README.md +++ b/sdks/marketingsolutions_2022-10/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com Criteo API -- Package version: 2022.10.0.230728 +- Package version: 2022.10.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.10.0.230728 + 2022.10.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.10.0.230728" +compile "com.criteo:criteo-api-marketingsolutions-sdk:2022.10.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-marketingsolutions-sdk-2022.10.0.230728.jar` +* `target/criteo-api-marketingsolutions-sdk-2022.10.0.230831.jar` * `target/lib/*.jar` ## Example diff --git a/sdks/marketingsolutions_2022-10/api/openapi.yaml b/sdks/marketingsolutions_2022-10/api/openapi.yaml index 1863b64e..22cf2e11 100644 --- a/sdks/marketingsolutions_2022-10/api/openapi.yaml +++ b/sdks/marketingsolutions_2022-10/api/openapi.yaml @@ -131,10 +131,10 @@ paths: - Audience x-content-type: application/json x-accepts: application/json - /2022-10/audiences/{audience-id}/contactlist: + /2022-10/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-10/audiences/{audience-id}: + /2022-10/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-10/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-10/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-10/marketing-solutions/ad-sets/search: post: @@ -519,56 +527,6 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2022-10/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-10/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-10/marketing-solutions/campaigns/{campaign-id}: + /2022-10/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-10/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-10/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-10/marketing-solutions/ad-sets/{ad-set-id}/category-bids: + /2022-10/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-10/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-10/statistics/report: + /2022-10/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-10/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-10/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-10/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-10/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-10/log-level/advertisers/{advertiser-id}/report: + /2022-10/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-10/placements/report: + /2022-10/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-10/build.gradle b/sdks/marketingsolutions_2022-10/build.gradle index ebf70984..7b3fa3ee 100644 --- a/sdks/marketingsolutions_2022-10/build.gradle +++ b/sdks/marketingsolutions_2022-10/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2022.10.0.230728' +version = '2022.10.0.230831' repositories { jcenter() @@ -75,7 +75,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '2022.10.0.230728' + version '2022.10.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/marketingsolutions_2022-10/pom.xml b/sdks/marketingsolutions_2022-10/pom.xml index 836c4c59..63a8ccbe 100644 --- a/sdks/marketingsolutions_2022-10/pom.xml +++ b/sdks/marketingsolutions_2022-10/pom.xml @@ -5,7 +5,7 @@ criteo-api-marketingsolutions-sdk jar criteo-api-marketingsolutions-sdk - 2022.10.0.230728 + 2022.10.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API marketingsolutions for 2022_10 version diff --git a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/ApiClient.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/ApiClient.java index ca7cad82..e851de28 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/ApiClient.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2022.10.0.230728/java"); + setUserAgent("OpenAPI-Generator/2022.10.0.230831/java"); authentications = new HashMap(); } diff --git a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetCategoryBid.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetCategoryBid.java index 0e2c3858..0e6ceccc 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetCategoryBid.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetCategoryBidListResponse.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetCategoryBidListResponse.java index 6ac9ffb1..9f7f955d 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetCategoryBidListResponse.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetCategoryBidResource.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetCategoryBidResource.java index 582cc9d8..c2ec7788 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDeliveryLimitations.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDeliveryLimitations.java index db525c65..f03ae201 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDeliveryLimitations.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDisplayMultiplier.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDisplayMultiplier.java index 5fe1371e..a2130b48 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDisplayMultiplierListResponse.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDisplayMultiplierListResponse.java index 310015e7..c7dd9943 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDisplayMultiplierListResponse.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDisplayMultiplierResource.java index 2939c624..18b778a5 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetFrequencyCapping.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetFrequencyCapping.java index 8cfa9b58..96036853 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetFrequencyCapping.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetSearchFilter.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetSearchFilter.java index 07826896..f6e49184 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetSearchFilter.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetTargetingRule.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetTargetingRule.java index 598bd1c2..b602a52c 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AdSetTargetingRule.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ApplicationSummaryModel.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ApplicationSummaryModel.java index b9b45bc9..71f3c8ec 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ApplicationSummaryModel.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ApplicationSummaryModelResource.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ApplicationSummaryModelResource.java index b5afc7bd..7b69f9ab 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ApplicationSummaryModelResource.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ApplicationSummaryModelResponse.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ApplicationSummaryModelResponse.java index fe84be86..ad44683d 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ApplicationSummaryModelResponse.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceAttributes.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceAttributes.java index e363beea..4fc6e9dc 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceAttributes.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceError.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceError.java index bb1bbcc7..aa4f9a50 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceError.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceNameDescription.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceNameDescription.java index b7d69733..d2bc59e4 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceNameDescription.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceWarning.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceWarning.java index 3795145f..006293a8 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/AudienceWarning.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/Campaign.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/Campaign.java index b2a6c45d..a24172f8 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/Campaign.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignListResponse.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignListResponse.java index 38fc3ade..f5bc370c 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignListResponse.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignReadResource.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignReadResource.java index c301e27d..1e359678 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignReadResource.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignResponse.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignResponse.java index 1f80d969..628b2b2d 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignResponse.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignSearchFilters.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignSearchFilters.java index fcfb1f7b..d8f84eba 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignSearchFilters.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignSpendLimit.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignSpendLimit.java index 2f64ca21..1673ac09 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CampaignSpendLimit.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CommonProblem.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CommonProblem.java index cdeacac4..4ac7821b 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CommonProblem.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ContactlistAmendmentAttributes.java index c2bb0aa0..2827eac8 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ContactlistOperationAttributes.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ContactlistOperationAttributes.java index 34c3936a..a1a6efdd 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ContactlistOperationAttributes.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CriteoApiError.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CriteoApiError.java index 36edc591..bba39bca 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CriteoApiError.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CriteoApiWarning.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CriteoApiWarning.java index 56fdbbba..760c721d 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/CriteoApiWarning.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/EntityOfPortfolioMessage.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/EntityOfPortfolioMessage.java index 7c577c92..8b49caaf 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/EntityOfPortfolioMessage.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ErrorCodeResponse.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ErrorCodeResponse.java index 82ab8f07..78d0c4c6 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ErrorCodeResponse.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/GetPortfolioResponse.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/GetPortfolioResponse.java index 301088d0..dd417334 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/GetPortfolioResponse.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/NewAudienceAttributes.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/NewAudienceAttributes.java index 77c9fbfe..35ab797c 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/NewAudienceAttributes.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/NillableAdSetTargetingRuleValue.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/NillableAdSetTargetingRuleValue.java index 6470dc30..0e2f644e 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/NillableAdSetTargetingRuleValue.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSet.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSet.java index c00dcccc..4413b22e 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSet.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetBudget.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetBudget.java index b70def3e..90497526 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetBudget.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBid.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBid.java index 51e1ac8a..0d6a17e1 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBid.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidListRequest.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidListRequest.java index 2c5d5bc6..3f8b0727 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidListRequest.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidResource.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidResource.java index a0dd92e9..6a377fee 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidResultListResponse.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidResultListResponse.java index 1e971a50..52bfced4 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidResultListResponse.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidResultResource.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidResultResource.java index e51d2e4d..d7306d39 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetCategoryBidResultResource.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplier.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplier.java index 3723ea71..db4929aa 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierListRequest.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierListRequest.java index abf59167..66b0e793 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierListRequest.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResource.java index 169fa092..79a0bd2d 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/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 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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResultListResponse.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResultListResponse.java index 3c12aaaa..96020b5b 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResultListResponse.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResultListResponse.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 PatchAdSetDisplayMultiplierResultListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchAdSetDisplayMultiplierResultListResponse.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResultResource.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResultResource.java index 79b9faf7..f127349d 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResultResource.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchAdSetDisplayMultiplierResultResource.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, patchAdSetDisplayMultiplierResultResource.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignListRequest.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignListRequest.java index 0d9af306..eec89db7 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignListRequest.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignListRequest.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 PatchCampaignListRequest data(List data) { public PatchCampaignListRequest addDataItem(PatchCampaignWriteResource 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, patchCampaignListRequest.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignSpendLimit.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignSpendLimit.java index 3d90a3c5..0ab62902 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignSpendLimit.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignSpendLimit.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, patchCampaignSpendLimit.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignWriteResource.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignWriteResource.java index 488a1839..65db38ff 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignWriteResource.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchCampaignWriteResource.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, patchCampaignWriteResource.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchResultCampaignListResponse.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchResultCampaignListResponse.java index f2200f8d..235a2d1f 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchResultCampaignListResponse.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchResultCampaignListResponse.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, patchResultCampaignListResponse.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchResultCampaignReadResource.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchResultCampaignReadResource.java index feef44c7..0bec39d1 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchResultCampaignReadResource.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PatchResultCampaignReadResource.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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchResultCampaignReadResource.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PlacementsReportQueryMessage.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PlacementsReportQueryMessage.java index 7426468a..23e6a4d8 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PlacementsReportQueryMessage.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PlacementsReportQueryMessage.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; @@ -531,11 +532,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, placementsReportQueryMessage.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(advertiserIds, campaignIds, adsetIds, environment, placement, dimensions, metrics, currency, disclosed, format, timezone, startDate, endDate, 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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PortfolioMessage.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PortfolioMessage.java index ce6eda84..a60d0e1e 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PortfolioMessage.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/PortfolioMessage.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, portfolioMessage.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(advertiserName, 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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ProblemDetails.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ProblemDetails.java index c1ba3bfb..07b320bf 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ProblemDetails.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ProblemDetails.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 ProblemDetails source(Map source) { public ProblemDetails 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, problemDetails.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ProblemsDetails.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ProblemsDetails.java index f5455eeb..ccdd7c45 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ProblemsDetails.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ProblemsDetails.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; @@ -137,11 +138,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemsDetails.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, 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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSet.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSet.java index b0fe0b77..3284c866 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSet.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSet.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; @@ -100,7 +101,7 @@ public static DestinationEnvironmentEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -167,7 +168,7 @@ public static MediaTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -478,11 +479,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSet.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, datasetId, campaignId, destinationEnvironment, schedule, bidding, targeting, budget, mediaType, 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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetBidding.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetBidding.java index 1de9ace7..7760915a 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetBidding.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetBidding.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; @@ -101,7 +102,7 @@ public static BidStrategyEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -164,7 +165,7 @@ public static CostControllerEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -314,11 +315,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetBidding.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, bidStrategy, costController, 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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetBudget.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetBudget.java index bf0e9c92..aabb5edc 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetBudget.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetBudget.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, readAdSetBudget.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetSchedule.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetSchedule.java index 3a6d3d79..420c951c 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetSchedule.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadAdSetSchedule.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; @@ -87,7 +88,7 @@ public static ActivationStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -154,7 +155,7 @@ public static DeliveryStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -327,11 +328,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetSchedule.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(startDate, endDate, activationStatus, deliveryStatus, 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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadModelAdSetId.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadModelAdSetId.java index 36316f8c..d4399ae9 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadModelAdSetId.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadModelAdSetId.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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readModelAdSetId.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadModelReadAdSet.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadModelReadAdSet.java index b999f3c7..083efb9d 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadModelReadAdSet.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ReadModelReadAdSet.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, readModelReadAdSet.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/RequestsAdSetId.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/RequestsAdSetId.java index 2abb8896..8c40f836 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/RequestsAdSetId.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/RequestsAdSetId.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 RequestsAdSetId data(List data) { public RequestsAdSetId addDataItem(WriteModelAdSetId 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, requestsAdSetId.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/RequestsPatchAdSet.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/RequestsPatchAdSet.java index 83728a09..2a2ede21 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/RequestsPatchAdSet.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/RequestsPatchAdSet.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 RequestsPatchAdSet data(List data) { public RequestsPatchAdSet addDataItem(WriteModelPatchAdSet 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, requestsPatchAdSet.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponseAdSetId.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponseAdSetId.java index 634eeb6a..867c5d88 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponseAdSetId.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponseAdSetId.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, responseAdSetId.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponseReadAdSet.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponseReadAdSet.java index 2ad5699a..01425c6e 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponseReadAdSet.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponseReadAdSet.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, responseReadAdSet.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponsesAdSetId.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponsesAdSetId.java index 439c7406..950c5e81 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponsesAdSetId.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponsesAdSetId.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, responsesAdSetId.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponsesReadAdSet.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponsesReadAdSet.java index 25b1bab0..75c8d784 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponsesReadAdSet.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/ResponsesReadAdSet.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, responsesReadAdSet.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/StatisticsReportQueryMessage.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/StatisticsReportQueryMessage.java index 7a865b67..4ac0c26b 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/StatisticsReportQueryMessage.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/StatisticsReportQueryMessage.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; @@ -219,7 +220,7 @@ public StatisticsReportQueryMessage adSetIds(List adSetIds) { public StatisticsReportQueryMessage addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -249,7 +250,7 @@ public StatisticsReportQueryMessage adSetNames(List adSetNames) { public StatisticsReportQueryMessage addAdSetNamesItem(String adSetNamesItem) { if (this.adSetNames == null) { - this.adSetNames = new ArrayList<>(); + this.adSetNames = null; } this.adSetNames.add(adSetNamesItem); return this; @@ -279,7 +280,7 @@ public StatisticsReportQueryMessage adSetStatus(List adSetStatus) { public StatisticsReportQueryMessage addAdSetStatusItem(String adSetStatusItem) { if (this.adSetStatus == null) { - this.adSetStatus = new ArrayList<>(); + this.adSetStatus = null; } this.adSetStatus.add(adSetStatusItem); return this; @@ -533,11 +534,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, statisticsReportQueryMessage.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(advertiserIds, adSetIds, adSetNames, adSetStatus, dimensions, metrics, currency, format, timezone, startDate, endDate, 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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/TransactionsReportQueryMessage.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/TransactionsReportQueryMessage.java index d598e3cd..57d3c471 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/TransactionsReportQueryMessage.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/TransactionsReportQueryMessage.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; @@ -298,11 +299,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transactionsReportQueryMessage.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(advertiserIds, eventType, currency, format, timezone, startDate, endDate, 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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/TransparencyQueryMessage.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/TransparencyQueryMessage.java index 9175c6b4..d1afd8f4 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/TransparencyQueryMessage.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/TransparencyQueryMessage.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; @@ -190,11 +191,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transparencyQueryMessage.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(shouldDisplayProductIds, startDate, endDate, 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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/WriteModelAdSetId.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/WriteModelAdSetId.java index 3a9335f2..0feec6ee 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/WriteModelAdSetId.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/WriteModelAdSetId.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, writeModelAdSetId.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-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/WriteModelPatchAdSet.java b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/WriteModelPatchAdSet.java index adc43106..5c800bfb 100644 --- a/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/WriteModelPatchAdSet.java +++ b/sdks/marketingsolutions_2022-10/src/main/java/com/criteo/api/marketingsolutions/v2022_10/model/WriteModelPatchAdSet.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, writeModelPatchAdSet.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_2023-01/README.md b/sdks/marketingsolutions_2023-01/README.md index 5f093520..eab0e57e 100644 --- a/sdks/marketingsolutions_2023-01/README.md +++ b/sdks/marketingsolutions_2023-01/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com Criteo API -- Package version: 2023.01.0.230728 +- Package version: 2023.01.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 - 2023.01.0.230728 + 2023.01.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:2023.01.0.230728" +compile "com.criteo:criteo-api-marketingsolutions-sdk:2023.01.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-marketingsolutions-sdk-2023.01.0.230728.jar` +* `target/criteo-api-marketingsolutions-sdk-2023.01.0.230831.jar` * `target/lib/*.jar` ## Example diff --git a/sdks/marketingsolutions_2023-01/api/openapi.yaml b/sdks/marketingsolutions_2023-01/api/openapi.yaml index c676e7d8..397dc4fb 100644 --- a/sdks/marketingsolutions_2023-01/api/openapi.yaml +++ b/sdks/marketingsolutions_2023-01/api/openapi.yaml @@ -131,10 +131,10 @@ paths: - Audience x-content-type: application/json x-accepts: application/json - /2023-01/audiences/{audience-id}/contactlist: + /2023-01/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 - /2023-01/audiences/{audience-id}: + /2023-01/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 - /2023-01/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 + /2023-01/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 /2023-01/marketing-solutions/ad-sets/search: post: @@ -519,56 +527,6 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-01/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 /2023-01/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 - /2023-01/marketing-solutions/campaigns/{campaign-id}: + /2023-01/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 - /2023-01/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 - /2023-01/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 - /2023-01/marketing-solutions/ad-sets/{ad-set-id}/category-bids: + /2023-01/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 + /2023-01/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 - /2023-01/statistics/report: + /2023-01/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 - /2023-01/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: + /2023-01/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 + /2023-01/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 + /2023-01/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 - /2023-01/log-level/advertisers/{advertiser-id}/report: + /2023-01/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 - /2023-01/placements/report: + /2023-01/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_2023-01/build.gradle b/sdks/marketingsolutions_2023-01/build.gradle index 4fa6d6a0..5aaa1e55 100644 --- a/sdks/marketingsolutions_2023-01/build.gradle +++ b/sdks/marketingsolutions_2023-01/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2023.01.0.230728' +version = '2023.01.0.230831' repositories { jcenter() @@ -75,7 +75,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '2023.01.0.230728' + version '2023.01.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/marketingsolutions_2023-01/pom.xml b/sdks/marketingsolutions_2023-01/pom.xml index 41266e54..9b42f12f 100644 --- a/sdks/marketingsolutions_2023-01/pom.xml +++ b/sdks/marketingsolutions_2023-01/pom.xml @@ -5,7 +5,7 @@ criteo-api-marketingsolutions-sdk jar criteo-api-marketingsolutions-sdk - 2023.01.0.230728 + 2023.01.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API marketingsolutions for 2023_01 version diff --git a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/ApiClient.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/ApiClient.java index 278b93df..a85f39ad 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/ApiClient.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2023.01.0.230728/java"); + setUserAgent("OpenAPI-Generator/2023.01.0.230831/java"); authentications = new HashMap(); } diff --git a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetCategoryBid.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetCategoryBid.java index 59fa5dac..69635d55 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetCategoryBid.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetCategoryBidListResponse.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetCategoryBidListResponse.java index d0729196..63c094b1 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetCategoryBidListResponse.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetCategoryBidResource.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetCategoryBidResource.java index 2594c7b5..9dfbd2bc 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDeliveryLimitations.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDeliveryLimitations.java index ea4d8a74..d92758d5 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDeliveryLimitations.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDisplayMultiplier.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDisplayMultiplier.java index eda22216..d05a4d7f 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDisplayMultiplierListResponse.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDisplayMultiplierListResponse.java index 51f32bc8..202e36d6 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDisplayMultiplierListResponse.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDisplayMultiplierResource.java index 8c965d3c..edef9835 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetFrequencyCapping.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetFrequencyCapping.java index e4babf41..2d71e4bc 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetFrequencyCapping.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetSearchFilter.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetSearchFilter.java index 7f7bb4b0..3c8fa2bf 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetSearchFilter.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetTargetingRule.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetTargetingRule.java index f7b53db8..73795c75 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AdSetTargetingRule.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ApplicationSummaryModel.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ApplicationSummaryModel.java index 521cd3c6..999fb0f5 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ApplicationSummaryModel.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ApplicationSummaryModelResource.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ApplicationSummaryModelResource.java index d3abd745..3b4f7205 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ApplicationSummaryModelResource.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ApplicationSummaryModelResponse.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ApplicationSummaryModelResponse.java index 25a310ea..6c180363 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ApplicationSummaryModelResponse.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceAttributes.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceAttributes.java index cfab31aa..7d24cf70 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceAttributes.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceError.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceError.java index 202c27f6..7b7074a4 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceError.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceNameDescription.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceNameDescription.java index 09bb3cf0..470070ef 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceNameDescription.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceWarning.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceWarning.java index a1ebbd15..648b3996 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/AudienceWarning.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/Campaign.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/Campaign.java index 8b7c5b5b..310f8229 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/Campaign.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignListResponse.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignListResponse.java index fd7c73d8..8c131fd4 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignListResponse.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignReadResource.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignReadResource.java index b65928ed..3c91698a 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignReadResource.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignResponse.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignResponse.java index b327ae71..056ade00 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignResponse.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignSearchFilters.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignSearchFilters.java index b9a55555..eb6b34e8 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignSearchFilters.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignSpendLimit.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignSpendLimit.java index 743cd548..281cad8c 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CampaignSpendLimit.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CommonProblem.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CommonProblem.java index 0d7b5a8c..bc09b9b4 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CommonProblem.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ContactlistAmendmentAttributes.java index 3cac6746..483b4233 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ContactlistOperationAttributes.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ContactlistOperationAttributes.java index 3b03065c..f660a95a 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ContactlistOperationAttributes.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CriteoApiError.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CriteoApiError.java index 0ca0252c..2c276246 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CriteoApiError.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CriteoApiWarning.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CriteoApiWarning.java index e2a43487..9502540b 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/CriteoApiWarning.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/EntityOfPortfolioMessage.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/EntityOfPortfolioMessage.java index b7a61172..03344dd8 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/EntityOfPortfolioMessage.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ErrorCodeResponse.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ErrorCodeResponse.java index 0f79945a..cadada84 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ErrorCodeResponse.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/GetPortfolioResponse.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/GetPortfolioResponse.java index df17b244..7b41a703 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/GetPortfolioResponse.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/NewAudienceAttributes.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/NewAudienceAttributes.java index b1eb6851..2e2e2431 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/NewAudienceAttributes.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/NillableAdSetTargetingRuleValue.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/NillableAdSetTargetingRuleValue.java index 3c46b291..8cc8c40e 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/NillableAdSetTargetingRuleValue.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSet.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSet.java index f039853f..84575e0b 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSet.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetBudget.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetBudget.java index fe727653..e9a7a14b 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetBudget.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBid.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBid.java index a2a4d668..8d91d07d 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBid.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidListRequest.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidListRequest.java index 056759b7..8304bdac 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidListRequest.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidResource.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidResource.java index 35814874..9e9bf3d6 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidResultListResponse.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidResultListResponse.java index b49fefbc..ac589c2f 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidResultListResponse.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidResultResource.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidResultResource.java index 920cdc5c..8b67497c 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetCategoryBidResultResource.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplier.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplier.java index bcd3fcfd..f792f461 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierListRequest.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierListRequest.java index 34fe5d63..037a9068 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierListRequest.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResource.java index c14acfee..b6fc8bb5 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/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 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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResultListResponse.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResultListResponse.java index 77e2aeb3..7c988a6e 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResultListResponse.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResultListResponse.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 PatchAdSetDisplayMultiplierResultListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchAdSetDisplayMultiplierResultListResponse.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResultResource.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResultResource.java index 8b28658e..336a4a45 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResultResource.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchAdSetDisplayMultiplierResultResource.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, patchAdSetDisplayMultiplierResultResource.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignListRequest.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignListRequest.java index 9fdc3380..33d5743c 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignListRequest.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignListRequest.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 PatchCampaignListRequest data(List data) { public PatchCampaignListRequest addDataItem(PatchCampaignWriteResource 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, patchCampaignListRequest.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignSpendLimit.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignSpendLimit.java index 012864b2..5ee371e0 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignSpendLimit.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignSpendLimit.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, patchCampaignSpendLimit.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignWriteResource.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignWriteResource.java index 7082595b..07adf1e3 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignWriteResource.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchCampaignWriteResource.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, patchCampaignWriteResource.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchResultCampaignListResponse.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchResultCampaignListResponse.java index c1205be2..8cc97276 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchResultCampaignListResponse.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchResultCampaignListResponse.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, patchResultCampaignListResponse.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchResultCampaignReadResource.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchResultCampaignReadResource.java index 5ef41438..42bb17c5 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchResultCampaignReadResource.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PatchResultCampaignReadResource.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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchResultCampaignReadResource.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PlacementsReportQueryMessage.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PlacementsReportQueryMessage.java index 5ee58f49..61d94bc4 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PlacementsReportQueryMessage.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PlacementsReportQueryMessage.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; @@ -531,11 +532,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, placementsReportQueryMessage.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(advertiserIds, campaignIds, adsetIds, environment, placement, dimensions, metrics, currency, disclosed, format, timezone, startDate, endDate, 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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PortfolioMessage.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PortfolioMessage.java index 21c929ae..42db8254 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PortfolioMessage.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/PortfolioMessage.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, portfolioMessage.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(advertiserName, 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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ProblemDetails.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ProblemDetails.java index 5a890e0d..4e1496b7 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ProblemDetails.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ProblemDetails.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 ProblemDetails source(Map source) { public ProblemDetails 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, problemDetails.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ProblemsDetails.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ProblemsDetails.java index 2e915724..5efa7f5f 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ProblemsDetails.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ProblemsDetails.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; @@ -137,11 +138,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemsDetails.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, 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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSet.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSet.java index c8dbc5e7..389a7a72 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSet.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSet.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; @@ -100,7 +101,7 @@ public static DestinationEnvironmentEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -167,7 +168,7 @@ public static MediaTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -478,11 +479,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSet.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, datasetId, campaignId, destinationEnvironment, schedule, bidding, targeting, budget, mediaType, 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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetBidding.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetBidding.java index 24e43b54..489c1490 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetBidding.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetBidding.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; @@ -101,7 +102,7 @@ public static BidStrategyEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -164,7 +165,7 @@ public static CostControllerEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -314,11 +315,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetBidding.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, bidStrategy, costController, 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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetBudget.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetBudget.java index 6bb364eb..93bb2402 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetBudget.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetBudget.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, readAdSetBudget.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetSchedule.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetSchedule.java index 1c88fecc..f07660d8 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetSchedule.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadAdSetSchedule.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; @@ -87,7 +88,7 @@ public static ActivationStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -154,7 +155,7 @@ public static DeliveryStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -327,11 +328,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetSchedule.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(startDate, endDate, activationStatus, deliveryStatus, 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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadModelAdSetId.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadModelAdSetId.java index e2eb95d5..59e6fdb8 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadModelAdSetId.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadModelAdSetId.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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readModelAdSetId.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadModelReadAdSet.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadModelReadAdSet.java index af75bfb3..1fbb163f 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadModelReadAdSet.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ReadModelReadAdSet.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, readModelReadAdSet.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/RequestsAdSetId.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/RequestsAdSetId.java index 43325440..2a3ffe5a 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/RequestsAdSetId.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/RequestsAdSetId.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 RequestsAdSetId data(List data) { public RequestsAdSetId addDataItem(WriteModelAdSetId 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, requestsAdSetId.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/RequestsPatchAdSet.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/RequestsPatchAdSet.java index 8de535d8..97e45883 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/RequestsPatchAdSet.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/RequestsPatchAdSet.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 RequestsPatchAdSet data(List data) { public RequestsPatchAdSet addDataItem(WriteModelPatchAdSet 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, requestsPatchAdSet.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponseAdSetId.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponseAdSetId.java index ea925054..ec91c28c 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponseAdSetId.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponseAdSetId.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, responseAdSetId.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponseReadAdSet.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponseReadAdSet.java index 201b3978..4ae25244 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponseReadAdSet.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponseReadAdSet.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, responseReadAdSet.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponsesAdSetId.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponsesAdSetId.java index 40d2ed50..ec88e06f 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponsesAdSetId.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponsesAdSetId.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, responsesAdSetId.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponsesReadAdSet.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponsesReadAdSet.java index 67605a07..e8889c47 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponsesReadAdSet.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/ResponsesReadAdSet.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, responsesReadAdSet.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/StatisticsReportQueryMessage.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/StatisticsReportQueryMessage.java index a54b1032..96a8b41a 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/StatisticsReportQueryMessage.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/StatisticsReportQueryMessage.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; @@ -219,7 +220,7 @@ public StatisticsReportQueryMessage adSetIds(List adSetIds) { public StatisticsReportQueryMessage addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -249,7 +250,7 @@ public StatisticsReportQueryMessage adSetNames(List adSetNames) { public StatisticsReportQueryMessage addAdSetNamesItem(String adSetNamesItem) { if (this.adSetNames == null) { - this.adSetNames = new ArrayList<>(); + this.adSetNames = null; } this.adSetNames.add(adSetNamesItem); return this; @@ -279,7 +280,7 @@ public StatisticsReportQueryMessage adSetStatus(List adSetStatus) { public StatisticsReportQueryMessage addAdSetStatusItem(String adSetStatusItem) { if (this.adSetStatus == null) { - this.adSetStatus = new ArrayList<>(); + this.adSetStatus = null; } this.adSetStatus.add(adSetStatusItem); return this; @@ -533,11 +534,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, statisticsReportQueryMessage.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(advertiserIds, adSetIds, adSetNames, adSetStatus, dimensions, metrics, currency, format, timezone, startDate, endDate, 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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/TransactionsReportQueryMessage.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/TransactionsReportQueryMessage.java index 8ab9d812..e2323879 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/TransactionsReportQueryMessage.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/TransactionsReportQueryMessage.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; @@ -298,11 +299,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transactionsReportQueryMessage.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(advertiserIds, eventType, currency, format, timezone, startDate, endDate, 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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/TransparencyQueryMessage.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/TransparencyQueryMessage.java index b997363a..32233ca3 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/TransparencyQueryMessage.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/TransparencyQueryMessage.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; @@ -190,11 +191,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transparencyQueryMessage.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(shouldDisplayProductIds, startDate, endDate, 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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/WriteModelAdSetId.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/WriteModelAdSetId.java index 9dd48c34..63654c72 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/WriteModelAdSetId.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/WriteModelAdSetId.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, writeModelAdSetId.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_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/WriteModelPatchAdSet.java b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/WriteModelPatchAdSet.java index 8c5b3b1d..88b6d288 100644 --- a/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/WriteModelPatchAdSet.java +++ b/sdks/marketingsolutions_2023-01/src/main/java/com/criteo/api/marketingsolutions/v2023_01/model/WriteModelPatchAdSet.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, writeModelPatchAdSet.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_2023-04/README.md b/sdks/marketingsolutions_2023-04/README.md index ab6f69ae..9c2a4f96 100644 --- a/sdks/marketingsolutions_2023-04/README.md +++ b/sdks/marketingsolutions_2023-04/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com Criteo API -- Package version: 2023.04.0.230728 +- Package version: 2023.04.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 - 2023.04.0.230728 + 2023.04.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:2023.04.0.230728" +compile "com.criteo:criteo-api-marketingsolutions-sdk:2023.04.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-marketingsolutions-sdk-2023.04.0.230728.jar` +* `target/criteo-api-marketingsolutions-sdk-2023.04.0.230831.jar` * `target/lib/*.jar` ## Example diff --git a/sdks/marketingsolutions_2023-04/api/openapi.yaml b/sdks/marketingsolutions_2023-04/api/openapi.yaml index 20c3b126..8e38fa1a 100644 --- a/sdks/marketingsolutions_2023-04/api/openapi.yaml +++ b/sdks/marketingsolutions_2023-04/api/openapi.yaml @@ -131,10 +131,10 @@ paths: - Audience x-content-type: application/json x-accepts: application/json - /2023-04/audiences/{audience-id}/contactlist: + /2023-04/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 - /2023-04/audiences/{audience-id}: + /2023-04/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 - /2023-04/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 + /2023-04/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 /2023-04/marketing-solutions/ad-sets/search: post: @@ -519,56 +527,6 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-04/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 /2023-04/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 - /2023-04/marketing-solutions/campaigns/{campaign-id}: + /2023-04/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 - /2023-04/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 - /2023-04/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 - /2023-04/marketing-solutions/ad-sets/{ad-set-id}/category-bids: + /2023-04/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 + /2023-04/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 - /2023-04/statistics/report: + /2023-04/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 - /2023-04/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: + /2023-04/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 + /2023-04/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 + /2023-04/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 - /2023-04/log-level/advertisers/{advertiser-id}/report: + /2023-04/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 - /2023-04/placements/report: + /2023-04/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_2023-04/build.gradle b/sdks/marketingsolutions_2023-04/build.gradle index 8492ab95..5800d209 100644 --- a/sdks/marketingsolutions_2023-04/build.gradle +++ b/sdks/marketingsolutions_2023-04/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2023.04.0.230728' +version = '2023.04.0.230831' repositories { jcenter() @@ -75,7 +75,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '2023.04.0.230728' + version '2023.04.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/marketingsolutions_2023-04/pom.xml b/sdks/marketingsolutions_2023-04/pom.xml index 4ece900e..6354a13f 100644 --- a/sdks/marketingsolutions_2023-04/pom.xml +++ b/sdks/marketingsolutions_2023-04/pom.xml @@ -5,7 +5,7 @@ criteo-api-marketingsolutions-sdk jar criteo-api-marketingsolutions-sdk - 2023.04.0.230728 + 2023.04.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API marketingsolutions for 2023_04 version diff --git a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/ApiClient.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/ApiClient.java index 516b2dde..01ad501f 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/ApiClient.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2023.04.0.230728/java"); + setUserAgent("OpenAPI-Generator/2023.04.0.230831/java"); authentications = new HashMap(); } diff --git a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetCategoryBid.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetCategoryBid.java index 75a77522..b8ca4829 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetCategoryBid.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetCategoryBidListResponse.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetCategoryBidListResponse.java index e3ff81d3..dbac417f 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetCategoryBidListResponse.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetCategoryBidResource.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetCategoryBidResource.java index b2065704..af07d0de 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDeliveryLimitations.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDeliveryLimitations.java index 0751b44d..ec7c04d5 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDeliveryLimitations.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDisplayMultiplier.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDisplayMultiplier.java index ff7aaaec..a9ac43a1 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDisplayMultiplierListResponse.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDisplayMultiplierListResponse.java index 67d33905..e632fd7f 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDisplayMultiplierListResponse.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDisplayMultiplierResource.java index de20b761..8ca62be4 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetFrequencyCapping.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetFrequencyCapping.java index 946d69ff..9bfdc802 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetFrequencyCapping.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetSearchFilter.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetSearchFilter.java index b62f848a..00af70dc 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetSearchFilter.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetTargetingRule.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetTargetingRule.java index 597d7c73..8ce5cb9f 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AdSetTargetingRule.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ApplicationSummaryModel.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ApplicationSummaryModel.java index aa790704..a0774610 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ApplicationSummaryModel.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ApplicationSummaryModelResource.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ApplicationSummaryModelResource.java index 82c53356..25ad854d 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ApplicationSummaryModelResource.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ApplicationSummaryModelResponse.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ApplicationSummaryModelResponse.java index c5527f79..e406d1f5 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ApplicationSummaryModelResponse.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceAttributes.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceAttributes.java index 8254f007..e8fe4a31 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceAttributes.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceError.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceError.java index 6cc947f4..2ee39085 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceError.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceNameDescription.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceNameDescription.java index cf78749a..4c2444f1 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceNameDescription.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceWarning.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceWarning.java index d9a5340b..d0026ab2 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/AudienceWarning.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/Campaign.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/Campaign.java index e29e5f01..3bef8454 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/Campaign.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignListResponse.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignListResponse.java index d7bf03a6..9090c412 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignListResponse.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignReadResource.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignReadResource.java index ae34d621..f675ea57 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignReadResource.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignResponse.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignResponse.java index 126103c2..a3f41dc2 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignResponse.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignSearchFilters.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignSearchFilters.java index 25f0a62f..d97e196e 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignSearchFilters.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignSpendLimit.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignSpendLimit.java index cbd0b1f1..8ae4bd67 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CampaignSpendLimit.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CommonProblem.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CommonProblem.java index 72290682..853e4458 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CommonProblem.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ContactlistAmendmentAttributes.java index 173b5410..17c897e5 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ContactlistOperationAttributes.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ContactlistOperationAttributes.java index 1bcc681d..cb109053 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ContactlistOperationAttributes.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CriteoApiError.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CriteoApiError.java index 095ce862..53fed12d 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CriteoApiError.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CriteoApiWarning.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CriteoApiWarning.java index f63a72ca..ba9120d8 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/CriteoApiWarning.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/EntityOfPortfolioMessage.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/EntityOfPortfolioMessage.java index bf07833e..83728b49 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/EntityOfPortfolioMessage.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ErrorCodeResponse.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ErrorCodeResponse.java index 59e2c3c9..8ebf2c78 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ErrorCodeResponse.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/GetPortfolioResponse.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/GetPortfolioResponse.java index 294bb3a9..f65d113a 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/GetPortfolioResponse.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/NewAudienceAttributes.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/NewAudienceAttributes.java index 30d9f474..5ec7e145 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/NewAudienceAttributes.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/NillableAdSetTargetingRuleValue.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/NillableAdSetTargetingRuleValue.java index e85231ca..eb5e109d 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/NillableAdSetTargetingRuleValue.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSet.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSet.java index 797a2e8d..c9f9d213 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSet.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetBudget.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetBudget.java index a8919e08..d73df671 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetBudget.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBid.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBid.java index 02562caa..7e0ae77c 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBid.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidListRequest.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidListRequest.java index 43f49fea..8e55b8ec 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidListRequest.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidResource.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidResource.java index fb8587e7..a9432653 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidResultListResponse.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidResultListResponse.java index 81f52a3e..aba69ae9 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidResultListResponse.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidResultResource.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidResultResource.java index 756e32bf..971ece1e 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetCategoryBidResultResource.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplier.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplier.java index 3f41674b..aea6a58f 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierListRequest.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierListRequest.java index 43722c8b..a4190aa9 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierListRequest.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResource.java index 6bc250cb..fb129b7a 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/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 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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResultListResponse.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResultListResponse.java index 5cc54d17..732aac7e 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResultListResponse.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResultListResponse.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 PatchAdSetDisplayMultiplierResultListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchAdSetDisplayMultiplierResultListResponse.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResultResource.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResultResource.java index ae1c8d0e..6607d9ce 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResultResource.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchAdSetDisplayMultiplierResultResource.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, patchAdSetDisplayMultiplierResultResource.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignListRequest.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignListRequest.java index 4c364105..b517be9a 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignListRequest.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignListRequest.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 PatchCampaignListRequest data(List data) { public PatchCampaignListRequest addDataItem(PatchCampaignWriteResource 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, patchCampaignListRequest.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignSpendLimit.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignSpendLimit.java index d8139824..741927ac 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignSpendLimit.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignSpendLimit.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, patchCampaignSpendLimit.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignWriteResource.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignWriteResource.java index 6133cf01..9887810d 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignWriteResource.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchCampaignWriteResource.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, patchCampaignWriteResource.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchResultCampaignListResponse.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchResultCampaignListResponse.java index 5bd9419f..3b6036c3 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchResultCampaignListResponse.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchResultCampaignListResponse.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, patchResultCampaignListResponse.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchResultCampaignReadResource.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchResultCampaignReadResource.java index 2ec173fc..3e24949a 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchResultCampaignReadResource.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PatchResultCampaignReadResource.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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchResultCampaignReadResource.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PlacementsReportQueryMessage.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PlacementsReportQueryMessage.java index 79eb36bb..1ff934be 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PlacementsReportQueryMessage.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PlacementsReportQueryMessage.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; @@ -531,11 +532,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, placementsReportQueryMessage.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(advertiserIds, campaignIds, adsetIds, environment, placement, dimensions, metrics, currency, disclosed, format, timezone, startDate, endDate, 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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PortfolioMessage.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PortfolioMessage.java index cd197cb7..589e725f 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PortfolioMessage.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/PortfolioMessage.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, portfolioMessage.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(advertiserName, 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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ProblemDetails.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ProblemDetails.java index d14a297f..baaf2003 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ProblemDetails.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ProblemDetails.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 ProblemDetails source(Map source) { public ProblemDetails 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, problemDetails.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ProblemsDetails.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ProblemsDetails.java index 9e4d51bc..e86e2869 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ProblemsDetails.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ProblemsDetails.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; @@ -137,11 +138,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemsDetails.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, 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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSet.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSet.java index 170bd072..d6ca2068 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSet.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSet.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; @@ -100,7 +101,7 @@ public static DestinationEnvironmentEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -167,7 +168,7 @@ public static MediaTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -478,11 +479,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSet.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, datasetId, campaignId, destinationEnvironment, schedule, bidding, targeting, budget, mediaType, 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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetBidding.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetBidding.java index e2a757c1..9b900746 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetBidding.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetBidding.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; @@ -101,7 +102,7 @@ public static BidStrategyEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -164,7 +165,7 @@ public static CostControllerEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -314,11 +315,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetBidding.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, bidStrategy, costController, 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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetBudget.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetBudget.java index 2c8e6325..979f4495 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetBudget.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetBudget.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, readAdSetBudget.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetSchedule.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetSchedule.java index 54585357..5564c44d 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetSchedule.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadAdSetSchedule.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; @@ -87,7 +88,7 @@ public static ActivationStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -154,7 +155,7 @@ public static DeliveryStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -327,11 +328,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetSchedule.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(startDate, endDate, activationStatus, deliveryStatus, 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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadModelAdSetId.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadModelAdSetId.java index eb4e2a1c..72490ee4 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadModelAdSetId.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadModelAdSetId.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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readModelAdSetId.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadModelReadAdSet.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadModelReadAdSet.java index 13707b6f..6f7960e4 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadModelReadAdSet.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ReadModelReadAdSet.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, readModelReadAdSet.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/RequestsAdSetId.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/RequestsAdSetId.java index 2a69c097..43ef7f36 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/RequestsAdSetId.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/RequestsAdSetId.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 RequestsAdSetId data(List data) { public RequestsAdSetId addDataItem(WriteModelAdSetId 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, requestsAdSetId.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/RequestsPatchAdSet.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/RequestsPatchAdSet.java index 2e0e3ca0..2e231760 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/RequestsPatchAdSet.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/RequestsPatchAdSet.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 RequestsPatchAdSet data(List data) { public RequestsPatchAdSet addDataItem(WriteModelPatchAdSet 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, requestsPatchAdSet.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponseAdSetId.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponseAdSetId.java index a6150932..e09d49ee 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponseAdSetId.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponseAdSetId.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, responseAdSetId.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponseReadAdSet.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponseReadAdSet.java index 57ecd46b..4e294488 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponseReadAdSet.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponseReadAdSet.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, responseReadAdSet.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponsesAdSetId.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponsesAdSetId.java index a64d1bf8..466342b1 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponsesAdSetId.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponsesAdSetId.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, responsesAdSetId.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponsesReadAdSet.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponsesReadAdSet.java index a19bd0ea..d6f9cd57 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponsesReadAdSet.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/ResponsesReadAdSet.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, responsesReadAdSet.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/StatisticsReportQueryMessage.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/StatisticsReportQueryMessage.java index 8c68e17b..f963d96d 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/StatisticsReportQueryMessage.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/StatisticsReportQueryMessage.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; @@ -219,7 +220,7 @@ public StatisticsReportQueryMessage adSetIds(List adSetIds) { public StatisticsReportQueryMessage addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -249,7 +250,7 @@ public StatisticsReportQueryMessage adSetNames(List adSetNames) { public StatisticsReportQueryMessage addAdSetNamesItem(String adSetNamesItem) { if (this.adSetNames == null) { - this.adSetNames = new ArrayList<>(); + this.adSetNames = null; } this.adSetNames.add(adSetNamesItem); return this; @@ -279,7 +280,7 @@ public StatisticsReportQueryMessage adSetStatus(List adSetStatus) { public StatisticsReportQueryMessage addAdSetStatusItem(String adSetStatusItem) { if (this.adSetStatus == null) { - this.adSetStatus = new ArrayList<>(); + this.adSetStatus = null; } this.adSetStatus.add(adSetStatusItem); return this; @@ -533,11 +534,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, statisticsReportQueryMessage.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(advertiserIds, adSetIds, adSetNames, adSetStatus, dimensions, metrics, currency, format, timezone, startDate, endDate, 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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/TransactionsReportQueryMessage.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/TransactionsReportQueryMessage.java index ac790294..03244917 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/TransactionsReportQueryMessage.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/TransactionsReportQueryMessage.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; @@ -298,11 +299,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transactionsReportQueryMessage.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(advertiserIds, eventType, currency, format, timezone, startDate, endDate, 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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/TransparencyQueryMessage.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/TransparencyQueryMessage.java index 0bcbab16..429a40a2 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/TransparencyQueryMessage.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/TransparencyQueryMessage.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; @@ -190,11 +191,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transparencyQueryMessage.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(shouldDisplayProductIds, startDate, endDate, 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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/WriteModelAdSetId.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/WriteModelAdSetId.java index 75b2e37b..e5924980 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/WriteModelAdSetId.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/WriteModelAdSetId.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, writeModelAdSetId.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_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/WriteModelPatchAdSet.java b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/WriteModelPatchAdSet.java index ebbefd32..15ccfc88 100644 --- a/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/WriteModelPatchAdSet.java +++ b/sdks/marketingsolutions_2023-04/src/main/java/com/criteo/api/marketingsolutions/v2023_04/model/WriteModelPatchAdSet.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, writeModelPatchAdSet.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_2023-07/README.md b/sdks/marketingsolutions_2023-07/README.md index efd9a35a..6aef1095 100644 --- a/sdks/marketingsolutions_2023-07/README.md +++ b/sdks/marketingsolutions_2023-07/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com Criteo API -- Package version: 2023.07.0.230728 +- Package version: 2023.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 - 2023.07.0.230728 + 2023.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:2023.07.0.230728" +compile "com.criteo:criteo-api-marketingsolutions-sdk:2023.07.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-marketingsolutions-sdk-2023.07.0.230728.jar` +* `target/criteo-api-marketingsolutions-sdk-2023.07.0.230831.jar` * `target/lib/*.jar` ## Example diff --git a/sdks/marketingsolutions_2023-07/api/openapi.yaml b/sdks/marketingsolutions_2023-07/api/openapi.yaml index 4cf9a42b..ebca575b 100644 --- a/sdks/marketingsolutions_2023-07/api/openapi.yaml +++ b/sdks/marketingsolutions_2023-07/api/openapi.yaml @@ -131,10 +131,10 @@ paths: - Audience x-content-type: application/json x-accepts: application/json - /2023-07/audiences/{audience-id}/contactlist: + /2023-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 - /2023-07/audiences/{audience-id}: + /2023-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,50 +423,34 @@ paths: tags: - Gateway x-accepts: application/json - /2023-07/marketing-solutions/audiences/search: - post: - description: "Returns a list of audiences that match the provided filters. If\ - \ present, the filters are AND'ed together when applied." - operationId: searchAudiences + /2023-07/marketing-solutions/ad-sets/{ad-set-id}/audience: + put: + description: Link or unlink an audience with an ad set + operationId: updateAdSetAudience parameters: - - description: The number of elements to be returned. The default is 50 and - the maximum is 100. - explode: true - in: query - name: limit - required: false - schema: - default: 50 - format: int32 - maximum: 100 - minimum: 0 - type: integer - style: form - - description: The (zero-based) offset into the collection. The default is 0. - explode: true - in: query - name: offset - required: false + - description: The ad set ID. + explode: false + in: path + name: ad-set-id + required: true schema: - default: 0 - format: int32 - type: integer - style: form + type: string + style: simple requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSearchInputV1' + $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' application/json: schema: - $ref: '#/components/schemas/AudienceSearchInputV1' + $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' text/json: schema: - $ref: '#/components/schemas/AudienceSearchInputV1' + $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSearchInputV1' - description: Audience search filters. + $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' + description: Ad set-Audience update request. required: true x-bodyName: request responses: @@ -474,13 +458,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' application/json: schema: - $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' text/json: schema: - $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' description: Success "400": content: @@ -501,30 +485,30 @@ paths: text/json: {} description: The API client is not authorized to access this resource. tags: - - Audience + - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audiences/create: - post: - description: "Creates all audiences with a valid configuration, and returns\ - \ their IDs. For those that cannot be created, one or multiple errors are\ - \ returned." - operationId: bulkCreateAudiences + /2023-07/marketing-solutions/audience-segments: + patch: + description: "Updates the properties of all segments with a valid configuration,\ + \ and returns their IDs. For those that cannot be updated, one or multiple\ + \ errors are returned." + operationId: bulkUpdateAudienceSegments requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceBulkCreateInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceBulkCreateInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceBulkCreateInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceBulkCreateInputV1' - description: "" + $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' + description: Segment Update request required: true x-bodyName: request responses: @@ -532,13 +516,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' description: Success or partial success "400": content: @@ -562,26 +546,25 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audiences: - patch: - description: "Updates the properties of all audiences with a valid configuration,\ - \ and returns their IDs. For those that cannot be updated, one or multiple\ - \ errors are returned." - operationId: bulkUpdateAudiences + /2023-07/marketing-solutions/audience-segments/compute-sizes: + post: + description: Gets the size of all segments. An error is returned for those whose + size calculation is not supported. + operationId: computeAudienceSegmentsSizes requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' description: "" required: true x-bodyName: request @@ -590,13 +573,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' description: Success or partial success "400": content: @@ -620,25 +603,26 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audiences/delete: + /2023-07/marketing-solutions/audience-segments/create: post: - description: Deletes the audiences associated to the given audience IDs. - operationId: bulkDeleteAudiences + description: "Creates all segments with a valid configuration, and returns their\ + \ IDs. For those that cannot be created, one or multiple errors are returned." + operationId: bulkCreateAudienceSegments requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceBulkDeleteInputV1' - description: "" + $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' + description: Segment creation parameter required: true x-bodyName: request responses: @@ -646,19 +630,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' - description: Success - "204": - content: - text/plain: {} - application/json: {} - text/json: {} + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' description: Success or partial success "400": content: @@ -682,26 +660,25 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audiences/compute-sizes: + /2023-07/marketing-solutions/audience-segments/delete: post: - description: Gets the size of all audiences. An error is returned for those - whose size calculation is not supported. - operationId: computeAudiencesSizes - requestBody: + description: Delete the segments associated to the given audience IDs. + operationId: bulkDeleteAudienceSegments + requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceComputeSizesInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceComputeSizesInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceComputeSizesInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceComputeSizesInputV1' - description: "" + $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' + description: Segment delete request. required: true x-bodyName: request responses: @@ -709,13 +686,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' description: Success or partial success "400": content: @@ -739,25 +716,25 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audiences/estimate-size: + /2023-07/marketing-solutions/audience-segments/estimate-size: post: - description: Gets the size estimation of a non existent audience. An error is + description: Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. - operationId: estimateAudienceSize + operationId: estimateAudienceSegmentSize requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' description: "" required: true x-bodyName: request @@ -766,14 +743,14 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSizeEstimationV1Response' + $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' application/json: schema: - $ref: '#/components/schemas/AudienceSizeEstimationV1Response' + $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' text/json: schema: - $ref: '#/components/schemas/AudienceSizeEstimationV1Response' - description: Success or partial success + $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' + description: Success "400": content: text/plain: {} @@ -796,6 +773,107 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json + /2023-07/marketing-solutions/audience-segments/in-market-brands: + get: + description: Returns a list with all available in-market brands that can be + used to define an in-market segment. + operationId: getAudienceSegmentsInMarketBrands + parameters: + - description: The advertiser ID. + explode: true + in: query + name: advertiser-id + required: true + schema: + type: string + style: form + - description: The ISO 3166-1 alpha-2 country code. + explode: true + in: query + name: country + required: true + schema: + type: string + style: form + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' + application/json: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' + text/json: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' + description: Success + "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. + tags: + - Audience + x-accepts: application/json + /2023-07/marketing-solutions/audience-segments/in-market-interests: + get: + description: Returns a list with all available in-market interests that can + be used to define an in-market segment. These in-market interests correspond + to the Google product taxonomy. + operationId: getAudienceSegmentsInMarketInterests + parameters: + - description: The advertiser ID. + explode: true + in: query + name: advertiser-id + required: true + schema: + type: string + style: form + - description: The ISO 3166-1 alpha-2 country code. + explode: true + in: query + name: country + required: true + schema: + type: string + style: form + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + application/json: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + text/json: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + description: Success + "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. + tags: + - Audience + x-accepts: application/json /2023-07/marketing-solutions/audience-segments/search: post: description: "Returns a list of segments that match the provided filters. If\ @@ -877,47 +955,33 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/create: - post: - description: "Creates all segments with a valid configuration, and returns their\ - \ IDs. For those that cannot be created, one or multiple errors are returned." - operationId: bulkCreateAudienceSegments - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' - application/json: - schema: - $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' - text/json: - schema: - $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' - application/*+json: - schema: - $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' - description: Segment creation parameter + /2023-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list: + get: + description: Returns the statistics of a contact list segment. + operationId: getAudienceSegmentContactListStatistics + parameters: + - description: The segment ID. + explode: false + in: path + name: audience-segment-id required: true - x-bodyName: request + schema: + format: int32 + type: integer + style: simple responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/ContactListStatisticsEntityV1Response' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/ContactListStatisticsEntityV1Response' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' - description: Success or partial success - "400": - content: - text/plain: {} - application/json: {} - text/json: {} - description: Bad request + $ref: '#/components/schemas/ContactListStatisticsEntityV1Response' + description: Success "401": content: text/plain: {} @@ -932,29 +996,28 @@ paths: description: The API client is not authorized to access this resource. tags: - Audience - x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments: + /2023-07/marketing-solutions/audiences: patch: - description: "Updates the properties of all segments with a valid configuration,\ + description: "Updates the properties of all audiences with a valid configuration,\ \ and returns their IDs. For those that cannot be updated, one or multiple\ \ errors are returned." - operationId: bulkUpdateAudienceSegments + operationId: bulkUpdateAudiences requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceBulkUpdateInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceBulkUpdateInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceBulkUpdateInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' - description: Segment Update request + $ref: '#/components/schemas/AudienceBulkUpdateInputV1' + description: "" required: true x-bodyName: request responses: @@ -962,13 +1025,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' description: Success or partial success "400": content: @@ -992,25 +1055,26 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/delete: + /2023-07/marketing-solutions/audiences/compute-sizes: post: - description: Delete the segments associated to the given audience IDs. - operationId: bulkDeleteAudienceSegments + description: Gets the size of all audiences. An error is returned for those + whose size calculation is not supported. + operationId: computeAudiencesSizes requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceComputeSizesInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceComputeSizesInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceComputeSizesInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' - description: Segment delete request. + $ref: '#/components/schemas/AudienceComputeSizesInputV1' + description: "" required: true x-bodyName: request responses: @@ -1018,13 +1082,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' description: Success or partial success "400": content: @@ -1048,25 +1112,26 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/compute-sizes: + /2023-07/marketing-solutions/audiences/create: post: - description: Gets the size of all segments. An error is returned for those whose - size calculation is not supported. - operationId: computeAudienceSegmentsSizes + description: "Creates all audiences with a valid configuration, and returns\ + \ their IDs. For those that cannot be created, one or multiple errors are\ + \ returned." + operationId: bulkCreateAudiences requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' + $ref: '#/components/schemas/AudienceBulkCreateInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' + $ref: '#/components/schemas/AudienceBulkCreateInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' + $ref: '#/components/schemas/AudienceBulkCreateInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' + $ref: '#/components/schemas/AudienceBulkCreateInputV1' description: "" required: true x-bodyName: request @@ -1075,13 +1140,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' description: Success or partial success "400": content: @@ -1105,25 +1170,24 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/estimate-size: + /2023-07/marketing-solutions/audiences/delete: post: - description: Gets the size estimation of a non existent segment. An error is - returned when size calculation is not supported. - operationId: estimateAudienceSegmentSize + description: Deletes the audiences associated to the given audience IDs. + operationId: bulkDeleteAudiences requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceBulkDeleteInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceBulkDeleteInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceBulkDeleteInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceBulkDeleteInputV1' description: "" required: true x-bodyName: request @@ -1132,14 +1196,20 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' + $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' + $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' + $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' description: Success + "204": + content: + text/plain: {} + application/json: {} + text/json: {} + description: Success or partial success "400": content: text/plain: {} @@ -1162,42 +1232,47 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/in-market-interests: - get: - description: Returns a list with all available in-market interests that can - be used to define an in-market segment. These in-market interests correspond - to the Google product taxonomy. - operationId: getAudienceSegmentsInMarketInterests - parameters: - - description: The advertiser ID. - explode: true - in: query - name: advertiser-id - required: true - schema: - type: string - style: form - - description: The ISO 3166-1 alpha-2 country code. - explode: true - in: query - name: country + /2023-07/marketing-solutions/audiences/estimate-size: + post: + description: Gets the size estimation of a non existent audience. An error is + returned when size calculation is not supported. + operationId: estimateAudienceSize + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + application/json: + schema: + $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + text/json: + schema: + $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + application/*+json: + schema: + $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + description: "" required: true - schema: - type: string - style: form + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSizeEstimationV1Response' application/json: schema: - $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSizeEstimationV1Response' text/json: schema: - $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' - description: Success + $ref: '#/components/schemas/AudienceSizeEstimationV1Response' + description: Success or partial success + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: Bad request "401": content: text/plain: {} @@ -1212,42 +1287,73 @@ paths: description: The API client is not authorized to access this resource. tags: - Audience + x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/in-market-brands: - get: - description: Returns a list with all available in-market brands that can be - used to define an in-market segment. - operationId: getAudienceSegmentsInMarketBrands + /2023-07/marketing-solutions/audiences/search: + post: + description: "Returns a list of audiences that match the provided filters. If\ + \ present, the filters are AND'ed together when applied." + operationId: searchAudiences parameters: - - description: The advertiser ID. + - description: The number of elements to be returned. The default is 50 and + the maximum is 100. explode: true in: query - name: advertiser-id - required: true + name: limit + required: false schema: - type: string + default: 50 + format: int32 + maximum: 100 + minimum: 0 + type: integer style: form - - description: The ISO 3166-1 alpha-2 country code. + - description: The (zero-based) offset into the collection. The default is 0. explode: true in: query - name: country - required: true + name: offset + required: false schema: - type: string + default: 0 + format: int32 + type: integer style: form + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/AudienceSearchInputV1' + application/json: + schema: + $ref: '#/components/schemas/AudienceSearchInputV1' + text/json: + schema: + $ref: '#/components/schemas/AudienceSearchInputV1' + application/*+json: + schema: + $ref: '#/components/schemas/AudienceSearchInputV1' + description: Audience search filters. + required: true + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' application/json: schema: - $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' text/json: schema: - $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' description: Success + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: Bad request "401": content: text/plain: {} @@ -1262,34 +1368,41 @@ paths: description: The API client is not authorized to access this resource. tags: - Audience + x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list: - get: - description: Returns the statistics of a contact list segment. - operationId: getAudienceSegmentContactListStatistics - parameters: - - description: The segment ID. - explode: false - in: path - name: audience-segment-id - required: true - schema: - format: int32 - type: integer - style: simple + /2023-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/ContactListStatisticsEntityV1Response' + $ref: '#/components/schemas/ResponseAdSetId' application/json: schema: - $ref: '#/components/schemas/ContactListStatisticsEntityV1Response' + $ref: '#/components/schemas/ResponseAdSetId' text/json: schema: - $ref: '#/components/schemas/ContactListStatisticsEntityV1Response' - description: Success + $ref: '#/components/schemas/ResponseAdSetId' + description: List of patched adSets. "401": content: text/plain: {} @@ -1301,117 +1414,61 @@ paths: text/plain: {} application/json: {} text/json: {} - description: The API client is not authorized to access this resource. + description: The API client is not authorized to access this resource or + the resource does not exist. tags: - - Audience + - Campaign + x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/ad-sets/{ad-set-id}/audience: - put: - description: Link or unlink an audience with an ad set - operationId: updateAdSetAudience - parameters: - - description: The ad set ID. - explode: false - in: path - name: ad-set-id - required: true - schema: - type: string - style: simple + post: + description: Create the specified ad set + operationId: CreateAdSet requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' + $ref: '#/components/schemas/CreateAdSetRequest' application/json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' + $ref: '#/components/schemas/CreateAdSetRequest' text/json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' + $ref: '#/components/schemas/CreateAdSetRequest' application/*+json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' - description: Ad set-Audience update request. + $ref: '#/components/schemas/CreateAdSetRequest' + description: the ad sets to create required: true - x-bodyName: request + x-bodyName: adSet responses: - "200": + "201": content: text/plain: schema: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' + $ref: '#/components/schemas/ResponseReadAdSet' application/json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' + $ref: '#/components/schemas/ResponseReadAdSet' text/json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' - description: Success + $ref: '#/components/schemas/ResponseReadAdSet' + description: The ad set that has been created and errors / warnings "400": content: text/plain: {} application/json: {} text/json: {} - description: Bad request + description: Bad Request "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. tags: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-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 - responses: - "200": - content: - text/plain: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - application/json: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - text/json: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - description: data for the ad set - "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 /2023-07/marketing-solutions/ad-sets/search: post: description: Search for ad sets @@ -1466,105 +1523,6 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-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 - post: - description: Create the specified ad set - operationId: CreateAdSet - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/CreateAdSetRequest' - application/json: - schema: - $ref: '#/components/schemas/CreateAdSetRequest' - text/json: - schema: - $ref: '#/components/schemas/CreateAdSetRequest' - application/*+json: - schema: - $ref: '#/components/schemas/CreateAdSetRequest' - description: the ad sets to create - required: true - x-bodyName: adSet - responses: - "201": - content: - text/plain: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - application/json: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - text/json: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - description: The ad set that has been created and errors / warnings - "400": - content: - 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. - tags: - - Campaign - x-content-type: application/json-patch+json - x-accepts: application/json /2023-07/marketing-solutions/ad-sets/start: post: description: Start the specified list of ad sets @@ -1665,15 +1623,16 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/campaigns/{campaign-id}: + /2023-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 @@ -1683,14 +1642,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: {} @@ -1707,39 +1673,48 @@ paths: tags: - Campaign x-accepts: application/json - /2023-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: {} @@ -1757,44 +1732,46 @@ paths: text/plain: {} application/json: {} text/json: {} - description: Forbidden + 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 - /2023-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 + /2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers: + get: + description: Get the Display Multipliers for all valid Categories associated + to an Ad Set + operationId: GetDisplayMultipliers + parameters: + - description: Id of the Ad Set + explode: false + in: path + name: ad-set-id + required: true + schema: + type: string + style: simple responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/PatchResultCampaignListResponse' + $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' application/json: schema: - $ref: '#/components/schemas/PatchResultCampaignListResponse' + $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' text/json: schema: - $ref: '#/components/schemas/PatchResultCampaignListResponse' - description: List of patched campaigns. + $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' + description: List of Display Multipliers for all valid Categories associated + to an Ad Set. + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: Bad Request "401": content: text/plain: {} @@ -1810,41 +1787,49 @@ paths: the resource does not exist. tags: - Campaign - x-content-type: application/json-patch+json x-accepts: application/json - post: - description: Create the specified campaign - operationId: CreateCampaign - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/CreateCampaignRequest' - application/json: - schema: - $ref: '#/components/schemas/CreateCampaignRequest' + patch: + description: Patch Display Multipliers for one or more Categories in a single + request. Partial success policy is followed. + operationId: PatchDisplayMultipliers + 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/PatchAdSetDisplayMultiplierListRequest' + application/json: + schema: + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' text/json: schema: - $ref: '#/components/schemas/CreateCampaignRequest' + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' application/*+json: schema: - $ref: '#/components/schemas/CreateCampaignRequest' - description: the campaigns to create - required: true - x-bodyName: marketingCampaign + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' + x-bodyName: displayMultipliersToUpdate responses: - "201": + "200": content: text/plain: schema: - $ref: '#/components/schemas/CampaignV23Q1Response' + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' application/json: schema: - $ref: '#/components/schemas/CampaignV23Q1Response' + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' text/json: schema: - $ref: '#/components/schemas/CampaignV23Q1Response' - description: The campaign that has been created and errors / warnings + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' + description: List of updated Display Multipliers for given Categories associated + to an Ad Set. "400": content: text/plain: {} @@ -1857,20 +1842,26 @@ paths: 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 - /2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers: + /2023-07/marketing-solutions/ad-sets/{adSetId}: get: - description: Get the Display Multipliers for all valid Categories associated - to an Ad Set - operationId: GetDisplayMultipliers + 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 @@ -1880,21 +1871,14 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' + $ref: '#/components/schemas/ResponseReadAdSet' application/json: schema: - $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' + $ref: '#/components/schemas/ResponseReadAdSet' text/json: schema: - $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' - description: List of Display Multipliers 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: {} @@ -1911,54 +1895,39 @@ paths: tags: - Campaign x-accepts: application/json + /2023-07/marketing-solutions/campaigns: patch: - description: Patch Display Multipliers for one or more Categories in a single - request. Partial success policy is followed. - operationId: PatchDisplayMultipliers - 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/PatchAdSetDisplayMultiplierListRequest' + $ref: '#/components/schemas/PatchCampaignListRequest' application/json: schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' + $ref: '#/components/schemas/PatchCampaignListRequest' text/json: schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' + $ref: '#/components/schemas/PatchCampaignListRequest' application/*+json: schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' - x-bodyName: displayMultipliersToUpdate + $ref: '#/components/schemas/PatchCampaignListRequest' + description: List of campaigns to patch. + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' + $ref: '#/components/schemas/PatchResultCampaignListResponse' application/json: schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' + $ref: '#/components/schemas/PatchResultCampaignListResponse' text/json: schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' - description: List of updated Display Multipliers 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: {} @@ -1976,34 +1945,39 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids: - get: - description: Get the Category Bids for all valid Categories associated to an - Ad Set - operationId: GetCategoryBidList - parameters: - - description: Id of the Ad Set - explode: false - in: path - name: ad-set-id + post: + description: Create the specified campaign + operationId: CreateCampaign + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/CreateCampaignRequest' + application/json: + schema: + $ref: '#/components/schemas/CreateCampaignRequest' + text/json: + schema: + $ref: '#/components/schemas/CreateCampaignRequest' + application/*+json: + schema: + $ref: '#/components/schemas/CreateCampaignRequest' + description: the campaigns to create required: true - schema: - type: string - style: simple + x-bodyName: marketingCampaign responses: - "200": + "201": content: text/plain: schema: - $ref: '#/components/schemas/AdSetCategoryBidListResponse' + $ref: '#/components/schemas/CampaignV23Q1Response' application/json: schema: - $ref: '#/components/schemas/AdSetCategoryBidListResponse' + $ref: '#/components/schemas/CampaignV23Q1Response' text/json: schema: - $ref: '#/components/schemas/AdSetCategoryBidListResponse' - description: List of Category Bids for all valid Categories associated to - an Ad Set. + $ref: '#/components/schemas/CampaignV23Q1Response' + description: The campaign that has been created and errors / warnings "400": content: text/plain: {} @@ -2016,58 +1990,43 @@ paths: 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 - 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 + /2023-07/marketing-solutions/campaigns/search: + post: + description: Search for campaigns + operationId: SearchCampaigns requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest' + $ref: '#/components/schemas/CampaignSearchRequest' application/json: schema: - $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest' + $ref: '#/components/schemas/CampaignSearchRequest' text/json: schema: - $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest' + $ref: '#/components/schemas/CampaignSearchRequest' application/*+json: schema: - $ref: '#/components/schemas/PatchAdSetCategoryBidListRequest' - x-bodyName: categoryBidsToUpdate + $ref: '#/components/schemas/CampaignSearchRequest' + description: filters on campaigns + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/PatchAdSetCategoryBidResultListResponse' + $ref: '#/components/schemas/CampaignListResponse' application/json: schema: - $ref: '#/components/schemas/PatchAdSetCategoryBidResultListResponse' + $ref: '#/components/schemas/CampaignListResponse' text/json: schema: - $ref: '#/components/schemas/PatchAdSetCategoryBidResultListResponse' - description: List of updated Category Bids for given Categories associated - to an Ad Set. + $ref: '#/components/schemas/CampaignListResponse' + description: data for the campaigns "400": content: text/plain: {} @@ -2085,119 +2044,105 @@ paths: text/plain: {} application/json: {} text/json: {} - description: The API client is not authorized to access this resource or - the resource does not exist. + description: Forbidden tags: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives: + /2023-07/marketing-solutions/campaigns/{campaign-id}: get: - description: Get the list of self-services Creatives for a given advertiser - operationId: GetAdvertiserCreatives + description: Get the data for the specified campaign + operationId: GetCampaign parameters: - - description: The advertiser identifier. + - description: Id of the campaign explode: false in: path - name: advertiser-id + name: campaign-id required: true schema: type: string style: simple - - description: The number of creatives to be returned. The default is 50. - explode: true - in: query - name: limit - required: false - schema: - format: int32 - type: integer - style: form - - description: The (zero-based) offset into the collection of creatives. The - default is 0. - explode: true - in: query - name: offset - required: false - schema: - format: int32 - type: integer - style: form responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/CreativeListResponse' + $ref: '#/components/schemas/CampaignResponse' application/json: schema: - $ref: '#/components/schemas/CreativeListResponse' + $ref: '#/components/schemas/CampaignResponse' text/json: schema: - $ref: '#/components/schemas/CreativeListResponse' - description: The list of self-services Creatives is returned. - "400": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The request contained invalid parameters. + $ref: '#/components/schemas/CampaignResponse' + description: data for the campaign "401": content: text/plain: {} application/json: {} text/json: {} - description: The request was not properly authorized. - "500": + description: The API client is not properly authenticated. + "403": content: text/plain: {} application/json: {} text/json: {} - description: A non-request based error occurred on the server. + description: The API client is not authorized to access this resource or + the resource does not exist. tags: - - Creative + - Campaign x-accepts: application/json - post: - description: Create a Creative - operationId: CreateAdvertiserCreative + /2023-07/marketing-solutions/ads/{id}: + delete: + description: Delete an Ad + operationId: DeleteAd parameters: - - description: The advertiser identifier. + - description: The ad identifier to delete. explode: false in: path - name: advertiser-id + name: id required: true schema: - type: string + format: int32 + type: integer style: simple - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/CreativeWriteRequest' - application/json: - schema: - $ref: '#/components/schemas/CreativeWriteRequest' - text/json: - schema: - $ref: '#/components/schemas/CreativeWriteRequest' - application/*+json: - schema: - $ref: '#/components/schemas/CreativeWriteRequest' + responses: + "204": + description: The ad was deleted. + "400": + description: The request contained invalid parameters. + "401": + description: The request was not properly authorized. + "500": + description: A non-request based error occurred on the server. + tags: + - Creative + x-accepts: application/json + get: + description: Get an Ad from its id + operationId: GetAd + parameters: + - description: The ad identifier to retrieve. + explode: false + in: path + name: id required: true - x-bodyName: request + schema: + format: int32 + type: integer + style: simple responses: - "201": + "200": content: text/plain: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/AdResponse' application/json: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/AdResponse' text/json: schema: - $ref: '#/components/schemas/CreativeResponse' - description: The created creative is returned. + $ref: '#/components/schemas/AdResponse' + description: The found ad is returned. "400": content: text/plain: {} @@ -2218,58 +2163,52 @@ paths: description: A non-request based error occurred on the server. tags: - Creative - x-content-type: application/json-patch+json - x-accepts: application/json - /2023-07/marketing-solutions/creatives/{id}: - delete: - description: Delete a Creative if there are no ads binded to it - operationId: DeleteCreative - parameters: - - description: The creative identifier to delete. - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "204": - description: The creative was deleted. - "400": - description: The request contained invalid parameters. - "401": - description: The request was not properly authorized. - "500": - description: A non-request based error occurred on the server. - tags: - - Creative x-accepts: application/json + /2023-07/marketing-solutions/advertisers/{advertiser-id}/ads: get: - description: Get a Creative from its id - operationId: GetCreative + description: Get the list of self-services Ads for a given advertiser + operationId: GetAdvertiserAds parameters: - - description: The creative identifier to retrieve. + - description: The advertiser identifier. explode: false in: path - name: id + name: advertiser-id required: true schema: type: string style: simple + - description: The number of ads to be returned. The default is 50. + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: The (zero-based) offset into the collection of ads. The default + is 0. + explode: true + in: query + name: offset + required: false + schema: + format: int32 + type: integer + style: form responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/AdListResponse' application/json: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/AdListResponse' text/json: schema: - $ref: '#/components/schemas/CreativeResponse' - description: The found creative is returned. + $ref: '#/components/schemas/AdListResponse' + description: The list of self-services Ads is returned. "400": content: text/plain: {} @@ -2291,14 +2230,14 @@ paths: tags: - Creative x-accepts: application/json - put: - description: Edit a specific Creative - operationId: EditCreative + post: + description: Create an Ad + operationId: CreateAdvertiserAd parameters: - - description: The creative identifier to edit. + - description: The advertiser identifier. explode: false in: path - name: id + name: advertiser-id required: true schema: type: string @@ -2307,31 +2246,31 @@ paths: content: application/json-patch+json: schema: - $ref: '#/components/schemas/CreativeWriteRequest' + $ref: '#/components/schemas/AdWriteRequest' application/json: schema: - $ref: '#/components/schemas/CreativeWriteRequest' + $ref: '#/components/schemas/AdWriteRequest' text/json: schema: - $ref: '#/components/schemas/CreativeWriteRequest' + $ref: '#/components/schemas/AdWriteRequest' application/*+json: schema: - $ref: '#/components/schemas/CreativeWriteRequest' + $ref: '#/components/schemas/AdWriteRequest' required: true x-bodyName: request responses: - "200": + "201": content: text/plain: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/AdResponse' application/json: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/AdResponse' text/json: schema: - $ref: '#/components/schemas/CreativeResponse' - description: The edited creative is returned. + $ref: '#/components/schemas/AdResponse' + description: The created Ad is returned. "400": content: text/plain: {} @@ -2354,69 +2293,10 @@ paths: - Creative x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/creatives/{id}/preview: - post: - description: Generate a preview of a specific Creative - operationId: GenerateCreativePreview - parameters: - - description: The Creative identifier to preview. - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - description: The width of the Creative to preview. - explode: true - in: query - name: width - required: false - schema: - format: int32 - type: integer - style: form - - description: The height of the Creative to preview. - explode: true - in: query - name: height - required: false - schema: - format: int32 - type: integer - style: form - responses: - "200": - content: - text/html: - schema: - type: string - application/json: - schema: - type: string - text/json: - schema: - type: string - description: The preview HTML of a specific Creative is returned. - "400": - content: - text/html: {} - application/json: {} - text/json: {} - description: The request contained invalid parameters. - "403": - content: - text/html: {} - application/json: {} - text/json: {} - description: The request was not properly authorized. - tags: - - Creative - x-accepts: application/json - /2023-07/marketing-solutions/advertisers/{advertiser-id}/ads: + /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons: get: - description: Get the list of self-services Ads for a given advertiser - operationId: GetAdvertiserAds + description: Get the list of self-services Coupons for a given advertiser + operationId: GetAdvertiserCoupons parameters: - description: The advertiser identifier. explode: false @@ -2426,7 +2306,7 @@ paths: schema: type: string style: simple - - description: The number of ads to be returned. The default is 50. + - description: The number of coupons to be returned. The default is 50. explode: true in: query name: limit @@ -2435,7 +2315,7 @@ paths: format: int32 type: integer style: form - - description: The (zero-based) offset into the collection of ads. The default + - description: The (zero-based) offset into the collection of coupons. The default is 0. explode: true in: query @@ -2450,38 +2330,32 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AdListResponse' + $ref: '#/components/schemas/CouponListResponse' application/json: schema: - $ref: '#/components/schemas/AdListResponse' + $ref: '#/components/schemas/CouponListResponse' text/json: schema: - $ref: '#/components/schemas/AdListResponse' - description: The list of self-services Ads is returned. + $ref: '#/components/schemas/CouponListResponse' + description: The list of self-services Coupons is returned. "400": content: text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. - "401": + "403": content: text/plain: {} application/json: {} text/json: {} description: The request was not properly authorized. - "500": - content: - text/plain: {} - application/json: {} - text/json: {} - description: A non-request based error occurred on the server. tags: - Creative x-accepts: application/json post: - description: Create an Ad - operationId: CreateAdvertiserAd + description: Create a Coupon + operationId: CreateAdvertiserCoupon parameters: - description: The advertiser identifier. explode: false @@ -2495,16 +2369,16 @@ paths: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AdWriteRequest' + $ref: '#/components/schemas/CreateCouponRequest' application/json: schema: - $ref: '#/components/schemas/AdWriteRequest' + $ref: '#/components/schemas/CreateCouponRequest' text/json: schema: - $ref: '#/components/schemas/AdWriteRequest' + $ref: '#/components/schemas/CreateCouponRequest' application/*+json: schema: - $ref: '#/components/schemas/AdWriteRequest' + $ref: '#/components/schemas/CreateCouponRequest' required: true x-bodyName: request responses: @@ -2512,113 +2386,34 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AdResponse' + $ref: '#/components/schemas/CouponResponse' application/json: schema: - $ref: '#/components/schemas/AdResponse' + $ref: '#/components/schemas/CouponResponse' text/json: schema: - $ref: '#/components/schemas/AdResponse' - description: The created Ad is returned. + $ref: '#/components/schemas/CouponResponse' + description: The created Coupon is returned. "400": content: text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. - "401": + "403": content: text/plain: {} application/json: {} text/json: {} description: The request was not properly authorized. - "500": - content: - text/plain: {} - application/json: {} - text/json: {} - description: A non-request based error occurred on the server. tags: - Creative x-content-type: application/json-patch+json x-accepts: application/json - /2023-07/marketing-solutions/ads/{id}: - delete: - description: Delete an Ad - operationId: DeleteAd - parameters: - - description: The ad identifier to delete. - explode: false - in: path - name: id - required: true - schema: - format: int32 - type: integer - style: simple - responses: - "204": - description: The ad was deleted. - "400": - description: The request contained invalid parameters. - "401": - description: The request was not properly authorized. - "500": - description: A non-request based error occurred on the server. - tags: - - Creative - x-accepts: application/json - get: - description: Get an Ad from its id - operationId: GetAd - parameters: - - description: The ad identifier to retrieve. - explode: false - in: path - name: id - required: true - schema: - format: int32 - type: integer - style: simple - responses: - "200": - content: - text/plain: - schema: - $ref: '#/components/schemas/AdResponse' - application/json: - schema: - $ref: '#/components/schemas/AdResponse' - text/json: - schema: - $ref: '#/components/schemas/AdResponse' - description: The found ad is returned. - "400": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The request contained invalid parameters. - "401": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The request was not properly authorized. - "500": - content: - text/plain: {} - application/json: {} - text/json: {} - description: A non-request based error occurred on the server. - tags: - - Creative - x-accepts: application/json - /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons: + /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes: get: - description: Get the list of self-services Coupons for a given advertiser - operationId: GetAdvertiserCoupons + description: Get the list of Coupon supported sizes + operationId: GetAdvertiserCouponSupportedSizes parameters: - description: The advertiser identifier. explode: false @@ -2628,94 +2423,28 @@ paths: schema: type: string style: simple - - description: The number of coupons to be returned. The default is 50. - explode: true - in: query - name: limit - required: false - schema: - format: int32 - type: integer - style: form - - description: The (zero-based) offset into the collection of coupons. The default - is 0. + - description: The ad set id on which you want to check the Coupon supported + sizes. explode: true in: query - name: offset + name: ad-set-id required: false schema: - format: int32 - type: integer + type: string style: form responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/CouponListResponse' - application/json: - schema: - $ref: '#/components/schemas/CouponListResponse' - text/json: - schema: - $ref: '#/components/schemas/CouponListResponse' - description: The list of self-services Coupons is returned. - "400": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The request contained invalid parameters. - "403": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The request was not properly authorized. - tags: - - Creative - x-accepts: application/json - post: - description: Create a Coupon - operationId: CreateAdvertiserCoupon - parameters: - - description: The advertiser identifier. - explode: false - in: path - name: advertiser-id - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/CreateCouponRequest' - application/json: - schema: - $ref: '#/components/schemas/CreateCouponRequest' - text/json: - schema: - $ref: '#/components/schemas/CreateCouponRequest' - application/*+json: - schema: - $ref: '#/components/schemas/CreateCouponRequest' - required: true - x-bodyName: request - responses: - "201": - content: - text/plain: - schema: - $ref: '#/components/schemas/CouponResponse' + $ref: '#/components/schemas/CouponSupportedSizesResponse' application/json: schema: - $ref: '#/components/schemas/CouponResponse' + $ref: '#/components/schemas/CouponSupportedSizesResponse' text/json: schema: - $ref: '#/components/schemas/CouponResponse' - description: The created Coupon is returned. + $ref: '#/components/schemas/CouponSupportedSizesResponse' + description: The list of Coupon supported sizes is returned. "400": content: text/plain: {} @@ -2730,7 +2459,6 @@ paths: description: The request was not properly authorized. tags: - Creative - x-content-type: application/json-patch+json x-accepts: application/json /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}: delete: @@ -2937,10 +2665,10 @@ paths: tags: - Creative x-accepts: application/json - /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes: + /2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives: get: - description: Get the list of Coupon supported sizes - operationId: GetAdvertiserCouponSupportedSizes + description: Get the list of self-services Creatives for a given advertiser + operationId: GetAdvertiserCreatives parameters: - description: The advertiser identifier. explode: false @@ -2950,91 +2678,365 @@ paths: schema: type: string style: simple - - description: The ad set id on which you want to check the Coupon supported - sizes. + - description: The number of creatives to be returned. The default is 50. explode: true in: query - name: ad-set-id + name: limit required: false schema: - type: string + format: int32 + type: integer + style: form + - description: The (zero-based) offset into the collection of creatives. The + default is 0. + explode: true + in: query + name: offset + required: false + schema: + format: int32 + type: integer style: form responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/CouponSupportedSizesResponse' + $ref: '#/components/schemas/CreativeListResponse' application/json: schema: - $ref: '#/components/schemas/CouponSupportedSizesResponse' + $ref: '#/components/schemas/CreativeListResponse' text/json: schema: - $ref: '#/components/schemas/CouponSupportedSizesResponse' - description: The list of Coupon supported sizes is returned. + $ref: '#/components/schemas/CreativeListResponse' + description: The list of self-services Creatives is returned. "400": content: text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. - "403": + "401": content: text/plain: {} application/json: {} text/json: {} description: The request was not properly authorized. + "500": + content: + text/plain: {} + application/json: {} + text/json: {} + description: A non-request based error occurred on the server. tags: - Creative x-accepts: application/json - /2023-07/statistics/report: 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: Create a Creative + operationId: CreateAdvertiserCreative + parameters: + - description: The advertiser identifier. + explode: false + in: path + name: advertiser-id + required: true + schema: + type: string + style: simple requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/StatisticsReportQueryMessage' + $ref: '#/components/schemas/CreativeWriteRequest' application/json: schema: - $ref: '#/components/schemas/StatisticsReportQueryMessage' + $ref: '#/components/schemas/CreativeWriteRequest' text/json: schema: - $ref: '#/components/schemas/StatisticsReportQueryMessage' + $ref: '#/components/schemas/CreativeWriteRequest' application/*+json: schema: - $ref: '#/components/schemas/StatisticsReportQueryMessage' - x-bodyName: reportQuery + $ref: '#/components/schemas/CreativeWriteRequest' + required: true + x-bodyName: request responses: - "200": + "201": content: text/plain: schema: - format: byte - type: string + $ref: '#/components/schemas/CreativeResponse' application/json: schema: - format: byte - type: string + $ref: '#/components/schemas/CreativeResponse' text/json: schema: - format: byte - type: string - text/csv: - schema: - format: byte - type: string - text/xml: + $ref: '#/components/schemas/CreativeResponse' + description: The created creative is returned. + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request contained invalid parameters. + "401": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request was not properly authorized. + "500": + content: + text/plain: {} + application/json: {} + text/json: {} + description: A non-request based error occurred on the server. + tags: + - Creative + x-content-type: application/json-patch+json + x-accepts: application/json + /2023-07/marketing-solutions/creatives/{id}: + delete: + description: Delete a Creative if there are no ads binded to it + operationId: DeleteCreative + parameters: + - description: The creative identifier to delete. + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: The creative was deleted. + "400": + description: The request contained invalid parameters. + "401": + description: The request was not properly authorized. + "500": + description: A non-request based error occurred on the server. + tags: + - Creative + x-accepts: application/json + get: + description: Get a Creative from its id + operationId: GetCreative + parameters: + - description: The creative identifier to retrieve. + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/CreativeResponse' + application/json: + schema: + $ref: '#/components/schemas/CreativeResponse' + text/json: + schema: + $ref: '#/components/schemas/CreativeResponse' + description: The found creative is returned. + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request contained invalid parameters. + "401": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request was not properly authorized. + "500": + content: + text/plain: {} + application/json: {} + text/json: {} + description: A non-request based error occurred on the server. + tags: + - Creative + x-accepts: application/json + put: + description: Edit a specific Creative + operationId: EditCreative + parameters: + - description: The creative identifier to edit. + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/CreativeWriteRequest' + application/json: + schema: + $ref: '#/components/schemas/CreativeWriteRequest' + text/json: + schema: + $ref: '#/components/schemas/CreativeWriteRequest' + application/*+json: + schema: + $ref: '#/components/schemas/CreativeWriteRequest' + required: true + x-bodyName: request + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/CreativeResponse' + application/json: + schema: + $ref: '#/components/schemas/CreativeResponse' + text/json: + schema: + $ref: '#/components/schemas/CreativeResponse' + description: The edited creative is returned. + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request contained invalid parameters. + "401": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request was not properly authorized. + "500": + content: + text/plain: {} + application/json: {} + text/json: {} + description: A non-request based error occurred on the server. + tags: + - Creative + x-content-type: application/json-patch+json + x-accepts: application/json + /2023-07/marketing-solutions/creatives/{id}/preview: + post: + description: Generate a preview of a specific Creative + operationId: GenerateCreativePreview + parameters: + - description: The Creative identifier to preview. + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The width of the Creative to preview. + explode: true + in: query + name: width + required: false + schema: + format: int32 + type: integer + style: form + - description: The height of the Creative to preview. + explode: true + in: query + name: height + required: false + schema: + format: int32 + type: integer + style: form + responses: + "200": + content: + text/html: schema: - format: byte type: string - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: + application/json: + schema: + type: string + text/json: schema: - format: byte type: string + description: The preview HTML of a specific Creative is returned. + "400": + content: + text/html: {} + application/json: {} + text/json: {} + description: The request contained invalid parameters. + "403": + content: + text/html: {} + application/json: {} + text/json: {} + description: The request was not properly authorized. + tags: + - Creative + x-accepts: application/json + /2023-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: + $ref: '#/components/schemas/TransparencyReportDataMessage' + text/plain: + schema: + $ref: '#/components/schemas/TransparencyReportDataMessage' + text/json: + schema: + $ref: '#/components/schemas/TransparencyReportDataMessage' description: Success "400": content: @@ -3055,15 +3057,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: @@ -3085,38 +3078,32 @@ 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 - /2023-07/transactions/report: + /2023-07/placements/report: post: - description: This Transactions endpoint provides transactions id related data. - operationId: GetTransactionsReport + 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/TransactionsReportQueryDataMessage' + $ref: '#/components/schemas/PlacementsReportQueryDataMessage' application/json: schema: - $ref: '#/components/schemas/TransactionsReportQueryDataMessage' + $ref: '#/components/schemas/PlacementsReportQueryDataMessage' text/json: schema: - $ref: '#/components/schemas/TransactionsReportQueryDataMessage' + $ref: '#/components/schemas/PlacementsReportQueryDataMessage' application/*+json: schema: - $ref: '#/components/schemas/TransactionsReportQueryDataMessage' + $ref: '#/components/schemas/PlacementsReportQueryDataMessage' x-bodyName: dataMessage responses: "200": @@ -3133,18 +3120,6 @@ 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: @@ -3165,15 +3140,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: @@ -3195,70 +3161,59 @@ 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 - /2023-07/log-level/advertisers/{advertiser-id}/report: + /2023-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: @@ -3279,6 +3234,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: @@ -3300,32 +3264,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 - /2023-07/placements/report: + /2023-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": @@ -3342,6 +3312,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: @@ -3362,6 +3344,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: @@ -3383,6 +3374,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 @@ -3534,6 +3534,7 @@ components: warnings: items: $ref: '#/components/schemas/AudienceWarning' + nullable: true type: array required: - errors @@ -3605,8 +3606,8 @@ components: - errors - warnings type: object - DeleteAudienceContactListResponse: - description: Response of a contactlist deletion + DeleteAudienceResponse: + description: Response of an audience deletion example: data: attributes: @@ -3672,20 +3673,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 @@ -3731,7 +3726,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ContactlistOperation' + $ref: '#/components/schemas/BasicAudienceDefinition' errors: items: $ref: '#/components/schemas/AudienceError' @@ -3745,8 +3740,8 @@ components: - errors - warnings type: object - DeleteAudienceResponse: - description: Response of an audience deletion + DeleteAudienceContactListResponse: + description: Response of a contactlist deletion example: data: attributes: @@ -3812,14 +3807,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 @@ -3865,7 +3866,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/BasicAudienceDefinition' + $ref: '#/components/schemas/ContactlistOperation' errors: items: $ref: '#/components/schemas/AudienceError' @@ -3892,6 +3893,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: @@ -3910,20 +3925,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: @@ -3971,6 +3972,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 @@ -3994,20 +3996,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 @@ -4031,6 +4037,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 @@ -4054,6 +4061,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 @@ -4062,12 +4070,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 @@ -4139,6 +4149,24 @@ 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 ContactlistAmendment: description: Parameters for the amendment of a contactlist example: @@ -4161,24 +4189,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: @@ -4187,9 +4197,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: @@ -4251,12 +4263,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 @@ -4273,6 +4287,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/ApplicationSummaryModel' @@ -4293,10 +4308,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. @@ -4309,27 +4326,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: @@ -4341,68 +4365,200 @@ components: criteoService: criteoService applicationId: 0 properties: - applicationId: - format: int32 - type: integer - name: - type: string - organizationId: - format: int32 - type: integer - description: - type: string - criteoService: - type: string + 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 + AdSetAudienceLinkEntityV1Response: + description: A top-level object that encapsulates a Criteo API response for + a single entity + example: + data: + attributes: + audienceId: audienceId + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Resource' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array type: object - AudienceEntityV1AudienceSearchMetadataV1ListResponse: + AudienceSegmentEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for - several entities and metadata + several entities example: data: - attributes: + prospecting: + daysSinceLastVisitMax: 6 + usersType: Unknown + daysSinceLastVisitMin: 0 + description: description + retargeting: + visitorsType: Unknown + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 + type: Unknown + lookalike: + targetSize: 9 + seedSegmentId: seedSegmentId + advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds + contactList: + isReadOnly: true + behavioral: + country: country + endDate: 2000-01-23T04:56:07.000+00:00 + category: Unknown + startDate: 2000-01-23T04:56:07.000+00:00 name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId + location: + registryType: Unknown + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 5 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Unknown + - Unknown + gender: Unknown + brandIds: + - brandIds + - brandIds + priceRange: + - Unknown + - Unknown updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId id: id type: type - attributes: + prospecting: + daysSinceLastVisitMax: 6 + usersType: Unknown + daysSinceLastVisitMin: 0 + description: description + retargeting: + visitorsType: Unknown + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 + type: Unknown + lookalike: + targetSize: 9 + seedSegmentId: seedSegmentId + advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds + contactList: + isReadOnly: true + behavioral: + country: country + endDate: 2000-01-23T04:56:07.000+00:00 + category: Unknown + startDate: 2000-01-23T04:56:07.000+00:00 name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId + location: + registryType: Unknown + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 5 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Unknown + - Unknown + gender: Unknown + brandIds: + - brandIds + - brandIds + priceRange: + - Unknown + - Unknown updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId id: id type: type - meta: - totalItems: 0 - offset: 1 - limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -4446,66 +4602,35 @@ components: type: unknown title: title properties: - meta: - $ref: '#/components/schemas/AudienceSearchMetadataV1' data: items: - $ref: '#/components/schemas/AudienceEntityV1Resource' + $ref: '#/components/schemas/AudienceSegmentEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceEntityV1ListResponse: + AudienceSegmentSizeEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: data: - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId + size: 0 id: id type: type - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId + size: 0 id: id type: type warnings: @@ -4553,20 +4678,23 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceEntityV1Resource' + $ref: '#/components/schemas/AudienceSegmentSizeEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceIdEntityV1ListResponse: + AudienceSegmentIdEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: @@ -4622,31 +4750,29 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceIdEntityV1Resource' + $ref: '#/components/schemas/AudienceSegmentIdEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSizeEntityV1ListResponse: + AudienceSegmentSizeEstimationV1Response: description: A top-level object that encapsulates a Criteo API response for - several entities + a single value example: data: - - attributes: - size: 0 - id: id - type: type - - attributes: + attributes: size: 0 - id: id type: type warnings: - traceId: traceId @@ -4692,27 +4818,34 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/AudienceSizeEntityV1Resource' - type: array + $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Resource' warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSizeEstimationV1Response: + InMarketAudienceSegmentBrandEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for - a single value + several entities example: data: - attributes: + - attributes: size: 0 + name: name + id: id + type: type + - attributes: + size: 0 + name: name + id: id type: type warnings: - traceId: traceId @@ -4758,131 +4891,36 @@ components: title: title properties: data: - $ref: '#/components/schemas/AudienceSizeEstimationV1Resource' + items: + $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1Resource' + nullable: true + type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse: + InMarketAudienceSegmentInterestEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for - several entities and metadata + several entities example: data: - attributes: - prospecting: - daysSinceLastVisitMax: 5 - usersType: Unknown - daysSinceLastVisitMin: 5 - description: description - retargeting: - visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 - type: Unknown - lookalike: - targetSize: 4 - seedSegmentId: seedSegmentId - advertiserId: advertiserId - createdAt: 2000-01-23T04:56:07.000+00:00 - contactList: - isReadOnly: true - behavioral: - country: country - endDate: 2000-01-23T04:56:07.000+00:00 - category: Unknown - startDate: 2000-01-23T04:56:07.000+00:00 - name: name - location: - registryType: Unknown - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 9 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Unknown - - Unknown - gender: Unknown - brandIds: - - brandIds - - brandIds - priceRange: - - Unknown - - Unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + parentId: parentId id: id type: type - attributes: - prospecting: - daysSinceLastVisitMax: 5 - usersType: Unknown - daysSinceLastVisitMin: 5 - description: description - retargeting: - visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 - type: Unknown - lookalike: - targetSize: 4 - seedSegmentId: seedSegmentId - advertiserId: advertiserId - createdAt: 2000-01-23T04:56:07.000+00:00 - contactList: - isReadOnly: true - behavioral: - country: country - endDate: 2000-01-23T04:56:07.000+00:00 - category: Unknown - startDate: 2000-01-23T04:56:07.000+00:00 - name: name - location: - registryType: Unknown - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 9 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Unknown - - Unknown - gender: Unknown - brandIds: - - brandIds - - brandIds - priceRange: - - Unknown - - Unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + parentId: parentId id: id type: type - meta: - totalItems: 0 - offset: 1 - limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -4926,41 +4964,42 @@ components: type: unknown title: title properties: - meta: - $ref: '#/components/schemas/AudienceSegmentSearchMetadataV1' data: items: - $ref: '#/components/schemas/AudienceSegmentEntityV1Resource' + $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSegmentEntityV1ListResponse: + AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse: description: A top-level object that encapsulates a Criteo API response for - several entities + several entities and metadata example: data: - attributes: prospecting: - daysSinceLastVisitMax: 5 + daysSinceLastVisitMax: 6 usersType: Unknown - daysSinceLastVisitMin: 5 + daysSinceLastVisitMin: 0 description: description retargeting: visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 type: Unknown lookalike: - targetSize: 4 + targetSize: 9 seedSegmentId: seedSegmentId advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -4975,13 +5014,13 @@ components: location: registryType: Unknown pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 9 + longitude: 5.962133916683182 + radiusInKm: 5 inMarket: country: country interestIds: @@ -5002,17 +5041,17 @@ components: type: type - attributes: prospecting: - daysSinceLastVisitMax: 5 + daysSinceLastVisitMax: 6 usersType: Unknown - daysSinceLastVisitMin: 5 + daysSinceLastVisitMin: 0 description: description retargeting: visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 type: Unknown lookalike: - targetSize: 4 + targetSize: 9 seedSegmentId: seedSegmentId advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -5027,13 +5066,13 @@ components: location: registryType: Unknown pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 9 + longitude: 5.962133916683182 + radiusInKm: 5 inMarket: country: country interestIds: @@ -5052,6 +5091,10 @@ components: updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type + meta: + totalItems: 0 + offset: 1 + limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -5095,30 +5138,35 @@ components: type: unknown title: title properties: + meta: + $ref: '#/components/schemas/AudienceSegmentSearchMetadataV1' data: items: $ref: '#/components/schemas/AudienceSegmentEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSegmentIdEntityV1ListResponse: + ContactListStatisticsEntityV1Response: description: A top-level object that encapsulates a Criteo API response for - several entities + a single entity example: data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" + attributes: + numberOfIdentifiers: 0 + matchRate: 1.4658129805029452 + numberOfMatches: 6 id: id type: type warnings: @@ -5165,31 +5213,63 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/AudienceSegmentIdEntityV1Resource' - type: array + $ref: '#/components/schemas/ContactListStatisticsEntityV1Resource' warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSegmentSizeEntityV1ListResponse: + AudienceEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: data: - attributes: - size: 0 + createdAt: 2000-01-23T04:56:07.000+00:00 + adSetIds: + - adSetIds + - adSetIds + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 + advertiserId: advertiserId id: id type: type - attributes: - size: 0 + createdAt: 2000-01-23T04:56:07.000+00:00 + adSetIds: + - adSetIds + - adSetIds + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 + advertiserId: advertiserId id: id type: type warnings: @@ -5237,94 +5317,33 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceSegmentSizeEntityV1Resource' - type: array - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - errors: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true + $ref: '#/components/schemas/AudienceEntityV1Resource' + nullable: true type: array - type: object - AudienceSegmentSizeEstimationV1Response: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - data: - attributes: - size: 0 - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Resource' warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - InMarketAudienceSegmentInterestEntityV1ListResponse: + AudienceSizeEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: data: - attributes: - parentId: parentId + size: 0 id: id type: type - attributes: - parentId: parentId + size: 0 id: id type: type warnings: @@ -5372,32 +5391,31 @@ components: properties: data: items: - $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1Resource' + $ref: '#/components/schemas/AudienceSizeEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - InMarketAudienceSegmentBrandEntityV1ListResponse: + AudienceIdEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: data: - - attributes: - size: 0 - name: name + - attributes: "{}" id: id type: type - - attributes: - size: 0 - name: name + - attributes: "{}" id: id type: type warnings: @@ -5445,29 +5463,29 @@ components: properties: data: items: - $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1Resource' + $ref: '#/components/schemas/AudienceIdEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - ContactListStatisticsEntityV1Response: + AudienceSizeEstimationV1Response: description: A top-level object that encapsulates a Criteo API response for - a single entity + a single value example: data: attributes: - numberOfIdentifiers: 0 - matchRate: 1.4658129805029452 - numberOfMatches: 6 - id: id + size: 0 type: type warnings: - traceId: traceId @@ -5513,27 +5531,69 @@ components: title: title properties: data: - $ref: '#/components/schemas/ContactListStatisticsEntityV1Resource' + $ref: '#/components/schemas/AudienceSizeEstimationV1Resource' warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AdSetAudienceLinkEntityV1Response: + AudienceEntityV1AudienceSearchMetadataV1ListResponse: description: A top-level object that encapsulates a Criteo API response for - a single entity + several entities and metadata example: data: - attributes: - audienceId: audienceId + - attributes: + createdAt: 2000-01-23T04:56:07.000+00:00 + adSetIds: + - adSetIds + - adSetIds + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 + advertiserId: advertiserId + id: id + type: type + - attributes: + createdAt: 2000-01-23T04:56:07.000+00:00 + adSetIds: + - adSetIds + - adSetIds + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 + advertiserId: advertiserId id: id type: type + meta: + totalItems: 0 + offset: 1 + limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -5577,137 +5637,139 @@ components: type: unknown title: title properties: + meta: + $ref: '#/components/schemas/AudienceSearchMetadataV1' data: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Resource' + items: + $ref: '#/components/schemas/AudienceEntityV1Resource' + nullable: true + type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSearchInputV1: - description: Audience search parameter + AdSetAudienceLinkInputEntityV1: + description: Input to set audience ad set link. example: data: attributes: - adSetIds: - - adSetIds - - adSetIds - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceIds: - - audienceIds - - audienceIds - type: type - properties: - data: - $ref: '#/components/schemas/AudienceSearchEntityV1Resource' - type: object - AudienceBulkCreateInputV1: - description: Input to create one or more audiences. - example: - data: - - attributes: - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - advertiserId: advertiserId - type: type - - attributes: - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - advertiserId: advertiserId + audienceId: audienceId + id: id type: type properties: data: - items: - $ref: '#/components/schemas/AudienceCreateEntityV1Resource' - type: array + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Resource' type: object - AudienceBulkUpdateInputV1: - description: Input to update one or more audiences. + AudienceSegmentBulkUpdateInputV1: + description: Input to update one or more segments. example: data: - attributes: + prospecting: + daysSinceLastVisitMax: + value: 5 + usersType: Prospects + daysSinceLastVisitMin: + value: 5 name: name description: value: value - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId + location: + registryType: PointOfInterest + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 0 + retargeting: + visitorsType: All + daysSinceLastVisitMax: 1 + daysSinceLastVisitMin: 6 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Low + - Low + gender: + value: Male + brandIds: + - brandIds + - brandIds + priceRange: + - Low + - Low + lookalike: + targetSize: 5 id: id type: type - attributes: + prospecting: + daysSinceLastVisitMax: + value: 5 + usersType: Prospects + daysSinceLastVisitMin: + value: 5 name: name description: value: value - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - id: id - type: type - properties: - data: - items: - $ref: '#/components/schemas/AudienceUpdateEntityV1Resource' - type: array - type: object - AudienceBulkDeleteInputV1: - description: Input to delete one or more audiences. - example: - data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" + location: + registryType: PointOfInterest + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 0 + retargeting: + visitorsType: All + daysSinceLastVisitMax: 1 + daysSinceLastVisitMin: 6 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Low + - Low + gender: + value: Male + brandIds: + - brandIds + - brandIds + priceRange: + - Low + - Low + lookalike: + targetSize: 5 id: id type: type properties: data: items: - $ref: '#/components/schemas/AudienceDeleteEntityV1Resource' + $ref: '#/components/schemas/AudienceSegmentUpdateEntityV1Resource' + nullable: true type: array type: object - AudienceComputeSizesInputV1: - description: Input to retrieve the size of one or more audiences. + AudienceSegmentComputeSizesInputV1: + description: Input to retrieve the size of one or more segments. example: data: - attributes: "{}" @@ -5719,48 +5781,10 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceComputeSizeEntityV1Resource' + $ref: '#/components/schemas/AudienceSegmentComputeSizeEntityV1Resource' + nullable: true type: array type: object - AudienceEstimateSizeInputV1: - description: Input to estimate the size of an audience. - example: - data: - attributes: - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - advertiserId: advertiserId - type: type - properties: - data: - $ref: '#/components/schemas/AudienceEstimateSizeEntityV1Resource' - type: object - AudienceSegmentSearchInputV1: - description: Audience segment search parameter - example: - data: - attributes: - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceSegmentTypes: - - Unknown - - Unknown - type: type - properties: - data: - $ref: '#/components/schemas/AudienceSegmentSearchEntityV1Resource' - type: object AudienceSegmentBulkCreateInputV1: description: Input to create one or more audience segments. example: @@ -5775,12 +5799,12 @@ components: description: description location: pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 1 retargeting: visitorsType: All @@ -5816,12 +5840,12 @@ components: description: description location: pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 1 retargeting: visitorsType: All @@ -5851,36 +5875,40 @@ components: data: items: $ref: '#/components/schemas/AudienceSegmentCreateEntityV1Resource' + nullable: true type: array type: object - AudienceSegmentBulkUpdateInputV1: - description: Input to update one or more segments. + AudienceSegmentBulkDeleteInputV1: + description: Input to delete one or more segments. example: data: - - attributes: - prospecting: - daysSinceLastVisitMax: - value: 5 - usersType: Prospects - daysSinceLastVisitMin: - value: 5 - name: name - description: - value: value + - attributes: "{}" + id: id + type: type + - attributes: "{}" + id: id + type: type + properties: + data: + items: + $ref: '#/components/schemas/AudienceSegmentDeleteEntityV1Resource' + nullable: true + type: array + type: object + AudienceSegmentEstimateSizeInputV1: + description: Input to estimate the size of an audience segment.. + example: + data: + attributes: location: - registryType: PointOfInterest pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 0 - retargeting: - visitorsType: All - daysSinceLastVisitMax: 1 - daysSinceLastVisitMin: 6 inMarket: country: country interestIds: @@ -5889,70 +5917,81 @@ components: buyingPower: - Low - Low - gender: - value: Male + gender: Male brandIds: - brandIds - brandIds priceRange: - Low - Low - lookalike: - targetSize: 5 + advertiserId: advertiserId + type: type + properties: + data: + $ref: '#/components/schemas/AudienceSegmentSizeEstimationEntityV1Resource' + type: object + AudienceSegmentSearchInputV1: + description: Audience segment search parameter + example: + data: + attributes: + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceSegmentTypes: + - Unknown + - Unknown + type: type + properties: + data: + $ref: '#/components/schemas/AudienceSegmentSearchEntityV1Resource' + type: object + AudienceBulkUpdateInputV1: + description: Input to update one or more audiences. + example: + data: + - attributes: + name: name + description: + value: value + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId id: id type: type - attributes: - prospecting: - daysSinceLastVisitMax: - value: 5 - usersType: Prospects - daysSinceLastVisitMin: - value: 5 name: name description: value: value - location: - registryType: PointOfInterest - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 0 - retargeting: - visitorsType: All - daysSinceLastVisitMax: 1 - daysSinceLastVisitMin: 6 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Low - - Low - gender: - value: Male - brandIds: - - brandIds - - brandIds - priceRange: - - Low - - Low - lookalike: - targetSize: 5 + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId id: id type: type properties: data: items: - $ref: '#/components/schemas/AudienceSegmentUpdateEntityV1Resource' + $ref: '#/components/schemas/AudienceUpdateEntityV1Resource' + nullable: true type: array type: object - AudienceSegmentBulkDeleteInputV1: - description: Input to delete one or more segments. + AudienceComputeSizesInputV1: + description: Input to retrieve the size of one or more audiences. example: data: - attributes: "{}" @@ -5964,11 +6003,51 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceSegmentDeleteEntityV1Resource' + $ref: '#/components/schemas/AudienceComputeSizeEntityV1Resource' + nullable: true type: array type: object - AudienceSegmentComputeSizesInputV1: - description: Input to retrieve the size of one or more segments. + AudienceBulkCreateInputV1: + description: Input to create one or more audiences. + example: + data: + - attributes: + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + advertiserId: advertiserId + type: type + - attributes: + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + advertiserId: advertiserId + type: type + properties: + data: + items: + $ref: '#/components/schemas/AudienceCreateEntityV1Resource' + nullable: true + type: array + type: object + AudienceBulkDeleteInputV1: + description: Input to delete one or more audiences. example: data: - attributes: "{}" @@ -5980,193 +6059,86 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceSegmentComputeSizeEntityV1Resource' + $ref: '#/components/schemas/AudienceDeleteEntityV1Resource' + nullable: true type: array type: object - AudienceSegmentEstimateSizeInputV1: - description: Input to estimate the size of an audience segment.. + AudienceEstimateSizeInputV1: + description: Input to estimate the size of an audience. example: data: attributes: - location: - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 0 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Low - - Low - gender: Male - brandIds: - - brandIds - - brandIds - priceRange: - - Low - - Low + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId advertiserId: advertiserId type: type properties: data: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationEntityV1Resource' + $ref: '#/components/schemas/AudienceEstimateSizeEntityV1Resource' type: object - AdSetAudienceLinkInputEntityV1: - description: Input to set audience ad set link. + AudienceSearchInputV1: + description: Audience search parameter example: data: attributes: - audienceId: audienceId - id: id + adSetIds: + - adSetIds + - adSetIds + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceIds: + - audienceIds + - audienceIds type: type properties: data: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Resource' - type: object - AudienceSearchMetadataV1: - description: Metadata for the audience search response. - example: - totalItems: 0 - offset: 1 - limit: 6 - properties: - totalItems: - description: Total number of items - format: int32 - type: integer - limit: - description: Max item of the current page - format: int32 - type: integer - offset: - description: Number of item to skip - format: int32 - type: integer - type: object - AudienceEntityV1Resource: - description: A class that represents a domain entity exposed by an API - example: - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId - id: id - type: type - properties: - attributes: - $ref: '#/components/schemas/AudienceEntityV1' - id: - description: Id of the entity - type: string - type: - type: string - type: object - AudienceIdEntityV1Resource: - description: A class that represents a domain entity exposed by an API - example: - attributes: "{}" - id: id - type: type - properties: - attributes: - description: Audience entity with only its ID - type: object - x-criteo-canonical: - infoType: entity - name: Audience - version: v1 - id: - description: Id of the entity - type: string - type: - type: string + $ref: '#/components/schemas/AudienceSearchEntityV1Resource' type: object - AudienceSizeEntityV1Resource: + AdSetAudienceLinkEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - size: 0 + audienceId: audienceId id: id type: type properties: attributes: - $ref: '#/components/schemas/AudienceSizeEntityV1' + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSizeEstimationV1Resource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - size: 0 - type: type - properties: - type: - type: string - attributes: - $ref: '#/components/schemas/AudienceSizeEstimationV1' - type: object - AudienceSegmentSearchMetadataV1: - description: Metadata for the audience segment search response. - example: - totalItems: 0 - offset: 1 - limit: 6 - properties: - totalItems: - description: Total number of items - format: int32 - type: integer - limit: - description: Max item of the current page - format: int32 - type: integer - offset: - description: Number of item to skip - format: int32 - type: integer - type: object AudienceSegmentEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: prospecting: - daysSinceLastVisitMax: 5 + daysSinceLastVisitMax: 6 usersType: Unknown - daysSinceLastVisitMin: 5 + daysSinceLastVisitMin: 0 description: description retargeting: visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 type: Unknown lookalike: - targetSize: 4 + targetSize: 9 seedSegmentId: seedSegmentId advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -6181,13 +6153,13 @@ components: location: registryType: Unknown pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 9 + longitude: 5.962133916683182 + radiusInKm: 5 inMarket: country: country interestIds: @@ -6211,8 +6183,28 @@ components: $ref: '#/components/schemas/AudienceSegmentEntityV1' id: description: Id of the entity + nullable: true + type: string + type: + nullable: true + type: string + type: object + AudienceSegmentSizeEntityV1Resource: + description: A class that represents a domain entity exposed by an API + example: + attributes: + size: 0 + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/AudienceSegmentSizeEntityV1' + id: + description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object AudienceSegmentIdEntityV1Resource: @@ -6231,202 +6223,276 @@ components: version: v1 id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSegmentSizeEntityV1Resource: + AudienceSegmentSizeEstimationV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + size: 0 + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1' + type: object + InMarketAudienceSegmentBrandEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: size: 0 + name: name id: id type: type properties: attributes: - $ref: '#/components/schemas/AudienceSegmentSizeEntityV1' + $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSegmentSizeEstimationV1Resource: - description: A top-level object that encapsulates a Criteo API response for - a single value + InMarketAudienceSegmentInterestEntityV1Resource: + description: A class that represents a domain entity exposed by an API example: attributes: - size: 0 + parentId: parentId + id: id type: type properties: + attributes: + $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1' + id: + description: Id of the entity + nullable: true + type: string type: + nullable: true type: string - attributes: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1' type: object - InMarketAudienceSegmentInterestEntityV1Resource: + AudienceSegmentSearchMetadataV1: + description: Metadata for the audience segment search response. + example: + totalItems: 0 + offset: 1 + limit: 6 + properties: + totalItems: + description: Total number of items + format: int32 + nullable: true + type: integer + limit: + description: Max item of the current page + format: int32 + nullable: true + type: integer + offset: + description: Number of item to skip + format: int32 + nullable: true + type: integer + type: object + ContactListStatisticsEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - parentId: parentId + numberOfIdentifiers: 0 + matchRate: 1.4658129805029452 + numberOfMatches: 6 id: id type: type properties: attributes: - $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1' + $ref: '#/components/schemas/ContactListStatisticsEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - InMarketAudienceSegmentBrandEntityV1Resource: + AudienceEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - size: 0 + createdAt: 2000-01-23T04:56:07.000+00:00 + adSetIds: + - adSetIds + - adSetIds name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 + advertiserId: advertiserId id: id type: type properties: attributes: - $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1' + $ref: '#/components/schemas/AudienceEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - ContactListStatisticsEntityV1Resource: + AudienceSizeEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - numberOfIdentifiers: 0 - matchRate: 1.4658129805029452 - numberOfMatches: 6 + size: 0 id: id type: type properties: attributes: - $ref: '#/components/schemas/ContactListStatisticsEntityV1' + $ref: '#/components/schemas/AudienceSizeEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AdSetAudienceLinkEntityV1Resource: + AudienceIdEntityV1Resource: description: A class that represents a domain entity exposed by an API example: - attributes: - audienceId: audienceId + attributes: "{}" id: id type: type properties: attributes: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1' + description: Audience entity with only its ID + type: object + x-criteo-canonical: + infoType: entity + name: Audience + version: v1 id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSearchEntityV1Resource: + AudienceSizeEstimationV1Resource: description: A top-level object that encapsulates a Criteo API response for a single value example: attributes: - adSetIds: - - adSetIds - - adSetIds - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceIds: - - audienceIds - - audienceIds + size: 0 type: type properties: type: + nullable: true type: string attributes: - $ref: '#/components/schemas/AudienceSearchEntityV1' + $ref: '#/components/schemas/AudienceSizeEstimationV1' type: object - AudienceCreateEntityV1Resource: - description: A top-level object that encapsulates a Criteo API response for - a single value + AudienceSearchMetadataV1: + description: Metadata for the audience search response. example: - attributes: - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - advertiserId: advertiserId - type: type + totalItems: 0 + offset: 1 + limit: 6 properties: - type: - type: string - attributes: - $ref: '#/components/schemas/AudienceCreateEntityV1' + totalItems: + description: Total number of items + format: int32 + nullable: true + type: integer + limit: + description: Max item of the current page + format: int32 + nullable: true + type: integer + offset: + description: Number of item to skip + format: int32 + nullable: true + type: integer type: object - AudienceUpdateEntityV1Resource: + AudienceSegmentUpdateEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: + prospecting: + daysSinceLastVisitMax: + value: 5 + usersType: Prospects + daysSinceLastVisitMin: + value: 5 name: name description: value: value - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - id: id - type: type - properties: - attributes: - $ref: '#/components/schemas/AudienceUpdateEntityV1' - id: - description: Id of the entity - type: string - type: - type: string - type: object - AudienceDeleteEntityV1Resource: - description: A class that represents a domain entity exposed by an API - example: - attributes: "{}" + location: + registryType: PointOfInterest + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 0 + retargeting: + visitorsType: All + daysSinceLastVisitMax: 1 + daysSinceLastVisitMin: 6 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Low + - Low + gender: + value: Male + brandIds: + - brandIds + - brandIds + priceRange: + - Low + - Low + lookalike: + targetSize: 5 id: id type: type properties: attributes: - description: Audience to delete - type: object - x-criteo-canonical: - infoType: entity - name: Audience - version: v1 + $ref: '#/components/schemas/AudienceSegmentUpdateEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceComputeSizeEntityV1Resource: + AudienceSegmentComputeSizeEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: "{}" @@ -6434,86 +6500,108 @@ components: type: type properties: attributes: - description: Audience of people of interest for a marketer. + description: Set of rules that defines specific people to target. type: object x-criteo-canonical: infoType: entity - name: Audience + name: AudienceSegment version: v1 id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceEstimateSizeEntityV1Resource: + AudienceSegmentCreateEntityV1Resource: description: A top-level object that encapsulates a Criteo API response for a single value example: attributes: - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId + contactList: "{}" + prospecting: + daysSinceLastVisitMax: 6 + usersType: Prospects + daysSinceLastVisitMin: 0 + name: name + description: description + location: + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 1 + retargeting: + visitorsType: All + daysSinceLastVisitMax: 5 + daysSinceLastVisitMin: 5 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Low + - Low + gender: Male + brandIds: + - brandIds + - brandIds + priceRange: + - Low + - Low + lookalike: + targetSize: 2 + seedSegmentId: seedSegmentId advertiserId: advertiserId type: type properties: type: + nullable: true type: string attributes: - $ref: '#/components/schemas/AudienceEstimateSizeEntityV1' + $ref: '#/components/schemas/AudienceSegmentCreateEntityV1' type: object - AudienceSegmentSearchEntityV1Resource: - description: A top-level object that encapsulates a Criteo API response for - a single value + AudienceSegmentDeleteEntityV1Resource: + description: A class that represents a domain entity exposed by an API example: - attributes: - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceSegmentTypes: - - Unknown - - Unknown + attributes: "{}" + id: id type: type properties: + attributes: + description: Segment to delete + type: object + x-criteo-canonical: + infoType: entity + name: AudienceSegment + version: v1 + id: + description: Id of the entity + nullable: true + type: string type: + nullable: true type: string - attributes: - $ref: '#/components/schemas/AudienceSegmentSearchEntityV1' type: object - AudienceSegmentCreateEntityV1Resource: + AudienceSegmentSizeEstimationEntityV1Resource: description: A top-level object that encapsulates a Criteo API response for a single value example: attributes: - contactList: "{}" - prospecting: - daysSinceLastVisitMax: 6 - usersType: Prospects - daysSinceLastVisitMin: 0 - name: name - description: description location: pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 1 - retargeting: - visitorsType: All - daysSinceLastVisitMax: 5 - daysSinceLastVisitMin: 5 + longitude: 5.962133916683182 + radiusInKm: 0 inMarket: country: country interestIds: @@ -6529,74 +6617,67 @@ components: priceRange: - Low - Low - lookalike: - targetSize: 2 - seedSegmentId: seedSegmentId advertiserId: advertiserId type: type properties: type: + nullable: true type: string attributes: - $ref: '#/components/schemas/AudienceSegmentCreateEntityV1' + $ref: '#/components/schemas/AudienceSegmentSizeEstimationEntityV1' type: object - AudienceSegmentUpdateEntityV1Resource: + AudienceSegmentSearchEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceSegmentTypes: + - Unknown + - Unknown + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AudienceSegmentSearchEntityV1' + type: object + AudienceUpdateEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - prospecting: - daysSinceLastVisitMax: - value: 5 - usersType: Prospects - daysSinceLastVisitMin: - value: 5 name: name description: value: value - location: - registryType: PointOfInterest - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 0 - retargeting: - visitorsType: All - daysSinceLastVisitMax: 1 - daysSinceLastVisitMin: 6 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Low - - Low - gender: - value: Male - brandIds: - - brandIds - - brandIds - priceRange: - - Low - - Low - lookalike: - targetSize: 5 + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId id: id type: type properties: attributes: - $ref: '#/components/schemas/AudienceSegmentUpdateEntityV1' + $ref: '#/components/schemas/AudienceUpdateEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSegmentDeleteEntityV1Resource: + AudienceComputeSizeEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: "{}" @@ -6604,19 +6685,46 @@ components: type: type properties: attributes: - description: Segment to delete + description: Audience of people of interest for a marketer. type: object x-criteo-canonical: infoType: entity - name: AudienceSegment + name: Audience version: v1 id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSegmentComputeSizeEntityV1Resource: + AudienceCreateEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + advertiserId: advertiserId + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AudienceCreateEntityV1' + type: object + AudienceDeleteEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: "{}" @@ -6624,150 +6732,96 @@ components: type: type properties: attributes: - description: Set of rules that defines specific people to target. + description: Audience to delete type: object x-criteo-canonical: infoType: entity - name: AudienceSegment + name: Audience version: v1 id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSegmentSizeEstimationEntityV1Resource: + AudienceEstimateSizeEntityV1Resource: description: A top-level object that encapsulates a Criteo API response for a single value example: attributes: - location: - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 0 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Low - - Low - gender: Male - brandIds: - - brandIds - - brandIds - priceRange: - - Low - - Low + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId advertiserId: advertiserId type: type properties: type: + nullable: true type: string attributes: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationEntityV1' + $ref: '#/components/schemas/AudienceEstimateSizeEntityV1' type: object - AudienceEntityV1: - description: Audience of people of interest for a marketer. + AudienceSearchEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value example: - createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId + attributes: + adSetIds: + - adSetIds + - adSetIds + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceIds: + - audienceIds + - audienceIds + type: type properties: - name: - description: Name of the audience - type: string - description: - description: Description of the audience - type: string - createdAt: - description: ISO-8601 timestamp in UTC of audience creation (read-only) - format: date-time - type: string - updatedAt: - description: ISO-8601 timestamp in UTC of audience update (read-only) - format: date-time - type: string - advertiserId: - description: Advertiser associated to the audience + type: + nullable: true type: string - adSetIds: - description: Ad sets associated to the audience - items: - type: string - type: array - uniqueItems: true - algebra: - $ref: '#/components/schemas/AlgebraNodeV1' - type: object - x-criteo-canonical: - infoType: entity - name: Audience - version: v1 - AudienceIdEntityV1: - description: Audience entity with only its ID + attributes: + $ref: '#/components/schemas/AudienceSearchEntityV1' type: object - x-criteo-canonical: - infoType: entity - name: Audience - version: v1 - AudienceSizeEntityV1: - description: Audience entity only with its size + AdSetAudienceLinkEntityV1: + description: Link Audience with an ad set example: - size: 0 + audienceId: audienceId properties: - size: - format: int64 - type: integer + audienceId: + nullable: true + type: string type: object x-criteo-canonical: infoType: entity - name: AudienceSize - version: v1 - AudienceSizeEstimationV1: - description: Audience size estimation - example: - size: 0 - properties: - size: - format: int64 - type: integer - type: object + name: AdSetAudience + version: v1 AudienceSegmentEntityV1: description: Set of rules that defines specific people to target. example: prospecting: - daysSinceLastVisitMax: 5 + daysSinceLastVisitMax: 6 usersType: Unknown - daysSinceLastVisitMin: 5 + daysSinceLastVisitMin: 0 description: description retargeting: visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 type: Unknown lookalike: - targetSize: 4 + targetSize: 9 seedSegmentId: seedSegmentId advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -6782,13 +6836,13 @@ components: location: registryType: Unknown pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 9 + longitude: 5.962133916683182 + radiusInKm: 5 inMarket: country: country interestIds: @@ -6808,9 +6862,11 @@ components: properties: name: description: Name of the segment + nullable: true type: string description: description: Description of the segment + nullable: true type: string type: description: Type of segment (read-only) @@ -6823,17 +6879,21 @@ components: - Behavioral - Retargeting - Lookalike + nullable: true type: string createdAt: description: ISO-8601 timestamp in UTC of segment creation (read-only) format: date-time + nullable: true type: string updatedAt: description: ISO-8601 timestamp in UTC of segment update (read-only) format: date-time + nullable: true type: string advertiserId: description: Advertiser associated to the segment + nullable: true type: string inMarket: $ref: '#/components/schemas/InMarketV1' @@ -6854,13 +6914,6 @@ components: infoType: entity name: AudienceSegment version: v1 - AudienceSegmentIdEntityV1: - description: Audience Segment entity only with its ID - type: object - x-criteo-canonical: - infoType: entity - name: AudienceSegment - version: v1 AudienceSegmentSizeEntityV1: description: Set of rules that defines specific people to target. example: @@ -6868,12 +6921,20 @@ components: properties: size: format: int64 + nullable: true type: integer type: object x-criteo-canonical: infoType: entity name: AudienceSegmentSize version: v1 + AudienceSegmentIdEntityV1: + description: Audience Segment entity only with its ID + type: object + x-criteo-canonical: + infoType: entity + name: AudienceSegment + version: v1 AudienceSegmentSizeEstimationV1: description: Segment size estimation example: @@ -6881,21 +6942,9 @@ components: properties: size: format: int64 + nullable: true type: integer type: object - InMarketAudienceSegmentInterestEntityV1: - description: In-market segment interest entity - example: - parentId: parentId - properties: - parentId: - description: Id of the parent in-market segment interest - type: string - type: object - x-criteo-canonical: - infoType: entity - name: InMarketAudienceSegmentInterest - version: v1 InMarketAudienceSegmentBrandEntityV1: description: In-market segment brand entity example: @@ -6904,16 +6953,32 @@ components: properties: name: description: Name of the in-market segment brand + nullable: true type: string size: description: Size of the in-market segment brand format: int32 + nullable: true type: integer type: object x-criteo-canonical: infoType: entity name: InMarketAudienceSegmentBrand version: v1 + InMarketAudienceSegmentInterestEntityV1: + description: In-market segment interest entity + example: + parentId: parentId + properties: + parentId: + description: Id of the parent in-market segment interest + nullable: true + type: string + type: object + x-criteo-canonical: + infoType: entity + name: InMarketAudienceSegmentInterest + version: v1 ContactListStatisticsEntityV1: description: Contact list statistics. example: @@ -6924,74 +6989,31 @@ components: numberOfIdentifiers: description: Number of identifiers in the contact list. format: int32 + nullable: true type: integer numberOfMatches: description: Number of matched identifiers in the contact list. format: int32 + nullable: true type: integer matchRate: description: "Percentage of matched identifiers in the contact list.\r\n\ Can differ from matches/identifiers depending on the contact list type." format: double + nullable: true type: number type: object x-criteo-canonical: infoType: entity name: ContactListStatistics version: v1 - AdSetAudienceLinkEntityV1: - description: Link Audience with an ad set - example: - audienceId: audienceId - properties: - audienceId: - type: string - type: object - x-criteo-canonical: - infoType: entity - name: AdSetAudience - version: v1 - AudienceSearchEntityV1: - description: "Available filters to perform a search on segments. If present,\ - \ the filters are AND'ed together when applied." + AudienceEntityV1: + description: Audience of people of interest for a marketer. example: + createdAt: 2000-01-23T04:56:07.000+00:00 adSetIds: - adSetIds - adSetIds - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceIds: - - audienceIds - - audienceIds - properties: - audienceIds: - description: List of audience ids - items: - type: string - type: array - advertiserIds: - description: List of advertiser ids - items: - type: string - type: array - audienceSegmentIds: - description: List of segment ids (linked to the result audiences) - items: - type: string - type: array - adSetIds: - description: List of AdSet ids - items: - type: string - type: array - type: object - AudienceCreateEntityV1: - description: Audience of people of interest for a marketer. - example: name: name description: description algebra: @@ -7003,45 +7025,38 @@ components: - null - null audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 advertiserId: advertiserId properties: name: description: Name of the audience + nullable: true type: string description: description: Description of the audience + nullable: true + type: string + createdAt: + description: ISO-8601 timestamp in UTC of audience creation (read-only) + format: date-time + nullable: true + type: string + updatedAt: + description: ISO-8601 timestamp in UTC of audience update (read-only) + format: date-time + nullable: true type: string advertiserId: description: Advertiser associated to the audience + nullable: true type: string - algebra: - $ref: '#/components/schemas/AlgebraNodeV1' - required: - - advertiserId - - algebra - - name - type: object - AudienceUpdateEntityV1: - description: Audience of people of interest for a marketer. - example: - name: name - description: - value: value - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - properties: - name: - description: Name of the audience - type: string - description: - $ref: '#/components/schemas/NillableString' + adSetIds: + description: Ad sets associated to the audience + items: + type: string + nullable: true + type: array + uniqueItems: true algebra: $ref: '#/components/schemas/AlgebraNodeV1' type: object @@ -7049,82 +7064,110 @@ components: infoType: entity name: Audience version: v1 - AudienceDeleteEntityV1: - description: Audience to delete + AudienceSizeEntityV1: + description: Audience entity only with its size + example: + size: 0 + properties: + size: + format: int64 + nullable: true + type: integer type: object x-criteo-canonical: infoType: entity - name: Audience + name: AudienceSize version: v1 - AudienceComputeSizeEntityV1: - description: Audience of people of interest for a marketer. + AudienceIdEntityV1: + description: Audience entity with only its ID type: object x-criteo-canonical: infoType: entity name: Audience version: v1 - AudienceEstimateSizeEntityV1: - description: Audience of people of interest for a marketer. + AudienceSizeEstimationV1: + description: Audience size estimation example: - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - advertiserId: advertiserId + size: 0 properties: - advertiserId: - description: Advertiser associated to the audience - type: string - algebra: - $ref: '#/components/schemas/AlgebraNodeV1' - required: - - advertiserId - - algebra + size: + format: int64 + nullable: true + type: integer type: object - AudienceSegmentSearchEntityV1: - description: "Available filters to perform a search on audience segments. If\ - \ present, the filters are AND'ed together when applied." + AudienceSegmentUpdateEntityV1: + description: Set of rules that defines specific people to target. example: - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceSegmentTypes: - - Unknown - - Unknown + prospecting: + daysSinceLastVisitMax: + value: 5 + usersType: Prospects + daysSinceLastVisitMin: + value: 5 + name: name + description: + value: value + location: + registryType: PointOfInterest + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 0 + retargeting: + visitorsType: All + daysSinceLastVisitMax: 1 + daysSinceLastVisitMin: 6 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Low + - Low + gender: + value: Male + brandIds: + - brandIds + - brandIds + priceRange: + - Low + - Low + lookalike: + targetSize: 5 properties: - audienceSegmentIds: - description: List of segment ids - items: - type: string - type: array - advertiserIds: - description: List of advertiser ids - items: - type: string - type: array - audienceSegmentTypes: - description: List of segment types - items: - enum: - - Unknown - - InMarket - - Prospecting - - ContactList - - Location - - Behavioral - - Retargeting - - Lookalike - type: string - type: array + name: + description: Name of the segment + nullable: true + type: string + description: + $ref: '#/components/schemas/NillableString' + inMarket: + $ref: '#/components/schemas/InMarketUpdateV1' + location: + $ref: '#/components/schemas/LocationUpdateV1' + retargeting: + $ref: '#/components/schemas/RetargetingUpdateV1' + lookalike: + $ref: '#/components/schemas/LookalikeUpdateV1' + prospecting: + $ref: '#/components/schemas/ProspectingUpdateV1' type: object + x-criteo-canonical: + infoType: entity + name: AudienceSegment + version: v1 + AudienceSegmentComputeSizeEntityV1: + description: Set of rules that defines specific people to target. + type: object + x-criteo-canonical: + infoType: entity + name: AudienceSegment + version: v1 AudienceSegmentCreateEntityV1: description: Set of rules that defines specific people to target. example: @@ -7137,12 +7180,12 @@ components: description: description location: pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 1 retargeting: visitorsType: All @@ -7173,6 +7216,7 @@ components: type: string description: description: Description of the segment + nullable: true type: string advertiserId: description: Advertiser associated to the segment @@ -7194,32 +7238,25 @@ components: - advertiserId - name type: object - AudienceSegmentUpdateEntityV1: + AudienceSegmentDeleteEntityV1: + description: Segment to delete + type: object + x-criteo-canonical: + infoType: entity + name: AudienceSegment + version: v1 + AudienceSegmentSizeEstimationEntityV1: description: Set of rules that defines specific people to target. example: - prospecting: - daysSinceLastVisitMax: - value: 5 - usersType: Prospects - daysSinceLastVisitMin: - value: 5 - name: name - description: - value: value location: - registryType: PointOfInterest pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 0 - retargeting: - visitorsType: All - daysSinceLastVisitMax: 1 - daysSinceLastVisitMin: 6 inMarket: country: country interestIds: @@ -7228,114 +7265,207 @@ components: buyingPower: - Low - Low - gender: - value: Male + gender: Male brandIds: - brandIds - brandIds priceRange: - Low - Low - lookalike: - targetSize: 5 + advertiserId: advertiserId + properties: + advertiserId: + description: Advertiser associated to the segment + type: string + inMarket: + $ref: '#/components/schemas/InMarketSizeEstimationV1' + location: + $ref: '#/components/schemas/LocationSizeEstimationV1' + required: + - advertiserId + type: object + AudienceSegmentSearchEntityV1: + description: "Available filters to perform a search on audience segments. If\ + \ present, the filters are AND'ed together when applied." + example: + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceSegmentTypes: + - Unknown + - Unknown + properties: + audienceSegmentIds: + description: List of segment ids + items: + type: string + nullable: true + type: array + advertiserIds: + description: List of advertiser ids + items: + type: string + nullable: true + type: array + audienceSegmentTypes: + description: List of segment types + items: + enum: + - Unknown + - InMarket + - Prospecting + - ContactList + - Location + - Behavioral + - Retargeting + - Lookalike + type: string + nullable: true + type: array + type: object + AudienceUpdateEntityV1: + description: Audience of people of interest for a marketer. + example: + name: name + description: + value: value + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId properties: name: - description: Name of the segment + description: Name of the audience + nullable: true type: string description: $ref: '#/components/schemas/NillableString' - inMarket: - $ref: '#/components/schemas/InMarketUpdateV1' - location: - $ref: '#/components/schemas/LocationUpdateV1' - retargeting: - $ref: '#/components/schemas/RetargetingUpdateV1' - lookalike: - $ref: '#/components/schemas/LookalikeUpdateV1' - prospecting: - $ref: '#/components/schemas/ProspectingUpdateV1' + algebra: + $ref: '#/components/schemas/AlgebraNodeV1' type: object x-criteo-canonical: infoType: entity - name: AudienceSegment + name: Audience version: v1 - AudienceSegmentDeleteEntityV1: - description: Segment to delete + AudienceComputeSizeEntityV1: + description: Audience of people of interest for a marketer. type: object x-criteo-canonical: infoType: entity - name: AudienceSegment + name: Audience version: v1 - AudienceSegmentComputeSizeEntityV1: - description: Set of rules that defines specific people to target. + AudienceCreateEntityV1: + description: Audience of people of interest for a marketer. + example: + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + advertiserId: advertiserId + properties: + name: + description: Name of the audience + type: string + description: + description: Description of the audience + nullable: true + type: string + advertiserId: + description: Advertiser associated to the audience + type: string + algebra: + $ref: '#/components/schemas/AlgebraNodeV1' + required: + - advertiserId + - algebra + - name + type: object + AudienceDeleteEntityV1: + description: Audience to delete type: object x-criteo-canonical: infoType: entity - name: AudienceSegment + name: Audience version: v1 - AudienceSegmentSizeEstimationEntityV1: - description: Set of rules that defines specific people to target. + AudienceEstimateSizeEntityV1: + description: Audience of people of interest for a marketer. example: - location: - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 0 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Low - - Low - gender: Male - brandIds: - - brandIds - - brandIds - priceRange: - - Low - - Low + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId advertiserId: advertiserId properties: advertiserId: - description: Advertiser associated to the segment + description: Advertiser associated to the audience type: string - inMarket: - $ref: '#/components/schemas/InMarketSizeEstimationV1' - location: - $ref: '#/components/schemas/LocationSizeEstimationV1' + algebra: + $ref: '#/components/schemas/AlgebraNodeV1' required: - advertiserId + - algebra type: object - AlgebraNodeV1: - description: Node in the audience algebra definition. + AudienceSearchEntityV1: + description: "Available filters to perform a search on segments. If present,\ + \ the filters are AND'ed together when applied." example: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId + adSetIds: + - adSetIds + - adSetIds + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceIds: + - audienceIds + - audienceIds properties: - and: + audienceIds: + description: List of audience ids items: - $ref: '#/components/schemas/AlgebraNodeV1' + type: string + nullable: true type: array - or: + advertiserIds: + description: List of advertiser ids items: - $ref: '#/components/schemas/AlgebraNodeV1' + type: string + nullable: true + type: array + audienceSegmentIds: + description: List of segment ids (linked to the result audiences) + items: + type: string + nullable: true + type: array + adSetIds: + description: List of AdSet ids + items: + type: string + nullable: true type: array - not: - $ref: '#/components/schemas/AlgebraNodeV1' - audienceSegmentId: - type: string type: object InMarketV1: description: Settings to target users based on high shopping intents and demographics. @@ -7357,6 +7487,7 @@ components: properties: country: description: Reach people of a specific country + nullable: true type: string buyingPower: description: Reach people who frequently purchase high price range items @@ -7369,6 +7500,7 @@ components: - High - VeryHigh type: string + nullable: true type: array uniqueItems: true gender: @@ -7378,17 +7510,20 @@ components: - Unknown - Male - Female + nullable: true type: string interestIds: description: Reach new people based on their interests items: type: string + nullable: true type: array uniqueItems: true brandIds: description: Choose the brands your segment might be interested in items: type: string + nullable: true type: array uniqueItems: true priceRange: @@ -7401,25 +7536,28 @@ components: - Medium - High type: string + nullable: true type: array uniqueItems: true type: object ProspectingV1: description: Settings to target prospecting users to website visitors. example: - daysSinceLastVisitMax: 5 + daysSinceLastVisitMax: 6 usersType: Unknown - daysSinceLastVisitMin: 5 + daysSinceLastVisitMin: 0 properties: daysSinceLastVisitMin: description: "When non buyers are included, include users who visited your\ \ website before this number of days" format: int32 + nullable: true type: integer daysSinceLastVisitMax: description: "When non buyers are included, include users who visited your\ \ website after this number of days" format: int32 + nullable: true type: integer usersType: description: Type of users to target @@ -7427,6 +7565,7 @@ components: - Unknown - Prospects - ProspectsOrNonBuyers + nullable: true type: string type: object ContactListV1: @@ -7436,6 +7575,7 @@ components: properties: isReadOnly: description: Is the segment read-only + nullable: true type: boolean type: object LocationV1: @@ -7443,30 +7583,33 @@ components: example: registryType: Unknown pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 9 + longitude: 5.962133916683182 + radiusInKm: 5 properties: pointsOfInterest: description: Reach users which have been historically located in the given coordinates items: $ref: '#/components/schemas/PointOfInterestV1' + nullable: true type: array radiusInKm: description: The expected maximum distance in kilometers between a user and a point of interest format: int32 + nullable: true type: integer registryType: description: The kind of Location audience enum: - Unknown - PointOfInterest + nullable: true type: string type: object BehavioralV1: @@ -7479,6 +7622,7 @@ components: properties: country: description: The users' country + nullable: true type: string category: description: The type of behavioral @@ -7492,10 +7636,12 @@ components: startDate: description: Desired date when the behavioral will start format: date-time + nullable: true type: string endDate: description: Desired date when the behavioral will end format: date-time + nullable: true type: string required: - category @@ -7505,8 +7651,8 @@ components: visit. example: visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 properties: visitorsType: description: Types of visitors. @@ -7515,30 +7661,63 @@ components: - All - Buyers - NonBuyers + nullable: true type: string daysSinceLastVisitMin: description: Minimum number of days since last visit to partner. format: int32 + nullable: true type: integer daysSinceLastVisitMax: description: Maximum number of days since last visit to partner. format: int32 + nullable: true type: integer type: object LookalikeV1: description: Settings to target users that behave like a given seed segment example: - targetSize: 4 + targetSize: 9 seedSegmentId: seedSegmentId properties: seedSegmentId: description: Segment from which the Lookalike segment will be generated + nullable: true type: string targetSize: description: Desired size of the generated Lookalike segment format: int64 + nullable: true type: integer type: object + AlgebraNodeV1: + description: Node in the audience algebra definition. + example: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + properties: + and: + items: + $ref: '#/components/schemas/AlgebraNodeV1' + nullable: true + type: array + or: + items: + $ref: '#/components/schemas/AlgebraNodeV1' + nullable: true + type: array + not: + $ref: '#/components/schemas/AlgebraNodeV1' + audienceSegmentId: + nullable: true + type: string + type: object NillableString: description: Placeholder object for string value for which "null" is a valid business value @@ -7548,9 +7727,10 @@ components: value: description: The string's value. If missing or null the string's value is set to "null" + nullable: true type: string type: object - InMarketCreateV1: + InMarketUpdateV1: description: Settings to target users based on high shopping intents and demographics. example: country: country @@ -7560,7 +7740,8 @@ components: buyingPower: - Low - Low - gender: Male + gender: + value: Male brandIds: - brandIds - brandIds @@ -7570,6 +7751,7 @@ components: properties: country: description: Reach people of a specific country + nullable: true type: string buyingPower: description: Reach people who frequently purchase high price range items @@ -7581,25 +7763,23 @@ components: - High - VeryHigh type: string + nullable: true type: array uniqueItems: true gender: - description: Reach people who’ve shown interest in products made for a specific - gender - enum: - - Male - - Female - type: string + $ref: '#/components/schemas/NillableGenderV1' interestIds: description: Reach new people based on their interests items: type: string + nullable: true type: array uniqueItems: true brandIds: description: Choose the brands your segment might be interested in items: type: string + nullable: true type: array uniqueItems: true priceRange: @@ -7611,74 +7791,49 @@ components: - Medium - High type: string + nullable: true type: array uniqueItems: true - required: - - country - type: object - ProspectingCreateV1: - description: Settings to target prospecting users to website visitors. - example: - daysSinceLastVisitMax: 6 - usersType: Prospects - daysSinceLastVisitMin: 0 - properties: - daysSinceLastVisitMin: - description: "When non buyers are included, include users who visited your\ - \ website before this number of days" - format: int32 - type: integer - daysSinceLastVisitMax: - description: "When non buyers are included, include users who visited your\ - \ website after this number of days" - format: int32 - type: integer - usersType: - description: Type of users to target - enum: - - Prospects - - ProspectsOrNonBuyers - type: string - required: - - usersType - type: object - ContactListCreateV1: - description: Settings to target users with your contact lists. type: object - LocationCreateV1: + LocationUpdateV1: description: Settings to target users based on their location. example: + registryType: PointOfInterest pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 1 + longitude: 5.962133916683182 + radiusInKm: 0 properties: pointsOfInterest: description: Reach users which have been historically located in the given coordinates items: $ref: '#/components/schemas/PointOfInterestV1' + nullable: true type: array radiusInKm: - description: The expected maximum distance in kilometers between a user - and a point of interest + description: Radius in kilometers format: int32 + nullable: true type: integer - required: - - pointsOfInterest - - radiusInKm + registryType: + description: The kind of Location audience + enum: + - PointOfInterest + nullable: true + type: string type: object - RetargetingCreateV1: + RetargetingUpdateV1: description: Settings to target users based on its type and days since last visit. example: visitorsType: All - daysSinceLastVisitMax: 5 - daysSinceLastVisitMin: 5 + daysSinceLastVisitMax: 1 + daysSinceLastVisitMin: 6 properties: visitorsType: description: Types of visitors. @@ -7686,37 +7841,52 @@ components: - All - Buyers - NonBuyers + nullable: true type: string daysSinceLastVisitMin: description: Minimum number of days since last visit to partner. format: int32 + nullable: true type: integer daysSinceLastVisitMax: description: Maximum number of days since last visit to partner. format: int32 + nullable: true type: integer - required: - - daysSinceLastVisitMax - - daysSinceLastVisitMin - - visitorsType type: object - LookalikeCreateV1: - description: Settings to target users close to a given seed segment. + LookalikeUpdateV1: + description: Settings to target users that behave like a given seed segment example: - targetSize: 2 - seedSegmentId: seedSegmentId + targetSize: 5 properties: - seedSegmentId: - description: Segment from which the Lookalike segment will be generated - type: string targetSize: description: Desired size of the generated Lookalike segment format: int64 + nullable: true type: integer - required: - - seedSegmentId type: object - InMarketUpdateV1: + ProspectingUpdateV1: + description: Settings to target prospecting users to website visitors. + example: + daysSinceLastVisitMax: + value: 5 + usersType: Prospects + daysSinceLastVisitMin: + value: 5 + properties: + daysSinceLastVisitMin: + $ref: '#/components/schemas/NillableInt32' + daysSinceLastVisitMax: + $ref: '#/components/schemas/NillableInt32' + usersType: + description: Type of users to target + enum: + - Prospects + - ProspectsOrNonBuyers + nullable: true + type: string + type: object + InMarketCreateV1: description: Settings to target users based on high shopping intents and demographics. example: country: country @@ -7726,8 +7896,7 @@ components: buyingPower: - Low - Low - gender: - value: Male + gender: Male brandIds: - brandIds - brandIds @@ -7748,20 +7917,29 @@ components: - High - VeryHigh type: string + nullable: true type: array uniqueItems: true gender: - $ref: '#/components/schemas/NillableGenderV1' + description: Reach people who’ve shown interest in products made for a specific + gender + enum: + - Male + - Female + nullable: true + type: string interestIds: description: Reach new people based on their interests items: type: string + nullable: true type: array uniqueItems: true brandIds: description: Choose the brands your segment might be interested in items: type: string + nullable: true type: array uniqueItems: true priceRange: @@ -7773,21 +7951,54 @@ components: - Medium - High type: string + nullable: true type: array uniqueItems: true + required: + - country + type: object + ProspectingCreateV1: + description: Settings to target prospecting users to website visitors. + example: + daysSinceLastVisitMax: 6 + usersType: Prospects + daysSinceLastVisitMin: 0 + properties: + daysSinceLastVisitMin: + description: "When non buyers are included, include users who visited your\ + \ website before this number of days" + format: int32 + nullable: true + type: integer + daysSinceLastVisitMax: + description: "When non buyers are included, include users who visited your\ + \ website after this number of days" + format: int32 + nullable: true + type: integer + usersType: + description: Type of users to target + enum: + - Prospects + - ProspectsOrNonBuyers + type: string + required: + - usersType type: object - LocationUpdateV1: + ContactListCreateV1: + description: Settings to target users with your contact lists. + type: object + LocationCreateV1: description: Settings to target users based on their location. example: - registryType: PointOfInterest pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 0 + longitude: 5.962133916683182 + radiusInKm: 1 properties: pointsOfInterest: description: Reach users which have been historically located in the given @@ -7796,22 +8007,21 @@ components: $ref: '#/components/schemas/PointOfInterestV1' type: array radiusInKm: - description: Radius in kilometers + description: The expected maximum distance in kilometers between a user + and a point of interest format: int32 type: integer - registryType: - description: The kind of Location audience - enum: - - PointOfInterest - type: string + required: + - pointsOfInterest + - radiusInKm type: object - RetargetingUpdateV1: + RetargetingCreateV1: description: Settings to target users based on its type and days since last visit. example: visitorsType: All - daysSinceLastVisitMax: 1 - daysSinceLastVisitMin: 6 + daysSinceLastVisitMax: 5 + daysSinceLastVisitMin: 5 properties: visitorsType: description: Types of visitors. @@ -7828,36 +8038,27 @@ components: description: Maximum number of days since last visit to partner. format: int32 type: integer + required: + - daysSinceLastVisitMax + - daysSinceLastVisitMin + - visitorsType type: object - LookalikeUpdateV1: - description: Settings to target users that behave like a given seed segment + LookalikeCreateV1: + description: Settings to target users close to a given seed segment. example: - targetSize: 5 + targetSize: 2 + seedSegmentId: seedSegmentId properties: + seedSegmentId: + description: Segment from which the Lookalike segment will be generated + type: string targetSize: description: Desired size of the generated Lookalike segment format: int64 + nullable: true type: integer - type: object - ProspectingUpdateV1: - description: Settings to target prospecting users to website visitors. - example: - daysSinceLastVisitMax: - value: 5 - usersType: Prospects - daysSinceLastVisitMin: - value: 5 - properties: - daysSinceLastVisitMin: - $ref: '#/components/schemas/NillableInt32' - daysSinceLastVisitMax: - $ref: '#/components/schemas/NillableInt32' - usersType: - description: Type of users to target - enum: - - Prospects - - ProspectsOrNonBuyers - type: string + required: + - seedSegmentId type: object InMarketSizeEstimationV1: description: Settings to target users based on high shopping intents and demographics. @@ -7887,21 +8088,25 @@ components: - High - VeryHigh type: string + nullable: true type: array uniqueItems: true gender: enum: - Male - Female + nullable: true type: string interestIds: items: type: string + nullable: true type: array uniqueItems: true brandIds: items: type: string + nullable: true type: array uniqueItems: true priceRange: @@ -7911,6 +8116,7 @@ components: - Medium - High type: string + nullable: true type: array uniqueItems: true required: @@ -7920,12 +8126,12 @@ components: description: Settings to define your audience based on their location. example: pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 0 properties: pointsOfInterest: @@ -7943,20 +8149,23 @@ components: description: "Named coordinate defined by its latitude and longitude.\r\nLatitude\ \ and Longitude are rounded at 5 decimals." example: - latitude: 2.3021358869347655 + latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 properties: name: description: Name of the point of interest + nullable: true type: string latitude: description: ISO-6709 latitude (rounded at 5 decimals) format: double + nullable: true type: number longitude: description: ISO-6709 longitude (rounded at 5 decimals) format: double + nullable: true type: number type: object NillableGenderV1: @@ -7970,6 +8179,7 @@ components: enum: - Male - Female + nullable: true type: string type: object NillableInt32: @@ -7981,8 +8191,75 @@ components: value: description: The value. If missing or null the value is set to "null" format: int32 + nullable: true type: integer type: object + ResponseAdSetId: + description: output resource + example: + data: + id: id + type: AdSetId + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $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 + type: object ResponseReadAdSet: description: output resource example: @@ -8084,12 +8361,14 @@ components: 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 @@ -8155,115 +8434,47 @@ components: 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 - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - items: - $ref: '#/components/schemas/ReadModelReadAdSet' - readOnly: true - type: array - uniqueItems: false - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - uniqueItems: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - uniqueItems: false - type: object - ResponseAdSetId: - description: output resource - example: - data: + 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 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8308,16 +8519,23 @@ components: title: title properties: data: - $ref: '#/components/schemas/ReadModelAdSetId' + 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 @@ -8376,38 +8594,39 @@ components: data: 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 - CampaignResponse: - description: output resource + AdSetCategoryBidListResponse: + 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 + - attributes: + bidAmount: 0.8008281904610115 + categoryName: categoryName id: id - type: Campaign + type: AdSetCategoryBid + - attributes: + bidAmount: 0.8008281904610115 + categoryName: categoryName + id: id + type: AdSetCategoryBid warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8452,48 +8671,34 @@ components: title: title properties: data: - $ref: '#/components/schemas/CampaignReadResource' + items: + $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 - CampaignListResponse: - description: List of output resources + 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 - - 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 @@ -8539,31 +8744,39 @@ components: properties: data: items: - $ref: '#/components/schemas/CampaignReadResource' - readOnly: true + $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 - PatchResultCampaignListResponse: - description: List of output resources + AdSetDisplayMultiplierListResponse: + description: Data model for a list of response resources example: data: - - id: id - type: Campaign - - id: id - type: Campaign + - attributes: + displayMultiplier: 0.8008281904610115 + categoryName: categoryName + id: id + type: AdSetDisplayMultiplier + - attributes: + displayMultiplier: 0.8008281904610115 + categoryName: categoryName + id: id + type: AdSetDisplayMultiplier warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8609,38 +8822,33 @@ components: properties: data: items: - $ref: '#/components/schemas/PatchResultCampaignReadResource' - 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 - CampaignV23Q1Response: - description: Data model for response resource + PatchAdSetDisplayMultiplierResultListResponse: + 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 - id: id - type: Campaign + - id: id + type: AdSetDisplayMultiplier + - id: id + type: AdSetDisplayMultiplier warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8685,34 +8893,34 @@ components: title: title properties: data: - $ref: '#/components/schemas/CampaignV23Q1Resource' + items: + $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 + PatchResultCampaignListResponse: + description: List of output resources example: data: - - attributes: - displayMultiplier: 0.8008281904610115 - categoryName: categoryName - id: id - type: AdSetDisplayMultiplier - - attributes: - displayMultiplier: 0.8008281904610115 - categoryName: categoryName - id: id - type: AdSetDisplayMultiplier + - id: id + type: Campaign + - id: id + type: Campaign warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8758,30 +8966,41 @@ components: properties: data: items: - $ref: '#/components/schemas/AdSetDisplayMultiplierResource' + $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 - PatchAdSetDisplayMultiplierResultListResponse: - description: Data model for a list of response resources + CampaignV23Q1Response: + description: Data model for response resource example: data: - - id: id - type: AdSetDisplayMultiplier - - id: id - type: AdSetDisplayMultiplier + attributes: + goal: unspecified + name: name + spendLimit: + spendLimitRenewal: undefined + spendLimitAmount: + value: 0.8008281904610115 + spendLimitType: capped + advertiserId: advertiserId + id: id + type: Campaign warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8826,37 +9045,50 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultResource' - type: array - uniqueItems: false + $ref: '#/components/schemas/CampaignV23Q1Resource' 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 @@ -8902,30 +9134,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 @@ -8970,40 +9214,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: @@ -9092,6 +9318,7 @@ components: data: items: $ref: '#/components/schemas/WriteModelPatchAdSet' + nullable: true type: array uniqueItems: false type: object @@ -9153,6 +9380,23 @@ components: data: $ref: '#/components/schemas/CreateAdSetResource' 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: @@ -9165,22 +9409,49 @@ components: data: items: $ref: '#/components/schemas/WriteModelAdSetId' + nullable: true type: array uniqueItems: false type: object - CampaignSearchRequest: - description: request payload of the search endpoint + PatchAdSetCategoryBidListRequest: + description: Data model for a list of input resources example: - filters: - advertiserIds: - - advertiserIds - - advertiserIds - campaignIds: - - campaignIds - - campaignIds + data: + - attributes: + bidAmount: 0.8008281904610115 + id: id + type: AdSetCategoryBid + - attributes: + bidAmount: 0.8008281904610115 + id: id + type: AdSetCategoryBid properties: - filters: - $ref: '#/components/schemas/CampaignSearchFilters' + data: + items: + $ref: '#/components/schemas/PatchAdSetCategoryBidResource' + nullable: true + type: array + uniqueItems: false + type: object + PatchAdSetDisplayMultiplierListRequest: + description: Data model for a list of input resources + example: + data: + - attributes: + displayMultiplier: 0.8008281904610115 + id: id + type: AdSetDisplayMultiplier + - attributes: + displayMultiplier: 0.8008281904610115 + id: id + type: AdSetDisplayMultiplier + properties: + data: + items: + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResource' + nullable: true + type: array + uniqueItems: false type: object PatchCampaignListRequest: description: List of input resources @@ -9206,6 +9477,7 @@ components: data: items: $ref: '#/components/schemas/PatchCampaignWriteResource' + nullable: true type: array uniqueItems: false type: object @@ -9226,107 +9498,36 @@ components: data: $ref: '#/components/schemas/CreateCampaignResource' type: object - PatchAdSetDisplayMultiplierListRequest: - description: Data model for a list of input resources - example: - data: - - attributes: - displayMultiplier: 0.8008281904610115 - id: id - type: AdSetDisplayMultiplier - - attributes: - displayMultiplier: 0.8008281904610115 - id: id - type: AdSetDisplayMultiplier - properties: - data: - items: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResource' - type: array - uniqueItems: false - type: object - PatchAdSetCategoryBidListRequest: - description: Data model for a list of input resources + CampaignSearchRequest: + description: request payload of the search endpoint example: - data: - - attributes: - bidAmount: 0.8008281904610115 - id: id - type: AdSetCategoryBid - - attributes: - bidAmount: 0.8008281904610115 - id: id - type: AdSetCategoryBid + filters: + advertiserIds: + - advertiserIds + - advertiserIds + campaignIds: + - campaignIds + - campaignIds properties: - data: - items: - $ref: '#/components/schemas/PatchAdSetCategoryBidResource' - type: array - uniqueItems: false + filters: + $ref: '#/components/schemas/CampaignSearchFilters' type: object - ReadModelReadAdSet: + ReadModelAdSetId: 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: 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 @@ -9344,10 +9545,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: @@ -9359,102 +9562,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: - description: read model data for resources - example: - id: id - type: AdSetId - properties: - id: - description: Id of the entity - readOnly: true - type: string - type: - example: AdSetId - readOnly: true - type: string - type: object - CampaignReadResource: + ReadModelReadAdSet: description: read model data for resources example: attributes: - goal: Unspecified - name: name - spendLimit: - spendLimitRenewal: undefined - spendLimitAmount: + 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 - spendLimitType: capped + costController: COS + campaignId: campaignId + name: name + datasetId: datasetId + mediaType: display + destinationEnvironment: undefined advertiserId: advertiserId - objective: objective + budget: + budgetDeliverySmoothing: accelerated + budgetDeliveryWeek: undefined + budgetAmount: + value: 0.8008281904610115 + budgetRenewal: undefined + budgetStrategy: capped id: id - type: Campaign + type: ReadAdSet properties: id: description: Id of the entity + nullable: true readOnly: true type: string type: - example: Campaign + example: ReadAdSet + nullable: true readOnly: true type: string attributes: - $ref: '#/components/schemas/Campaign' + $ref: '#/components/schemas/ReadAdSet' type: object - PatchResultCampaignReadResource: - description: read model data for resources + AdSetCategoryBidResource: + description: Data model for a Resource example: + attributes: + 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 type: object - CampaignV23Q1Resource: + PatchAdSetCategoryBidResultResource: description: Data model for a Resource example: - attributes: - goal: unspecified - name: name - spendLimit: - spendLimitRenewal: undefined - spendLimitAmount: - value: 0.8008281904610115 - spendLimitType: capped - advertiserId: advertiserId id: id - type: Campaign + type: AdSetCategoryBid properties: - attributes: - $ref: '#/components/schemas/CampaignV23Q1' 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 type: object AdSetDisplayMultiplierResource: @@ -9470,10 +9701,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: @@ -9484,77 +9717,86 @@ 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: + CampaignV23Q1Resource: description: Data model for a Resource example: + attributes: + goal: unspecified + name: name + spendLimit: + spendLimitRenewal: undefined + spendLimitAmount: + value: 0.8008281904610115 + spendLimitType: capped + advertiserId: advertiserId id: id - type: AdSetCategoryBid + type: Campaign properties: + attributes: + $ref: '#/components/schemas/CampaignV23Q1' 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 type: object - AdSetSearchFilter: - description: filter on ad set ids + CampaignReadResource: + description: read model data for resources example: - adSetIds: - - adSetIds - - adSetIds - advertiserIds: - - advertiserIds - - advertiserIds - campaignIds: - - campaignIds - - campaignIds + attributes: + goal: Unspecified + name: name + spendLimit: + spendLimitRenewal: undefined + spendLimitAmount: + value: 0.8008281904610115 + spendLimitType: capped + advertiserId: advertiserId + objective: objective + id: id + type: Campaign 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 + id: + description: Id of the entity + nullable: true + readOnly: true + type: string + type: + example: Campaign + nullable: true + readOnly: true + type: string + attributes: + $ref: '#/components/schemas/Campaign' type: object WriteModelPatchAdSet: description: write model data for resources @@ -9602,10 +9844,12 @@ 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' @@ -9669,25 +9913,15 @@ components: type: description: Canonical type name of the entity example: AdSet + nullable: true type: string 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 @@ -9695,19 +9929,85 @@ 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 + 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: + bidAmount: 0.8008281904610115 + id: id + 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: AdSetCategoryBid + nullable: true + type: string + type: object + PatchAdSetDisplayMultiplierResource: + description: Data model for a Resource + example: + attributes: + displayMultiplier: 0.8008281904610115 + id: id + type: AdSetDisplayMultiplier + properties: + attributes: + $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 PatchCampaignWriteResource: description: write model data for resources example: @@ -9722,10 +10022,12 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity example: Campaign + nullable: true type: string attributes: $ref: '#/components/schemas/PatchCampaign' @@ -9748,43 +10050,33 @@ components: type: description: Canonical type name of the entity example: Campaign + nullable: true type: string type: object - PatchAdSetDisplayMultiplierResource: - description: Data model for a Resource - example: - attributes: - displayMultiplier: 0.8008281904610115 - id: id - type: AdSetDisplayMultiplier - properties: - attributes: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplier' - id: - description: Id of the entity - type: string - type: - description: Canonical type name of the entity - example: AdSetDisplayMultiplier - type: string - type: object - PatchAdSetCategoryBidResource: - description: Data model for a Resource + CampaignSearchFilters: + description: filters on campaign example: - attributes: - bidAmount: 0.8008281904610115 - id: id - type: AdSetCategoryBid + advertiserIds: + - advertiserIds + - advertiserIds + campaignIds: + - campaignIds + - campaignIds properties: - attributes: - $ref: '#/components/schemas/PatchAdSetCategoryBid' - id: - description: Id of the entity - type: string - type: - description: Canonical type name of the entity - example: AdSetCategoryBid - type: string + 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 @@ -9838,15 +10130,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 @@ -9854,6 +10150,7 @@ components: - undefined - web - app + nullable: true type: string schedule: $ref: '#/components/schemas/ReadAdSetSchedule' @@ -9868,12 +10165,50 @@ components: enum: - display - video + nullable: true type: string type: object - Campaign: + 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 + CampaignV23Q1: description: campaign read model example: - goal: Unspecified + goal: unspecified name: name spendLimit: spendLimitRenewal: undefined @@ -9881,31 +10216,30 @@ components: value: 0.8008281904610115 spendLimitType: capped advertiserId: advertiserId - objective: objective properties: name: description: Name of the campaign + nullable: true type: string advertiserId: description: Advertiser id of the campaign - type: string - objective: - description: Campaign's marketing objective + nullable: true type: string spendLimit: - $ref: '#/components/schemas/CampaignSpendLimit' + $ref: '#/components/schemas/CampaignSpendLimitV23Q1' goal: description: Goal of the campaign enum: - - Unspecified - - Acquisition - - Retention + - unspecified + - acquisition + - retention + nullable: true type: string type: object - CampaignV23Q1: + Campaign: description: campaign read model example: - goal: unspecified + goal: Unspecified name: name spendLimit: spendLimitRenewal: undefined @@ -9913,55 +10247,30 @@ components: value: 0.8008281904610115 spendLimitType: capped advertiserId: advertiserId + objective: objective 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/CampaignSpendLimitV23Q1' + $ref: '#/components/schemas/CampaignSpendLimit' goal: description: Goal of the campaign enum: - - unspecified - - acquisition - - retention - 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. + - Unspecified + - Acquisition + - Retention + 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 - type: number type: object PatchAdSet: description: ad set patch model @@ -10006,6 +10315,7 @@ components: properties: name: description: Name of the ad set + nullable: true type: string scheduling: $ref: '#/components/schemas/PatchAdSetScheduling' @@ -10121,6 +10431,32 @@ components: - targeting - trackingCode type: object + PatchAdSetCategoryBid: + description: Category Bid to update for a given combination of Ad Set and Category. + example: + bidAmount: 0.8008281904610115 + 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 + nullable: true + type: number + type: object + PatchAdSetDisplayMultiplier: + description: Display Multiplier to update for a given combination of Ad Set + and Category. + example: + displayMultiplier: 0.8008281904610115 + properties: + displayMultiplier: + description: Any positive decimal value. To remove the impact of the Display + Multiplier set it to 1. At most 4 decimals are supported. Additional decimals + are rounded. + format: double + nullable: true + type: number + type: object PatchCampaign: description: campaign patch model example: @@ -10165,30 +10501,6 @@ components: - name - spendLimit type: object - PatchAdSetDisplayMultiplier: - description: Display Multiplier to update for a given combination of Ad Set - and Category. - example: - displayMultiplier: 0.8008281904610115 - properties: - displayMultiplier: - description: Any positive decimal value. To remove the impact of the Display - Multiplier set it to 1. At most 4 decimals are supported. Additional decimals - are rounded. - format: double - type: number - type: object - PatchAdSetCategoryBid: - description: Category Bid to update for a given combination of Ad Set and Category. - example: - bidAmount: 0.8008281904610115 - 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 - type: object ReadAdSetSchedule: description: ad set schedule read model example: @@ -10209,6 +10521,7 @@ components: enum: - "on" - "off" + nullable: true type: string deliveryStatus: description: "Delivery status of the delivery of the ad set, i.e. whether\ @@ -10224,6 +10537,7 @@ components: - ended - notDelivering - archived + nullable: true type: string type: object ReadAdSetBidding: @@ -10250,6 +10564,7 @@ components: - viewedImpressions - Visits - completedVideoViews + nullable: true type: string costController: description: How spend is controlled @@ -10262,6 +10577,7 @@ components: - CPSV - CPV - dailyBudget + nullable: true type: string type: object AdSetTargeting: @@ -10310,6 +10626,7 @@ components: enum: - capped - uncapped + nullable: true type: string budgetRenewal: description: The pace of the budget renewal @@ -10318,12 +10635,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 @@ -10336,11 +10655,12 @@ components: - fridayToThursday - saturdayToFriday - sundayToSaturday + nullable: true type: string budgetAmount: $ref: '#/components/schemas/NillableDecimal' type: object - CampaignSpendLimit: + CampaignSpendLimitV23Q1: description: campaign spend limit model example: spendLimitRenewal: undefined @@ -10353,6 +10673,7 @@ components: enum: - capped - uncapped + nullable: true type: string spendLimitRenewal: description: The pace of the spend limit renewal @@ -10361,11 +10682,12 @@ components: - daily - monthly - lifetime + nullable: true type: string spendLimitAmount: $ref: '#/components/schemas/NillableDecimal' type: object - CampaignSpendLimitV23Q1: + CampaignSpendLimit: description: campaign spend limit model example: spendLimitRenewal: undefined @@ -10378,6 +10700,7 @@ components: enum: - capped - uncapped + nullable: true type: string spendLimitRenewal: description: The pace of the spend limit renewal @@ -10386,6 +10709,7 @@ components: - daily - monthly - lifetime + nullable: true type: string spendLimitAmount: $ref: '#/components/schemas/NillableDecimal' @@ -10427,6 +10751,7 @@ components: enum: - capped - uncapped + nullable: true type: string budgetRenewal: description: The pace of the budget renewal @@ -10435,12 +10760,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 @@ -10453,6 +10780,7 @@ components: - fridayToThursday - saturdayToFriday - sundayToSaturday + nullable: true type: string budgetAmount: $ref: '#/components/schemas/NillableDecimal' @@ -10468,6 +10796,7 @@ components: type: string endDate: format: date-time + nullable: true type: string required: - startDate @@ -10483,6 +10812,7 @@ components: May be `null` for strategies that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded. format: double + nullable: true type: number costController: description: How spend is controlled @@ -10561,11 +10891,13 @@ components: - daily - monthly - lifetime + nullable: true type: string budgetDeliverySmoothing: enum: - accelerated - standard + nullable: true type: string budgetDeliveryWeek: enum: @@ -10577,9 +10909,11 @@ components: - fridayToThursday - saturdayToFriday - sundayToSaturday + nullable: true type: string budgetAmount: format: double + nullable: true type: number required: - budgetStrategy @@ -10597,6 +10931,7 @@ components: enum: - capped - uncapped + nullable: true type: string spendLimitRenewal: description: The pace of the spend limit renewal @@ -10605,6 +10940,7 @@ components: - daily - monthly - lifetime + nullable: true type: string spendLimitAmount: $ref: '#/components/schemas/NillableDecimal' @@ -10629,10 +10965,12 @@ components: - daily - monthly - lifetime + nullable: true type: string spendLimitAmount: description: The amount of the spend limit. null if spendLimitType is uncapped. format: double + nullable: true type: number required: - spendLimitType @@ -10687,6 +11025,7 @@ components: - web - inApp type: string + nullable: true type: array uniqueItems: false devices: @@ -10698,6 +11037,7 @@ components: - mobile - tablet type: string + nullable: true type: array uniqueItems: false operatingSystems: @@ -10708,6 +11048,7 @@ components: - ios - unknown type: string + nullable: true type: array uniqueItems: false type: object @@ -10741,10 +11082,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 CreateAdSetGeoLocation: @@ -10790,342 +11133,37 @@ components: example: values: - values - - values - operand: undefined - properties: - operand: - description: Operand which states how the values should be applied - enum: - - undefined - - in - - notIn - type: string - values: - description: List of values to apply - items: - type: string - type: array - uniqueItems: false - type: object - CreativeListResponse: - description: Data model for a list of response resources - example: - data: - - attributes: - dynamicAttributes: - creativeBackgroundColor: creativeBackgroundColor - primaryFont: primaryFont - pricesColor: pricesColor - bodyTextColor: bodyTextColor - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - productImageDisplay: ShowFullImage - adaptiveAttributes: - descriptionFont: descriptionFont - imageDisplay: ShowFullImage - videos: - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - headlineFont: headlineFont - descriptionText: descriptionText - imageSets: - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - layouts: - - Editorial - - Editorial - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - landingPageUrl: https://openapi-generator.tech - colors: - backgroundColor: backgroundColor - text2Color: text2Color - ctaTextColor: ctaTextColor - text1Color: text1Color - ctaBackgroundColor: ctaBackgroundColor - logoAreaAndTitleColor: logoAreaAndTitleColor - headlineText: headlineText - imageAttributes: - urls: - - urls - - urls - landingPageUrl: https://openapi-generator.tech - author: author - name: name - format: format - description: description - datasetId: datasetId - status: status - advertiserId: advertiserId - htmlTagAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 - id: id - type: type - - attributes: - dynamicAttributes: - creativeBackgroundColor: creativeBackgroundColor - primaryFont: primaryFont - pricesColor: pricesColor - bodyTextColor: bodyTextColor - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - productImageDisplay: ShowFullImage - adaptiveAttributes: - descriptionFont: descriptionFont - imageDisplay: ShowFullImage - videos: - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - headlineFont: headlineFont - descriptionText: descriptionText - imageSets: - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - layouts: - - Editorial - - Editorial - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - landingPageUrl: https://openapi-generator.tech - colors: - backgroundColor: backgroundColor - text2Color: text2Color - ctaTextColor: ctaTextColor - text1Color: text1Color - ctaBackgroundColor: ctaBackgroundColor - logoAreaAndTitleColor: logoAreaAndTitleColor - headlineText: headlineText - imageAttributes: - urls: - - urls - - urls - landingPageUrl: https://openapi-generator.tech - author: author - name: name - format: format - description: description - datasetId: datasetId - status: status - advertiserId: advertiserId - htmlTagAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title + - values + operand: undefined properties: - data: - items: - $ref: '#/components/schemas/CreativeResource' - type: array - uniqueItems: false - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - uniqueItems: false - errors: + operand: + description: Operand which states how the values should be applied + enum: + - undefined + - in + - notIn + nullable: true + type: string + values: + description: List of values to apply items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true + type: string + nullable: true type: array uniqueItems: false type: object - CreativeResponse: + AdResponse: description: Data model for response resource example: data: attributes: - dynamicAttributes: - creativeBackgroundColor: creativeBackgroundColor - primaryFont: primaryFont - pricesColor: pricesColor - bodyTextColor: bodyTextColor - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - productImageDisplay: ShowFullImage - adaptiveAttributes: - descriptionFont: descriptionFont - imageDisplay: ShowFullImage - videos: - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - headlineFont: headlineFont - descriptionText: descriptionText - imageSets: - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - layouts: - - Editorial - - Editorial - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - landingPageUrl: https://openapi-generator.tech - colors: - backgroundColor: backgroundColor - text2Color: text2Color - ctaTextColor: ctaTextColor - text1Color: text1Color - ctaBackgroundColor: ctaBackgroundColor - logoAreaAndTitleColor: logoAreaAndTitleColor - headlineText: headlineText - imageAttributes: - urls: - - urls - - urls - landingPageUrl: https://openapi-generator.tech - author: author + inventoryType: Native + endDate: endDate name: name - format: format + adSetId: adSetId description: description - datasetId: datasetId - status: status - advertiserId: advertiserId - htmlTagAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 + creativeId: creativeId + startDate: startDate id: id type: type warnings: @@ -11172,16 +11210,18 @@ components: title: title properties: data: - $ref: '#/components/schemas/CreativeResource' + $ref: '#/components/schemas/AdResource' 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 @@ -11256,33 +11296,80 @@ components: data: items: $ref: '#/components/schemas/AdResource' + nullable: true type: array uniqueItems: false 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 type: object - AdResponse: - description: Data model for response resource + CouponListResponse: + description: Data model for a list of response resources example: data: - attributes: - inventoryType: Native + - attributes: + showEvery: 1 + images: + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 endDate: endDate + author: author + format: format + description: description + showDuration: 5 + advertiserId: advertiserId name: name adSetId: adSetId + rotationsNumber: 5 + landingPageUrl: landingPageUrl + startDate: startDate + status: status + id: id + type: type + - attributes: + showEvery: 1 + images: + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + endDate: endDate + author: author + format: format description: description - creativeId: creativeId + showDuration: 5 + advertiserId: advertiserId + name: name + adSetId: adSetId + rotationsNumber: 5 + landingPageUrl: landingPageUrl startDate: startDate + status: status id: id type: type warnings: @@ -11329,25 +11416,31 @@ components: title: title properties: data: - $ref: '#/components/schemas/AdResource' + items: + $ref: '#/components/schemas/CouponResource' + nullable: true + type: array + uniqueItems: false 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 type: object - CouponListResponse: - description: Data model for a list of response resources + CouponResponse: + description: Data model for response resource example: data: - - attributes: + attributes: showEvery: 1 images: - slideUrls: @@ -11374,31 +11467,77 @@ components: status: status id: id type: type - - attributes: - showEvery: 1 - images: - - slideUrls: - - slideUrls - - slideUrls - width: 0 - height: 6 - - slideUrls: - - slideUrls - - slideUrls - width: 0 - height: 6 - endDate: endDate - author: author - format: format - description: description - showDuration: 5 - advertiserId: advertiserId - name: name - adSetId: adSetId - rotationsNumber: 5 - landingPageUrl: landingPageUrl - startDate: startDate - status: status + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/CouponResource' + 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 + type: object + CouponSupportedSizesResponse: + description: Data model for response resource + example: + data: + attributes: + fullFrame: + - fullFrame + - fullFrame + logoZone: + - logoZone + - logoZone id: id type: type warnings: @@ -11445,52 +11584,192 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/CouponResource' - type: array - uniqueItems: false + $ref: '#/components/schemas/CouponSupportedSizesResource' 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 type: object - CouponResponse: - description: Data model for response resource + CreativeListResponse: + description: Data model for a list of response resources example: data: - attributes: - showEvery: 1 - images: - - slideUrls: - - slideUrls - - slideUrls - width: 0 - height: 6 - - slideUrls: - - slideUrls - - slideUrls - width: 0 - height: 6 - endDate: endDate + - attributes: + dynamicAttributes: + creativeBackgroundColor: creativeBackgroundColor + primaryFont: primaryFont + pricesColor: pricesColor + bodyTextColor: bodyTextColor + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + productImageDisplay: ShowFullImage + adaptiveAttributes: + descriptionFont: descriptionFont + imageDisplay: ShowFullImage + videos: + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + headlineFont: headlineFont + descriptionText: descriptionText + imageSets: + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + layouts: + - Editorial + - Editorial + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + landingPageUrl: https://openapi-generator.tech + colors: + backgroundColor: backgroundColor + text2Color: text2Color + ctaTextColor: ctaTextColor + text1Color: text1Color + ctaBackgroundColor: ctaBackgroundColor + logoAreaAndTitleColor: logoAreaAndTitleColor + headlineText: headlineText + imageAttributes: + urls: + - urls + - urls + landingPageUrl: https://openapi-generator.tech author: author + name: name format: format description: description - showDuration: 5 + datasetId: datasetId + status: status advertiserId: advertiserId + htmlTagAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 + id: id + type: type + - attributes: + dynamicAttributes: + creativeBackgroundColor: creativeBackgroundColor + primaryFont: primaryFont + pricesColor: pricesColor + bodyTextColor: bodyTextColor + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + productImageDisplay: ShowFullImage + adaptiveAttributes: + descriptionFont: descriptionFont + imageDisplay: ShowFullImage + videos: + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + headlineFont: headlineFont + descriptionText: descriptionText + imageSets: + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + layouts: + - Editorial + - Editorial + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + landingPageUrl: https://openapi-generator.tech + colors: + backgroundColor: backgroundColor + text2Color: text2Color + ctaTextColor: ctaTextColor + text1Color: text1Color + ctaBackgroundColor: ctaBackgroundColor + logoAreaAndTitleColor: logoAreaAndTitleColor + headlineText: headlineText + imageAttributes: + urls: + - urls + - urls + landingPageUrl: https://openapi-generator.tech + author: author name: name - adSetId: adSetId - rotationsNumber: 5 - landingPageUrl: landingPageUrl - startDate: startDate + format: format + description: description + datasetId: datasetId status: status + advertiserId: advertiserId + htmlTagAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 id: id type: type warnings: @@ -11537,31 +11816,112 @@ components: title: title properties: data: - $ref: '#/components/schemas/CouponResource' + items: + $ref: '#/components/schemas/CreativeResource' + nullable: true + type: array + uniqueItems: false 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 type: object - CouponSupportedSizesResponse: + CreativeResponse: description: Data model for response resource example: data: attributes: - fullFrame: - - fullFrame - - fullFrame - logoZone: - - logoZone - - logoZone + dynamicAttributes: + creativeBackgroundColor: creativeBackgroundColor + primaryFont: primaryFont + pricesColor: pricesColor + bodyTextColor: bodyTextColor + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + productImageDisplay: ShowFullImage + adaptiveAttributes: + descriptionFont: descriptionFont + imageDisplay: ShowFullImage + videos: + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + headlineFont: headlineFont + descriptionText: descriptionText + imageSets: + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + layouts: + - Editorial + - Editorial + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + landingPageUrl: https://openapi-generator.tech + colors: + backgroundColor: backgroundColor + text2Color: text2Color + ctaTextColor: ctaTextColor + text1Color: text1Color + ctaBackgroundColor: ctaBackgroundColor + logoAreaAndTitleColor: logoAreaAndTitleColor + headlineText: headlineText + imageAttributes: + urls: + - urls + - urls + landingPageUrl: https://openapi-generator.tech + author: author + name: name + format: format + description: description + datasetId: datasetId + status: status + advertiserId: advertiserId + htmlTagAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 id: id type: type warnings: @@ -11608,93 +11968,22 @@ components: title: title properties: data: - $ref: '#/components/schemas/CouponSupportedSizesResource' + $ref: '#/components/schemas/CreativeResource' 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 type: object - CreativeWriteRequest: - description: Data model for input resource - example: - data: - attributes: - htmlTagWriteAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 - name: name - format: Image - imageWriteAttributes: - base64Strings: - - base64Strings - - base64Strings - landingPageUrl: https://openapi-generator.tech - dynamicWriteAttributes: - creativeBackgroundColor: creativeBackgroundColor - primaryFont: primaryFont - logoBase64String: logoBase64String - pricesColor: pricesColor - bodyTextColor: bodyTextColor - callsToAction: - - callsToAction - - callsToAction - productImageDisplay: ShowFullImage - description: description - datasetId: datasetId - adaptiveWriteAttributes: - videoBase64Strings: - - videoBase64Strings - - videoBase64Strings - logoBase64String: logoBase64String - descriptionFont: descriptionFont - imageDisplay: ShowFullImage - headlineFont: headlineFont - descriptionText: descriptionText - imageSetsBase64: - - imageBase64Strings: - - imageBase64Strings - - imageBase64Strings - headlineText: headlineText - - imageBase64Strings: - - imageBase64Strings - - imageBase64Strings - headlineText: headlineText - layouts: - - Editorial - - Editorial - callsToAction: - - callsToAction - - callsToAction - landingPageUrl: https://openapi-generator.tech - colors: - backgroundColor: backgroundColor - text2Color: text2Color - ctaTextColor: ctaTextColor - text1Color: text1Color - ctaBackgroundColor: ctaBackgroundColor - logoAreaAndTitleColor: logoAreaAndTitleColor - headlineText: headlineText - id: id - type: type - properties: - data: - $ref: '#/components/schemas/CreativeWriteResource' - type: object AdWriteRequest: description: Data model for input resource example: @@ -11758,100 +12047,78 @@ components: data: $ref: '#/components/schemas/UpdateCouponResource' type: object - CreativeResource: - description: Data model for a Resource + CreativeWriteRequest: + description: Data model for input resource example: - attributes: - dynamicAttributes: - creativeBackgroundColor: creativeBackgroundColor - primaryFont: primaryFont - pricesColor: pricesColor - bodyTextColor: bodyTextColor - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - productImageDisplay: ShowFullImage - adaptiveAttributes: - descriptionFont: descriptionFont - imageDisplay: ShowFullImage - videos: - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - headlineFont: headlineFont - descriptionText: descriptionText - imageSets: - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - layouts: - - Editorial - - Editorial - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - landingPageUrl: https://openapi-generator.tech - colors: - backgroundColor: backgroundColor - text2Color: text2Color - ctaTextColor: ctaTextColor - text1Color: text1Color - ctaBackgroundColor: ctaBackgroundColor - logoAreaAndTitleColor: logoAreaAndTitleColor - headlineText: headlineText - imageAttributes: - urls: - - urls - - urls - landingPageUrl: https://openapi-generator.tech - author: author - name: name - format: format - description: description - datasetId: datasetId - status: status - advertiserId: advertiserId - htmlTagAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 - id: id - type: type + data: + attributes: + htmlTagWriteAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 + name: name + format: Image + imageWriteAttributes: + base64Strings: + - base64Strings + - base64Strings + landingPageUrl: https://openapi-generator.tech + dynamicWriteAttributes: + creativeBackgroundColor: creativeBackgroundColor + primaryFont: primaryFont + logoBase64String: logoBase64String + pricesColor: pricesColor + bodyTextColor: bodyTextColor + callsToAction: + - callsToAction + - callsToAction + productImageDisplay: ShowFullImage + description: description + datasetId: datasetId + adaptiveWriteAttributes: + videoBase64Strings: + - videoBase64Strings + - videoBase64Strings + logoBase64String: logoBase64String + descriptionFont: descriptionFont + imageDisplay: ShowFullImage + headlineFont: headlineFont + descriptionText: descriptionText + imageSetsBase64: + - imageBase64Strings: + - imageBase64Strings + - imageBase64Strings + headlineText: headlineText + - imageBase64Strings: + - imageBase64Strings + - imageBase64Strings + headlineText: headlineText + layouts: + - Editorial + - Editorial + callsToAction: + - callsToAction + - callsToAction + landingPageUrl: https://openapi-generator.tech + colors: + backgroundColor: backgroundColor + text2Color: text2Color + ctaTextColor: ctaTextColor + text1Color: text1Color + ctaBackgroundColor: ctaBackgroundColor + logoAreaAndTitleColor: logoAreaAndTitleColor + headlineText: headlineText + id: id + type: type properties: - attributes: - $ref: '#/components/schemas/Creative' - id: - type: string - type: - type: string + data: + $ref: '#/components/schemas/CreativeWriteResource' type: object AdResource: description: Data model for a Resource @@ -11870,8 +12137,10 @@ components: attributes: $ref: '#/components/schemas/Ad' id: + nullable: true type: string type: + nullable: true type: string type: object CouponResource: @@ -11908,8 +12177,10 @@ components: attributes: $ref: '#/components/schemas/Coupon' id: + nullable: true type: string type: + nullable: true type: string type: object CouponSupportedSizesResource: @@ -11928,64 +12199,63 @@ components: attributes: $ref: '#/components/schemas/CouponSupportedSizes' id: + nullable: true type: string type: + nullable: true type: string type: object - CreativeWriteResource: + CreativeResource: description: Data model for a Resource example: attributes: - htmlTagWriteAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 - name: name - format: Image - imageWriteAttributes: - base64Strings: - - base64Strings - - base64Strings - landingPageUrl: https://openapi-generator.tech - dynamicWriteAttributes: + dynamicAttributes: creativeBackgroundColor: creativeBackgroundColor primaryFont: primaryFont - logoBase64String: logoBase64String pricesColor: pricesColor bodyTextColor: bodyTextColor + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech callsToAction: - callsToAction - callsToAction productImageDisplay: ShowFullImage - description: description - datasetId: datasetId - adaptiveWriteAttributes: - videoBase64Strings: - - videoBase64Strings - - videoBase64Strings - logoBase64String: logoBase64String + adaptiveAttributes: descriptionFont: descriptionFont imageDisplay: ShowFullImage + videos: + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech headlineFont: headlineFont descriptionText: descriptionText - imageSetsBase64: - - imageBase64Strings: - - imageBase64Strings - - imageBase64Strings + imageSets: + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech headlineText: headlineText - - imageBase64Strings: - - imageBase64Strings - - imageBase64Strings + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech headlineText: headlineText layouts: - Editorial - Editorial + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech callsToAction: - callsToAction - callsToAction @@ -11998,14 +12268,38 @@ components: ctaBackgroundColor: ctaBackgroundColor logoAreaAndTitleColor: logoAreaAndTitleColor headlineText: headlineText + imageAttributes: + urls: + - urls + - urls + landingPageUrl: https://openapi-generator.tech + author: author + name: name + format: format + description: description + datasetId: datasetId + status: status + advertiserId: advertiserId + htmlTagAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 id: id type: type properties: attributes: - $ref: '#/components/schemas/CreativeWrite' + $ref: '#/components/schemas/Creative' id: + nullable: true type: string type: + nullable: true type: string type: object AdWriteResource: @@ -12025,8 +12319,10 @@ components: attributes: $ref: '#/components/schemas/AdWrite' id: + nullable: true type: string type: + nullable: true type: string type: object CreateCouponResource: @@ -12060,146 +12356,107 @@ components: attributes: $ref: '#/components/schemas/CreateCoupon' id: + nullable: true type: string - type: - type: string - type: object - UpdateCouponResource: - description: Data model for a Resource - example: - attributes: - endDate: endDate - startDate: startDate - id: id - type: type - properties: - attributes: - $ref: '#/components/schemas/UpdateCoupon' - id: - type: string - type: - type: string - type: object - Creative: - description: A creative is a project with the necessary information to display - a creative - example: - dynamicAttributes: - creativeBackgroundColor: creativeBackgroundColor - primaryFont: primaryFont - pricesColor: pricesColor - bodyTextColor: bodyTextColor - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - productImageDisplay: ShowFullImage - adaptiveAttributes: - descriptionFont: descriptionFont - imageDisplay: ShowFullImage - videos: - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - headlineFont: headlineFont - descriptionText: descriptionText - imageSets: - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - layouts: - - Editorial - - Editorial - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - landingPageUrl: https://openapi-generator.tech - colors: - backgroundColor: backgroundColor - text2Color: text2Color - ctaTextColor: ctaTextColor - text1Color: text1Color - ctaBackgroundColor: ctaBackgroundColor - logoAreaAndTitleColor: logoAreaAndTitleColor - headlineText: headlineText - imageAttributes: - urls: - - urls - - urls - landingPageUrl: https://openapi-generator.tech - author: author - name: name - format: format - description: description - datasetId: datasetId - status: status - advertiserId: advertiserId - htmlTagAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 - properties: - name: - description: The name of the creative - type: string - description: - description: The description of the creative - type: string - author: - description: The login of the person who created this creative ( + type: + nullable: true type: string - status: - description: The status of the creative + type: object + UpdateCouponResource: + description: Data model for a Resource + example: + attributes: + endDate: endDate + startDate: startDate + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/UpdateCoupon' + id: + nullable: true type: string - format: - description: The format of the creative + type: + nullable: true type: string - advertiserId: - description: Advertiser linked to the Creative + type: object + CreativeWriteResource: + description: Data model for a Resource + example: + attributes: + htmlTagWriteAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 + name: name + format: Image + imageWriteAttributes: + base64Strings: + - base64Strings + - base64Strings + landingPageUrl: https://openapi-generator.tech + dynamicWriteAttributes: + creativeBackgroundColor: creativeBackgroundColor + primaryFont: primaryFont + logoBase64String: logoBase64String + pricesColor: pricesColor + bodyTextColor: bodyTextColor + callsToAction: + - callsToAction + - callsToAction + productImageDisplay: ShowFullImage + description: description + datasetId: datasetId + adaptiveWriteAttributes: + videoBase64Strings: + - videoBase64Strings + - videoBase64Strings + logoBase64String: logoBase64String + descriptionFont: descriptionFont + imageDisplay: ShowFullImage + headlineFont: headlineFont + descriptionText: descriptionText + imageSetsBase64: + - imageBase64Strings: + - imageBase64Strings + - imageBase64Strings + headlineText: headlineText + - imageBase64Strings: + - imageBase64Strings + - imageBase64Strings + headlineText: headlineText + layouts: + - Editorial + - Editorial + callsToAction: + - callsToAction + - callsToAction + landingPageUrl: https://openapi-generator.tech + colors: + backgroundColor: backgroundColor + text2Color: text2Color + ctaTextColor: ctaTextColor + text1Color: text1Color + ctaBackgroundColor: ctaBackgroundColor + logoAreaAndTitleColor: logoAreaAndTitleColor + headlineText: headlineText + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/CreativeWrite' + id: + nullable: true type: string - datasetId: - description: Data set id linked to the Creative + type: + nullable: true type: string - imageAttributes: - $ref: '#/components/schemas/ImageAttributes' - htmlTagAttributes: - $ref: '#/components/schemas/HtmlTagAttributes' - dynamicAttributes: - $ref: '#/components/schemas/DynamicAttributes' - adaptiveAttributes: - $ref: '#/components/schemas/AdaptiveAttributes' - required: - - advertiserId - - author - - name - - status type: object Ad: description: An ad is the binding that connects a creative with an ad set @@ -12214,15 +12471,19 @@ components: properties: name: description: The name of the ad + nullable: true type: string description: description: The description of the ad + nullable: true type: string creativeId: description: The id of the Creative binded to this Ad + nullable: true type: string adSetId: description: The id of the Ad Set binded to this Ad + nullable: true type: string inventoryType: description: The inventory the Ad belongs to. Possible values are "Display" @@ -12232,15 +12493,18 @@ components: - Native - Display - Video + nullable: true type: string startDate: description: "The date when the ad will be launched\r\nString must be in\ \ ISO8601 format" + nullable: true type: string endDate: description: "The date when when we will stop to show this ad. If the end\ \ date is not specified (i.e. null) then the ad will go on forever\r\n\ String must be in ISO8601 format" + nullable: true type: string type: object Coupon: @@ -12274,55 +12538,69 @@ components: properties: name: description: The name of the Coupon + nullable: true type: string description: description: The description of the Coupon + nullable: true type: string author: description: The login of the person who created this Coupon + nullable: true type: string advertiserId: description: Advertiser linked to the Coupon + nullable: true type: string adSetId: description: The id of the Ad Set on which the Coupon is applied to + nullable: true type: string landingPageUrl: description: Web redirection of the landing page url + nullable: true type: string startDate: description: "The date when the Coupon will be launched\r\nString must be\ \ in ISO8601 format" + nullable: true type: string endDate: description: "The date when when we will stop to show this Coupon. If the\ \ end date is not specified (i.e. null) then the Coupon will go on forever\r\ \nString must be in ISO8601 format" + nullable: true type: string format: description: "Format of the Coupon, it can have two values: \"FullFrame\"\ \ or \"LogoZone\"" + nullable: true type: string status: description: The status of the Coupon + nullable: true type: string images: description: List of slides containing the image URLs items: $ref: '#/components/schemas/ImageSlide' + nullable: true type: array uniqueItems: false showEvery: description: Show the Coupon every N seconds (between 1 and 10) format: int32 + nullable: true type: integer showDuration: description: Show Coupon for a duration of N seconds (between 1 and 5) format: int32 + nullable: true type: integer rotationsNumber: description: Number of rotations for the Coupons (from 1 to 10 times) format: int32 + nullable: true type: integer type: object CouponSupportedSizes: @@ -12339,68 +12617,68 @@ components: description: Array of LogoZone sizes as string in width x height format items: type: string + nullable: true type: array uniqueItems: false fullFrame: description: Array of FullFrame sizes as string in width x height format items: type: string + nullable: true type: array uniqueItems: false type: object - CreativeWrite: - description: Entity to create or update a creative + Creative: + description: A creative is a project with the necessary information to display + a creative example: - htmlTagWriteAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 - name: name - format: Image - imageWriteAttributes: - base64Strings: - - base64Strings - - base64Strings - landingPageUrl: https://openapi-generator.tech - dynamicWriteAttributes: + dynamicAttributes: creativeBackgroundColor: creativeBackgroundColor primaryFont: primaryFont - logoBase64String: logoBase64String pricesColor: pricesColor bodyTextColor: bodyTextColor + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech callsToAction: - callsToAction - callsToAction productImageDisplay: ShowFullImage - description: description - datasetId: datasetId - adaptiveWriteAttributes: - videoBase64Strings: - - videoBase64Strings - - videoBase64Strings - logoBase64String: logoBase64String + adaptiveAttributes: descriptionFont: descriptionFont imageDisplay: ShowFullImage + videos: + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech headlineFont: headlineFont descriptionText: descriptionText - imageSetsBase64: - - imageBase64Strings: - - imageBase64Strings - - imageBase64Strings + imageSets: + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech headlineText: headlineText - - imageBase64Strings: - - imageBase64Strings - - imageBase64Strings + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech headlineText: headlineText layouts: - Editorial - Editorial + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech callsToAction: - callsToAction - callsToAction @@ -12413,37 +12691,66 @@ components: ctaBackgroundColor: ctaBackgroundColor logoAreaAndTitleColor: logoAreaAndTitleColor headlineText: headlineText + imageAttributes: + urls: + - urls + - urls + landingPageUrl: https://openapi-generator.tech + author: author + name: name + format: format + description: description + datasetId: datasetId + status: status + advertiserId: advertiserId + htmlTagAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 properties: name: description: The name of the creative type: string description: description: The description of the creative + nullable: true + type: string + author: + description: The login of the person who created this creative ( + type: string + status: + description: The status of the creative type: string format: - description: "The format of the creative\r\nYou can use \"Image\", \" HtmlTag\"\ - , \"Dynamic\" or \"Adaptive\"" - enum: - - Image - - HtmlTag - - Dynamic - - Adaptive + description: The format of the creative + nullable: true type: string - datasetId: - description: Dataset linked to the Creative + advertiserId: + description: Advertiser linked to the Creative type: string - imageWriteAttributes: - $ref: '#/components/schemas/ImageWriteAttributes' - htmlTagWriteAttributes: - $ref: '#/components/schemas/HtmlTagWriteAttributes' - dynamicWriteAttributes: - $ref: '#/components/schemas/DynamicWriteAttributes' - adaptiveWriteAttributes: - $ref: '#/components/schemas/AdaptiveWriteAttributes' + datasetId: + description: Data set id linked to the Creative + nullable: true + type: string + imageAttributes: + $ref: '#/components/schemas/ImageAttributes' + htmlTagAttributes: + $ref: '#/components/schemas/HtmlTagAttributes' + dynamicAttributes: + $ref: '#/components/schemas/DynamicAttributes' + adaptiveAttributes: + $ref: '#/components/schemas/AdaptiveAttributes' required: - - datasetId - - format + - advertiserId + - author - name + - status type: object AdWrite: description: Entity to create or update an ad @@ -12461,6 +12768,7 @@ components: type: string description: description: The description of the ad + nullable: true type: string creativeId: description: The id of the Creative bound to this Ad @@ -12476,6 +12784,7 @@ components: enum: - Display - Native + nullable: true type: string startDate: description: "The date when the ad will be launched\r\nString must be in\ @@ -12485,6 +12794,7 @@ components: description: "The date when when we will stop to show this ad. If the end\ \ date is not specified (i.e. null) then the ad will go on forever\r\n\ String must be in ISO8601 format" + nullable: true type: string required: - adSetId @@ -12522,6 +12832,7 @@ components: type: string description: description: The description of the Coupon + nullable: true type: string adSetId: description: The id of the Ad Set on which the Coupon is applied to @@ -12537,6 +12848,7 @@ components: description: "The date when when we will stop to show this Coupon. If the\ \ end date is not specified (i.e. null) then the Coupon will go on forever\r\ \nString must be in ISO8601 format" + nullable: true type: string format: description: "Format of the Coupon, it can have two values: \"FullFrame\"\ @@ -12594,10 +12906,137 @@ components: description: "The date when when we will stop to show this Coupon. If the\ \ end date is not specified (i.e. null) then the Coupon will go on forever\r\ \nString must be in ISO8601 format" + nullable: true type: string required: - startDate type: object + CreativeWrite: + description: Entity to create or update a creative + example: + htmlTagWriteAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 + name: name + format: Image + imageWriteAttributes: + base64Strings: + - base64Strings + - base64Strings + landingPageUrl: https://openapi-generator.tech + dynamicWriteAttributes: + creativeBackgroundColor: creativeBackgroundColor + primaryFont: primaryFont + logoBase64String: logoBase64String + pricesColor: pricesColor + bodyTextColor: bodyTextColor + callsToAction: + - callsToAction + - callsToAction + productImageDisplay: ShowFullImage + description: description + datasetId: datasetId + adaptiveWriteAttributes: + videoBase64Strings: + - videoBase64Strings + - videoBase64Strings + logoBase64String: logoBase64String + descriptionFont: descriptionFont + imageDisplay: ShowFullImage + headlineFont: headlineFont + descriptionText: descriptionText + imageSetsBase64: + - imageBase64Strings: + - imageBase64Strings + - imageBase64Strings + headlineText: headlineText + - imageBase64Strings: + - imageBase64Strings + - imageBase64Strings + headlineText: headlineText + layouts: + - Editorial + - Editorial + callsToAction: + - callsToAction + - callsToAction + landingPageUrl: https://openapi-generator.tech + colors: + backgroundColor: backgroundColor + text2Color: text2Color + ctaTextColor: ctaTextColor + text1Color: text1Color + ctaBackgroundColor: ctaBackgroundColor + logoAreaAndTitleColor: logoAreaAndTitleColor + headlineText: headlineText + properties: + name: + description: The name of the creative + type: string + description: + description: The description of the creative + nullable: true + type: string + format: + description: "The format of the creative\r\nYou can use \"Image\", \" HtmlTag\"\ + , \"Dynamic\" or \"Adaptive\"" + enum: + - Image + - HtmlTag + - Dynamic + - Adaptive + type: string + datasetId: + description: Dataset linked to the Creative + type: string + imageWriteAttributes: + $ref: '#/components/schemas/ImageWriteAttributes' + htmlTagWriteAttributes: + $ref: '#/components/schemas/HtmlTagWriteAttributes' + dynamicWriteAttributes: + $ref: '#/components/schemas/DynamicWriteAttributes' + adaptiveWriteAttributes: + $ref: '#/components/schemas/AdaptiveWriteAttributes' + required: + - datasetId + - format + - name + type: object + ImageSlide: + description: Slide containing the image URLs + example: + slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + properties: + width: + description: Width of the Coupon slide + format: int32 + nullable: true + type: integer + height: + description: Height of the Coupon slide + format: int32 + nullable: true + type: integer + slideUrls: + description: Array of images of the same size uploaded on demostatic.criteo.com + when deploying and then static.criteo.net + items: + type: string + nullable: true + type: array + uniqueItems: false + type: object ImageAttributes: description: The attributes specific to Image creatives example: @@ -12611,11 +13050,13 @@ components: and then static.criteo.net items: type: string + nullable: true type: array uniqueItems: false landingPageUrl: description: Web redirection of the landing page url format: uri + nullable: true type: string type: object HtmlTagAttributes: @@ -12635,6 +13076,7 @@ components: description: An array containing the html tags items: $ref: '#/components/schemas/Tag' + nullable: true type: array uniqueItems: false type: object @@ -12660,22 +13102,27 @@ components: and then static.criteo.net items: $ref: '#/components/schemas/ImageShape' + nullable: true type: array uniqueItems: false creativeBackgroundColor: description: "Color of the creative's background\r\nValid hexadecimal color\ \ (e.g. \"AB00FF\")" + nullable: true type: string bodyTextColor: description: "Color of the creative's body text\r\nValid hexadecimal color\ \ (e.g. \"AB00FF\")" + nullable: true type: string pricesColor: description: "Color of the creative's prices\r\nValid hexadecimal color\ \ (e.g. \"AB00FF\")" + nullable: true type: string primaryFont: description: "Font of the primary font\r\nValid supported font like \"Arial\"" + nullable: true type: string callsToAction: description: "A Call-to-Action (CTA) is an action-driven instruction to\ @@ -12683,6 +13130,7 @@ components: \ “Buy now” or “Go!”." items: type: string + nullable: true type: array uniqueItems: false productImageDisplay: @@ -12694,6 +13142,7 @@ components: enum: - ShowFullImage - ZoomOnImage + nullable: true type: string type: object AdaptiveAttributes: @@ -12790,6 +13239,7 @@ components: \ and a headline text." items: $ref: '#/components/schemas/ImageSet' + nullable: true type: array uniqueItems: false imageDisplay: @@ -12800,11 +13250,13 @@ components: enum: - ShowFullImage - ZoomOnImage + nullable: true type: string videos: description: Multiple videos potentially in different shapes. items: $ref: '#/components/schemas/VideoDetail' + nullable: true type: array uniqueItems: false landingPageUrl: @@ -12822,28 +13274,31 @@ components: - layouts - logos type: object - ImageSlide: - description: Slide containing the image URLs + CreateImageSlide: + description: Slide containing the images of the same size as a base-64 encoded + string example: - slideUrls: - - slideUrls - - slideUrls + slideBase64Strings: + - slideBase64Strings + - slideBase64Strings width: 0 height: 6 properties: width: description: Width of the Coupon slide format: int32 + nullable: true type: integer height: description: Height of the Coupon slide format: int32 + nullable: true type: integer - slideUrls: - description: Array of images of the same size uploaded on demostatic.criteo.com - when deploying and then static.criteo.net + slideBase64Strings: + description: Array of images of the same size as a base-64 encoded string items: type: string + nullable: true type: array uniqueItems: false type: object @@ -12911,6 +13366,7 @@ components: creativeBackgroundColor: description: "Color of the creative's background\r\nValid hexadecimal RGB\ \ color (e.g. \"AB00FF\")" + nullable: true type: string bodyTextColor: description: "Color of the creative's body text\r\nValid hexadecimal RGB\ @@ -12922,6 +13378,7 @@ components: type: string primaryFont: description: "Font of the primary font\r\nValid supported font like \"Arial\"" + nullable: true type: string callsToAction: description: "A Call-to-Action (CTA) is an action-driven instruction to\ @@ -13030,6 +13487,7 @@ components: \ as a base-64 encoded string and a headline text." items: $ref: '#/components/schemas/ImageSetBase64' + nullable: true type: array uniqueItems: false imageDisplay: @@ -13040,12 +13498,14 @@ components: enum: - ShowFullImage - ZoomOnImage + nullable: true type: string videoBase64Strings: description: "Multiple videos potentially in different shapes, each video\ \ is a base-64 encoded string." items: type: string + nullable: true type: array uniqueItems: false landingPageUrl: @@ -13063,31 +13523,6 @@ components: - layouts - logoBase64String type: object - CreateImageSlide: - description: Slide containing the images of the same size as a base-64 encoded - string - example: - slideBase64Strings: - - slideBase64Strings - - slideBase64Strings - width: 0 - height: 6 - properties: - width: - description: Width of the Coupon slide - format: int32 - type: integer - height: - description: Height of the Coupon slide - format: int32 - type: integer - slideBase64Strings: - description: Array of images of the same size as a base-64 encoded string - items: - type: string - type: array - uniqueItems: false - type: object Tag: description: Entity specifying the html of the tag and its size example: @@ -13098,6 +13533,7 @@ components: properties: htmlTag: description: Html tag + nullable: true type: string size: $ref: '#/components/schemas/Size' @@ -13185,6 +13621,7 @@ components: uniqueItems: false headlineText: description: The headline of the image set + nullable: true type: string required: - images @@ -13238,6 +13675,7 @@ components: uniqueItems: false headlineText: description: The headline of the image set + nullable: true type: string required: - imageBase64Strings @@ -13250,47 +13688,110 @@ components: properties: width: format: int32 + nullable: true type: integer height: format: int32 + nullable: true type: integer 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 properties: 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: @@ -13342,23 +13843,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: @@ -13410,6 +13915,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,\ @@ -13451,65 +13957,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 @@ -13533,24 +13980,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 @@ -13582,45 +14029,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: @@ -13629,15 +14037,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. @@ -13667,6 +14079,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\ @@ -13676,6 +14089,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,\ @@ -13696,6 +14110,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 @@ -13760,6 +14216,7 @@ components: description: The response�s primary data items: $ref: '#/components/schemas/EntityOfPortfolioMessage' + nullable: true type: array uniqueItems: false errors: @@ -13767,6 +14224,7 @@ components: \ it is empty" items: $ref: '#/components/schemas/CriteoApiError' + nullable: true type: array uniqueItems: false warnings: @@ -13777,6 +14235,7 @@ components: \ problems may occur in the future." items: $ref: '#/components/schemas/CriteoApiWarning' + nullable: true type: array uniqueItems: false type: object @@ -13803,14 +14262,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: @@ -13827,6 +14289,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 @@ -13839,6 +14302,7 @@ components: - quota - validation example: access_control + nullable: true type: string code: description: A machine-readable error code string in kabab-case. Unique @@ -13853,23 +14317,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: @@ -13884,6 +14353,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 @@ -13896,6 +14366,7 @@ components: - quota - validation example: access_control + nullable: true type: string code: description: A machine-readable error code string in kabab-case. Unique @@ -13910,17 +14381,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: @@ -13929,6 +14404,7 @@ components: advertiserName: advertiserName properties: advertiserName: + nullable: true type: string type: object Audience_attributes: @@ -13945,6 +14421,7 @@ components: advertiserId: description: The advertiser id that owns this Audience format: int32 + nullable: true type: string name: description: The name of the Audience @@ -13962,13 +14439,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 @@ -13991,6 +14471,7 @@ components: properties: contactListId: description: the affected user list id + nullable: true type: integer operation: description: The action recorded @@ -13998,20 +14479,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 @@ -14024,12 +14510,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 @@ -14058,6 +14546,7 @@ components: - identityLink - gum - customerid + nullable: true type: string identifiers: description: "The users tos add or remove, each in the schema specified" @@ -14067,6 +14556,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_2023-07/build.gradle b/sdks/marketingsolutions_2023-07/build.gradle index 557515fa..447fd1ca 100644 --- a/sdks/marketingsolutions_2023-07/build.gradle +++ b/sdks/marketingsolutions_2023-07/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2023.07.0.230728' +version = '2023.07.0.230831' repositories { jcenter() @@ -75,7 +75,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '2023.07.0.230728' + version '2023.07.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/marketingsolutions_2023-07/pom.xml b/sdks/marketingsolutions_2023-07/pom.xml index a0e259b3..9c3c97a8 100644 --- a/sdks/marketingsolutions_2023-07/pom.xml +++ b/sdks/marketingsolutions_2023-07/pom.xml @@ -5,7 +5,7 @@ criteo-api-marketingsolutions-sdk jar criteo-api-marketingsolutions-sdk - 2023.07.0.230728 + 2023.07.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API marketingsolutions for 2023_07 version diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClient.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClient.java index 255b92ce..79491129 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClient.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2023.07.0.230728/java"); + setUserAgent("OpenAPI-Generator/2023.07.0.230831/java"); authentications = new HashMap(); } diff --git a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Ad.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Ad.java index fd6bc9ef..76e7a98d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Ad.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Ad.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; @@ -96,7 +97,7 @@ public static InventoryTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -346,11 +347,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, ad.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, creativeId, adSetId, inventoryType, startDate, endDate, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdListResponse.java index ba0de9b7..e676ed81 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdListResponse.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 AdListResponse data(List data) { public AdListResponse addDataItem(AdResource 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, adListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResource.java index ef3ec611..65544dd7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResource.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, adResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResponse.java index 2ab48f9f..d6b55507 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdResponse.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, adResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1.java index 2494dd41..de55a1a2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1.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, adSetAudienceLinkEntityV1.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(audienceId, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Resource.java index a7678230..f23e480e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Resource.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, adSetAudienceLinkEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Response.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Response.java index 2601fdd9..7dac002c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Response.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetAudienceLinkEntityV1Response.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, adSetAudienceLinkEntityV1Response.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBid.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBid.java index 74a925e5..9ea45d05 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBid.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidListResponse.java index fa0902d1..cd87caaf 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidResource.java index 9dec88ca..f7ce9707 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDeliveryLimitations.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDeliveryLimitations.java index 35cef732..82e8350d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDeliveryLimitations.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplier.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplier.java index 429bf0e0..001fd532 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierListResponse.java index 2fb2c1be..b575cfcb 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierResource.java index 8b07500d..7c1639dc 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetFrequencyCapping.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetFrequencyCapping.java index c5a39294..d2af1e3f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetFrequencyCapping.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetSearchFilter.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetSearchFilter.java index a44a2177..35b528d4 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetSearchFilter.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargetingRule.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargetingRule.java index 7fc108bc..cd1d2cd9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdSetTargetingRule.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWrite.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWrite.java index ba094f99..959c7ecf 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWrite.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWrite.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; @@ -94,7 +95,7 @@ public static InventoryTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -344,11 +345,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, adWrite.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, creativeId, adSetId, inventoryType, startDate, endDate, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteResource.java index 846b356f..cf5fedbb 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdWriteResource.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, adWriteResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveAttributes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveAttributes.java index 8d47ea93..7237086c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveAttributes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveAttributes.java @@ -28,6 +28,7 @@ import java.net.URI; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -170,7 +171,7 @@ public static ImageDisplayEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -401,7 +402,7 @@ public AdaptiveAttributes imageSets(List imageSets) { public AdaptiveAttributes addImageSetsItem(ImageSet imageSetsItem) { if (this.imageSets == null) { - this.imageSets = new ArrayList<>(); + this.imageSets = null; } this.imageSets.add(imageSetsItem); return this; @@ -453,7 +454,7 @@ public AdaptiveAttributes videos(List videos) { public AdaptiveAttributes addVideosItem(VideoDetail videosItem) { if (this.videos == null) { - this.videos = new ArrayList<>(); + this.videos = null; } this.videos.add(videosItem); return this; @@ -566,11 +567,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, adaptiveAttributes.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(layouts, logos, headlineText, headlineFont, descriptionText, descriptionFont, callsToAction, colors, imageSets, imageDisplay, videos, landingPageUrl, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveWriteAttributes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveWriteAttributes.java index 11fa4716..a234b932 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveWriteAttributes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AdaptiveWriteAttributes.java @@ -26,6 +26,7 @@ import java.net.URI; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -168,7 +169,7 @@ public static ImageDisplayEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -394,7 +395,7 @@ public AdaptiveWriteAttributes imageSetsBase64(List imageSetsBas public AdaptiveWriteAttributes addImageSetsBase64Item(ImageSetBase64 imageSetsBase64Item) { if (this.imageSetsBase64 == null) { - this.imageSetsBase64 = new ArrayList<>(); + this.imageSetsBase64 = null; } this.imageSetsBase64.add(imageSetsBase64Item); return this; @@ -446,7 +447,7 @@ public AdaptiveWriteAttributes videoBase64Strings(List videoBase64String public AdaptiveWriteAttributes addVideoBase64StringsItem(String videoBase64StringsItem) { if (this.videoBase64Strings == null) { - this.videoBase64Strings = new ArrayList<>(); + this.videoBase64Strings = null; } this.videoBase64Strings.add(videoBase64StringsItem); return this; @@ -559,11 +560,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, adaptiveWriteAttributes.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(layouts, logoBase64String, headlineText, headlineFont, descriptionText, descriptionFont, callsToAction, colors, imageSetsBase64, imageDisplay, videoBase64Strings, landingPageUrl, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AlgebraNodeV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AlgebraNodeV1.java index 4d23d1c5..dc7acbc7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AlgebraNodeV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AlgebraNodeV1.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; @@ -77,7 +78,7 @@ public AlgebraNodeV1 and(List and) { public AlgebraNodeV1 addAndItem(AlgebraNodeV1 andItem) { if (this.and == null) { - this.and = new ArrayList<>(); + this.and = null; } this.and.add(andItem); return this; @@ -107,7 +108,7 @@ public AlgebraNodeV1 or(List or) { public AlgebraNodeV1 addOrItem(AlgebraNodeV1 orItem) { if (this.or == null) { - this.or = new ArrayList<>(); + this.or = null; } this.or.add(orItem); return this; @@ -234,11 +235,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, algebraNodeV1.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(and, or, not, audienceSegmentId, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModel.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModel.java index d653c5cb..20a8e7fa 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModel.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResource.java index 861fd278..ac77eaee 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResponse.java index 0e8001b0..654db68f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ApplicationSummaryModelResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceAttributes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceAttributes.java index 2fb2fb0d..eb56738e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceAttributes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkCreateInputV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkCreateInputV1.java index daf00d91..51045f9e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkCreateInputV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkCreateInputV1.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 AudienceBulkCreateInputV1 data(List data) public AudienceBulkCreateInputV1 addDataItem(AudienceCreateEntityV1Resource 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, audienceBulkCreateInputV1.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkDeleteInputV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkDeleteInputV1.java index dcb6dae9..945d4597 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkDeleteInputV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkDeleteInputV1.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 AudienceBulkDeleteInputV1 data(List data) public AudienceBulkDeleteInputV1 addDataItem(AudienceDeleteEntityV1Resource 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, audienceBulkDeleteInputV1.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkUpdateInputV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkUpdateInputV1.java index 3a11aede..9086c3f6 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkUpdateInputV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceBulkUpdateInputV1.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 AudienceBulkUpdateInputV1 data(List data) public AudienceBulkUpdateInputV1 addDataItem(AudienceUpdateEntityV1Resource 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, audienceBulkUpdateInputV1.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizeEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizeEntityV1Resource.java index d7e6a844..9ea80c2d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizeEntityV1Resource.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, audienceComputeSizeEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizesInputV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizesInputV1.java index b9ccd94c..fd0d05cf 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizesInputV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceComputeSizesInputV1.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 AudienceComputeSizesInputV1 data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceComputeSizesInputV1.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1.java index c667ca52..d8662f82 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1.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; @@ -217,11 +218,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceCreateEntityV1.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, advertiserId, algebra, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1Resource.java index d692fe2e..c9e693ab 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceCreateEntityV1Resource.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, audienceCreateEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceDeleteEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceDeleteEntityV1Resource.java index 47e5487f..b4d3b40d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceDeleteEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceDeleteEntityV1Resource.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, audienceDeleteEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1.java index 23aaa1b0..145b239d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1.java @@ -25,6 +25,7 @@ import java.time.OffsetDateTime; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -201,7 +202,7 @@ public AudienceEntityV1 adSetIds(Set adSetIds) { public AudienceEntityV1 addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new LinkedHashSet<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -309,11 +310,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceEntityV1.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, createdAt, updatedAt, advertiserId, adSetIds, algebra, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java index 3c6cbe1e..d89aea8c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.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; @@ -112,7 +113,7 @@ public AudienceEntityV1AudienceSearchMetadataV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -221,11 +222,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceEntityV1AudienceSearchMetadataV1ListResponse.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(meta, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1ListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1ListResponse.java index 01d25c6e..4911634c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1ListResponse.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 AudienceEntityV1ListResponse data(List data) { public AudienceEntityV1ListResponse addDataItem(AudienceEntityV1Resource 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, audienceEntityV1ListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1Resource.java index c65d4897..1af54982 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEntityV1Resource.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, audienceEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceError.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceError.java index fd70b552..49e7e60e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceError.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1Resource.java index 836f7c77..d728d9c8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceEstimateSizeEntityV1Resource.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, audienceEstimateSizeEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1ListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1ListResponse.java index d6d022c4..fd567289 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1ListResponse.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 AudienceIdEntityV1ListResponse data(List data public AudienceIdEntityV1ListResponse addDataItem(AudienceIdEntityV1Resource 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, audienceIdEntityV1ListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1Resource.java index 23d2e3dd..57704b31 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceIdEntityV1Resource.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, audienceIdEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceNameDescription.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceNameDescription.java index fe54fa9f..db686442 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceNameDescription.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1.java index 146cec79..c78f6a49 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1.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; @@ -77,7 +78,7 @@ public AudienceSearchEntityV1 audienceIds(List audienceIds) { public AudienceSearchEntityV1 addAudienceIdsItem(String audienceIdsItem) { if (this.audienceIds == null) { - this.audienceIds = new ArrayList<>(); + this.audienceIds = null; } this.audienceIds.add(audienceIdsItem); return this; @@ -107,7 +108,7 @@ public AudienceSearchEntityV1 advertiserIds(List advertiserIds) { public AudienceSearchEntityV1 addAdvertiserIdsItem(String advertiserIdsItem) { if (this.advertiserIds == null) { - this.advertiserIds = new ArrayList<>(); + this.advertiserIds = null; } this.advertiserIds.add(advertiserIdsItem); return this; @@ -137,7 +138,7 @@ public AudienceSearchEntityV1 audienceSegmentIds(List audienceSegmentIds public AudienceSearchEntityV1 addAudienceSegmentIdsItem(String audienceSegmentIdsItem) { if (this.audienceSegmentIds == null) { - this.audienceSegmentIds = new ArrayList<>(); + this.audienceSegmentIds = null; } this.audienceSegmentIds.add(audienceSegmentIdsItem); return this; @@ -167,7 +168,7 @@ public AudienceSearchEntityV1 adSetIds(List adSetIds) { public AudienceSearchEntityV1 addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -250,11 +251,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSearchEntityV1.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(audienceIds, advertiserIds, audienceSegmentIds, adSetIds, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1Resource.java index 77177354..8a951863 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchEntityV1Resource.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, audienceSearchEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchMetadataV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchMetadataV1.java index ad434168..b49b2ceb 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchMetadataV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSearchMetadataV1.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, audienceSearchMetadataV1.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(totalItems, limit, offset, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkCreateInputV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkCreateInputV1.java index 7e538e84..e6f04315 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkCreateInputV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkCreateInputV1.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 AudienceSegmentBulkCreateInputV1 data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentBulkCreateInputV1.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkDeleteInputV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkDeleteInputV1.java index 129da3fc..34b51c25 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkDeleteInputV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkDeleteInputV1.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 AudienceSegmentBulkDeleteInputV1 data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentBulkDeleteInputV1.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkUpdateInputV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkUpdateInputV1.java index bda9cdd8..57ce0f7f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkUpdateInputV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentBulkUpdateInputV1.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 AudienceSegmentBulkUpdateInputV1 data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentBulkUpdateInputV1.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizeEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizeEntityV1Resource.java index 10a74c45..5a623bba 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizeEntityV1Resource.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, audienceSegmentComputeSizeEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizesInputV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizesInputV1.java index 8799b995..940c581d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizesInputV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentComputeSizesInputV1.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 AudienceSegmentComputeSizesInputV1 data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentComputeSizesInputV1.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1.java index 56dc27ef..e9d2c699 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1.java @@ -26,6 +26,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; @@ -356,11 +357,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentCreateEntityV1.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, advertiserId, inMarket, prospecting, contactList, location, retargeting, lookalike, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1Resource.java index 623cc2c1..a4f4f91a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentCreateEntityV1Resource.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, audienceSegmentCreateEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentDeleteEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentDeleteEntityV1Resource.java index 20597769..81d41cd1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentDeleteEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentDeleteEntityV1Resource.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, audienceSegmentDeleteEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1.java index 06941154..689ff667 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1.java @@ -29,6 +29,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; @@ -106,7 +107,7 @@ public static TypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -526,11 +527,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentEntityV1.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, type, createdAt, updatedAt, advertiserId, inMarket, prospecting, contactList, location, behavioral, retargeting, lookalike, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java index aeb54c61..a0df74a9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.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; @@ -112,7 +113,7 @@ public AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse data(L public AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse addDataItem(AudienceSegmentEntityV1Resource dataItem) { if (this.data == null) { - this.data = new ArrayList<>(); + this.data = null; } this.data.add(dataItem); return this; @@ -221,11 +222,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.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(meta, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1ListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1ListResponse.java index 458043f3..782bb435 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1ListResponse.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 AudienceSegmentEntityV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentEntityV1ListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1Resource.java index f94be457..a2566587 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentEntityV1Resource.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, audienceSegmentEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1ListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1ListResponse.java index fa90b4db..6afd9772 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1ListResponse.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 AudienceSegmentIdEntityV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentIdEntityV1ListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1Resource.java index ad92f0e2..d9b957b2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentIdEntityV1Resource.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, audienceSegmentIdEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1.java index f0731749..efa078f1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1.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; @@ -132,7 +133,7 @@ public AudienceSegmentSearchEntityV1 audienceSegmentIds(List audienceSeg public AudienceSegmentSearchEntityV1 addAudienceSegmentIdsItem(String audienceSegmentIdsItem) { if (this.audienceSegmentIds == null) { - this.audienceSegmentIds = new ArrayList<>(); + this.audienceSegmentIds = null; } this.audienceSegmentIds.add(audienceSegmentIdsItem); return this; @@ -162,7 +163,7 @@ public AudienceSegmentSearchEntityV1 advertiserIds(List advertiserIds) { public AudienceSegmentSearchEntityV1 addAdvertiserIdsItem(String advertiserIdsItem) { if (this.advertiserIds == null) { - this.advertiserIds = new ArrayList<>(); + this.advertiserIds = null; } this.advertiserIds.add(advertiserIdsItem); return this; @@ -192,7 +193,7 @@ public AudienceSegmentSearchEntityV1 audienceSegmentTypes(List(); + this.audienceSegmentTypes = null; } this.audienceSegmentTypes.add(audienceSegmentTypesItem); return this; @@ -274,11 +275,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentSearchEntityV1.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(audienceSegmentIds, advertiserIds, audienceSegmentTypes, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1Resource.java index 2fbd95d6..c79cf3c3 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchEntityV1Resource.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, audienceSegmentSearchEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchMetadataV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchMetadataV1.java index da21f210..d45ae464 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchMetadataV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSearchMetadataV1.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, audienceSegmentSearchMetadataV1.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(totalItems, limit, offset, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1.java index 48a6d2a8..e8882a45 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1.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, audienceSegmentSizeEntityV1.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(size, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1ListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1ListResponse.java index e0859754..5c4cbdab 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1ListResponse.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 AudienceSegmentSizeEntityV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentSizeEntityV1ListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1Resource.java index 7d325b04..e62e87ea 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEntityV1Resource.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, audienceSegmentSizeEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1Resource.java index 690477bd..85a597db 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationEntityV1Resource.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, audienceSegmentSizeEstimationEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1.java index 1fd245ad..06c451aa 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1.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, audienceSegmentSizeEstimationV1.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(size, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Resource.java index 633caf1b..5a1a2c59 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Resource.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, audienceSegmentSizeEstimationV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Response.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Response.java index df2a4a8a..60d1d980 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Response.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentSizeEstimationV1Response.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, audienceSegmentSizeEstimationV1Response.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1.java index add6e08c..f816a372 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1.java @@ -27,6 +27,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; @@ -303,11 +304,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentUpdateEntityV1.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, inMarket, location, retargeting, lookalike, prospecting, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1Resource.java index 54bdd742..bd74667e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSegmentUpdateEntityV1Resource.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, audienceSegmentUpdateEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1.java index dd206889..78d90f30 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1.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, audienceSizeEntityV1.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(size, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1ListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1ListResponse.java index 6871c3e2..6e3e6f0a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1ListResponse.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 AudienceSizeEntityV1ListResponse data(List public AudienceSizeEntityV1ListResponse addDataItem(AudienceSizeEntityV1Resource 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, audienceSizeEntityV1ListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1Resource.java index f526d874..d348e89b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEntityV1Resource.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, audienceSizeEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1.java index ab2a1475..d770fc76 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1.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, audienceSizeEstimationV1.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(size, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Resource.java index 620050cb..b04ae019 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Resource.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, audienceSizeEstimationV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Response.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Response.java index 4b159c3d..35993ac2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Response.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceSizeEstimationV1Response.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, audienceSizeEstimationV1Response.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1.java index e29e3223..e2501d64 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1.java @@ -23,6 +23,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; @@ -191,11 +192,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceUpdateEntityV1.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, algebra, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1Resource.java index 1ebcc5ec..9a3b3206 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceUpdateEntityV1Resource.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, audienceUpdateEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceWarning.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceWarning.java index d523eba3..6abfac2b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/AudienceWarning.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BehavioralV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BehavioralV1.java index f612ad21..828544fb 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BehavioralV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/BehavioralV1.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; @@ -270,11 +271,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, behavioralV1.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(country, category, startDate, endDate, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Campaign.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Campaign.java index ec381f6a..094fedc1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Campaign.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignListResponse.java index e2240304..a8da702f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignReadResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignReadResource.java index 426d7904..c0bdb1c9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignReadResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignResponse.java index 271444e7..858e1d01 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchFilters.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchFilters.java index f8494629..349aa17c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSearchFilters.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimit.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimit.java index 8c46dd07..95ca1b81 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimit.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimitV23Q1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimitV23Q1.java index 913d24be..18b265fb 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimitV23Q1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignSpendLimitV23Q1.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, campaignSpendLimitV23Q1.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1.java index ba83241f..3ecd0fd6 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1.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; @@ -93,7 +94,7 @@ public static GoalEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -266,11 +267,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, campaignV23Q1.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, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Resource.java index 633c1938..e25592e1 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Resource.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, campaignV23Q1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Response.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Response.java index fd864a1a..51439283 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Response.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CampaignV23Q1Response.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, campaignV23Q1Response.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CommonProblem.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CommonProblem.java index b265260a..a6065d01 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CommonProblem.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1.java index a51f8189..1ddf73e4 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1.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, contactListStatisticsEntityV1.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(numberOfIdentifiers, numberOfMatches, matchRate, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Resource.java index 90372b78..678fd221 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Resource.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, contactListStatisticsEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Response.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Response.java index ae7c063e..7f80cad0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Response.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListStatisticsEntityV1Response.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, contactListStatisticsEntityV1Response.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListV1.java index ca0c7798..600f7fc0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactListV1.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, contactListV1.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(isReadOnly, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentAttributes.java index 7d93d24e..6541a037 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperationAttributes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperationAttributes.java index 7b115092..a9c79313 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ContactlistOperationAttributes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Coupon.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Coupon.java index 8be457f2..f9e59b0a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Coupon.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Coupon.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; @@ -338,7 +339,7 @@ public Coupon images(List images) { public Coupon addImagesItem(ImageSlide imagesItem) { if (this.images == null) { - this.images = new ArrayList<>(); + this.images = null; } this.images.add(imagesItem); return this; @@ -497,11 +498,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, coupon.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, author, advertiserId, adSetId, landingPageUrl, startDate, endDate, format, status, images, showEvery, showDuration, rotationsNumber, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponListResponse.java index dbf5bf41..cdea10c0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponListResponse.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 CouponListResponse data(List data) { public CouponListResponse addDataItem(CouponResource 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, couponListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResource.java index 0204fc09..be58b58a 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResource.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, couponResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResponse.java index bbfbd093..07f3c4d0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponResponse.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, couponResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizes.java index 5eb38b2d..d57f225d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizes.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 CouponSupportedSizes logoZone(List logoZone) { public CouponSupportedSizes addLogoZoneItem(String logoZoneItem) { if (this.logoZone == null) { - this.logoZone = new ArrayList<>(); + this.logoZone = null; } this.logoZone.add(logoZoneItem); return this; @@ -99,7 +100,7 @@ public CouponSupportedSizes fullFrame(List fullFrame) { public CouponSupportedSizes addFullFrameItem(String fullFrameItem) { if (this.fullFrame == null) { - this.fullFrame = new ArrayList<>(); + this.fullFrame = null; } this.fullFrame.add(fullFrameItem); return this; @@ -180,11 +181,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, couponSupportedSizes.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(logoZone, fullFrame, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResource.java index d4231ade..c2b5a2ca 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResource.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, couponSupportedSizesResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResponse.java index 34eabda6..d7e9cfcd 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CouponSupportedSizesResponse.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, couponSupportedSizesResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBidding.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBidding.java index a1d842bf..4047acc5 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBidding.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBidding.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; @@ -221,11 +222,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createAdSetBidding.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, costController, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBudget.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBudget.java index 9fbed443..8f6fd550 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBudget.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetBudget.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; @@ -133,7 +134,7 @@ public static BudgetRenewalEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -184,7 +185,7 @@ public static BudgetDeliverySmoothingEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -247,7 +248,7 @@ public static BudgetDeliveryWeekEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -447,11 +448,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createAdSetBudget.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetResource.java index 4a408864..25637dbf 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetResource.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, createAdSetResource.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, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetSchedule.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetSchedule.java index 59690f1c..08af53ea 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetSchedule.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateAdSetSchedule.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; @@ -163,11 +164,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createAdSetSchedule.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(startDate, endDate, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignResource.java index f338fa2c..f5eafd56 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignResource.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, createCampaignResource.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, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignSpendLimit.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignSpendLimit.java index 34d43855..2ddb977d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignSpendLimit.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCampaignSpendLimit.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; @@ -133,7 +134,7 @@ public static SpendLimitRenewalEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -287,11 +288,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createCampaignSpendLimit.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCoupon.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCoupon.java index b73c3a17..9cbdc6ed 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCoupon.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCoupon.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; @@ -466,11 +467,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createCoupon.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, adSetId, landingPageUrl, startDate, endDate, format, images, showEvery, showDuration, rotationsNumber, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponResource.java index 789b736f..8baf6fd8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateCouponResource.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, createCouponResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateImageSlide.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateImageSlide.java index 3cd7cd93..f6ea496b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateImageSlide.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreateImageSlide.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; @@ -117,7 +118,7 @@ public CreateImageSlide slideBase64Strings(List slideBase64Strings) { public CreateImageSlide addSlideBase64StringsItem(String slideBase64StringsItem) { if (this.slideBase64Strings == null) { - this.slideBase64Strings = new ArrayList<>(); + this.slideBase64Strings = null; } this.slideBase64Strings.add(slideBase64StringsItem); return this; @@ -199,11 +200,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createImageSlide.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(width, height, slideBase64Strings, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Creative.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Creative.java index bae382f7..42ea9afe 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Creative.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Creative.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; @@ -409,11 +410,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, creative.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, author, status, format, advertiserId, datasetId, imageAttributes, htmlTagAttributes, dynamicAttributes, adaptiveAttributes, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeListResponse.java index 24781c12..bbeb4e90 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeListResponse.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 CreativeListResponse data(List data) { public CreativeListResponse addDataItem(CreativeResource 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, creativeListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResource.java index 5a7c3899..23a5bf9e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResource.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, creativeResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResponse.java index be40ce53..945d9845 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeResponse.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, creativeResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWrite.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWrite.java index f605a6bc..c8ef7d57 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWrite.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWrite.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; @@ -379,11 +380,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, creativeWrite.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, format, datasetId, imageWriteAttributes, htmlTagWriteAttributes, dynamicWriteAttributes, adaptiveWriteAttributes, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteResource.java index 550f5061..096ccf09 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CreativeWriteResource.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, creativeWriteResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiError.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiError.java index fcc8b048..4092dd31 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiError.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiWarning.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiWarning.java index 8d4b088d..e1cf443b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/CriteoApiWarning.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicAttributes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicAttributes.java index b9172152..c89b1c05 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicAttributes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicAttributes.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; @@ -105,7 +106,7 @@ public static ProductImageDisplayEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -137,7 +138,7 @@ public DynamicAttributes logos(List logos) { public DynamicAttributes addLogosItem(ImageShape logosItem) { if (this.logos == null) { - this.logos = new ArrayList<>(); + this.logos = null; } this.logos.add(logosItem); return this; @@ -255,7 +256,7 @@ public DynamicAttributes callsToAction(List callsToAction) { public DynamicAttributes addCallsToActionItem(String callsToActionItem) { if (this.callsToAction == null) { - this.callsToAction = new ArrayList<>(); + this.callsToAction = null; } this.callsToAction.add(callsToActionItem); return this; @@ -363,11 +364,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, dynamicAttributes.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(logos, creativeBackgroundColor, bodyTextColor, pricesColor, primaryFont, callsToAction, productImageDisplay, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicWriteAttributes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicWriteAttributes.java index 04cd8a2e..157b7bd8 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicWriteAttributes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/DynamicWriteAttributes.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; @@ -351,11 +352,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, dynamicWriteAttributes.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(logoBase64String, creativeBackgroundColor, bodyTextColor, pricesColor, primaryFont, callsToAction, productImageDisplay, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/EntityOfPortfolioMessage.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/EntityOfPortfolioMessage.java index b4ebbd75..f271f4dc 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/EntityOfPortfolioMessage.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ErrorCodeResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ErrorCodeResponse.java index 81c44fee..a8c3912e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ErrorCodeResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetPortfolioResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetPortfolioResponse.java index 57fce0f8..12cc793e 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/GetPortfolioResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagAttributes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagAttributes.java index 00f0ba07..c039c45c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagAttributes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/HtmlTagAttributes.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 HtmlTagAttributes tags(List tags) { public HtmlTagAttributes addTagsItem(Tag tagsItem) { if (this.tags == null) { - this.tags = new ArrayList<>(); + this.tags = null; } this.tags.add(tagsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, htmlTagAttributes.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(tags, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageAttributes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageAttributes.java index db502e59..fceca938 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageAttributes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageAttributes.java @@ -24,6 +24,7 @@ import java.net.URI; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -70,7 +71,7 @@ public ImageAttributes urls(List urls) { public ImageAttributes addUrlsItem(String urlsItem) { if (this.urls == null) { - this.urls = new ArrayList<>(); + this.urls = null; } this.urls.add(urlsItem); return this; @@ -173,11 +174,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, imageAttributes.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(urls, landingPageUrl, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSet.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSet.java index 588d73e4..5a617aab 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSet.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSet.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; @@ -170,11 +171,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, imageSet.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(images, headlineText, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSetBase64.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSetBase64.java index 36d4c67a..fc09fc74 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSetBase64.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSetBase64.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; @@ -169,11 +170,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, imageSetBase64.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(imageBase64Strings, headlineText, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSlide.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSlide.java index 3c9f8783..6115f585 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSlide.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ImageSlide.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; @@ -117,7 +118,7 @@ public ImageSlide slideUrls(List slideUrls) { public ImageSlide addSlideUrlsItem(String slideUrlsItem) { if (this.slideUrls == null) { - this.slideUrls = new ArrayList<>(); + this.slideUrls = null; } this.slideUrls.add(slideUrlsItem); return this; @@ -199,11 +200,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, imageSlide.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(width, height, slideUrls, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1.java index c1e026e6..ac83d868 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1.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, inMarketAudienceSegmentBrandEntityV1.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, size, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java index f4c4210c..0d634c78 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1ListResponse.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 InMarketAudienceSegmentBrandEntityV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketAudienceSegmentBrandEntityV1ListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1Resource.java index e1daf9df..39a5a0fe 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentBrandEntityV1Resource.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, inMarketAudienceSegmentBrandEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1.java index 7ce6b6e8..3657a18b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1.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, inMarketAudienceSegmentInterestEntityV1.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(parentId, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java index a50293b7..c7dab3b4 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1ListResponse.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 InMarketAudienceSegmentInterestEntityV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketAudienceSegmentInterestEntityV1ListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1Resource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1Resource.java index 72688ec5..807725ec 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1Resource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketAudienceSegmentInterestEntityV1Resource.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, inMarketAudienceSegmentInterestEntityV1Resource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketCreateV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketCreateV1.java index 6d83f837..f4486f7c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketCreateV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketCreateV1.java @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -139,7 +140,7 @@ public static GenderEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -254,7 +255,7 @@ public InMarketCreateV1 buyingPower(Set buyingPower) { public InMarketCreateV1 addBuyingPowerItem(BuyingPowerEnum buyingPowerItem) { if (this.buyingPower == null) { - this.buyingPower = new LinkedHashSet<>(); + this.buyingPower = null; } this.buyingPower.add(buyingPowerItem); return this; @@ -306,7 +307,7 @@ public InMarketCreateV1 interestIds(Set interestIds) { public InMarketCreateV1 addInterestIdsItem(String interestIdsItem) { if (this.interestIds == null) { - this.interestIds = new LinkedHashSet<>(); + this.interestIds = null; } this.interestIds.add(interestIdsItem); return this; @@ -336,7 +337,7 @@ public InMarketCreateV1 brandIds(Set brandIds) { public InMarketCreateV1 addBrandIdsItem(String brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new LinkedHashSet<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -366,7 +367,7 @@ public InMarketCreateV1 priceRange(Set priceRange) { public InMarketCreateV1 addPriceRangeItem(PriceRangeEnum priceRangeItem) { if (this.priceRange == null) { - this.priceRange = new LinkedHashSet<>(); + this.priceRange = null; } this.priceRange.add(priceRangeItem); return this; @@ -451,11 +452,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketCreateV1.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(country, buyingPower, gender, interestIds, brandIds, priceRange, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketSizeEstimationV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketSizeEstimationV1.java index 87960e09..a163ef20 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketSizeEstimationV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketSizeEstimationV1.java @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -139,7 +140,7 @@ public static GenderEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -254,7 +255,7 @@ public InMarketSizeEstimationV1 buyingPower(Set buyingPower) { public InMarketSizeEstimationV1 addBuyingPowerItem(BuyingPowerEnum buyingPowerItem) { if (this.buyingPower == null) { - this.buyingPower = new LinkedHashSet<>(); + this.buyingPower = null; } this.buyingPower.add(buyingPowerItem); return this; @@ -306,7 +307,7 @@ public InMarketSizeEstimationV1 interestIds(Set interestIds) { public InMarketSizeEstimationV1 addInterestIdsItem(String interestIdsItem) { if (this.interestIds == null) { - this.interestIds = new LinkedHashSet<>(); + this.interestIds = null; } this.interestIds.add(interestIdsItem); return this; @@ -336,7 +337,7 @@ public InMarketSizeEstimationV1 brandIds(Set brandIds) { public InMarketSizeEstimationV1 addBrandIdsItem(String brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new LinkedHashSet<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -366,7 +367,7 @@ public InMarketSizeEstimationV1 priceRange(Set priceRange) { public InMarketSizeEstimationV1 addPriceRangeItem(PriceRangeEnum priceRangeItem) { if (this.priceRange == null) { - this.priceRange = new LinkedHashSet<>(); + this.priceRange = null; } this.priceRange.add(priceRangeItem); return this; @@ -451,11 +452,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketSizeEstimationV1.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(country, buyingPower, gender, interestIds, brandIds, priceRange, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketUpdateV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketUpdateV1.java index 5d3f0266..297e1665 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketUpdateV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketUpdateV1.java @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -208,7 +209,7 @@ public InMarketUpdateV1 buyingPower(Set buyingPower) { public InMarketUpdateV1 addBuyingPowerItem(BuyingPowerEnum buyingPowerItem) { if (this.buyingPower == null) { - this.buyingPower = new LinkedHashSet<>(); + this.buyingPower = null; } this.buyingPower.add(buyingPowerItem); return this; @@ -260,7 +261,7 @@ public InMarketUpdateV1 interestIds(Set interestIds) { public InMarketUpdateV1 addInterestIdsItem(String interestIdsItem) { if (this.interestIds == null) { - this.interestIds = new LinkedHashSet<>(); + this.interestIds = null; } this.interestIds.add(interestIdsItem); return this; @@ -290,7 +291,7 @@ public InMarketUpdateV1 brandIds(Set brandIds) { public InMarketUpdateV1 addBrandIdsItem(String brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new LinkedHashSet<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -320,7 +321,7 @@ public InMarketUpdateV1 priceRange(Set priceRange) { public InMarketUpdateV1 addPriceRangeItem(PriceRangeEnum priceRangeItem) { if (this.priceRange == null) { - this.priceRange = new LinkedHashSet<>(); + this.priceRange = null; } this.priceRange.add(priceRangeItem); return this; @@ -405,11 +406,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketUpdateV1.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(country, buyingPower, gender, interestIds, brandIds, priceRange, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketV1.java index c33c9023..b6fa72b3 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/InMarketV1.java @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -143,7 +144,7 @@ public static GenderEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -260,7 +261,7 @@ public InMarketV1 buyingPower(Set buyingPower) { public InMarketV1 addBuyingPowerItem(BuyingPowerEnum buyingPowerItem) { if (this.buyingPower == null) { - this.buyingPower = new LinkedHashSet<>(); + this.buyingPower = null; } this.buyingPower.add(buyingPowerItem); return this; @@ -312,7 +313,7 @@ public InMarketV1 interestIds(Set interestIds) { public InMarketV1 addInterestIdsItem(String interestIdsItem) { if (this.interestIds == null) { - this.interestIds = new LinkedHashSet<>(); + this.interestIds = null; } this.interestIds.add(interestIdsItem); return this; @@ -342,7 +343,7 @@ public InMarketV1 brandIds(Set brandIds) { public InMarketV1 addBrandIdsItem(String brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new LinkedHashSet<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -372,7 +373,7 @@ public InMarketV1 priceRange(Set priceRange) { public InMarketV1 addPriceRangeItem(PriceRangeEnum priceRangeItem) { if (this.priceRange == null) { - this.priceRange = new LinkedHashSet<>(); + this.priceRange = null; } this.priceRange.add(priceRangeItem); return this; @@ -457,11 +458,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketV1.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(country, buyingPower, gender, interestIds, brandIds, priceRange, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationUpdateV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationUpdateV1.java index 60f406a5..7cd37ae3 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationUpdateV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationUpdateV1.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; @@ -87,7 +88,7 @@ public static RegistryTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -119,7 +120,7 @@ public LocationUpdateV1 pointsOfInterest(List pointsOfInteres public LocationUpdateV1 addPointsOfInterestItem(PointOfInterestV1 pointsOfInterestItem) { if (this.pointsOfInterest == null) { - this.pointsOfInterest = new ArrayList<>(); + this.pointsOfInterest = null; } this.pointsOfInterest.add(pointsOfInterestItem); return this; @@ -245,11 +246,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, locationUpdateV1.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(pointsOfInterest, radiusInKm, registryType, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationV1.java index 90243990..751dcce4 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LocationV1.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; @@ -89,7 +90,7 @@ public static RegistryTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -121,7 +122,7 @@ public LocationV1 pointsOfInterest(List pointsOfInterest) { public LocationV1 addPointsOfInterestItem(PointOfInterestV1 pointsOfInterestItem) { if (this.pointsOfInterest == null) { - this.pointsOfInterest = new ArrayList<>(); + this.pointsOfInterest = null; } this.pointsOfInterest.add(pointsOfInterestItem); return this; @@ -247,11 +248,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, locationV1.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(pointsOfInterest, radiusInKm, registryType, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeCreateV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeCreateV1.java index 4ba10f5b..6166d5da 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeCreateV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeCreateV1.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, lookalikeCreateV1.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(seedSegmentId, targetSize, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeUpdateV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeUpdateV1.java index 392985c4..d8585000 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeUpdateV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeUpdateV1.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, lookalikeUpdateV1.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(targetSize, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeV1.java index 684027a9..d4b6a84d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/LookalikeV1.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, lookalikeV1.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(seedSegmentId, targetSize, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceAttributes.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceAttributes.java index e367af86..fa7e6a3b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NewAudienceAttributes.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRuleValue.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRuleValue.java index 83eeed9e..92f2f238 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableAdSetTargetingRuleValue.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableGenderV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableGenderV1.java index 10632d29..852fb019 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableGenderV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableGenderV1.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; @@ -78,7 +79,7 @@ public static ValueEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -182,11 +183,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, nillableGenderV1.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(value, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableInt32.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableInt32.java index 3b200bec..a86ecd78 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableInt32.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableInt32.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, nillableInt32.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(value, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableString.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableString.java index a84e53fa..195fcd4f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableString.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/NillableString.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, nillableString.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(value, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSet.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSet.java index 7024aa54..d24fc714 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSet.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBudget.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBudget.java index 821fd36c..45e68a70 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetBudget.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBid.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBid.java index 6b0cfd81..d62d8d0b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBid.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidListRequest.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidListRequest.java index f14ae7c0..7cf89bb9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidListRequest.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResource.java index a07ece98..7c634cf9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultListResponse.java index 489b57d1..7d2376d5 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultResource.java index 792da10d..d3b98ba7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetCategoryBidResultResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplier.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplier.java index c03d22fe..0aae8bc2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierListRequest.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierListRequest.java index 118abc29..f674e023 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierListRequest.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResource.java index 13d9cdfd..49e46f0b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_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 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultListResponse.java index a2f6e7b9..1f9b0a31 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultListResponse.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 PatchAdSetDisplayMultiplierResultListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchAdSetDisplayMultiplierResultListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultResource.java index 8cbd2c11..51ea55f0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchAdSetDisplayMultiplierResultResource.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, patchAdSetDisplayMultiplierResultResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignListRequest.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignListRequest.java index 992f4150..ed0fbf47 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignListRequest.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignListRequest.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 PatchCampaignListRequest data(List data) { public PatchCampaignListRequest addDataItem(PatchCampaignWriteResource 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, patchCampaignListRequest.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignSpendLimit.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignSpendLimit.java index f44bd259..eeb77708 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignSpendLimit.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignSpendLimit.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, patchCampaignSpendLimit.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignWriteResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignWriteResource.java index 289000ce..75b290c9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignWriteResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchCampaignWriteResource.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, patchCampaignWriteResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignListResponse.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignListResponse.java index 0a5235f4..8562e73f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignListResponse.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignListResponse.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, patchResultCampaignListResponse.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignReadResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignReadResource.java index 10423ad7..2e46b4f2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignReadResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PatchResultCampaignReadResource.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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchResultCampaignReadResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessage.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessage.java index 58a27599..f4028e8d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessage.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PlacementsReportQueryMessage.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; @@ -531,11 +532,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, placementsReportQueryMessage.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(advertiserIds, campaignIds, adsetIds, environment, placement, dimensions, metrics, currency, disclosed, format, timezone, startDate, endDate, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PointOfInterestV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PointOfInterestV1.java index 9af3d085..f6368dc7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PointOfInterestV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PointOfInterestV1.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, pointOfInterestV1.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, latitude, longitude, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PortfolioMessage.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PortfolioMessage.java index 898fceb9..994034ad 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PortfolioMessage.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/PortfolioMessage.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, portfolioMessage.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(advertiserName, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProblemDetails.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProblemDetails.java index e1bad91b..0195e557 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProblemDetails.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProblemDetails.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 ProblemDetails source(Map source) { public ProblemDetails 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, problemDetails.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProblemsDetails.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProblemsDetails.java index 8045cdb2..88a082bf 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProblemsDetails.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProblemsDetails.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; @@ -137,11 +138,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemsDetails.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, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingCreateV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingCreateV1.java index 792acd22..c179ec05 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingCreateV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingCreateV1.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; @@ -236,11 +237,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, prospectingCreateV1.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(daysSinceLastVisitMin, daysSinceLastVisitMax, usersType, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingUpdateV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingUpdateV1.java index 7563d369..c0a8a634 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingUpdateV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingUpdateV1.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; @@ -87,7 +88,7 @@ public static UsersTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -237,11 +238,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, prospectingUpdateV1.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(daysSinceLastVisitMin, daysSinceLastVisitMax, usersType, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingV1.java index 272cd03c..1ed55052 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ProspectingV1.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; @@ -88,7 +89,7 @@ public static UsersTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -238,11 +239,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, prospectingV1.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(daysSinceLastVisitMin, daysSinceLastVisitMax, usersType, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSet.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSet.java index 696e241f..1bb030b2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSet.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSet.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; @@ -100,7 +101,7 @@ public static DestinationEnvironmentEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -167,7 +168,7 @@ public static MediaTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -478,11 +479,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSet.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, datasetId, campaignId, destinationEnvironment, schedule, bidding, targeting, budget, mediaType, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBidding.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBidding.java index 95c0ae41..7028a149 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBidding.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBidding.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; @@ -101,7 +102,7 @@ public static BidStrategyEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -164,7 +165,7 @@ public static CostControllerEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -314,11 +315,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetBidding.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, bidStrategy, costController, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBudget.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBudget.java index bbff65a6..425185a2 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBudget.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetBudget.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, readAdSetBudget.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetSchedule.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetSchedule.java index 781b27f5..ec3a2851 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetSchedule.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadAdSetSchedule.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; @@ -87,7 +88,7 @@ public static ActivationStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -154,7 +155,7 @@ public static DeliveryStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -327,11 +328,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetSchedule.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(startDate, endDate, activationStatus, deliveryStatus, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelAdSetId.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelAdSetId.java index 14757424..10d925a0 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelAdSetId.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelAdSetId.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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readModelAdSetId.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelReadAdSet.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelReadAdSet.java index 29768d4f..27645c76 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelReadAdSet.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ReadModelReadAdSet.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, readModelReadAdSet.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsAdSetId.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsAdSetId.java index 51037c31..0cca3e9d 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsAdSetId.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsAdSetId.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 RequestsAdSetId data(List data) { public RequestsAdSetId addDataItem(WriteModelAdSetId 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, requestsAdSetId.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsPatchAdSet.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsPatchAdSet.java index e611c552..4f2ca599 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsPatchAdSet.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RequestsPatchAdSet.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 RequestsPatchAdSet data(List data) { public RequestsPatchAdSet addDataItem(WriteModelPatchAdSet 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, requestsPatchAdSet.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseAdSetId.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseAdSetId.java index 4db809c8..789ee863 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseAdSetId.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseAdSetId.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, responseAdSetId.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseReadAdSet.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseReadAdSet.java index e9ecc826..d9969747 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseReadAdSet.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponseReadAdSet.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, responseReadAdSet.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesAdSetId.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesAdSetId.java index eb63deb2..1c5cc615 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesAdSetId.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesAdSetId.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, responsesAdSetId.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesReadAdSet.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesReadAdSet.java index cdf05661..3d29ac31 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesReadAdSet.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/ResponsesReadAdSet.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, responsesReadAdSet.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingUpdateV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingUpdateV1.java index 42f6a511..1de774b3 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingUpdateV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingUpdateV1.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; @@ -80,7 +81,7 @@ public static VisitorsTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -238,11 +239,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retargetingUpdateV1.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(visitorsType, daysSinceLastVisitMin, daysSinceLastVisitMax, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingV1.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingV1.java index f2cc19ed..5122d3a7 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingV1.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/RetargetingV1.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 VisitorsTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -240,11 +241,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retargetingV1.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(visitorsType, daysSinceLastVisitMin, daysSinceLastVisitMax, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Size.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Size.java index 40710ba7..9d79952f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Size.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Size.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, size.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(width, height, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/StatisticsReportQueryMessage.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/StatisticsReportQueryMessage.java index a3b69ff2..4a7ecde6 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/StatisticsReportQueryMessage.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/StatisticsReportQueryMessage.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; @@ -219,7 +220,7 @@ public StatisticsReportQueryMessage adSetIds(List adSetIds) { public StatisticsReportQueryMessage addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -249,7 +250,7 @@ public StatisticsReportQueryMessage adSetNames(List adSetNames) { public StatisticsReportQueryMessage addAdSetNamesItem(String adSetNamesItem) { if (this.adSetNames == null) { - this.adSetNames = new ArrayList<>(); + this.adSetNames = null; } this.adSetNames.add(adSetNamesItem); return this; @@ -279,7 +280,7 @@ public StatisticsReportQueryMessage adSetStatus(List adSetStatus) { public StatisticsReportQueryMessage addAdSetStatusItem(String adSetStatusItem) { if (this.adSetStatus == null) { - this.adSetStatus = new ArrayList<>(); + this.adSetStatus = null; } this.adSetStatus.add(adSetStatusItem); return this; @@ -533,11 +534,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, statisticsReportQueryMessage.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(advertiserIds, adSetIds, adSetNames, adSetStatus, dimensions, metrics, currency, format, timezone, startDate, endDate, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Tag.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Tag.java index b2c43b90..5a80c92f 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Tag.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/Tag.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, tag.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(htmlTag, size, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessage.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessage.java index 3a73d0fc..f89b8d5c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessage.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransactionsReportQueryMessage.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; @@ -298,11 +299,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transactionsReportQueryMessage.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(advertiserIds, eventType, currency, format, timezone, startDate, endDate, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyQueryMessage.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyQueryMessage.java index 27730741..ff58dcea 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyQueryMessage.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/TransparencyQueryMessage.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; @@ -190,11 +191,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transparencyQueryMessage.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(shouldDisplayProductIds, startDate, endDate, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCoupon.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCoupon.java index 0e8e37a4..e711050c 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCoupon.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCoupon.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, updateCoupon.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(startDate, endDate, 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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponResource.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponResource.java index a32da070..071632f9 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponResource.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/UpdateCouponResource.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, updateCouponResource.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelAdSetId.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelAdSetId.java index 01a32c34..72e667ea 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelAdSetId.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelAdSetId.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, writeModelAdSetId.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_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelPatchAdSet.java b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelPatchAdSet.java index e6ff1cb9..9fca216b 100644 --- a/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelPatchAdSet.java +++ b/sdks/marketingsolutions_2023-07/src/main/java/com/criteo/api/marketingsolutions/v2023_07/model/WriteModelPatchAdSet.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, writeModelPatchAdSet.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_preview/README.md b/sdks/marketingsolutions_preview/README.md index 12fbdb99..82e45504 100644 --- a/sdks/marketingsolutions_preview/README.md +++ b/sdks/marketingsolutions_preview/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com Criteo API -- Package version: 0.0.230728 +- Package version: 0.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 - 0.0.230728 + 0.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:0.0.230728" +compile "com.criteo:criteo-api-marketingsolutions-sdk:0.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-marketingsolutions-sdk-0.0.230728.jar` +* `target/criteo-api-marketingsolutions-sdk-0.0.230831.jar` * `target/lib/*.jar` ## Example diff --git a/sdks/marketingsolutions_preview/api/openapi.yaml b/sdks/marketingsolutions_preview/api/openapi.yaml index c89cede6..3053da83 100644 --- a/sdks/marketingsolutions_preview/api/openapi.yaml +++ b/sdks/marketingsolutions_preview/api/openapi.yaml @@ -2,12 +2,60 @@ openapi: 3.0.1 info: description: Criteo API - MarketingSolutions title: Criteo API - version: Preview + version: preview servers: - url: https://api.criteo.com security: - oauth: [] paths: + /preview/audiences/{audience-id}/contactlist-attributes: + patch: + description: Add/remove users to or from an audience + operationId: modifyAudienceUsersWithAttributes + parameters: + - description: The id of the audience to amend + explode: false + in: path + name: audience-id + required: true + schema: + format: int32 + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ContactlistWithAttributesAmendmentRequest' + required: true + x-bodyName: body + responses: + "200": + content: + application/json: + example: + data: + type: ContactlistAmendment + attributes: + contactListId: 12 + operation: add + requestDate: 2018-12-10T10:00:50.0000000+00:00 + identifierType: madid + nbValidIdentifiers: 7343 + nbInvalidIdentifiers: 13 + sampleInvalidIdentifiers: + - InvalidIdentifier + errors: [] + warnings: [] + schema: + $ref: '#/components/schemas/ModifyAudienceResponse' + description: Summary of created request + "401": + description: Not authorized + tags: + - Audience + x-content-type: application/json + x-accepts: application/json /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list: delete: description: Delete all identifiers from a Contact List Audience Segment @@ -199,54 +247,6 @@ paths: - Audience x-content-type: application/json x-accepts: application/json - /preview/audiences/{audience-id}/contactlist-attributes: - patch: - description: Add/remove users to or from an audience - operationId: modifyAudienceUsersWithAttributes - parameters: - - description: The id of the audience to amend - explode: false - in: path - name: audience-id - required: true - schema: - format: int32 - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ContactlistWithAttributesAmendmentRequest' - required: true - x-bodyName: body - responses: - "200": - content: - application/json: - example: - data: - type: ContactlistAmendment - attributes: - contactListId: 12 - operation: add - requestDate: 2018-12-10T10:00:50.0000000+00:00 - identifierType: madid - nbValidIdentifiers: 7343 - nbInvalidIdentifiers: 13 - sampleInvalidIdentifiers: - - InvalidIdentifier - errors: [] - warnings: [] - schema: - $ref: '#/components/schemas/ModifyAudienceResponse' - description: Summary of created request - "401": - description: Not authorized - tags: - - Audience - x-content-type: application/json - x-accepts: application/json /preview/marketing-solutions/me: get: description: Get information about the currently logged application @@ -265,50 +265,34 @@ paths: tags: - Gateway x-accepts: application/json - /preview/marketing-solutions/audiences/search: - post: - description: "Returns a list of audiences that match the provided filters. If\ - \ present, the filters are AND'ed together when applied." - operationId: searchAudiences + /preview/marketing-solutions/ad-sets/{ad-set-id}/audience: + put: + description: Link or unlink an audience with an ad set + operationId: updateAdSetAudience parameters: - - description: The number of elements to be returned. The default is 50 and - the maximum is 100. - explode: true - in: query - name: limit - required: false - schema: - default: 50 - format: int32 - maximum: 100 - minimum: 0 - type: integer - style: form - - description: The (zero-based) offset into the collection. The default is 0. - explode: true - in: query - name: offset - required: false + - description: The ad set ID. + explode: false + in: path + name: ad-set-id + required: true schema: - default: 0 - format: int32 - type: integer - style: form + type: string + style: simple requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSearchInputV1' + $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' application/json: schema: - $ref: '#/components/schemas/AudienceSearchInputV1' + $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' text/json: schema: - $ref: '#/components/schemas/AudienceSearchInputV1' + $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSearchInputV1' - description: Audience search filters. + $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' + description: Ad set-Audience update request. required: true x-bodyName: request responses: @@ -316,13 +300,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' application/json: schema: - $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' text/json: schema: - $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' description: Success "400": content: @@ -343,30 +327,30 @@ paths: text/json: {} description: The API client is not authorized to access this resource. tags: - - Audience + - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audiences/create: - post: - description: "Creates all audiences with a valid configuration, and returns\ - \ their IDs. For those that cannot be created, one or multiple errors are\ - \ returned." - operationId: bulkCreateAudiences + /preview/marketing-solutions/audience-segments: + patch: + description: "Updates the properties of all segments with a valid configuration,\ + \ and returns their IDs. For those that cannot be updated, one or multiple\ + \ errors are returned." + operationId: bulkUpdateAudienceSegments requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceBulkCreateInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceBulkCreateInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceBulkCreateInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceBulkCreateInputV1' - description: "" + $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' + description: Segment Update request required: true x-bodyName: request responses: @@ -374,13 +358,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' description: Success or partial success "400": content: @@ -404,26 +388,25 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audiences: - patch: - description: "Updates the properties of all audiences with a valid configuration,\ - \ and returns their IDs. For those that cannot be updated, one or multiple\ - \ errors are returned." - operationId: bulkUpdateAudiences + /preview/marketing-solutions/audience-segments/compute-sizes: + post: + description: Gets the size of all segments. An error is returned for those whose + size calculation is not supported. + operationId: computeAudienceSegmentsSizes requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' description: "" required: true x-bodyName: request @@ -432,13 +415,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' description: Success or partial success "400": content: @@ -462,25 +445,26 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audiences/delete: + /preview/marketing-solutions/audience-segments/create: post: - description: Deletes the audiences associated to the given audience IDs. - operationId: bulkDeleteAudiences + description: "Creates all segments with a valid configuration, and returns their\ + \ IDs. For those that cannot be created, one or multiple errors are returned." + operationId: bulkCreateAudienceSegments requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceBulkDeleteInputV1' - description: "" + $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' + description: Segment creation parameter required: true x-bodyName: request responses: @@ -488,19 +472,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' - description: Success - "204": - content: - text/plain: {} - application/json: {} - text/json: {} + $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' description: Success or partial success "400": content: @@ -524,26 +502,25 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audiences/compute-sizes: + /preview/marketing-solutions/audience-segments/delete: post: - description: Gets the size of all audiences. An error is returned for those - whose size calculation is not supported. - operationId: computeAudiencesSizes + description: Delete the segments associated to the given audience IDs. + operationId: bulkDeleteAudienceSegments requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceComputeSizesInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceComputeSizesInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceComputeSizesInputV1' + $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceComputeSizesInputV1' - description: "" + $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' + description: Segment delete request. required: true x-bodyName: request responses: @@ -551,13 +528,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' description: Success or partial success "400": content: @@ -581,25 +558,25 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audiences/estimate-size: + /preview/marketing-solutions/audience-segments/estimate-size: post: - description: Gets the size estimation of a non existent audience. An error is + description: Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. - operationId: estimateAudienceSize + operationId: estimateAudienceSegmentSize requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' description: "" required: true x-bodyName: request @@ -608,14 +585,14 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSizeEstimationV1Response' + $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' application/json: schema: - $ref: '#/components/schemas/AudienceSizeEstimationV1Response' + $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' text/json: schema: - $ref: '#/components/schemas/AudienceSizeEstimationV1Response' - description: Success or partial success + $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' + description: Success "400": content: text/plain: {} @@ -638,6 +615,107 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json + /preview/marketing-solutions/audience-segments/in-market-brands: + get: + description: Returns a list with all available in-market brands that can be + used to define an in-market segment. + operationId: getAudienceSegmentsInMarketBrands + parameters: + - description: The advertiser ID. + explode: true + in: query + name: advertiser-id + required: true + schema: + type: string + style: form + - description: The ISO 3166-1 alpha-2 country code. + explode: true + in: query + name: country + required: true + schema: + type: string + style: form + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' + application/json: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' + text/json: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' + description: Success + "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. + tags: + - Audience + x-accepts: application/json + /preview/marketing-solutions/audience-segments/in-market-interests: + get: + description: Returns a list with all available in-market interests that can + be used to define an in-market segment. These in-market interests correspond + to the Google product taxonomy. + operationId: getAudienceSegmentsInMarketInterests + parameters: + - description: The advertiser ID. + explode: true + in: query + name: advertiser-id + required: true + schema: + type: string + style: form + - description: The ISO 3166-1 alpha-2 country code. + explode: true + in: query + name: country + required: true + schema: + type: string + style: form + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + application/json: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + text/json: + schema: + $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + description: Success + "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. + tags: + - Audience + x-accepts: application/json /preview/marketing-solutions/audience-segments/search: post: description: "Returns a list of segments that match the provided filters. If\ @@ -719,26 +797,27 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audience-segments/create: - post: - description: "Creates all segments with a valid configuration, and returns their\ - \ IDs. For those that cannot be created, one or multiple errors are returned." - operationId: bulkCreateAudienceSegments + /preview/marketing-solutions/audiences: + patch: + description: "Updates the properties of all audiences with a valid configuration,\ + \ and returns their IDs. For those that cannot be updated, one or multiple\ + \ errors are returned." + operationId: bulkUpdateAudiences requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' + $ref: '#/components/schemas/AudienceBulkUpdateInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' + $ref: '#/components/schemas/AudienceBulkUpdateInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' + $ref: '#/components/schemas/AudienceBulkUpdateInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkCreateInputV1' - description: Segment creation parameter + $ref: '#/components/schemas/AudienceBulkUpdateInputV1' + description: "" required: true x-bodyName: request responses: @@ -746,13 +825,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' description: Success or partial success "400": content: @@ -776,27 +855,26 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audience-segments: - patch: - description: "Updates the properties of all segments with a valid configuration,\ - \ and returns their IDs. For those that cannot be updated, one or multiple\ - \ errors are returned." - operationId: bulkUpdateAudienceSegments + /preview/marketing-solutions/audiences/compute-sizes: + post: + description: Gets the size of all audiences. An error is returned for those + whose size calculation is not supported. + operationId: computeAudiencesSizes requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceComputeSizesInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceComputeSizesInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' + $ref: '#/components/schemas/AudienceComputeSizesInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkUpdateInputV1' - description: Segment Update request + $ref: '#/components/schemas/AudienceComputeSizesInputV1' + description: "" required: true x-bodyName: request responses: @@ -804,13 +882,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentEntityV1ListResponse' + $ref: '#/components/schemas/AudienceSizeEntityV1ListResponse' description: Success or partial success "400": content: @@ -834,25 +912,27 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audience-segments/delete: + /preview/marketing-solutions/audiences/create: post: - description: Delete the segments associated to the given audience IDs. - operationId: bulkDeleteAudienceSegments + description: "Creates all audiences with a valid configuration, and returns\ + \ their IDs. For those that cannot be created, one or multiple errors are\ + \ returned." + operationId: bulkCreateAudiences requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceBulkCreateInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceBulkCreateInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' + $ref: '#/components/schemas/AudienceBulkCreateInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSegmentBulkDeleteInputV1' - description: Segment delete request. + $ref: '#/components/schemas/AudienceBulkCreateInputV1' + description: "" required: true x-bodyName: request responses: @@ -860,13 +940,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentIdEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1ListResponse' description: Success or partial success "400": content: @@ -890,25 +970,24 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audience-segments/compute-sizes: + /preview/marketing-solutions/audiences/delete: post: - description: Gets the size of all segments. An error is returned for those whose - size calculation is not supported. - operationId: computeAudienceSegmentsSizes + description: Deletes the audiences associated to the given audience IDs. + operationId: bulkDeleteAudiences requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' + $ref: '#/components/schemas/AudienceBulkDeleteInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' + $ref: '#/components/schemas/AudienceBulkDeleteInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' + $ref: '#/components/schemas/AudienceBulkDeleteInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSegmentComputeSizesInputV1' + $ref: '#/components/schemas/AudienceBulkDeleteInputV1' description: "" required: true x-bodyName: request @@ -917,13 +996,19 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEntityV1ListResponse' + $ref: '#/components/schemas/AudienceIdEntityV1ListResponse' + description: Success + "204": + content: + text/plain: {} + application/json: {} + text/json: {} description: Success or partial success "400": content: @@ -947,25 +1032,25 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audience-segments/estimate-size: + /preview/marketing-solutions/audiences/estimate-size: post: - description: Gets the size estimation of a non existent segment. An error is + description: Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. - operationId: estimateAudienceSegmentSize + operationId: estimateAudienceSize requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceEstimateSizeInputV1' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceEstimateSizeInputV1' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceEstimateSizeInputV1' application/*+json: schema: - $ref: '#/components/schemas/AudienceSegmentEstimateSizeInputV1' + $ref: '#/components/schemas/AudienceEstimateSizeInputV1' description: "" required: true x-bodyName: request @@ -974,14 +1059,14 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' + $ref: '#/components/schemas/AudienceSizeEstimationV1Response' application/json: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' + $ref: '#/components/schemas/AudienceSizeEstimationV1Response' text/json: schema: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Response' - description: Success + $ref: '#/components/schemas/AudienceSizeEstimationV1Response' + description: Success or partial success "400": content: text/plain: {} @@ -1004,92 +1089,71 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/audience-segments/in-market-interests: - get: - description: Returns a list with all available in-market interests that can - be used to define an in-market segment. These in-market interests correspond - to the Google product taxonomy. - operationId: getAudienceSegmentsInMarketInterests + /preview/marketing-solutions/audiences/search: + post: + description: "Returns a list of audiences that match the provided filters. If\ + \ present, the filters are AND'ed together when applied." + operationId: searchAudiences parameters: - - description: The advertiser ID. + - description: The number of elements to be returned. The default is 50 and + the maximum is 100. explode: true in: query - name: advertiser-id - required: true + name: limit + required: false schema: - type: string + default: 50 + format: int32 + maximum: 100 + minimum: 0 + type: integer style: form - - description: The ISO 3166-1 alpha-2 country code. + - description: The (zero-based) offset into the collection. The default is 0. explode: true in: query - name: country - required: true + name: offset + required: false schema: - type: string + default: 0 + format: int32 + type: integer style: form + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/AudienceSearchInputV1' + application/json: + schema: + $ref: '#/components/schemas/AudienceSearchInputV1' + text/json: + schema: + $ref: '#/components/schemas/AudienceSearchInputV1' + application/*+json: + schema: + $ref: '#/components/schemas/AudienceSearchInputV1' + description: Audience search filters. + required: true + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' application/json: schema: - $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' text/json: schema: - $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1ListResponse' + $ref: '#/components/schemas/AudienceEntityV1AudienceSearchMetadataV1ListResponse' description: Success - "401": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The API client is not properly authenticated. - "403": + "400": content: text/plain: {} application/json: {} text/json: {} - description: The API client is not authorized to access this resource. - tags: - - Audience - x-accepts: application/json - /preview/marketing-solutions/audience-segments/in-market-brands: - get: - description: Returns a list with all available in-market brands that can be - used to define an in-market segment. - operationId: getAudienceSegmentsInMarketBrands - parameters: - - description: The advertiser ID. - explode: true - in: query - name: advertiser-id - required: true - schema: - type: string - style: form - - description: The ISO 3166-1 alpha-2 country code. - explode: true - in: query - name: country - required: true - schema: - type: string - style: form - responses: - "200": - content: - text/plain: - schema: - $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' - application/json: - schema: - $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' - text/json: - schema: - $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1ListResponse' - description: Success + description: Bad request "401": content: text/plain: {} @@ -1104,56 +1168,41 @@ paths: description: The API client is not authorized to access this resource. tags: - Audience + x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/ad-sets/{ad-set-id}/audience: - put: - description: Link or unlink an audience with an ad set - operationId: updateAdSetAudience - parameters: - - description: The ad set ID. - explode: false - in: path - name: ad-set-id - required: true - schema: - type: string - style: simple + /preview/marketing-solutions/ad-sets: + patch: + description: Patch a list of AdSets. + operationId: PatchAdSets requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' + $ref: '#/components/schemas/RequestsPatchAdSet' application/json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' + $ref: '#/components/schemas/RequestsPatchAdSet' text/json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' + $ref: '#/components/schemas/RequestsPatchAdSet' application/*+json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkInputEntityV1' - description: Ad set-Audience update request. - required: true - x-bodyName: request + $ref: '#/components/schemas/RequestsPatchAdSet' + description: List of adsets to patch. + x-bodyName: adSets responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' + $ref: '#/components/schemas/ResponseAdSetId' application/json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' + $ref: '#/components/schemas/ResponseAdSetId' text/json: schema: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Response' - description: Success - "400": - content: - text/plain: {} - application/json: {} - text/json: {} - description: Bad request + $ref: '#/components/schemas/ResponseAdSetId' + description: List of patched adSets. "401": content: text/plain: {} @@ -1165,52 +1214,60 @@ paths: text/plain: {} application/json: {} text/json: {} - description: The API client is not authorized to access this resource. + 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 - /preview/marketing-solutions/ad-sets/{ad-set-id}: - get: - description: Get the data for the specified ad set - operationId: GetAdSetV23Q1 - parameters: - - description: Id of the ad set - explode: false - in: path - name: ad-set-id + post: + description: Create the specified ad set + operationId: CreateAdSet + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/CreateAdSetRequest' + application/json: + schema: + $ref: '#/components/schemas/CreateAdSetRequest' + text/json: + schema: + $ref: '#/components/schemas/CreateAdSetRequest' + application/*+json: + schema: + $ref: '#/components/schemas/CreateAdSetRequest' + description: the ad sets to create required: true - schema: - type: string - style: simple + x-bodyName: adSet responses: - "200": + "201": content: text/plain: schema: - $ref: '#/components/schemas/ResponseReadAdSetV23Q1' + $ref: '#/components/schemas/ResponseReadAdSet' application/json: schema: - $ref: '#/components/schemas/ResponseReadAdSetV23Q1' + $ref: '#/components/schemas/ResponseReadAdSet' text/json: schema: - $ref: '#/components/schemas/ResponseReadAdSetV23Q1' - description: data for the ad set - "401": + $ref: '#/components/schemas/ResponseReadAdSet' + description: The ad set that has been created and errors / warnings + "400": content: text/plain: {} application/json: {} text/json: {} - description: The API client is not properly authenticated. - "403": + description: Bad Request + "401": content: text/plain: {} application/json: {} text/json: {} - description: The API client is not authorized to access this resource or - the resource does not exist. + description: The API client is not properly authenticated. tags: - Campaign + x-content-type: application/json-patch+json x-accepts: application/json /preview/marketing-solutions/ad-sets/search: post: @@ -1267,177 +1324,78 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/ad-sets: - patch: - description: Patch a list of AdSets. - operationId: PatchAdSets + /preview/marketing-solutions/ad-sets/start: + post: + description: Start the specified list of ad sets + operationId: StartAdSets requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/RequestsPatchAdSet' + $ref: '#/components/schemas/RequestsAdSetId' application/json: schema: - $ref: '#/components/schemas/RequestsPatchAdSet' + $ref: '#/components/schemas/RequestsAdSetId' text/json: schema: - $ref: '#/components/schemas/RequestsPatchAdSet' + $ref: '#/components/schemas/RequestsAdSetId' application/*+json: schema: - $ref: '#/components/schemas/RequestsPatchAdSet' - description: List of adsets to patch. + $ref: '#/components/schemas/RequestsAdSetId' + description: All the ad sets to start x-bodyName: adSets responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/ResponseAdSetId' + $ref: '#/components/schemas/ResponsesAdSetId' application/json: schema: - $ref: '#/components/schemas/ResponseAdSetId' + $ref: '#/components/schemas/ResponsesAdSetId' text/json: schema: - $ref: '#/components/schemas/ResponseAdSetId' - description: List of patched adSets. - "401": + $ref: '#/components/schemas/ResponsesAdSetId' + description: List of ad sets that have been started and errors / warnings + by ad set + "400": content: text/plain: {} application/json: {} text/json: {} - description: The API client is not properly authenticated. - "403": + description: Bad Request + "401": content: text/plain: {} application/json: {} text/json: {} - description: The API client is not authorized to access this resource or - the resource does not exist. + description: The API client is not properly authenticated. tags: - Campaign x-content-type: application/json-patch+json x-accepts: application/json + /preview/marketing-solutions/ad-sets/stop: post: - description: Create the specified ad set - operationId: CreateAdSet + description: Stop the specified list of ad sets + operationId: StopAdSets requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/CreateAdSetRequest' + $ref: '#/components/schemas/RequestsAdSetId' application/json: schema: - $ref: '#/components/schemas/CreateAdSetRequest' + $ref: '#/components/schemas/RequestsAdSetId' text/json: schema: - $ref: '#/components/schemas/CreateAdSetRequest' + $ref: '#/components/schemas/RequestsAdSetId' application/*+json: schema: - $ref: '#/components/schemas/CreateAdSetRequest' - description: the ad sets to create - required: true - x-bodyName: adSet + $ref: '#/components/schemas/RequestsAdSetId' + description: All the ad sets to stop + x-bodyName: adSets responses: - "201": - content: - text/plain: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - application/json: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - text/json: - schema: - $ref: '#/components/schemas/ResponseReadAdSet' - description: The ad set that has been created and errors / warnings - "400": - content: - 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. - tags: - - Campaign - x-content-type: application/json-patch+json - x-accepts: application/json - /preview/marketing-solutions/ad-sets/start: - post: - description: Start the specified list of ad sets - operationId: StartAdSets - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/RequestsAdSetId' - application/json: - schema: - $ref: '#/components/schemas/RequestsAdSetId' - text/json: - schema: - $ref: '#/components/schemas/RequestsAdSetId' - application/*+json: - schema: - $ref: '#/components/schemas/RequestsAdSetId' - description: All the ad sets to start - x-bodyName: adSets - responses: - "200": - content: - text/plain: - schema: - $ref: '#/components/schemas/ResponsesAdSetId' - application/json: - schema: - $ref: '#/components/schemas/ResponsesAdSetId' - text/json: - schema: - $ref: '#/components/schemas/ResponsesAdSetId' - description: List of ad sets that have been started and errors / warnings - by ad set - "400": - content: - 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. - tags: - - Campaign - x-content-type: application/json-patch+json - x-accepts: application/json - /preview/marketing-solutions/ad-sets/stop: - post: - description: Stop the specified list of ad sets - operationId: StopAdSets - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/RequestsAdSetId' - application/json: - schema: - $ref: '#/components/schemas/RequestsAdSetId' - text/json: - schema: - $ref: '#/components/schemas/RequestsAdSetId' - application/*+json: - schema: - $ref: '#/components/schemas/RequestsAdSetId' - description: All the ad sets to stop - x-bodyName: adSets - responses: - "200": + "200": content: text/plain: schema: @@ -1466,62 +1424,12 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers: + /preview/marketing-solutions/ad-sets/{ad-set-id}: get: - description: Get the Display Multipliers for all valid Categories associated - to an Ad Set - operationId: GetDisplayMultipliers - parameters: - - description: Id of the Ad Set - explode: false - in: path - name: ad-set-id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - text/plain: - schema: - $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' - application/json: - schema: - $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' - text/json: - schema: - $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' - description: List of Display Multipliers for all valid Categories associated - to an Ad Set. - "400": - content: - 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: - 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 - patch: - description: Patch Display Multipliers for one or more Categories in a single - request. Partial success policy is followed. - operationId: PatchDisplayMultipliers + description: Get the data for the specified ad set + operationId: GetAdSetV23Q1 parameters: - - description: Id of the Ad Set + - description: Id of the ad set explode: false in: path name: ad-set-id @@ -1529,41 +1437,19 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' - application/json: - schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' - text/json: - schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' - application/*+json: - schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' - x-bodyName: displayMultipliersToUpdate responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' + $ref: '#/components/schemas/ResponseReadAdSetV23Q1' application/json: schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' + $ref: '#/components/schemas/ResponseReadAdSetV23Q1' text/json: schema: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' - description: List of updated Display Multipliers for given Categories associated - to an Ad Set. - "400": - content: - text/plain: {} - application/json: {} - text/json: {} - description: Bad Request + $ref: '#/components/schemas/ResponseReadAdSetV23Q1' + description: data for the ad set "401": content: text/plain: {} @@ -1579,7 +1465,6 @@ paths: the resource does not exist. tags: - Campaign - x-content-type: application/json-patch+json x-accepts: application/json /preview/marketing-solutions/ad-sets/{ad-set-id}/category-bids: get: @@ -1696,15 +1581,16 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/campaigns/{campaign-id}: + /preview/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers: get: - description: Get the data for the specified campaign - operationId: GetCampaignV23Q1 + description: Get the Display Multipliers for all valid Categories associated + to an Ad Set + operationId: GetDisplayMultipliers 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 @@ -1714,14 +1600,21 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/CampaignV23Q1Response' + $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' application/json: schema: - $ref: '#/components/schemas/CampaignV23Q1Response' + $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' text/json: schema: - $ref: '#/components/schemas/CampaignV23Q1Response' - description: data for the campaign + $ref: '#/components/schemas/AdSetDisplayMultiplierListResponse' + description: List of Display Multipliers for all valid Categories associated + to an Ad Set. + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: Bad Request "401": content: text/plain: {} @@ -1738,39 +1631,48 @@ paths: tags: - Campaign x-accepts: application/json - /preview/marketing-solutions/campaigns/search: - post: - description: Search for campaigns - operationId: SearchCampaignsV23Q1 + patch: + description: Patch Display Multipliers for one or more Categories in a single + request. Partial success policy is followed. + operationId: PatchDisplayMultipliers + 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/CampaignSearchRequestV23Q1' + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' application/json: schema: - $ref: '#/components/schemas/CampaignSearchRequestV23Q1' + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' text/json: schema: - $ref: '#/components/schemas/CampaignSearchRequestV23Q1' + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' application/*+json: schema: - $ref: '#/components/schemas/CampaignSearchRequestV23Q1' - description: filters on campaigns - x-bodyName: request + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierListRequest' + x-bodyName: displayMultipliersToUpdate responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/CampaignV23Q1ListResponse' + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' application/json: schema: - $ref: '#/components/schemas/CampaignV23Q1ListResponse' + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' text/json: schema: - $ref: '#/components/schemas/CampaignV23Q1ListResponse' - description: data for the campaigns + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultListResponse' + description: List of updated Display Multipliers for given Categories associated + to an Ad Set. "400": content: text/plain: {} @@ -1788,7 +1690,8 @@ paths: text/plain: {} application/json: {} text/json: {} - description: Forbidden + 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 @@ -1892,151 +1795,120 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /preview/advertisers/{advertiser-id}/creatives: - get: - description: Get the list of self-services Creatives for a given advertiser - operationId: GetAdvertiserCreatives - parameters: - - description: The advertiser identifier. - explode: false - in: path - name: advertiser-id - required: true - schema: - type: string - style: simple - - description: The number of creatives to be returned. The default is 50. - explode: true - in: query - name: limit - required: false - schema: - format: int32 - type: integer - style: form - - description: The (zero-based) offset into the collection of creatives. The - default is 0. - explode: true - in: query - name: offset - required: false - schema: - format: int32 - type: integer - style: form + /preview/marketing-solutions/campaigns/search: + post: + description: Search for campaigns + operationId: SearchCampaignsV23Q1 + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/CampaignSearchRequestV23Q1' + application/json: + schema: + $ref: '#/components/schemas/CampaignSearchRequestV23Q1' + text/json: + schema: + $ref: '#/components/schemas/CampaignSearchRequestV23Q1' + application/*+json: + schema: + $ref: '#/components/schemas/CampaignSearchRequestV23Q1' + description: filters on campaigns + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/CreativeListResponse' + $ref: '#/components/schemas/CampaignV23Q1ListResponse' application/json: schema: - $ref: '#/components/schemas/CreativeListResponse' + $ref: '#/components/schemas/CampaignV23Q1ListResponse' text/json: schema: - $ref: '#/components/schemas/CreativeListResponse' - description: The list of self-services Creatives is returned. + $ref: '#/components/schemas/CampaignV23Q1ListResponse' + description: data for the campaigns "400": content: text/plain: {} application/json: {} text/json: {} - description: The request contained invalid parameters. + description: Bad Request "401": content: text/plain: {} application/json: {} text/json: {} - description: The request was not properly authorized. - "500": + description: The API client is not properly authenticated. + "403": content: text/plain: {} application/json: {} text/json: {} - description: A non-request based error occurred on the server. + description: Forbidden tags: - - Creative + - Campaign + x-content-type: application/json-patch+json x-accepts: application/json - post: - description: Create a Creative - operationId: CreateAdvertiserCreative + /preview/marketing-solutions/campaigns/{campaign-id}: + get: + description: Get the data for the specified campaign + operationId: GetCampaignV23Q1 parameters: - - description: The advertiser identifier. + - description: Id of the campaign explode: false in: path - name: advertiser-id + name: campaign-id required: true schema: type: string style: simple - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/CreativeWriteRequest' - application/json: - schema: - $ref: '#/components/schemas/CreativeWriteRequest' - text/json: - schema: - $ref: '#/components/schemas/CreativeWriteRequest' - application/*+json: - schema: - $ref: '#/components/schemas/CreativeWriteRequest' - required: true - x-bodyName: request responses: - "201": + "200": content: text/plain: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/CampaignV23Q1Response' application/json: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/CampaignV23Q1Response' text/json: schema: - $ref: '#/components/schemas/CreativeResponse' - description: The created creative is returned. - "400": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The request contained invalid parameters. + $ref: '#/components/schemas/CampaignV23Q1Response' + description: data for the campaign "401": content: text/plain: {} application/json: {} text/json: {} - description: The request was not properly authorized. - "500": + description: The API client is not properly authenticated. + "403": content: text/plain: {} application/json: {} text/json: {} - description: A non-request based error occurred on the server. + description: The API client is not authorized to access this resource or + the resource does not exist. tags: - - Creative - x-content-type: application/json-patch+json + - Campaign x-accepts: application/json - /preview/creatives/{id}: + /preview/ads/{id}: delete: - description: Delete a Creative if there are no ads binded to it - operationId: DeleteCreative + description: Delete an Ad + operationId: DeleteAd parameters: - - description: The creative identifier to delete. + - description: The ad identifier to delete. explode: false in: path name: id required: true schema: - type: string + format: int32 + type: integer style: simple responses: "204": - description: The creative was deleted. + description: The ad was deleted. "400": description: The request contained invalid parameters. "401": @@ -2047,30 +1919,97 @@ paths: - Creative x-accepts: application/json get: - description: Get a Creative from its id - operationId: GetCreative + description: Get an Ad from its id + operationId: GetAd parameters: - - description: The creative identifier to retrieve. + - description: The ad identifier to retrieve. explode: false in: path name: id required: true + schema: + format: int32 + type: integer + style: simple + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/AdResponse' + application/json: + schema: + $ref: '#/components/schemas/AdResponse' + text/json: + schema: + $ref: '#/components/schemas/AdResponse' + description: The found ad is returned. + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request contained invalid parameters. + "401": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request was not properly authorized. + "500": + content: + text/plain: {} + application/json: {} + text/json: {} + description: A non-request based error occurred on the server. + tags: + - Creative + x-accepts: application/json + /preview/advertisers/{advertiser-id}/ads: + get: + description: Get the list of self-services Ads for a given advertiser + operationId: GetAdvertiserAds + parameters: + - description: The advertiser identifier. + explode: false + in: path + name: advertiser-id + required: true schema: type: string style: simple + - description: The number of ads to be returned. The default is 50. + explode: true + in: query + name: limit + required: false + schema: + format: int32 + type: integer + style: form + - description: The (zero-based) offset into the collection of ads. The default + is 0. + explode: true + in: query + name: offset + required: false + schema: + format: int32 + type: integer + style: form responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/AdListResponse' application/json: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/AdListResponse' text/json: schema: - $ref: '#/components/schemas/CreativeResponse' - description: The found creative is returned. + $ref: '#/components/schemas/AdListResponse' + description: The list of self-services Ads is returned. "400": content: text/plain: {} @@ -2092,14 +2031,14 @@ paths: tags: - Creative x-accepts: application/json - put: - description: Edit a specific Creative - operationId: EditCreative + post: + description: Create an Ad + operationId: CreateAdvertiserAd parameters: - - description: The creative identifier to edit. + - description: The advertiser identifier. explode: false in: path - name: id + name: advertiser-id required: true schema: type: string @@ -2108,31 +2047,31 @@ paths: content: application/json-patch+json: schema: - $ref: '#/components/schemas/CreativeWriteRequest' + $ref: '#/components/schemas/AdWriteRequest' application/json: schema: - $ref: '#/components/schemas/CreativeWriteRequest' + $ref: '#/components/schemas/AdWriteRequest' text/json: schema: - $ref: '#/components/schemas/CreativeWriteRequest' + $ref: '#/components/schemas/AdWriteRequest' application/*+json: schema: - $ref: '#/components/schemas/CreativeWriteRequest' + $ref: '#/components/schemas/AdWriteRequest' required: true x-bodyName: request responses: - "200": + "201": content: text/plain: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/AdResponse' application/json: schema: - $ref: '#/components/schemas/CreativeResponse' + $ref: '#/components/schemas/AdResponse' text/json: schema: - $ref: '#/components/schemas/CreativeResponse' - description: The edited creative is returned. + $ref: '#/components/schemas/AdResponse' + description: The created Ad is returned. "400": content: text/plain: {} @@ -2155,32 +2094,33 @@ paths: - Creative x-content-type: application/json-patch+json x-accepts: application/json - /preview/creatives/{id}/preview: - post: - description: Generate a preview of a specific Creative - operationId: GenerateCreativePreview + /preview/advertisers/{advertiser-id}/coupons: + get: + description: Get the list of self-services Coupons for a given advertiser + operationId: GetAdvertiserCoupons parameters: - - description: The Creative identifier to preview. + - description: The advertiser identifier. explode: false in: path - name: id + name: advertiser-id required: true schema: type: string style: simple - - description: The width of the Creative to preview. + - description: The number of coupons to be returned. The default is 50. explode: true in: query - name: width + name: limit required: false schema: format: int32 type: integer style: form - - description: The height of the Creative to preview. + - description: The (zero-based) offset into the collection of coupons. The default + is 0. explode: true in: query - name: height + name: offset required: false schema: format: int32 @@ -2189,35 +2129,34 @@ paths: responses: "200": content: - text/html: + text/plain: schema: - type: string + $ref: '#/components/schemas/CouponListResponse' application/json: schema: - type: string + $ref: '#/components/schemas/CouponListResponse' text/json: schema: - type: string - description: The preview HTML of a specific Creative is returned. + $ref: '#/components/schemas/CouponListResponse' + description: The list of self-services Coupons is returned. "400": content: - text/html: {} + text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. "403": content: - text/html: {} + text/plain: {} application/json: {} text/json: {} description: The request was not properly authorized. tags: - Creative x-accepts: application/json - /preview/advertisers/{advertiser-id}/ads: - get: - description: Get the list of self-services Ads for a given advertiser - operationId: GetAdvertiserAds + post: + description: Create a Coupon + operationId: CreateAdvertiserCoupon parameters: - description: The advertiser identifier. explode: false @@ -2227,62 +2166,55 @@ paths: schema: type: string style: simple - - description: The number of ads to be returned. The default is 50. - explode: true - in: query - name: limit - required: false - schema: - format: int32 - type: integer - style: form - - description: The (zero-based) offset into the collection of ads. The default - is 0. - explode: true - in: query - name: offset - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/CreateCouponRequest' + application/json: + schema: + $ref: '#/components/schemas/CreateCouponRequest' + text/json: + schema: + $ref: '#/components/schemas/CreateCouponRequest' + application/*+json: + schema: + $ref: '#/components/schemas/CreateCouponRequest' + required: true + x-bodyName: request responses: - "200": + "201": content: text/plain: schema: - $ref: '#/components/schemas/AdListResponse' + $ref: '#/components/schemas/CouponResponse' application/json: schema: - $ref: '#/components/schemas/AdListResponse' + $ref: '#/components/schemas/CouponResponse' text/json: schema: - $ref: '#/components/schemas/AdListResponse' - description: The list of self-services Ads is returned. + $ref: '#/components/schemas/CouponResponse' + description: The created Coupon is returned. "400": content: text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. - "401": + "403": content: text/plain: {} application/json: {} text/json: {} description: The request was not properly authorized. - "500": - content: - text/plain: {} - application/json: {} - text/json: {} - description: A non-request based error occurred on the server. tags: - Creative + x-content-type: application/json-patch+json x-accepts: application/json - post: - description: Create an Ad - operationId: CreateAdvertiserAd + /preview/advertisers/{advertiser-id}/coupons-supported-sizes: + get: + description: Get the list of Coupon supported sizes + operationId: GetAdvertiserCouponSupportedSizes parameters: - description: The advertiser identifier. explode: false @@ -2292,134 +2224,125 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/AdWriteRequest' - application/json: - schema: - $ref: '#/components/schemas/AdWriteRequest' - text/json: - schema: - $ref: '#/components/schemas/AdWriteRequest' - application/*+json: - schema: - $ref: '#/components/schemas/AdWriteRequest' - required: true - x-bodyName: request + - description: The ad set id on which you want to check the Coupon supported + sizes. + explode: true + in: query + name: ad-set-id + required: false + schema: + type: string + style: form responses: - "201": + "200": content: text/plain: schema: - $ref: '#/components/schemas/AdResponse' + $ref: '#/components/schemas/CouponSupportedSizesResponse' application/json: schema: - $ref: '#/components/schemas/AdResponse' + $ref: '#/components/schemas/CouponSupportedSizesResponse' text/json: schema: - $ref: '#/components/schemas/AdResponse' - description: The created Ad is returned. + $ref: '#/components/schemas/CouponSupportedSizesResponse' + description: The list of Coupon supported sizes is returned. "400": content: text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. - "401": + "403": content: text/plain: {} application/json: {} text/json: {} description: The request was not properly authorized. - "500": - content: - text/plain: {} - application/json: {} - text/json: {} - description: A non-request based error occurred on the server. tags: - Creative - x-content-type: application/json-patch+json x-accepts: application/json - /preview/ads/{id}: + /preview/advertisers/{advertiser-id}/coupons/{id}: delete: - description: Delete an Ad - operationId: DeleteAd + description: Delete a Coupon + operationId: DeleteAdvertiserCoupon parameters: - - description: The ad identifier to delete. + - description: The advertiser identifier. + explode: false + in: path + name: advertiser-id + required: true + schema: + type: string + style: simple + - description: The Coupon identifier to delete. explode: false in: path name: id required: true schema: - format: int32 - type: integer + type: string style: simple responses: "204": - description: The ad was deleted. + description: The Coupon was deleted. "400": description: The request contained invalid parameters. - "401": + "403": description: The request was not properly authorized. - "500": - description: A non-request based error occurred on the server. tags: - Creative x-accepts: application/json get: - description: Get an Ad from its id - operationId: GetAd + description: Get a Coupon from its id + operationId: GetAdvertiserCoupon parameters: - - description: The ad identifier to retrieve. + - description: The advertiser identifier. + explode: false + in: path + name: advertiser-id + required: true + schema: + type: string + style: simple + - description: The Coupon identifier to retrieve. explode: false in: path name: id required: true schema: - format: int32 - type: integer + type: string style: simple responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/AdResponse' + $ref: '#/components/schemas/CouponResponse' application/json: schema: - $ref: '#/components/schemas/AdResponse' + $ref: '#/components/schemas/CouponResponse' text/json: schema: - $ref: '#/components/schemas/AdResponse' - description: The found ad is returned. + $ref: '#/components/schemas/CouponResponse' + description: The found Coupon is returned. "400": content: text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. - "401": + "403": content: text/plain: {} application/json: {} text/json: {} description: The request was not properly authorized. - "500": - content: - text/plain: {} - application/json: {} - text/json: {} - description: A non-request based error occurred on the server. tags: - Creative x-accepts: application/json - /preview/advertisers/{advertiser-id}/coupons: - get: - description: Get the list of self-services Coupons for a given advertiser - operationId: GetAdvertiserCoupons + put: + description: Edit a specific Coupon + operationId: EditAdvertiserCoupon parameters: - description: The advertiser identifier. explode: false @@ -2429,56 +2352,57 @@ paths: schema: type: string style: simple - - description: The number of coupons to be returned. The default is 50. - explode: true - in: query - name: limit - required: false - schema: - format: int32 - type: integer - style: form - - description: The (zero-based) offset into the collection of coupons. The default - is 0. - explode: true - in: query - name: offset - required: false + - description: The Coupon identifier to edit. + explode: false + in: path + name: id + required: true schema: - format: int32 - type: integer - style: form + type: string + style: simple + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/UpdateCouponRequest' + application/json: + schema: + $ref: '#/components/schemas/UpdateCouponRequest' + text/json: + schema: + $ref: '#/components/schemas/UpdateCouponRequest' + application/*+json: + schema: + $ref: '#/components/schemas/UpdateCouponRequest' + required: true + x-bodyName: request responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/CouponListResponse' + $ref: '#/components/schemas/CouponResponse' application/json: schema: - $ref: '#/components/schemas/CouponListResponse' + $ref: '#/components/schemas/CouponResponse' text/json: schema: - $ref: '#/components/schemas/CouponListResponse' - description: The list of self-services Coupons is returned. + $ref: '#/components/schemas/CouponResponse' + description: The edited Coupon is returned. "400": content: text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. - "403": - content: - text/plain: {} - application/json: {} - text/json: {} - description: The request was not properly authorized. tags: - Creative + x-content-type: application/json-patch+json x-accepts: application/json - post: - description: Create a Coupon - operationId: CreateAdvertiserCoupon + /preview/advertisers/{advertiser-id}/coupons/{id}/preview: + get: + description: Get the preview of a specific Coupon + operationId: GetAdvertiserCouponPreview parameters: - description: The advertiser identifier. explode: false @@ -2488,85 +2412,64 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/CreateCouponRequest' - application/json: - schema: - $ref: '#/components/schemas/CreateCouponRequest' - text/json: - schema: - $ref: '#/components/schemas/CreateCouponRequest' - application/*+json: - schema: - $ref: '#/components/schemas/CreateCouponRequest' + - description: The Coupon identifier to preview. + explode: false + in: path + name: id required: true - x-bodyName: request + schema: + type: string + style: simple + - description: The width of the coupon to preview. + explode: true + in: query + name: width + required: false + schema: + format: int32 + type: integer + style: form + - description: The height of the coupon to preview. + explode: true + in: query + name: height + required: false + schema: + format: int32 + type: integer + style: form responses: - "201": + "200": content: - text/plain: + text/html: schema: - $ref: '#/components/schemas/CouponResponse' + type: string application/json: schema: - $ref: '#/components/schemas/CouponResponse' + type: string text/json: schema: - $ref: '#/components/schemas/CouponResponse' - description: The created Coupon is returned. + type: string + description: The preview HTML of a specific Coupon is returned. "400": content: - text/plain: {} + text/html: {} application/json: {} text/json: {} description: The request contained invalid parameters. "403": content: - text/plain: {} + text/html: {} application/json: {} text/json: {} description: The request was not properly authorized. tags: - Creative - x-content-type: application/json-patch+json - x-accepts: application/json - /preview/advertisers/{advertiser-id}/coupons/{id}: - delete: - description: Delete a Coupon - operationId: DeleteAdvertiserCoupon - parameters: - - description: The advertiser identifier. - explode: false - in: path - name: advertiser-id - required: true - schema: - type: string - style: simple - - description: The Coupon identifier to delete. - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "204": - description: The Coupon was deleted. - "400": - description: The request contained invalid parameters. - "403": - description: The request was not properly authorized. - tags: - - Creative x-accepts: application/json + /preview/advertisers/{advertiser-id}/creatives: get: - description: Get a Coupon from its id - operationId: GetAdvertiserCoupon + description: Get the list of self-services Creatives for a given advertiser + operationId: GetAdvertiserCreatives parameters: - description: The advertiser identifier. explode: false @@ -2576,45 +2479,62 @@ paths: schema: type: string style: simple - - description: The Coupon identifier to retrieve. - explode: false - in: path - name: id - required: true + - description: The number of creatives to be returned. The default is 50. + explode: true + in: query + name: limit + required: false schema: - type: string - style: simple + format: int32 + type: integer + style: form + - description: The (zero-based) offset into the collection of creatives. The + default is 0. + explode: true + in: query + name: offset + required: false + schema: + format: int32 + type: integer + style: form responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/CouponResponse' + $ref: '#/components/schemas/CreativeListResponse' application/json: schema: - $ref: '#/components/schemas/CouponResponse' + $ref: '#/components/schemas/CreativeListResponse' text/json: schema: - $ref: '#/components/schemas/CouponResponse' - description: The found Coupon is returned. + $ref: '#/components/schemas/CreativeListResponse' + description: The list of self-services Creatives is returned. "400": content: text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. - "403": + "401": content: text/plain: {} application/json: {} text/json: {} description: The request was not properly authorized. + "500": + content: + text/plain: {} + application/json: {} + text/json: {} + description: A non-request based error occurred on the server. tags: - Creative x-accepts: application/json - put: - description: Edit a specific Coupon - operationId: EditAdvertiserCoupon + post: + description: Create a Creative + operationId: CreateAdvertiserCreative parameters: - description: The advertiser identifier. explode: false @@ -2624,67 +2544,87 @@ paths: schema: type: string style: simple - - description: The Coupon identifier to edit. - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/UpdateCouponRequest' + $ref: '#/components/schemas/CreativeWriteRequest' application/json: schema: - $ref: '#/components/schemas/UpdateCouponRequest' + $ref: '#/components/schemas/CreativeWriteRequest' text/json: schema: - $ref: '#/components/schemas/UpdateCouponRequest' + $ref: '#/components/schemas/CreativeWriteRequest' application/*+json: schema: - $ref: '#/components/schemas/UpdateCouponRequest' + $ref: '#/components/schemas/CreativeWriteRequest' required: true x-bodyName: request responses: - "200": + "201": content: text/plain: schema: - $ref: '#/components/schemas/CouponResponse' + $ref: '#/components/schemas/CreativeResponse' application/json: schema: - $ref: '#/components/schemas/CouponResponse' + $ref: '#/components/schemas/CreativeResponse' text/json: schema: - $ref: '#/components/schemas/CouponResponse' - description: The edited Coupon is returned. + $ref: '#/components/schemas/CreativeResponse' + description: The created creative is returned. "400": content: text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. + "401": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request was not properly authorized. + "500": + content: + text/plain: {} + application/json: {} + text/json: {} + description: A non-request based error occurred on the server. tags: - Creative x-content-type: application/json-patch+json x-accepts: application/json - /preview/advertisers/{advertiser-id}/coupons/{id}/preview: - get: - description: Get the preview of a specific Coupon - operationId: GetAdvertiserCouponPreview + /preview/creatives/{id}: + delete: + description: Delete a Creative if there are no ads binded to it + operationId: DeleteCreative parameters: - - description: The advertiser identifier. + - description: The creative identifier to delete. explode: false in: path - name: advertiser-id + name: id required: true schema: type: string style: simple - - description: The Coupon identifier to preview. + responses: + "204": + description: The creative was deleted. + "400": + description: The request contained invalid parameters. + "401": + description: The request was not properly authorized. + "500": + description: A non-request based error occurred on the server. + tags: + - Creative + x-accepts: application/json + get: + description: Get a Creative from its id + operationId: GetCreative + parameters: + - description: The creative identifier to retrieve. explode: false in: path name: id @@ -2692,123 +2632,182 @@ paths: schema: type: string style: simple - - description: The width of the coupon to preview. - explode: true - in: query - name: width - required: false - schema: - format: int32 - type: integer - style: form - - description: The height of the coupon to preview. - explode: true - in: query - name: height - required: false - schema: - format: int32 - type: integer - style: form responses: "200": content: - text/html: + text/plain: schema: - type: string + $ref: '#/components/schemas/CreativeResponse' application/json: schema: - type: string + $ref: '#/components/schemas/CreativeResponse' text/json: schema: - type: string - description: The preview HTML of a specific Coupon is returned. + $ref: '#/components/schemas/CreativeResponse' + description: The found creative is returned. "400": content: - text/html: {} + text/plain: {} application/json: {} text/json: {} description: The request contained invalid parameters. - "403": + "401": content: - text/html: {} + text/plain: {} application/json: {} text/json: {} description: The request was not properly authorized. + "500": + content: + text/plain: {} + application/json: {} + text/json: {} + description: A non-request based error occurred on the server. tags: - Creative x-accepts: application/json - /preview/advertisers/{advertiser-id}/coupons-supported-sizes: - get: - description: Get the list of Coupon supported sizes - operationId: GetAdvertiserCouponSupportedSizes + put: + description: Edit a specific Creative + operationId: EditCreative parameters: - - description: The advertiser identifier. + - description: The creative identifier to edit. explode: false in: path - name: advertiser-id + name: id required: true schema: type: string style: simple - - description: The ad set id on which you want to check the Coupon supported - sizes. + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/CreativeWriteRequest' + application/json: + schema: + $ref: '#/components/schemas/CreativeWriteRequest' + text/json: + schema: + $ref: '#/components/schemas/CreativeWriteRequest' + application/*+json: + schema: + $ref: '#/components/schemas/CreativeWriteRequest' + required: true + x-bodyName: request + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/CreativeResponse' + application/json: + schema: + $ref: '#/components/schemas/CreativeResponse' + text/json: + schema: + $ref: '#/components/schemas/CreativeResponse' + description: The edited creative is returned. + "400": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request contained invalid parameters. + "401": + content: + text/plain: {} + application/json: {} + text/json: {} + description: The request was not properly authorized. + "500": + content: + text/plain: {} + application/json: {} + text/json: {} + description: A non-request based error occurred on the server. + tags: + - Creative + x-content-type: application/json-patch+json + x-accepts: application/json + /preview/creatives/{id}/preview: + post: + description: Generate a preview of a specific Creative + operationId: GenerateCreativePreview + parameters: + - description: The Creative identifier to preview. + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The width of the Creative to preview. explode: true in: query - name: ad-set-id + name: width required: false schema: - type: string + format: int32 + type: integer + style: form + - description: The height of the Creative to preview. + explode: true + in: query + name: height + required: false + schema: + format: int32 + type: integer style: form responses: "200": content: - text/plain: + text/html: schema: - $ref: '#/components/schemas/CouponSupportedSizesResponse' + type: string application/json: schema: - $ref: '#/components/schemas/CouponSupportedSizesResponse' + type: string text/json: schema: - $ref: '#/components/schemas/CouponSupportedSizesResponse' - description: The list of Coupon supported sizes is returned. + type: string + description: The preview HTML of a specific Creative is returned. "400": content: - text/plain: {} + text/html: {} application/json: {} text/json: {} description: The request contained invalid parameters. "403": content: - text/plain: {} + text/html: {} application/json: {} text/json: {} description: The request was not properly authorized. tags: - Creative x-accepts: application/json - /preview/statistics/report: + /preview/categories/report: 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: With this endpoint you can analyse what are the categories of the + placements' domains your ads are placed in. + operationId: GetCategoriesReport requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/StatisticsReportQueryMessage' + $ref: '#/components/schemas/GenerateCategoriesReportRequest' application/json: schema: - $ref: '#/components/schemas/StatisticsReportQueryMessage' + $ref: '#/components/schemas/GenerateCategoriesReportRequest' text/json: schema: - $ref: '#/components/schemas/StatisticsReportQueryMessage' + $ref: '#/components/schemas/GenerateCategoriesReportRequest' application/*+json: schema: - $ref: '#/components/schemas/StatisticsReportQueryMessage' - x-bodyName: reportQuery + $ref: '#/components/schemas/GenerateCategoriesReportRequest' + x-bodyName: dataMessage responses: "200": content: @@ -2842,12 +2841,15 @@ paths: application/json: example: errors: - - traceId: b7888125-dddb-c94e-9240-eb930c4ea146 + - traceId: 1234e1717d88aa8a traceIdentifier: 1234e1717d88aa8a type: validation code: required-field - instance: /report + instance: "" title: Start date and end date are required. + detail: "" + source: {} + stackTrace: "" schema: $ref: '#/components/schemas/ProblemsDetails' text/plain: @@ -2871,13 +2873,15 @@ paths: application/json: example: errors: - - traceId: b7888125-dddb-c94e-9240-eb930c4ea146 + - traceId: 1234e1717d88aa8a 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. + type: validation + code: required-field + instance: "" + title: Start date and end date are required. + detail: "" + source: {} + stackTrace: "" schema: $ref: '#/components/schemas/ProblemsDetails' text/plain: @@ -2900,52 +2904,56 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /preview/transactions/report: + /preview/log-level/advertisers/{advertiser-id}/report: post: - description: This Transactions endpoint provides transactions id related data. - operationId: GetTransactionsReport + 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/TransactionsReportQueryDataMessage' + $ref: '#/components/schemas/TransparencyQueryMessage' application/json: schema: - $ref: '#/components/schemas/TransactionsReportQueryDataMessage' + $ref: '#/components/schemas/TransparencyQueryMessage' text/json: schema: - $ref: '#/components/schemas/TransactionsReportQueryDataMessage' + $ref: '#/components/schemas/TransparencyQueryMessage' application/*+json: schema: - $ref: '#/components/schemas/TransactionsReportQueryDataMessage' - x-bodyName: dataMessage + $ref: '#/components/schemas/TransparencyQueryMessage' + x-bodyName: queryMessage responses: "200": content: - text/plain: - schema: - format: byte - type: string 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/json: - schema: - format: byte - type: string - text/csv: - 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: @@ -2966,15 +2974,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: @@ -2996,15 +2995,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: Forbidden tags: - Analytics @@ -3093,68 +3083,53 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /preview/log-level/advertisers/{advertiser-id}/report: + /preview/reports/async-audience-performance: 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 an export Id that lets you retrieve + data. + operationId: GetAsyncAudienceReport requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/TransparencyQueryMessage' + $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequest' application/json: schema: - $ref: '#/components/schemas/TransparencyQueryMessage' + $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequest' text/json: schema: - $ref: '#/components/schemas/TransparencyQueryMessage' + $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequest' application/*+json: schema: - $ref: '#/components/schemas/TransparencyQueryMessage' - x-bodyName: queryMessage + $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequest' + x-bodyName: dataMessage responses: - "200": + "202": content: + text/plain: + schema: + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' 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' + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' text/json: schema: - $ref: '#/components/schemas/TransparencyReportDataMessage' + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' description: Success "400": content: application/json: example: errors: - - traceId: b7888125-dddb-c94e-9240-eb930c4ea146 + - traceId: 1234e1717d88aa8a traceIdentifier: 1234e1717d88aa8a type: validation code: required-field - instance: /report + instance: "" title: Start date and end date are required. + detail: "" + source: {} + stackTrace: "" schema: $ref: '#/components/schemas/ProblemsDetails' text/plain: @@ -3169,13 +3144,15 @@ paths: application/json: example: errors: - - traceId: b7888125-dddb-c94e-9240-eb930c4ea146 + - traceId: 1234e1717d88aa8a 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. + type: validation + code: required-field + instance: "" + title: Start date and end date are required. + detail: "" + source: {} + stackTrace: "" schema: $ref: '#/components/schemas/ProblemsDetails' text/plain: @@ -3189,53 +3166,38 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /preview/categories/report: + /preview/reports/async-statistics: post: - description: With this endpoint you can analyse what are the categories of the - placements' domains your ads are placed in. - operationId: GetCategoriesReport + description: This Statistics endpoint provides an export Id that let you retrieve + data. + operationId: GetAsyncAdsetReport requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/GenerateCategoriesReportRequest' + $ref: '#/components/schemas/GenerateStatisticsReportRequest' application/json: schema: - $ref: '#/components/schemas/GenerateCategoriesReportRequest' + $ref: '#/components/schemas/GenerateStatisticsReportRequest' text/json: schema: - $ref: '#/components/schemas/GenerateCategoriesReportRequest' + $ref: '#/components/schemas/GenerateStatisticsReportRequest' application/*+json: schema: - $ref: '#/components/schemas/GenerateCategoriesReportRequest' + $ref: '#/components/schemas/GenerateStatisticsReportRequest' x-bodyName: dataMessage responses: - "200": + "202": content: text/plain: schema: - format: byte - type: string + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' application/json: schema: - format: byte - type: string + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' 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 + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' description: Success "400": content: @@ -3259,15 +3221,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: @@ -3291,39 +3244,30 @@ 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 - /preview/reports/top-products: + /preview/reports/creatives: post: - description: "With the topProducts endpoint, you can analyse the performances\ - \ for each publisher, by top displays, top clicks or top sales." - operationId: GetTopProductsReport + description: "With Creatives endpoint, you can analyse the daily performances\ + \ of your creatives on the main metrics: clicks, ctr, displays." + operationId: GetCreativesReport requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/GenerateTopProductsReportRequest' + $ref: '#/components/schemas/GenerateCreativesReportRequest' application/json: schema: - $ref: '#/components/schemas/GenerateTopProductsReportRequest' + $ref: '#/components/schemas/GenerateCreativesReportRequest' text/json: schema: - $ref: '#/components/schemas/GenerateTopProductsReportRequest' + $ref: '#/components/schemas/GenerateCreativesReportRequest' application/*+json: schema: - $ref: '#/components/schemas/GenerateTopProductsReportRequest' + $ref: '#/components/schemas/GenerateCreativesReportRequest' x-bodyName: dataMessage responses: "200": @@ -3388,25 +3332,25 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /preview/reports/creatives: + /preview/reports/top-products: post: - description: "With Creatives endpoint, you can analyse the daily performances\ - \ of your creatives on the main metrics: clicks, ctr, displays." - operationId: GetCreativesReport + description: "With the topProducts endpoint, you can analyse the performances\ + \ for each publisher, by top displays, top clicks or top sales." + operationId: GetTopProductsReport requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/GenerateCreativesReportRequest' + $ref: '#/components/schemas/GenerateTopProductsReportRequest' application/json: schema: - $ref: '#/components/schemas/GenerateCreativesReportRequest' + $ref: '#/components/schemas/GenerateTopProductsReportRequest' text/json: schema: - $ref: '#/components/schemas/GenerateCreativesReportRequest' + $ref: '#/components/schemas/GenerateTopProductsReportRequest' application/*+json: schema: - $ref: '#/components/schemas/GenerateCreativesReportRequest' + $ref: '#/components/schemas/GenerateTopProductsReportRequest' x-bodyName: dataMessage responses: "200": @@ -3471,53 +3415,136 @@ paths: - Analytics x-content-type: application/json-patch+json x-accepts: application/json - /preview/reports/async-statistics: + /preview/reports/{report-id}/output: + get: + description: This endpoint gives you the output of the report. + operationId: GetAsyncExportOutput + parameters: + - description: Id of the report + explode: false + in: path + name: report-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/ExportResult' + application/json: + schema: + $ref: '#/components/schemas/ExportResult' + text/json: + schema: + $ref: '#/components/schemas/ExportResult' + description: Success + tags: + - Analytics + x-accepts: application/json + /preview/reports/{report-id}/status: + get: + description: This endpoint gives you the status of the report. + operationId: GetAsyncExportStatus + parameters: + - description: Id of the report + explode: false + in: path + name: report-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + application/json: + schema: + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + text/json: + schema: + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + description: Success + "303": + content: + text/plain: + schema: + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + application/json: + schema: + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + text/json: + schema: + $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + description: Redirect + tags: + - Analytics + x-accepts: application/json + /preview/statistics/report: post: - description: This Statistics endpoint provides an export Id that let you retrieve - data. - operationId: GetAsyncAdsetReport + 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/GenerateStatisticsReportRequest' + $ref: '#/components/schemas/StatisticsReportQueryMessage' application/json: schema: - $ref: '#/components/schemas/GenerateStatisticsReportRequest' + $ref: '#/components/schemas/StatisticsReportQueryMessage' text/json: schema: - $ref: '#/components/schemas/GenerateStatisticsReportRequest' + $ref: '#/components/schemas/StatisticsReportQueryMessage' application/*+json: schema: - $ref: '#/components/schemas/GenerateStatisticsReportRequest' - x-bodyName: dataMessage + $ref: '#/components/schemas/StatisticsReportQueryMessage' + x-bodyName: reportQuery responses: - "202": + "200": content: text/plain: schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + format: byte + type: string application/json: schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + format: byte + type: string text/json: schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + 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: application/json: example: errors: - - traceId: 1234e1717d88aa8a + - traceId: b7888125-dddb-c94e-9240-eb930c4ea146 traceIdentifier: 1234e1717d88aa8a type: validation code: required-field - instance: "" + instance: /report title: Start date and end date are required. - detail: "" - source: {} - stackTrace: "" schema: $ref: '#/components/schemas/ProblemsDetails' text/plain: @@ -3526,21 +3553,28 @@ 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: application/json: example: errors: - - traceId: 1234e1717d88aa8a + - traceId: b7888125-dddb-c94e-9240-eb930c4ea146 traceIdentifier: 1234e1717d88aa8a - type: validation - code: required-field - instance: "" - title: Start date and end date are required. - detail: "" - source: {} - stackTrace: "" + 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: @@ -3549,58 +3583,78 @@ 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 - /preview/reports/async-audience-performance: + /preview/transactions/report: post: - description: This Statistics endpoint provides an export Id that lets you retrieve - data. - operationId: GetAsyncAudienceReport + description: This Transactions endpoint provides transactions id related data. + operationId: GetTransactionsReport requestBody: content: application/json-patch+json: schema: - $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequest' + $ref: '#/components/schemas/TransactionsReportQueryDataMessage' application/json: schema: - $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequest' + $ref: '#/components/schemas/TransactionsReportQueryDataMessage' text/json: schema: - $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequest' + $ref: '#/components/schemas/TransactionsReportQueryDataMessage' application/*+json: schema: - $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequest' + $ref: '#/components/schemas/TransactionsReportQueryDataMessage' x-bodyName: dataMessage responses: - "202": + "200": content: text/plain: schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + format: byte + type: string application/json: schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + format: byte + type: string text/json: schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + 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: application/json: example: errors: - - traceId: 1234e1717d88aa8a + - traceId: b7888125-dddb-c94e-9240-eb930c4ea146 traceIdentifier: 1234e1717d88aa8a type: validation code: required-field - instance: "" + instance: /report title: Start date and end date are required. - detail: "" - source: {} - stackTrace: "" schema: $ref: '#/components/schemas/ProblemsDetails' text/plain: @@ -3609,21 +3663,28 @@ 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: application/json: example: errors: - - traceId: 1234e1717d88aa8a + - traceId: b7888125-dddb-c94e-9240-eb930c4ea146 traceIdentifier: 1234e1717d88aa8a - type: validation - code: required-field - instance: "" - title: Start date and end date are required. - detail: "" - source: {} - stackTrace: "" + 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: @@ -3632,80 +3693,52 @@ 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 - /preview/reports/{report-id}/status: + /preview/marketing-solutions/ad-sets/targeting/supply-vendors: get: - description: This endpoint gives you the status of the report. - operationId: GetAsyncExportStatus - parameters: - - description: Id of the report - explode: false - in: path - name: report-id - required: true - schema: - type: string - style: simple + description: Fetch the list of available supply vendors for any Ad Set targetings + operationId: GetSupplyVendorList responses: "200": content: text/plain: schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + $ref: '#/components/schemas/SupplyVendorListResponse' application/json: schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' + $ref: '#/components/schemas/SupplyVendorListResponse' text/json: schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' - description: Success - "303": + $ref: '#/components/schemas/SupplyVendorListResponse' + description: the errors/warnings if any + "401": content: - text/plain: - schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' - application/json: - schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' - text/json: - schema: - $ref: '#/components/schemas/MarketingSolutionsReportStatusResponse' - description: Redirect - tags: - - Analytics - x-accepts: application/json - /preview/reports/{report-id}/output: - get: - description: This endpoint gives you the output of the report. - operationId: GetAsyncExportOutput - parameters: - - description: Id of the report - explode: false - in: path - name: report-id - required: true - schema: - type: string - style: simple - responses: - "200": + text/plain: {} + application/json: {} + text/json: {} + description: The API client is not properly authenticated. + "403": content: - text/plain: - schema: - $ref: '#/components/schemas/ExportResult' - application/json: - schema: - $ref: '#/components/schemas/ExportResult' - text/json: - schema: - $ref: '#/components/schemas/ExportResult' - description: Success + text/plain: {} + application/json: {} + text/json: {} + description: The API client is not authorized to access this resource or + the resource does not exist. tags: - - Analytics + - Campaign x-accepts: application/json /preview/marketing-solutions/ad-sets/{ad-set-id}/targeting/deal-ids: get: @@ -4021,87 +4054,6 @@ paths: tags: - Campaign x-accepts: application/json - /preview/marketing-solutions/ad-sets/targeting/supply-vendors: - get: - description: Fetch the list of available supply vendors for any Ad Set targetings - operationId: GetSupplyVendorList - responses: - "200": - content: - text/plain: - schema: - $ref: '#/components/schemas/SupplyVendorListResponse' - application/json: - schema: - $ref: '#/components/schemas/SupplyVendorListResponse' - text/json: - schema: - $ref: '#/components/schemas/SupplyVendorListResponse' - description: the errors/warnings if any - "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 - /preview/advertisers/me: - get: - description: Fetch the portfolio of Advertisers for this account - operationId: ApiPortfolioGet - responses: - "200": - content: - application/json: - example: - data: - - type: advertiser - id: "13" - attributes: - advertiserName: ClientName1 - - type: advertiser - id: "1352" - attributes: - advertiserName: ClientName2 - - type: advertiser - id: "73550" - attributes: - advertiserName: ClientName3 - errors: [] - warnings: [] - schema: - $ref: '#/components/schemas/GetPortfolioResponse' - text/plain: - schema: - $ref: '#/components/schemas/GetPortfolioResponse' - text/json: - schema: - $ref: '#/components/schemas/GetPortfolioResponse' - description: Success - "401": - content: - text/plain: - schema: - $ref: '#/components/schemas/GetPortfolioResponse' - application/json: - schema: - $ref: '#/components/schemas/GetPortfolioResponse' - text/json: - schema: - $ref: '#/components/schemas/GetPortfolioResponse' - description: Unauthorized - tags: - - Advertiser - x-accepts: application/json /preview/advertisers: post: description: Create a new advertiser based on provided parameters. This could @@ -4207,33 +4159,51 @@ paths: - Advertiser x-content-type: application/json-patch+json x-accepts: application/json - /preview/industries: + /preview/advertisers/me: get: - description: Returns the list of available industries for new advertisers. - operationId: listIndustries + description: Fetch the portfolio of Advertisers for this account + operationId: ApiPortfolioGet responses: "200": content: application/json: example: data: - - type: industry + - type: advertiser id: "13" - - type: industry + attributes: + advertiserName: ClientName1 + - type: advertiser id: "1352" - - type: industry + attributes: + advertiserName: ClientName2 + - type: advertiser id: "73550" + attributes: + advertiserName: ClientName3 errors: [] warnings: [] schema: - $ref: '#/components/schemas/ListAvailableIndustriesResponse' + $ref: '#/components/schemas/GetPortfolioResponse' text/plain: schema: - $ref: '#/components/schemas/ListAvailableIndustriesResponse' + $ref: '#/components/schemas/GetPortfolioResponse' text/json: schema: - $ref: '#/components/schemas/ListAvailableIndustriesResponse' + $ref: '#/components/schemas/GetPortfolioResponse' description: Success + "401": + content: + text/plain: + schema: + $ref: '#/components/schemas/GetPortfolioResponse' + application/json: + schema: + $ref: '#/components/schemas/GetPortfolioResponse' + text/json: + schema: + $ref: '#/components/schemas/GetPortfolioResponse' + description: Unauthorized tags: - Advertiser x-accepts: application/json @@ -4310,6 +4280,36 @@ paths: tags: - Advertiser x-accepts: application/json + /preview/industries: + get: + description: Returns the list of available industries for new advertisers. + operationId: listIndustries + responses: + "200": + content: + application/json: + example: + data: + - type: industry + id: "13" + - type: industry + id: "1352" + - type: industry + id: "73550" + errors: [] + warnings: [] + schema: + $ref: '#/components/schemas/ListAvailableIndustriesResponse' + text/plain: + schema: + $ref: '#/components/schemas/ListAvailableIndustriesResponse' + text/json: + schema: + $ref: '#/components/schemas/ListAvailableIndustriesResponse' + description: Success + tags: + - Advertiser + x-accepts: application/json /preview/catalog/stats/merchants/{merchant-id}: get: description: get an stats request @@ -4518,21 +4518,39 @@ paths: tags: - Catalog x-accepts: application/json - /preview/product-sets/{product-set-id}: - delete: - description: Remove a product set - operationId: RemoveProductSet - parameters: - - description: ID of the product set to remove - explode: false - in: path - name: product-set-id - required: true - schema: - type: string - style: simple + /preview/product-sets: + post: + description: Create a new product set + operationId: CreateProductSet + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfCreateProductSetRequest' + application/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfCreateProductSetRequest' + text/json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfCreateProductSetRequest' + application/*+json: + schema: + $ref: '#/components/schemas/ValueResourceInputOfCreateProductSetRequest' + x-bodyName: request responses: - "204": + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/ResourceOutcomeOfProductSet' + application/json: + schema: + $ref: '#/components/schemas/ResourceOutcomeOfProductSet' + text/json: + schema: + $ref: '#/components/schemas/ResourceOutcomeOfProductSet' + description: Product set created successfully + "400": content: text/plain: schema: @@ -4543,8 +4561,8 @@ paths: text/json: schema: $ref: '#/components/schemas/Outcome' - description: ProductSet removed successfully - "400": + description: Unable to parse the request parameters + "422": content: text/plain: schema: @@ -4555,7 +4573,7 @@ paths: text/json: schema: $ref: '#/components/schemas/Outcome' - description: Request was not valid + description: Cannot process entity content "403": content: text/plain: @@ -4582,15 +4600,17 @@ paths: description: Internal Error tags: - Reco + x-content-type: application/json-patch+json x-accepts: application/json + /preview/product-sets/dataset/{dataset-id}: get: - description: Fetch an existing product set - operationId: FetchProductSet + description: Fetch product sets of a given dataset + operationId: FetchProductSets parameters: - - description: ID of the product set + - description: The ID of the dataset that should be used for product set retrieval explode: false in: path - name: product-set-id + name: dataset-id required: true schema: type: string @@ -4600,14 +4620,14 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ResourceOutcomeOfProductSet' + $ref: '#/components/schemas/ResourceCollectionOutcomeOfProductSet' application/json: schema: - $ref: '#/components/schemas/ResourceOutcomeOfProductSet' + $ref: '#/components/schemas/ResourceCollectionOutcomeOfProductSet' text/json: schema: - $ref: '#/components/schemas/ResourceOutcomeOfProductSet' - description: Product set fetched successfully + $ref: '#/components/schemas/ResourceCollectionOutcomeOfProductSet' + description: Products sets fetched successfully "400": content: text/plain: @@ -4647,39 +4667,21 @@ paths: tags: - Reco x-accepts: application/json - /preview/product-sets: - post: - description: Create a new product set - operationId: CreateProductSet - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfCreateProductSetRequest' - application/json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfCreateProductSetRequest' - text/json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfCreateProductSetRequest' - application/*+json: - schema: - $ref: '#/components/schemas/ValueResourceInputOfCreateProductSetRequest' - x-bodyName: request + /preview/product-sets/{product-set-id}: + delete: + description: Remove a product set + operationId: RemoveProductSet + parameters: + - description: ID of the product set to remove + explode: false + in: path + name: product-set-id + required: true + schema: + type: string + style: simple responses: - "200": - content: - text/plain: - schema: - $ref: '#/components/schemas/ResourceOutcomeOfProductSet' - application/json: - schema: - $ref: '#/components/schemas/ResourceOutcomeOfProductSet' - text/json: - schema: - $ref: '#/components/schemas/ResourceOutcomeOfProductSet' - description: Product set created successfully - "400": + "204": content: text/plain: schema: @@ -4690,8 +4692,8 @@ paths: text/json: schema: $ref: '#/components/schemas/Outcome' - description: Unable to parse the request parameters - "422": + description: ProductSet removed successfully + "400": content: text/plain: schema: @@ -4702,7 +4704,7 @@ paths: text/json: schema: $ref: '#/components/schemas/Outcome' - description: Cannot process entity content + description: Request was not valid "403": content: text/plain: @@ -4729,17 +4731,15 @@ paths: description: Internal Error tags: - Reco - x-content-type: application/json-patch+json x-accepts: application/json - /preview/product-sets/dataset/{dataset-id}: get: - description: Fetch product sets of a given dataset - operationId: FetchProductSets + description: Fetch an existing product set + operationId: FetchProductSet parameters: - - description: The ID of the dataset that should be used for product set retrieval + - description: ID of the product set explode: false in: path - name: dataset-id + name: product-set-id required: true schema: type: string @@ -4749,14 +4749,14 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ResourceCollectionOutcomeOfProductSet' + $ref: '#/components/schemas/ResourceOutcomeOfProductSet' application/json: schema: - $ref: '#/components/schemas/ResourceCollectionOutcomeOfProductSet' + $ref: '#/components/schemas/ResourceOutcomeOfProductSet' text/json: schema: - $ref: '#/components/schemas/ResourceCollectionOutcomeOfProductSet' - description: Products sets fetched successfully + $ref: '#/components/schemas/ResourceOutcomeOfProductSet' + description: Product set fetched successfully "400": content: text/plain: @@ -6743,12 +6743,10 @@ paths: - Campaign x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/set: + /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/delete: post: - description: "This endpoint will Set User Profiles for a given Advertiser. If\ - \ a User Profile does not exist, a new one will be created. If a User Profile\ - \ exists, it will be replaced." - operationId: SetUserProfiles + description: This endpoint will Delete User Profiles for a given Advertiser. + operationId: DeleteUserProfiles parameters: - description: Criteo Advertiser ID of user profiles' owner explode: false @@ -6763,17 +6761,17 @@ paths: content: application/json-patch+json: schema: - $ref: '#/components/schemas/SetUserProfileModelListRequest' + $ref: '#/components/schemas/DeleteUserProfileModelListRequest' application/json: schema: - $ref: '#/components/schemas/SetUserProfileModelListRequest' + $ref: '#/components/schemas/DeleteUserProfileModelListRequest' text/json: schema: - $ref: '#/components/schemas/SetUserProfileModelListRequest' + $ref: '#/components/schemas/DeleteUserProfileModelListRequest' application/*+json: schema: - $ref: '#/components/schemas/SetUserProfileModelListRequest' - x-bodyName: setUserProfileModels + $ref: '#/components/schemas/DeleteUserProfileModelListRequest' + x-bodyName: deleteUserProfileModels responses: "200": content: @@ -6787,10 +6785,12 @@ paths: - Audience x-content-type: application/json-patch+json x-accepts: application/json - /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/delete: + /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/set: post: - description: This endpoint will Delete User Profiles for a given Advertiser. - operationId: DeleteUserProfiles + description: "This endpoint will Set User Profiles for a given Advertiser. If\ + \ a User Profile does not exist, a new one will be created. If a User Profile\ + \ exists, it will be replaced." + operationId: SetUserProfiles parameters: - description: Criteo Advertiser ID of user profiles' owner explode: false @@ -6805,17 +6805,17 @@ paths: content: application/json-patch+json: schema: - $ref: '#/components/schemas/DeleteUserProfileModelListRequest' + $ref: '#/components/schemas/SetUserProfileModelListRequest' application/json: schema: - $ref: '#/components/schemas/DeleteUserProfileModelListRequest' + $ref: '#/components/schemas/SetUserProfileModelListRequest' text/json: schema: - $ref: '#/components/schemas/DeleteUserProfileModelListRequest' + $ref: '#/components/schemas/SetUserProfileModelListRequest' application/*+json: schema: - $ref: '#/components/schemas/DeleteUserProfileModelListRequest' - x-bodyName: deleteUserProfileModels + $ref: '#/components/schemas/SetUserProfileModelListRequest' + x-bodyName: setUserProfileModels responses: "200": content: @@ -6904,20 +6904,6 @@ components: - errors - warnings type: object - ErrorCodeResponse: - description: Definition of the error code - properties: - errors: - items: - $ref: '#/components/schemas/AudienceError' - type: array - warnings: - items: - $ref: '#/components/schemas/AudienceWarning' - type: array - required: - - errors - type: object DeleteAudienceContactListResponse: description: Response of a contactlist deletion example: @@ -6985,23 +6971,20 @@ components: - errors - warnings type: object - ContactlistAmendmentRequest: - description: Request for a contactlist amendment - example: - data: - attributes: - gumCallerId: 0 - identifiers: - - identifiers - - identifiers - identifierType: email - operation: add - type: ContactlistAmendment + ErrorCodeResponse: + description: Definition of the error code properties: - data: - $ref: '#/components/schemas/ContactlistAmendment' + errors: + items: + $ref: '#/components/schemas/AudienceError' + type: array + warnings: + items: + $ref: '#/components/schemas/AudienceWarning' + nullable: true + type: array required: - - data + - errors type: object ContactlistWithAttributesAmendmentRequest: description: Request for a contactlist amendment with user attributes @@ -7032,6 +7015,24 @@ components: required: - data type: object + ContactlistAmendmentRequest: + description: Request for a contactlist amendment + example: + data: + attributes: + gumCallerId: 0 + identifiers: + - identifiers + - identifiers + identifierType: email + operation: add + type: ContactlistAmendment + properties: + data: + $ref: '#/components/schemas/ContactlistAmendment' + required: + - data + type: object ContactlistOperation: description: Response definition of a contactlist operation example: @@ -7073,6 +7074,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 @@ -7096,20 +7098,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 @@ -7133,6 +7139,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 @@ -7156,6 +7163,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 @@ -7164,12 +7172,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 @@ -7198,6 +7208,19 @@ components: - id - type type: object + ContactlistWithAttributesAmendment: + description: Parameters for a contactlist amendment with user attributes + properties: + type: + description: the name of the entity type + example: ContactlistWithUserAttributesAmendment + type: string + attributes: + $ref: '#/components/schemas/ContactlistWithAttributesAmendment_attributes' + required: + - attributes + - type + type: object ContactlistAmendment: description: Parameters for the amendment of a contactlist example: @@ -7220,19 +7243,6 @@ components: - attributes - type type: object - ContactlistWithAttributesAmendment: - description: Parameters for a contactlist amendment with user attributes - properties: - type: - description: the name of the entity type - example: ContactlistWithUserAttributesAmendment - type: string - attributes: - $ref: '#/components/schemas/ContactlistWithAttributesAmendment_attributes' - required: - - attributes - - type - type: object AudienceNameDescription: description: Description of an audience with name and detailed description example: @@ -7241,9 +7251,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 UserDef: @@ -7330,12 +7342,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 @@ -7352,6 +7366,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/ApplicationSummaryModel' @@ -7372,10 +7387,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. @@ -7388,27 +7405,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: @@ -7422,66 +7446,31 @@ 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 - AudienceEntityV1AudienceSearchMetadataV1ListResponse: + AdSetAudienceLinkEntityV1Response: description: A top-level object that encapsulates a Criteo API response for - several entities and metadata + a single entity example: data: - - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId - id: id - type: type - - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId + attributes: + audienceId: audienceId id: id type: type - meta: - totalItems: 0 - offset: 1 - limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -7525,66 +7514,128 @@ components: type: unknown title: title properties: - meta: - $ref: '#/components/schemas/AudienceSearchMetadataV1' data: - items: - $ref: '#/components/schemas/AudienceEntityV1Resource' - type: array + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Resource' warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceEntityV1ListResponse: + AudienceSegmentEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: data: - attributes: + prospecting: + daysSinceLastVisitMax: 6 + usersType: Unknown + daysSinceLastVisitMin: 0 + description: description + retargeting: + visitorsType: Unknown + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 + type: Unknown + lookalike: + targetSize: 9 + seedSegmentId: seedSegmentId + advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds + contactList: + isReadOnly: true + behavioral: + country: country + endDate: 2000-01-23T04:56:07.000+00:00 + category: Unknown + startDate: 2000-01-23T04:56:07.000+00:00 name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId + location: + registryType: Unknown + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 5 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Unknown + - Unknown + gender: Unknown + brandIds: + - brandIds + - brandIds + priceRange: + - Unknown + - Unknown updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId id: id type: type - attributes: + prospecting: + daysSinceLastVisitMax: 6 + usersType: Unknown + daysSinceLastVisitMin: 0 + description: description + retargeting: + visitorsType: Unknown + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 + type: Unknown + lookalike: + targetSize: 9 + seedSegmentId: seedSegmentId + advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds + contactList: + isReadOnly: true + behavioral: + country: country + endDate: 2000-01-23T04:56:07.000+00:00 + category: Unknown + startDate: 2000-01-23T04:56:07.000+00:00 name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId + location: + registryType: Unknown + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 5 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Unknown + - Unknown + gender: Unknown + brandIds: + - brandIds + - brandIds + priceRange: + - Unknown + - Unknown updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId id: id type: type warnings: @@ -7632,28 +7683,33 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceEntityV1Resource' + $ref: '#/components/schemas/AudienceSegmentEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceIdEntityV1ListResponse: + AudienceSegmentSizeEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: data: - - attributes: "{}" + - attributes: + size: 0 id: id type: type - - attributes: "{}" + - attributes: + size: 0 id: id type: type warnings: @@ -7701,30 +7757,31 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceIdEntityV1Resource' + $ref: '#/components/schemas/AudienceSegmentSizeEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSizeEntityV1ListResponse: + AudienceSegmentIdEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: data: - - attributes: - size: 0 + - attributes: "{}" id: id type: type - - attributes: - size: 0 + - attributes: "{}" id: id type: type warnings: @@ -7772,20 +7829,23 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceSizeEntityV1Resource' + $ref: '#/components/schemas/AudienceSegmentIdEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSizeEstimationV1Response: + AudienceSegmentSizeEstimationV1Response: description: A top-level object that encapsulates a Criteo API response for a single value example: @@ -7837,131 +7897,35 @@ components: title: title properties: data: - $ref: '#/components/schemas/AudienceSizeEstimationV1Resource' + $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Resource' warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse: + InMarketAudienceSegmentBrandEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for - several entities and metadata + several entities example: data: - attributes: - prospecting: - daysSinceLastVisitMax: 5 - usersType: Unknown - daysSinceLastVisitMin: 5 - description: description - retargeting: - visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 - type: Unknown - lookalike: - targetSize: 4 - seedSegmentId: seedSegmentId - advertiserId: advertiserId - createdAt: 2000-01-23T04:56:07.000+00:00 - contactList: - isReadOnly: true - behavioral: - country: country - endDate: 2000-01-23T04:56:07.000+00:00 - category: Unknown - startDate: 2000-01-23T04:56:07.000+00:00 + size: 0 name: name - location: - registryType: Unknown - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 9 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Unknown - - Unknown - gender: Unknown - brandIds: - - brandIds - - brandIds - priceRange: - - Unknown - - Unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - attributes: - prospecting: - daysSinceLastVisitMax: 5 - usersType: Unknown - daysSinceLastVisitMin: 5 - description: description - retargeting: - visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 - type: Unknown - lookalike: - targetSize: 4 - seedSegmentId: seedSegmentId - advertiserId: advertiserId - createdAt: 2000-01-23T04:56:07.000+00:00 - contactList: - isReadOnly: true - behavioral: - country: country - endDate: 2000-01-23T04:56:07.000+00:00 - category: Unknown - startDate: 2000-01-23T04:56:07.000+00:00 + size: 0 name: name - location: - registryType: Unknown - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 9 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Unknown - - Unknown - gender: Unknown - brandIds: - - brandIds - - brandIds - priceRange: - - Unknown - - Unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - meta: - totalItems: 0 - offset: 1 - limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8005,41 +7969,116 @@ components: type: unknown title: title properties: - meta: - $ref: '#/components/schemas/AudienceSegmentSearchMetadataV1' data: items: - $ref: '#/components/schemas/AudienceSegmentEntityV1Resource' + $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSegmentEntityV1ListResponse: + InMarketAudienceSegmentInterestEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities + example: + data: + - attributes: + parentId: parentId + id: id + type: type + - attributes: + parentId: parentId + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + items: + $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1Resource' + nullable: true + type: array + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + type: object + AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse: + description: A top-level object that encapsulates a Criteo API response for + several entities and metadata example: data: - attributes: prospecting: - daysSinceLastVisitMax: 5 + daysSinceLastVisitMax: 6 usersType: Unknown - daysSinceLastVisitMin: 5 + daysSinceLastVisitMin: 0 description: description retargeting: visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 type: Unknown lookalike: - targetSize: 4 + targetSize: 9 seedSegmentId: seedSegmentId advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -8054,13 +8093,13 @@ components: location: registryType: Unknown pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 9 + longitude: 5.962133916683182 + radiusInKm: 5 inMarket: country: country interestIds: @@ -8081,17 +8120,17 @@ components: type: type - attributes: prospecting: - daysSinceLastVisitMax: 5 + daysSinceLastVisitMax: 6 usersType: Unknown - daysSinceLastVisitMin: 5 + daysSinceLastVisitMin: 0 description: description retargeting: visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 type: Unknown lookalike: - targetSize: 4 + targetSize: 9 seedSegmentId: seedSegmentId advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -8106,13 +8145,13 @@ components: location: registryType: Unknown pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 9 + longitude: 5.962133916683182 + radiusInKm: 5 inMarket: country: country interestIds: @@ -8131,6 +8170,10 @@ components: updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type + meta: + totalItems: 0 + offset: 1 + limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8174,30 +8217,35 @@ components: type: unknown title: title properties: + meta: + $ref: '#/components/schemas/AudienceSegmentSearchMetadataV1' data: items: $ref: '#/components/schemas/AudienceSegmentEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSegmentIdEntityV1ListResponse: + ContactListStatisticsEntityV1Response: description: A top-level object that encapsulates a Criteo API response for - several entities + a single entity example: data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" + attributes: + numberOfIdentifiers: 0 + matchRate: 1.4658129805029452 + numberOfMatches: 6 id: id type: type warnings: @@ -8244,98 +8292,64 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/AudienceSegmentIdEntityV1Resource' - type: array + $ref: '#/components/schemas/ContactListStatisticsEntityV1Resource' warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSegmentSizeEntityV1ListResponse: + AudienceEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: data: - attributes: - size: 0 - id: id - type: type - - attributes: - size: 0 - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - items: - $ref: '#/components/schemas/AudienceSegmentSizeEntityV1Resource' - type: array - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - errors: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - type: object - AudienceSegmentSizeEstimationV1Response: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - data: - attributes: - size: 0 + createdAt: 2000-01-23T04:56:07.000+00:00 + adSetIds: + - adSetIds + - adSetIds + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 + advertiserId: advertiserId + id: id + type: type + - attributes: + createdAt: 2000-01-23T04:56:07.000+00:00 + adSetIds: + - adSetIds + - adSetIds + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 + advertiserId: advertiserId + id: id type: type warnings: - traceId: traceId @@ -8381,29 +8395,34 @@ components: title: title properties: data: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1Resource' + items: + $ref: '#/components/schemas/AudienceEntityV1Resource' + nullable: true + type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - InMarketAudienceSegmentInterestEntityV1ListResponse: + AudienceSizeEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: data: - attributes: - parentId: parentId + size: 0 id: id type: type - attributes: - parentId: parentId + size: 0 id: id type: type warnings: @@ -8451,32 +8470,31 @@ components: properties: data: items: - $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1Resource' + $ref: '#/components/schemas/AudienceSizeEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - InMarketAudienceSegmentBrandEntityV1ListResponse: + AudienceIdEntityV1ListResponse: description: A top-level object that encapsulates a Criteo API response for several entities example: data: - - attributes: - size: 0 - name: name + - attributes: "{}" id: id type: type - - attributes: - size: 0 - name: name + - attributes: "{}" id: id type: type warnings: @@ -8524,29 +8542,29 @@ components: properties: data: items: - $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1Resource' + $ref: '#/components/schemas/AudienceIdEntityV1Resource' + nullable: true type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - ContactListStatisticsEntityV1Response: + AudienceSizeEstimationV1Response: description: A top-level object that encapsulates a Criteo API response for - a single entity + a single value example: data: attributes: - numberOfIdentifiers: 0 - matchRate: 1.4658129805029452 - numberOfMatches: 6 - id: id + size: 0 type: type warnings: - traceId: traceId @@ -8592,27 +8610,69 @@ components: title: title properties: data: - $ref: '#/components/schemas/ContactListStatisticsEntityV1Resource' + $ref: '#/components/schemas/AudienceSizeEstimationV1Resource' warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AdSetAudienceLinkEntityV1Response: + AudienceEntityV1AudienceSearchMetadataV1ListResponse: description: A top-level object that encapsulates a Criteo API response for - a single entity + several entities and metadata example: data: - attributes: - audienceId: audienceId + - attributes: + createdAt: 2000-01-23T04:56:07.000+00:00 + adSetIds: + - adSetIds + - adSetIds + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 + advertiserId: advertiserId + id: id + type: type + - attributes: + createdAt: 2000-01-23T04:56:07.000+00:00 + adSetIds: + - adSetIds + - adSetIds + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 + advertiserId: advertiserId id: id type: type + meta: + totalItems: 0 + offset: 1 + limit: 6 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8656,137 +8716,139 @@ components: type: unknown title: title properties: + meta: + $ref: '#/components/schemas/AudienceSearchMetadataV1' data: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Resource' + items: + $ref: '#/components/schemas/AudienceEntityV1Resource' + nullable: true + type: array warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AudienceSearchInputV1: - description: Audience search parameter + AdSetAudienceLinkInputEntityV1: + description: Input to set audience ad set link. example: data: attributes: - adSetIds: - - adSetIds - - adSetIds - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceIds: - - audienceIds - - audienceIds + audienceId: audienceId + id: id type: type properties: data: - $ref: '#/components/schemas/AudienceSearchEntityV1Resource' + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Resource' type: object - AudienceBulkCreateInputV1: - description: Input to create one or more audiences. - example: - data: - - attributes: - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - advertiserId: advertiserId - type: type - - attributes: - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - advertiserId: advertiserId - type: type - properties: - data: - items: - $ref: '#/components/schemas/AudienceCreateEntityV1Resource' - type: array - type: object - AudienceBulkUpdateInputV1: - description: Input to update one or more audiences. + AudienceSegmentBulkUpdateInputV1: + description: Input to update one or more segments. example: data: - attributes: + prospecting: + daysSinceLastVisitMax: + value: 5 + usersType: Prospects + daysSinceLastVisitMin: + value: 5 name: name description: value: value - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId + location: + registryType: PointOfInterest + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 0 + retargeting: + visitorsType: All + daysSinceLastVisitMax: 1 + daysSinceLastVisitMin: 6 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Low + - Low + gender: + value: Male + brandIds: + - brandIds + - brandIds + priceRange: + - Low + - Low + lookalike: + targetSize: 5 id: id type: type - attributes: + prospecting: + daysSinceLastVisitMax: + value: 5 + usersType: Prospects + daysSinceLastVisitMin: + value: 5 name: name description: value: value - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - id: id - type: type - properties: - data: - items: - $ref: '#/components/schemas/AudienceUpdateEntityV1Resource' - type: array - type: object - AudienceBulkDeleteInputV1: - description: Input to delete one or more audiences. - example: - data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" + location: + registryType: PointOfInterest + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 0 + retargeting: + visitorsType: All + daysSinceLastVisitMax: 1 + daysSinceLastVisitMin: 6 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Low + - Low + gender: + value: Male + brandIds: + - brandIds + - brandIds + priceRange: + - Low + - Low + lookalike: + targetSize: 5 id: id type: type properties: data: items: - $ref: '#/components/schemas/AudienceDeleteEntityV1Resource' + $ref: '#/components/schemas/AudienceSegmentUpdateEntityV1Resource' + nullable: true type: array type: object - AudienceComputeSizesInputV1: - description: Input to retrieve the size of one or more audiences. + AudienceSegmentComputeSizesInputV1: + description: Input to retrieve the size of one or more segments. example: data: - attributes: "{}" @@ -8798,48 +8860,10 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceComputeSizeEntityV1Resource' + $ref: '#/components/schemas/AudienceSegmentComputeSizeEntityV1Resource' + nullable: true type: array type: object - AudienceEstimateSizeInputV1: - description: Input to estimate the size of an audience. - example: - data: - attributes: - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - advertiserId: advertiserId - type: type - properties: - data: - $ref: '#/components/schemas/AudienceEstimateSizeEntityV1Resource' - type: object - AudienceSegmentSearchInputV1: - description: Audience segment search parameter - example: - data: - attributes: - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceSegmentTypes: - - Unknown - - Unknown - type: type - properties: - data: - $ref: '#/components/schemas/AudienceSegmentSearchEntityV1Resource' - type: object AudienceSegmentBulkCreateInputV1: description: Input to create one or more audience segments. example: @@ -8854,12 +8878,12 @@ components: description: description location: pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 1 retargeting: visitorsType: All @@ -8895,12 +8919,12 @@ components: description: description location: pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 1 retargeting: visitorsType: All @@ -8930,80 +8954,40 @@ components: data: items: $ref: '#/components/schemas/AudienceSegmentCreateEntityV1Resource' + nullable: true type: array type: object - AudienceSegmentBulkUpdateInputV1: - description: Input to update one or more segments. + AudienceSegmentBulkDeleteInputV1: + description: Input to delete one or more segments. example: data: - - attributes: - prospecting: - daysSinceLastVisitMax: - value: 5 - usersType: Prospects - daysSinceLastVisitMin: - value: 5 - name: name - description: - value: value - location: - registryType: PointOfInterest - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 0 - retargeting: - visitorsType: All - daysSinceLastVisitMax: 1 - daysSinceLastVisitMin: 6 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Low - - Low - gender: - value: Male - brandIds: - - brandIds - - brandIds - priceRange: - - Low - - Low - lookalike: - targetSize: 5 + - attributes: "{}" id: id type: type - - attributes: - prospecting: - daysSinceLastVisitMax: - value: 5 - usersType: Prospects - daysSinceLastVisitMin: - value: 5 - name: name - description: - value: value + - attributes: "{}" + id: id + type: type + properties: + data: + items: + $ref: '#/components/schemas/AudienceSegmentDeleteEntityV1Resource' + nullable: true + type: array + type: object + AudienceSegmentEstimateSizeInputV1: + description: Input to estimate the size of an audience segment.. + example: + data: + attributes: location: - registryType: PointOfInterest pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 0 - retargeting: - visitorsType: All - daysSinceLastVisitMax: 1 - daysSinceLastVisitMin: 6 inMarket: country: country interestIds: @@ -9012,42 +8996,81 @@ components: buyingPower: - Low - Low - gender: - value: Male + gender: Male brandIds: - brandIds - brandIds priceRange: - Low - Low - lookalike: - targetSize: 5 - id: id + advertiserId: advertiserId type: type properties: data: - items: - $ref: '#/components/schemas/AudienceSegmentUpdateEntityV1Resource' - type: array + $ref: '#/components/schemas/AudienceSegmentSizeEstimationEntityV1Resource' type: object - AudienceSegmentBulkDeleteInputV1: - description: Input to delete one or more segments. + AudienceSegmentSearchInputV1: + description: Audience segment search parameter example: data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" - id: id + attributes: + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceSegmentTypes: + - Unknown + - Unknown + type: type + properties: + data: + $ref: '#/components/schemas/AudienceSegmentSearchEntityV1Resource' + type: object + AudienceBulkUpdateInputV1: + description: Input to update one or more audiences. + example: + data: + - attributes: + name: name + description: + value: value + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + id: id + type: type + - attributes: + name: name + description: + value: value + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + id: id type: type properties: data: items: - $ref: '#/components/schemas/AudienceSegmentDeleteEntityV1Resource' + $ref: '#/components/schemas/AudienceUpdateEntityV1Resource' + nullable: true type: array type: object - AudienceSegmentComputeSizesInputV1: - description: Input to retrieve the size of one or more segments. + AudienceComputeSizesInputV1: + description: Input to retrieve the size of one or more audiences. example: data: - attributes: "{}" @@ -9059,193 +9082,142 @@ components: properties: data: items: - $ref: '#/components/schemas/AudienceSegmentComputeSizeEntityV1Resource' + $ref: '#/components/schemas/AudienceComputeSizeEntityV1Resource' + nullable: true type: array type: object - AudienceSegmentEstimateSizeInputV1: - description: Input to estimate the size of an audience segment.. + AudienceBulkCreateInputV1: + description: Input to create one or more audiences. example: data: - attributes: - location: - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 0 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Low - - Low - gender: Male - brandIds: - - brandIds - - brandIds - priceRange: - - Low - - Low + - attributes: + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + advertiserId: advertiserId + type: type + - attributes: + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId advertiserId: advertiserId type: type properties: data: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationEntityV1Resource' + items: + $ref: '#/components/schemas/AudienceCreateEntityV1Resource' + nullable: true + type: array type: object - AdSetAudienceLinkInputEntityV1: - description: Input to set audience ad set link. + AudienceBulkDeleteInputV1: + description: Input to delete one or more audiences. example: data: - attributes: - audienceId: audienceId + - attributes: "{}" + id: id + type: type + - attributes: "{}" id: id type: type properties: data: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1Resource' - type: object - AudienceSearchMetadataV1: - description: Metadata for the audience search response. - example: - totalItems: 0 - offset: 1 - limit: 6 - properties: - totalItems: - description: Total number of items - format: int32 - type: integer - limit: - description: Max item of the current page - format: int32 - type: integer - offset: - description: Number of item to skip - format: int32 - type: integer + items: + $ref: '#/components/schemas/AudienceDeleteEntityV1Resource' + nullable: true + type: array type: object - AudienceEntityV1Resource: - description: A class that represents a domain entity exposed by an API + AudienceEstimateSizeInputV1: + description: Input to estimate the size of an audience. example: - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId - id: id - type: type + data: + attributes: + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + advertiserId: advertiserId + type: type properties: - attributes: - $ref: '#/components/schemas/AudienceEntityV1' - id: - description: Id of the entity - type: string - type: - type: string + data: + $ref: '#/components/schemas/AudienceEstimateSizeEntityV1Resource' type: object - AudienceIdEntityV1Resource: - description: A class that represents a domain entity exposed by an API + AudienceSearchInputV1: + description: Audience search parameter example: - attributes: "{}" - id: id - type: type + data: + attributes: + adSetIds: + - adSetIds + - adSetIds + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceIds: + - audienceIds + - audienceIds + type: type properties: - attributes: - description: Audience entity with only its ID - type: object - x-criteo-canonical: - infoType: entity - name: Audience - version: v1 - id: - description: Id of the entity - type: string - type: - type: string + data: + $ref: '#/components/schemas/AudienceSearchEntityV1Resource' type: object - AudienceSizeEntityV1Resource: + AdSetAudienceLinkEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - size: 0 + audienceId: audienceId id: id type: type properties: attributes: - $ref: '#/components/schemas/AudienceSizeEntityV1' + $ref: '#/components/schemas/AdSetAudienceLinkEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSizeEstimationV1Resource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - size: 0 - type: type - properties: - type: - type: string - attributes: - $ref: '#/components/schemas/AudienceSizeEstimationV1' - type: object - AudienceSegmentSearchMetadataV1: - description: Metadata for the audience segment search response. - example: - totalItems: 0 - offset: 1 - limit: 6 - properties: - totalItems: - description: Total number of items - format: int32 - type: integer - limit: - description: Max item of the current page - format: int32 - type: integer - offset: - description: Number of item to skip - format: int32 - type: integer - type: object AudienceSegmentEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: prospecting: - daysSinceLastVisitMax: 5 + daysSinceLastVisitMax: 6 usersType: Unknown - daysSinceLastVisitMin: 5 + daysSinceLastVisitMin: 0 description: description retargeting: visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 type: Unknown lookalike: - targetSize: 4 + targetSize: 9 seedSegmentId: seedSegmentId advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -9260,13 +9232,13 @@ components: location: registryType: Unknown pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 9 + longitude: 5.962133916683182 + radiusInKm: 5 inMarket: country: country interestIds: @@ -9290,44 +9262,50 @@ components: $ref: '#/components/schemas/AudienceSegmentEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSegmentIdEntityV1Resource: + AudienceSegmentSizeEntityV1Resource: description: A class that represents a domain entity exposed by an API example: - attributes: "{}" + attributes: + size: 0 id: id type: type properties: attributes: - description: Audience Segment entity only with its ID - type: object - x-criteo-canonical: - infoType: entity - name: AudienceSegment - version: v1 + $ref: '#/components/schemas/AudienceSegmentSizeEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSegmentSizeEntityV1Resource: + AudienceSegmentIdEntityV1Resource: description: A class that represents a domain entity exposed by an API example: - attributes: - size: 0 + attributes: "{}" id: id type: type properties: attributes: - $ref: '#/components/schemas/AudienceSegmentSizeEntityV1' + description: Audience Segment entity only with its ID + type: object + x-criteo-canonical: + infoType: entity + name: AudienceSegment + version: v1 id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object AudienceSegmentSizeEstimationV1Resource: @@ -9339,43 +9317,71 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/AudienceSegmentSizeEstimationV1' type: object - InMarketAudienceSegmentInterestEntityV1Resource: + InMarketAudienceSegmentBrandEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - parentId: parentId + size: 0 + name: name id: id type: type properties: attributes: - $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1' + $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - InMarketAudienceSegmentBrandEntityV1Resource: + InMarketAudienceSegmentInterestEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - size: 0 - name: name + parentId: parentId id: id type: type properties: attributes: - $ref: '#/components/schemas/InMarketAudienceSegmentBrandEntityV1' + $ref: '#/components/schemas/InMarketAudienceSegmentInterestEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object + AudienceSegmentSearchMetadataV1: + description: Metadata for the audience segment search response. + example: + totalItems: 0 + offset: 1 + limit: 6 + properties: + totalItems: + description: Total number of items + format: int32 + nullable: true + type: integer + limit: + description: Max item of the current page + format: int32 + nullable: true + type: integer + offset: + description: Number of item to skip + format: int32 + nullable: true + type: integer + type: object ContactListStatisticsEntityV1Resource: description: A class that represents a domain entity exposed by an API example: @@ -9390,55 +9396,20 @@ components: $ref: '#/components/schemas/ContactListStatisticsEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AdSetAudienceLinkEntityV1Resource: + AudienceEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: - audienceId: audienceId - id: id - type: type - properties: - attributes: - $ref: '#/components/schemas/AdSetAudienceLinkEntityV1' - id: - description: Id of the entity - type: string - type: - type: string - type: object - AudienceSearchEntityV1Resource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: + createdAt: 2000-01-23T04:56:07.000+00:00 adSetIds: - adSetIds - adSetIds - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceIds: - - audienceIds - - audienceIds - type: type - properties: - type: - type: string - attributes: - $ref: '#/components/schemas/AudienceSearchEntityV1' - type: object - AudienceCreateEntityV1Resource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: name: name description: description algebra: @@ -9450,62 +9421,40 @@ components: - null - null audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 advertiserId: advertiserId - type: type - properties: - type: - type: string - attributes: - $ref: '#/components/schemas/AudienceCreateEntityV1' - type: object - AudienceUpdateEntityV1Resource: - description: A class that represents a domain entity exposed by an API - example: - attributes: - name: name - description: - value: value - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId id: id type: type properties: attributes: - $ref: '#/components/schemas/AudienceUpdateEntityV1' + $ref: '#/components/schemas/AudienceEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceDeleteEntityV1Resource: + AudienceSizeEntityV1Resource: description: A class that represents a domain entity exposed by an API example: - attributes: "{}" + attributes: + size: 0 id: id type: type properties: attributes: - description: Audience to delete - type: object - x-criteo-canonical: - infoType: entity - name: Audience - version: v1 + $ref: '#/components/schemas/AudienceSizeEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceComputeSizeEntityV1Resource: + AudienceIdEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: "{}" @@ -9513,7 +9462,7 @@ components: type: type properties: attributes: - description: Audience of people of interest for a marketer. + description: Audience entity with only its ID type: object x-criteo-canonical: infoType: entity @@ -9521,52 +9470,128 @@ components: version: v1 id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceEstimateSizeEntityV1Resource: + AudienceSizeEstimationV1Resource: description: A top-level object that encapsulates a Criteo API response for a single value example: attributes: - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - advertiserId: advertiserId + size: 0 type: type properties: type: + nullable: true type: string attributes: - $ref: '#/components/schemas/AudienceEstimateSizeEntityV1' + $ref: '#/components/schemas/AudienceSizeEstimationV1' type: object - AudienceSegmentSearchEntityV1Resource: - description: A top-level object that encapsulates a Criteo API response for - a single value + AudienceSearchMetadataV1: + description: Metadata for the audience search response. + example: + totalItems: 0 + offset: 1 + limit: 6 + properties: + totalItems: + description: Total number of items + format: int32 + nullable: true + type: integer + limit: + description: Max item of the current page + format: int32 + nullable: true + type: integer + offset: + description: Number of item to skip + format: int32 + nullable: true + type: integer + type: object + AudienceSegmentUpdateEntityV1Resource: + description: A class that represents a domain entity exposed by an API example: attributes: - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceSegmentTypes: - - Unknown - - Unknown + prospecting: + daysSinceLastVisitMax: + value: 5 + usersType: Prospects + daysSinceLastVisitMin: + value: 5 + name: name + description: + value: value + location: + registryType: PointOfInterest + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 0 + retargeting: + visitorsType: All + daysSinceLastVisitMax: 1 + daysSinceLastVisitMin: 6 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Low + - Low + gender: + value: Male + brandIds: + - brandIds + - brandIds + priceRange: + - Low + - Low + lookalike: + targetSize: 5 + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/AudienceSegmentUpdateEntityV1' + id: + description: Id of the entity + nullable: true + type: string + type: + nullable: true + type: string + type: object + AudienceSegmentComputeSizeEntityV1Resource: + description: A class that represents a domain entity exposed by an API + example: + attributes: "{}" + id: id type: type properties: + attributes: + description: Set of rules that defines specific people to target. + type: object + x-criteo-canonical: + infoType: entity + name: AudienceSegment + version: v1 + id: + description: Id of the entity + nullable: true + type: string type: + nullable: true type: string - attributes: - $ref: '#/components/schemas/AudienceSegmentSearchEntityV1' type: object AudienceSegmentCreateEntityV1Resource: description: A top-level object that encapsulates a Criteo API response for @@ -9582,12 +9607,12 @@ components: description: description location: pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 1 retargeting: visitorsType: All @@ -9615,37 +9640,47 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/AudienceSegmentCreateEntityV1' type: object - AudienceSegmentUpdateEntityV1Resource: + AudienceSegmentDeleteEntityV1Resource: description: A class that represents a domain entity exposed by an API + example: + attributes: "{}" + id: id + type: type + properties: + attributes: + description: Segment to delete + type: object + x-criteo-canonical: + infoType: entity + name: AudienceSegment + version: v1 + id: + description: Id of the entity + nullable: true + type: string + type: + nullable: true + type: string + type: object + AudienceSegmentSizeEstimationEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value example: attributes: - prospecting: - daysSinceLastVisitMax: - value: 5 - usersType: Prospects - daysSinceLastVisitMin: - value: 5 - name: name - description: - value: value location: - registryType: PointOfInterest pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 0 - retargeting: - visitorsType: All - daysSinceLastVisitMax: 1 - daysSinceLastVisitMin: 6 inMarket: country: country interestIds: @@ -9654,28 +9689,74 @@ components: buyingPower: - Low - Low - gender: - value: Male + gender: Male brandIds: - brandIds - brandIds priceRange: - Low - Low - lookalike: - targetSize: 5 + advertiserId: advertiserId + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AudienceSegmentSizeEstimationEntityV1' + type: object + AudienceSegmentSearchEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceSegmentTypes: + - Unknown + - Unknown + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AudienceSegmentSearchEntityV1' + type: object + AudienceUpdateEntityV1Resource: + description: A class that represents a domain entity exposed by an API + example: + attributes: + name: name + description: + value: value + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId id: id type: type properties: attributes: - $ref: '#/components/schemas/AudienceSegmentUpdateEntityV1' + $ref: '#/components/schemas/AudienceUpdateEntityV1' id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSegmentDeleteEntityV1Resource: + AudienceComputeSizeEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: "{}" @@ -9683,19 +9764,46 @@ components: type: type properties: attributes: - description: Segment to delete + description: Audience of people of interest for a marketer. type: object x-criteo-canonical: infoType: entity - name: AudienceSegment + name: Audience version: v1 id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSegmentComputeSizeEntityV1Resource: + AudienceCreateEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + advertiserId: advertiserId + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AudienceCreateEntityV1' + type: object + AudienceDeleteEntityV1Resource: description: A class that represents a domain entity exposed by an API example: attributes: "{}" @@ -9703,150 +9811,96 @@ components: type: type properties: attributes: - description: Set of rules that defines specific people to target. + description: Audience to delete type: object x-criteo-canonical: infoType: entity - name: AudienceSegment + name: Audience version: v1 id: description: Id of the entity + nullable: true type: string type: + nullable: true type: string type: object - AudienceSegmentSizeEstimationEntityV1Resource: + AudienceEstimateSizeEntityV1Resource: description: A top-level object that encapsulates a Criteo API response for a single value example: attributes: - location: - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 0 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Low - - Low - gender: Male - brandIds: - - brandIds - - brandIds - priceRange: - - Low - - Low + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId advertiserId: advertiserId type: type properties: type: + nullable: true type: string attributes: - $ref: '#/components/schemas/AudienceSegmentSizeEstimationEntityV1' + $ref: '#/components/schemas/AudienceEstimateSizeEntityV1' type: object - AudienceEntityV1: - description: Audience of people of interest for a marketer. + AudienceSearchEntityV1Resource: + description: A top-level object that encapsulates a Criteo API response for + a single value example: - createdAt: 2000-01-23T04:56:07.000+00:00 - adSetIds: - - adSetIds - - adSetIds - name: name - description: description - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - updatedAt: 2000-01-23T04:56:07.000+00:00 - advertiserId: advertiserId + attributes: + adSetIds: + - adSetIds + - adSetIds + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceIds: + - audienceIds + - audienceIds + type: type properties: - name: - description: Name of the audience - type: string - description: - description: Description of the audience - type: string - createdAt: - description: ISO-8601 timestamp in UTC of audience creation (read-only) - format: date-time - type: string - updatedAt: - description: ISO-8601 timestamp in UTC of audience update (read-only) - format: date-time - type: string - advertiserId: - description: Advertiser associated to the audience + type: + nullable: true type: string - adSetIds: - description: Ad sets associated to the audience - items: - type: string - type: array - uniqueItems: true - algebra: - $ref: '#/components/schemas/AlgebraNodeV1' - type: object - x-criteo-canonical: - infoType: entity - name: Audience - version: v1 - AudienceIdEntityV1: - description: Audience entity with only its ID - type: object - x-criteo-canonical: - infoType: entity - name: Audience - version: v1 - AudienceSizeEntityV1: - description: Audience entity only with its size + attributes: + $ref: '#/components/schemas/AudienceSearchEntityV1' + type: object + AdSetAudienceLinkEntityV1: + description: Link Audience with an ad set example: - size: 0 + audienceId: audienceId properties: - size: - format: int64 - type: integer + audienceId: + nullable: true + type: string type: object x-criteo-canonical: infoType: entity - name: AudienceSize + name: AdSetAudience version: v1 - AudienceSizeEstimationV1: - description: Audience size estimation - example: - size: 0 - properties: - size: - format: int64 - type: integer - type: object AudienceSegmentEntityV1: description: Set of rules that defines specific people to target. example: prospecting: - daysSinceLastVisitMax: 5 + daysSinceLastVisitMax: 6 usersType: Unknown - daysSinceLastVisitMin: 5 + daysSinceLastVisitMin: 0 description: description retargeting: visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 type: Unknown lookalike: - targetSize: 4 + targetSize: 9 seedSegmentId: seedSegmentId advertiserId: advertiserId createdAt: 2000-01-23T04:56:07.000+00:00 @@ -9861,13 +9915,13 @@ components: location: registryType: Unknown pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 9 + longitude: 5.962133916683182 + radiusInKm: 5 inMarket: country: country interestIds: @@ -9887,9 +9941,11 @@ components: properties: name: description: Name of the segment + nullable: true type: string description: description: Description of the segment + nullable: true type: string type: description: Type of segment (read-only) @@ -9902,17 +9958,21 @@ components: - Behavioral - Retargeting - Lookalike + nullable: true type: string createdAt: description: ISO-8601 timestamp in UTC of segment creation (read-only) format: date-time + nullable: true type: string updatedAt: description: ISO-8601 timestamp in UTC of segment update (read-only) format: date-time + nullable: true type: string advertiserId: description: Advertiser associated to the segment + nullable: true type: string inMarket: $ref: '#/components/schemas/InMarketV1' @@ -9933,13 +9993,6 @@ components: infoType: entity name: AudienceSegment version: v1 - AudienceSegmentIdEntityV1: - description: Audience Segment entity only with its ID - type: object - x-criteo-canonical: - infoType: entity - name: AudienceSegment - version: v1 AudienceSegmentSizeEntityV1: description: Set of rules that defines specific people to target. example: @@ -9947,12 +10000,20 @@ components: properties: size: format: int64 + nullable: true type: integer type: object x-criteo-canonical: infoType: entity name: AudienceSegmentSize version: v1 + AudienceSegmentIdEntityV1: + description: Audience Segment entity only with its ID + type: object + x-criteo-canonical: + infoType: entity + name: AudienceSegment + version: v1 AudienceSegmentSizeEstimationV1: description: Segment size estimation example: @@ -9960,21 +10021,9 @@ components: properties: size: format: int64 + nullable: true type: integer type: object - InMarketAudienceSegmentInterestEntityV1: - description: In-market segment interest entity - example: - parentId: parentId - properties: - parentId: - description: Id of the parent in-market segment interest - type: string - type: object - x-criteo-canonical: - infoType: entity - name: InMarketAudienceSegmentInterest - version: v1 InMarketAudienceSegmentBrandEntityV1: description: In-market segment brand entity example: @@ -9983,16 +10032,32 @@ components: properties: name: description: Name of the in-market segment brand + nullable: true type: string size: description: Size of the in-market segment brand format: int32 + nullable: true type: integer type: object x-criteo-canonical: infoType: entity name: InMarketAudienceSegmentBrand version: v1 + InMarketAudienceSegmentInterestEntityV1: + description: In-market segment interest entity + example: + parentId: parentId + properties: + parentId: + description: Id of the parent in-market segment interest + nullable: true + type: string + type: object + x-criteo-canonical: + infoType: entity + name: InMarketAudienceSegmentInterest + version: v1 ContactListStatisticsEntityV1: description: Contact list statistics. example: @@ -10003,74 +10068,31 @@ components: numberOfIdentifiers: description: Number of identifiers in the contact list. format: int32 + nullable: true type: integer numberOfMatches: description: Number of matched identifiers in the contact list. format: int32 + nullable: true type: integer matchRate: description: "Percentage of matched identifiers in the contact list.\r\n\ Can differ from matches/identifiers depending on the contact list type." format: double + nullable: true type: number type: object x-criteo-canonical: infoType: entity name: ContactListStatistics version: v1 - AdSetAudienceLinkEntityV1: - description: Link Audience with an ad set - example: - audienceId: audienceId - properties: - audienceId: - type: string - type: object - x-criteo-canonical: - infoType: entity - name: AdSetAudience - version: v1 - AudienceSearchEntityV1: - description: "Available filters to perform a search on segments. If present,\ - \ the filters are AND'ed together when applied." + AudienceEntityV1: + description: Audience of people of interest for a marketer. example: + createdAt: 2000-01-23T04:56:07.000+00:00 adSetIds: - adSetIds - adSetIds - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceIds: - - audienceIds - - audienceIds - properties: - audienceIds: - description: List of audience ids - items: - type: string - type: array - advertiserIds: - description: List of advertiser ids - items: - type: string - type: array - audienceSegmentIds: - description: List of segment ids (linked to the result audiences) - items: - type: string - type: array - adSetIds: - description: List of AdSet ids - items: - type: string - type: array - type: object - AudienceCreateEntityV1: - description: Audience of people of interest for a marketer. - example: name: name description: description algebra: @@ -10082,128 +10104,149 @@ components: - null - null audienceSegmentId: audienceSegmentId + updatedAt: 2000-01-23T04:56:07.000+00:00 advertiserId: advertiserId properties: name: description: Name of the audience + nullable: true type: string description: description: Description of the audience + nullable: true + type: string + createdAt: + description: ISO-8601 timestamp in UTC of audience creation (read-only) + format: date-time + nullable: true + type: string + updatedAt: + description: ISO-8601 timestamp in UTC of audience update (read-only) + format: date-time + nullable: true type: string advertiserId: description: Advertiser associated to the audience + nullable: true type: string + adSetIds: + description: Ad sets associated to the audience + items: + type: string + nullable: true + type: array + uniqueItems: true algebra: $ref: '#/components/schemas/AlgebraNodeV1' - required: - - advertiserId - - algebra - - name type: object - AudienceUpdateEntityV1: - description: Audience of people of interest for a marketer. + x-criteo-canonical: + infoType: entity + name: Audience + version: v1 + AudienceSizeEntityV1: + description: Audience entity only with its size + example: + size: 0 + properties: + size: + format: int64 + nullable: true + type: integer + type: object + x-criteo-canonical: + infoType: entity + name: AudienceSize + version: v1 + AudienceIdEntityV1: + description: Audience entity with only its ID + type: object + x-criteo-canonical: + infoType: entity + name: Audience + version: v1 + AudienceSizeEstimationV1: + description: Audience size estimation + example: + size: 0 + properties: + size: + format: int64 + nullable: true + type: integer + type: object + AudienceSegmentUpdateEntityV1: + description: Set of rules that defines specific people to target. example: + prospecting: + daysSinceLastVisitMax: + value: 5 + usersType: Prospects + daysSinceLastVisitMin: + value: 5 name: name description: value: value - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId + location: + registryType: PointOfInterest + pointsOfInterest: + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 + name: name + longitude: 5.962133916683182 + radiusInKm: 0 + retargeting: + visitorsType: All + daysSinceLastVisitMax: 1 + daysSinceLastVisitMin: 6 + inMarket: + country: country + interestIds: + - interestIds + - interestIds + buyingPower: + - Low + - Low + gender: + value: Male + brandIds: + - brandIds + - brandIds + priceRange: + - Low + - Low + lookalike: + targetSize: 5 properties: name: - description: Name of the audience + description: Name of the segment + nullable: true type: string description: $ref: '#/components/schemas/NillableString' - algebra: - $ref: '#/components/schemas/AlgebraNodeV1' - type: object - x-criteo-canonical: - infoType: entity - name: Audience - version: v1 - AudienceDeleteEntityV1: - description: Audience to delete + inMarket: + $ref: '#/components/schemas/InMarketUpdateV1' + location: + $ref: '#/components/schemas/LocationUpdateV1' + retargeting: + $ref: '#/components/schemas/RetargetingUpdateV1' + lookalike: + $ref: '#/components/schemas/LookalikeUpdateV1' + prospecting: + $ref: '#/components/schemas/ProspectingUpdateV1' type: object x-criteo-canonical: infoType: entity - name: Audience + name: AudienceSegment version: v1 - AudienceComputeSizeEntityV1: - description: Audience of people of interest for a marketer. + AudienceSegmentComputeSizeEntityV1: + description: Set of rules that defines specific people to target. type: object x-criteo-canonical: infoType: entity - name: Audience + name: AudienceSegment version: v1 - AudienceEstimateSizeEntityV1: - description: Audience of people of interest for a marketer. - example: - algebra: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId - advertiserId: advertiserId - properties: - advertiserId: - description: Advertiser associated to the audience - type: string - algebra: - $ref: '#/components/schemas/AlgebraNodeV1' - required: - - advertiserId - - algebra - type: object - AudienceSegmentSearchEntityV1: - description: "Available filters to perform a search on audience segments. If\ - \ present, the filters are AND'ed together when applied." - example: - advertiserIds: - - advertiserIds - - advertiserIds - audienceSegmentIds: - - audienceSegmentIds - - audienceSegmentIds - audienceSegmentTypes: - - Unknown - - Unknown - properties: - audienceSegmentIds: - description: List of segment ids - items: - type: string - type: array - advertiserIds: - description: List of advertiser ids - items: - type: string - type: array - audienceSegmentTypes: - description: List of segment types - items: - enum: - - Unknown - - InMarket - - Prospecting - - ContactList - - Location - - Behavioral - - Retargeting - - Lookalike - type: string - type: array - type: object AudienceSegmentCreateEntityV1: description: Set of rules that defines specific people to target. example: @@ -10216,12 +10259,12 @@ components: description: description location: pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 1 retargeting: visitorsType: All @@ -10252,6 +10295,7 @@ components: type: string description: description: Description of the segment + nullable: true type: string advertiserId: description: Advertiser associated to the segment @@ -10273,32 +10317,25 @@ components: - advertiserId - name type: object - AudienceSegmentUpdateEntityV1: + AudienceSegmentDeleteEntityV1: + description: Segment to delete + type: object + x-criteo-canonical: + infoType: entity + name: AudienceSegment + version: v1 + AudienceSegmentSizeEstimationEntityV1: description: Set of rules that defines specific people to target. example: - prospecting: - daysSinceLastVisitMax: - value: 5 - usersType: Prospects - daysSinceLastVisitMin: - value: 5 - name: name - description: - value: value location: - registryType: PointOfInterest pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 0 - retargeting: - visitorsType: All - daysSinceLastVisitMax: 1 - daysSinceLastVisitMin: 6 inMarket: country: country interestIds: @@ -10307,114 +10344,207 @@ components: buyingPower: - Low - Low - gender: - value: Male + gender: Male brandIds: - brandIds - brandIds priceRange: - Low - Low - lookalike: - targetSize: 5 + advertiserId: advertiserId properties: - name: - description: Name of the segment + advertiserId: + description: Advertiser associated to the segment type: string - description: - $ref: '#/components/schemas/NillableString' inMarket: - $ref: '#/components/schemas/InMarketUpdateV1' + $ref: '#/components/schemas/InMarketSizeEstimationV1' location: - $ref: '#/components/schemas/LocationUpdateV1' - retargeting: - $ref: '#/components/schemas/RetargetingUpdateV1' - lookalike: - $ref: '#/components/schemas/LookalikeUpdateV1' - prospecting: - $ref: '#/components/schemas/ProspectingUpdateV1' + $ref: '#/components/schemas/LocationSizeEstimationV1' + required: + - advertiserId type: object - x-criteo-canonical: - infoType: entity - name: AudienceSegment - version: v1 - AudienceSegmentDeleteEntityV1: - description: Segment to delete + AudienceSegmentSearchEntityV1: + description: "Available filters to perform a search on audience segments. If\ + \ present, the filters are AND'ed together when applied." + example: + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceSegmentTypes: + - Unknown + - Unknown + properties: + audienceSegmentIds: + description: List of segment ids + items: + type: string + nullable: true + type: array + advertiserIds: + description: List of advertiser ids + items: + type: string + nullable: true + type: array + audienceSegmentTypes: + description: List of segment types + items: + enum: + - Unknown + - InMarket + - Prospecting + - ContactList + - Location + - Behavioral + - Retargeting + - Lookalike + type: string + nullable: true + type: array + type: object + AudienceUpdateEntityV1: + description: Audience of people of interest for a marketer. + example: + name: name + description: + value: value + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + properties: + name: + description: Name of the audience + nullable: true + type: string + description: + $ref: '#/components/schemas/NillableString' + algebra: + $ref: '#/components/schemas/AlgebraNodeV1' type: object x-criteo-canonical: infoType: entity - name: AudienceSegment + name: Audience version: v1 - AudienceSegmentComputeSizeEntityV1: - description: Set of rules that defines specific people to target. + AudienceComputeSizeEntityV1: + description: Audience of people of interest for a marketer. type: object x-criteo-canonical: infoType: entity - name: AudienceSegment + name: Audience version: v1 - AudienceSegmentSizeEstimationEntityV1: - description: Set of rules that defines specific people to target. + AudienceCreateEntityV1: + description: Audience of people of interest for a marketer. example: - location: - pointsOfInterest: - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 - name: name - longitude: 7.061401241503109 - radiusInKm: 0 - inMarket: - country: country - interestIds: - - interestIds - - interestIds - buyingPower: - - Low - - Low - gender: Male - brandIds: - - brandIds - - brandIds - priceRange: - - Low - - Low + name: name + description: description + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + advertiserId: advertiserId + properties: + name: + description: Name of the audience + type: string + description: + description: Description of the audience + nullable: true + type: string + advertiserId: + description: Advertiser associated to the audience + type: string + algebra: + $ref: '#/components/schemas/AlgebraNodeV1' + required: + - advertiserId + - algebra + - name + type: object + AudienceDeleteEntityV1: + description: Audience to delete + type: object + x-criteo-canonical: + infoType: entity + name: Audience + version: v1 + AudienceEstimateSizeEntityV1: + description: Audience of people of interest for a marketer. + example: + algebra: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId advertiserId: advertiserId properties: advertiserId: - description: Advertiser associated to the segment + description: Advertiser associated to the audience type: string - inMarket: - $ref: '#/components/schemas/InMarketSizeEstimationV1' - location: - $ref: '#/components/schemas/LocationSizeEstimationV1' + algebra: + $ref: '#/components/schemas/AlgebraNodeV1' required: - advertiserId + - algebra type: object - AlgebraNodeV1: - description: Node in the audience algebra definition. + AudienceSearchEntityV1: + description: "Available filters to perform a search on segments. If present,\ + \ the filters are AND'ed together when applied." example: - not: null - or: - - null - - null - and: - - null - - null - audienceSegmentId: audienceSegmentId + adSetIds: + - adSetIds + - adSetIds + advertiserIds: + - advertiserIds + - advertiserIds + audienceSegmentIds: + - audienceSegmentIds + - audienceSegmentIds + audienceIds: + - audienceIds + - audienceIds properties: - and: + audienceIds: + description: List of audience ids items: - $ref: '#/components/schemas/AlgebraNodeV1' + type: string + nullable: true type: array - or: + advertiserIds: + description: List of advertiser ids items: - $ref: '#/components/schemas/AlgebraNodeV1' + type: string + nullable: true + type: array + audienceSegmentIds: + description: List of segment ids (linked to the result audiences) + items: + type: string + nullable: true + type: array + adSetIds: + description: List of AdSet ids + items: + type: string + nullable: true type: array - not: - $ref: '#/components/schemas/AlgebraNodeV1' - audienceSegmentId: - type: string type: object InMarketV1: description: Settings to target users based on high shopping intents and demographics. @@ -10436,6 +10566,7 @@ components: properties: country: description: Reach people of a specific country + nullable: true type: string buyingPower: description: Reach people who frequently purchase high price range items @@ -10448,6 +10579,7 @@ components: - High - VeryHigh type: string + nullable: true type: array uniqueItems: true gender: @@ -10457,17 +10589,20 @@ components: - Unknown - Male - Female + nullable: true type: string interestIds: description: Reach new people based on their interests items: type: string + nullable: true type: array uniqueItems: true brandIds: description: Choose the brands your segment might be interested in items: type: string + nullable: true type: array uniqueItems: true priceRange: @@ -10480,25 +10615,28 @@ components: - Medium - High type: string + nullable: true type: array uniqueItems: true type: object ProspectingV1: description: Settings to target prospecting users to website visitors. example: - daysSinceLastVisitMax: 5 + daysSinceLastVisitMax: 6 usersType: Unknown - daysSinceLastVisitMin: 5 + daysSinceLastVisitMin: 0 properties: daysSinceLastVisitMin: description: "When non buyers are included, include users who visited your\ \ website before this number of days" format: int32 + nullable: true type: integer daysSinceLastVisitMax: description: "When non buyers are included, include users who visited your\ \ website after this number of days" format: int32 + nullable: true type: integer usersType: description: Type of users to target @@ -10506,6 +10644,7 @@ components: - Unknown - Prospects - ProspectsOrNonBuyers + nullable: true type: string type: object ContactListV1: @@ -10515,6 +10654,7 @@ components: properties: isReadOnly: description: Is the segment read-only + nullable: true type: boolean type: object LocationV1: @@ -10522,30 +10662,33 @@ components: example: registryType: Unknown pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 9 + longitude: 5.962133916683182 + radiusInKm: 5 properties: pointsOfInterest: description: Reach users which have been historically located in the given coordinates items: $ref: '#/components/schemas/PointOfInterestV1' + nullable: true type: array radiusInKm: description: The expected maximum distance in kilometers between a user and a point of interest format: int32 + nullable: true type: integer registryType: description: The kind of Location audience enum: - Unknown - PointOfInterest + nullable: true type: string type: object BehavioralV1: @@ -10558,6 +10701,7 @@ components: properties: country: description: The users' country + nullable: true type: string category: description: The type of behavioral @@ -10571,10 +10715,12 @@ components: startDate: description: Desired date when the behavioral will start format: date-time + nullable: true type: string endDate: description: Desired date when the behavioral will end format: date-time + nullable: true type: string required: - category @@ -10584,8 +10730,8 @@ components: visit. example: visitorsType: Unknown - daysSinceLastVisitMax: 2 - daysSinceLastVisitMin: 3 + daysSinceLastVisitMax: 7 + daysSinceLastVisitMin: 2 properties: visitorsType: description: Types of visitors. @@ -10594,30 +10740,63 @@ components: - All - Buyers - NonBuyers + nullable: true type: string daysSinceLastVisitMin: description: Minimum number of days since last visit to partner. format: int32 + nullable: true type: integer daysSinceLastVisitMax: description: Maximum number of days since last visit to partner. format: int32 + nullable: true type: integer type: object LookalikeV1: description: Settings to target users that behave like a given seed segment example: - targetSize: 4 + targetSize: 9 seedSegmentId: seedSegmentId properties: seedSegmentId: description: Segment from which the Lookalike segment will be generated + nullable: true type: string targetSize: description: Desired size of the generated Lookalike segment format: int64 + nullable: true type: integer type: object + AlgebraNodeV1: + description: Node in the audience algebra definition. + example: + not: null + or: + - null + - null + and: + - null + - null + audienceSegmentId: audienceSegmentId + properties: + and: + items: + $ref: '#/components/schemas/AlgebraNodeV1' + nullable: true + type: array + or: + items: + $ref: '#/components/schemas/AlgebraNodeV1' + nullable: true + type: array + not: + $ref: '#/components/schemas/AlgebraNodeV1' + audienceSegmentId: + nullable: true + type: string + type: object NillableString: description: Placeholder object for string value for which "null" is a valid business value @@ -10627,9 +10806,10 @@ components: value: description: The string's value. If missing or null the string's value is set to "null" + nullable: true type: string type: object - InMarketCreateV1: + InMarketUpdateV1: description: Settings to target users based on high shopping intents and demographics. example: country: country @@ -10639,7 +10819,8 @@ components: buyingPower: - Low - Low - gender: Male + gender: + value: Male brandIds: - brandIds - brandIds @@ -10649,6 +10830,7 @@ components: properties: country: description: Reach people of a specific country + nullable: true type: string buyingPower: description: Reach people who frequently purchase high price range items @@ -10660,25 +10842,23 @@ components: - High - VeryHigh type: string + nullable: true type: array uniqueItems: true gender: - description: Reach people who’ve shown interest in products made for a specific - gender - enum: - - Male - - Female - type: string + $ref: '#/components/schemas/NillableGenderV1' interestIds: description: Reach new people based on their interests items: type: string + nullable: true type: array uniqueItems: true brandIds: description: Choose the brands your segment might be interested in items: type: string + nullable: true type: array uniqueItems: true priceRange: @@ -10690,74 +10870,49 @@ components: - Medium - High type: string + nullable: true type: array uniqueItems: true - required: - - country - type: object - ProspectingCreateV1: - description: Settings to target prospecting users to website visitors. - example: - daysSinceLastVisitMax: 6 - usersType: Prospects - daysSinceLastVisitMin: 0 - properties: - daysSinceLastVisitMin: - description: "When non buyers are included, include users who visited your\ - \ website before this number of days" - format: int32 - type: integer - daysSinceLastVisitMax: - description: "When non buyers are included, include users who visited your\ - \ website after this number of days" - format: int32 - type: integer - usersType: - description: Type of users to target - enum: - - Prospects - - ProspectsOrNonBuyers - type: string - required: - - usersType - type: object - ContactListCreateV1: - description: Settings to target users with your contact lists. type: object - LocationCreateV1: + LocationUpdateV1: description: Settings to target users based on their location. example: + registryType: PointOfInterest pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 1 + longitude: 5.962133916683182 + radiusInKm: 0 properties: pointsOfInterest: description: Reach users which have been historically located in the given coordinates items: $ref: '#/components/schemas/PointOfInterestV1' + nullable: true type: array radiusInKm: - description: The expected maximum distance in kilometers between a user - and a point of interest + description: Radius in kilometers format: int32 + nullable: true type: integer - required: - - pointsOfInterest - - radiusInKm + registryType: + description: The kind of Location audience + enum: + - PointOfInterest + nullable: true + type: string type: object - RetargetingCreateV1: + RetargetingUpdateV1: description: Settings to target users based on its type and days since last visit. example: visitorsType: All - daysSinceLastVisitMax: 5 - daysSinceLastVisitMin: 5 + daysSinceLastVisitMax: 1 + daysSinceLastVisitMin: 6 properties: visitorsType: description: Types of visitors. @@ -10765,37 +10920,52 @@ components: - All - Buyers - NonBuyers + nullable: true type: string daysSinceLastVisitMin: description: Minimum number of days since last visit to partner. format: int32 + nullable: true type: integer daysSinceLastVisitMax: description: Maximum number of days since last visit to partner. format: int32 + nullable: true type: integer - required: - - daysSinceLastVisitMax - - daysSinceLastVisitMin - - visitorsType type: object - LookalikeCreateV1: - description: Settings to target users close to a given seed segment. + LookalikeUpdateV1: + description: Settings to target users that behave like a given seed segment example: - targetSize: 2 - seedSegmentId: seedSegmentId + targetSize: 5 properties: - seedSegmentId: - description: Segment from which the Lookalike segment will be generated - type: string targetSize: description: Desired size of the generated Lookalike segment format: int64 + nullable: true type: integer - required: - - seedSegmentId type: object - InMarketUpdateV1: + ProspectingUpdateV1: + description: Settings to target prospecting users to website visitors. + example: + daysSinceLastVisitMax: + value: 5 + usersType: Prospects + daysSinceLastVisitMin: + value: 5 + properties: + daysSinceLastVisitMin: + $ref: '#/components/schemas/NillableInt32' + daysSinceLastVisitMax: + $ref: '#/components/schemas/NillableInt32' + usersType: + description: Type of users to target + enum: + - Prospects + - ProspectsOrNonBuyers + nullable: true + type: string + type: object + InMarketCreateV1: description: Settings to target users based on high shopping intents and demographics. example: country: country @@ -10805,8 +10975,7 @@ components: buyingPower: - Low - Low - gender: - value: Male + gender: Male brandIds: - brandIds - brandIds @@ -10827,20 +10996,29 @@ components: - High - VeryHigh type: string + nullable: true type: array uniqueItems: true gender: - $ref: '#/components/schemas/NillableGenderV1' + description: Reach people who’ve shown interest in products made for a specific + gender + enum: + - Male + - Female + nullable: true + type: string interestIds: description: Reach new people based on their interests items: type: string + nullable: true type: array uniqueItems: true brandIds: description: Choose the brands your segment might be interested in items: type: string + nullable: true type: array uniqueItems: true priceRange: @@ -10852,21 +11030,54 @@ components: - Medium - High type: string + nullable: true type: array uniqueItems: true + required: + - country type: object - LocationUpdateV1: + ProspectingCreateV1: + description: Settings to target prospecting users to website visitors. + example: + daysSinceLastVisitMax: 6 + usersType: Prospects + daysSinceLastVisitMin: 0 + properties: + daysSinceLastVisitMin: + description: "When non buyers are included, include users who visited your\ + \ website before this number of days" + format: int32 + nullable: true + type: integer + daysSinceLastVisitMax: + description: "When non buyers are included, include users who visited your\ + \ website after this number of days" + format: int32 + nullable: true + type: integer + usersType: + description: Type of users to target + enum: + - Prospects + - ProspectsOrNonBuyers + type: string + required: + - usersType + type: object + ContactListCreateV1: + description: Settings to target users with your contact lists. + type: object + LocationCreateV1: description: Settings to target users based on their location. example: - registryType: PointOfInterest pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - radiusInKm: 0 + longitude: 5.962133916683182 + radiusInKm: 1 properties: pointsOfInterest: description: Reach users which have been historically located in the given @@ -10875,22 +11086,21 @@ components: $ref: '#/components/schemas/PointOfInterestV1' type: array radiusInKm: - description: Radius in kilometers + description: The expected maximum distance in kilometers between a user + and a point of interest format: int32 type: integer - registryType: - description: The kind of Location audience - enum: - - PointOfInterest - type: string + required: + - pointsOfInterest + - radiusInKm type: object - RetargetingUpdateV1: + RetargetingCreateV1: description: Settings to target users based on its type and days since last visit. example: visitorsType: All - daysSinceLastVisitMax: 1 - daysSinceLastVisitMin: 6 + daysSinceLastVisitMax: 5 + daysSinceLastVisitMin: 5 properties: visitorsType: description: Types of visitors. @@ -10907,36 +11117,27 @@ components: description: Maximum number of days since last visit to partner. format: int32 type: integer + required: + - daysSinceLastVisitMax + - daysSinceLastVisitMin + - visitorsType type: object - LookalikeUpdateV1: - description: Settings to target users that behave like a given seed segment + LookalikeCreateV1: + description: Settings to target users close to a given seed segment. example: - targetSize: 5 + targetSize: 2 + seedSegmentId: seedSegmentId properties: + seedSegmentId: + description: Segment from which the Lookalike segment will be generated + type: string targetSize: description: Desired size of the generated Lookalike segment format: int64 + nullable: true type: integer - type: object - ProspectingUpdateV1: - description: Settings to target prospecting users to website visitors. - example: - daysSinceLastVisitMax: - value: 5 - usersType: Prospects - daysSinceLastVisitMin: - value: 5 - properties: - daysSinceLastVisitMin: - $ref: '#/components/schemas/NillableInt32' - daysSinceLastVisitMax: - $ref: '#/components/schemas/NillableInt32' - usersType: - description: Type of users to target - enum: - - Prospects - - ProspectsOrNonBuyers - type: string + required: + - seedSegmentId type: object InMarketSizeEstimationV1: description: Settings to target users based on high shopping intents and demographics. @@ -10966,21 +11167,25 @@ components: - High - VeryHigh type: string + nullable: true type: array uniqueItems: true gender: enum: - Male - Female + nullable: true type: string interestIds: items: type: string + nullable: true type: array uniqueItems: true brandIds: items: type: string + nullable: true type: array uniqueItems: true priceRange: @@ -10990,6 +11195,7 @@ components: - Medium - High type: string + nullable: true type: array uniqueItems: true required: @@ -10999,12 +11205,12 @@ components: description: Settings to define your audience based on their location. example: pointsOfInterest: - - latitude: 2.3021358869347655 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 - - latitude: 2.3021358869347655 + longitude: 5.962133916683182 + - latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 radiusInKm: 0 properties: pointsOfInterest: @@ -11022,20 +11228,23 @@ components: description: "Named coordinate defined by its latitude and longitude.\r\nLatitude\ \ and Longitude are rounded at 5 decimals." example: - latitude: 2.3021358869347655 + latitude: 1.4658129805029452 name: name - longitude: 7.061401241503109 + longitude: 5.962133916683182 properties: name: description: Name of the point of interest + nullable: true type: string latitude: description: ISO-6709 latitude (rounded at 5 decimals) format: double + nullable: true type: number longitude: description: ISO-6709 longitude (rounded at 5 decimals) format: double + nullable: true type: number type: object NillableGenderV1: @@ -11049,6 +11258,7 @@ components: enum: - Male - Female + nullable: true type: string type: object NillableInt32: @@ -11060,9 +11270,76 @@ components: value: description: The value. If missing or null the value is set to "null" format: int32 + nullable: true type: integer type: object - ResponseReadAdSetV23Q1: + ResponseAdSetId: + description: output resource + example: + data: + id: id + type: AdSetId + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $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 + type: object + ResponseReadAdSet: description: output resource example: data: @@ -11077,23 +11354,11 @@ components: targeting: geoLocation: zipCodes: - value: - values: - - values - - values - operand: undefined + value: null countries: - value: - values: - - values - - values - operand: undefined + value: null subdivisions: - value: - values: - - values - - values - operand: undefined + value: null frequencyCapping: maximumImpressions: 6 frequency: hourly @@ -11108,6 +11373,7 @@ components: - other - other bidding: + bidStrategy: actions bidAmount: value: 0.8008281904610115 costController: COS @@ -11117,7 +11383,6 @@ components: mediaType: display destinationEnvironment: undefined advertiserId: advertiserId - objective: customAction budget: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined @@ -11126,7 +11391,7 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSetV23Q1 + type: ReadAdSet warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -11171,16 +11436,18 @@ components: title: title properties: data: - $ref: '#/components/schemas/ReadModelReadAdSetV23Q1' + $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 @@ -11218,7 +11485,7 @@ components: - values operand: undefined frequencyCapping: - maximumImpressions: 6 + maximumImpressions: 0 frequency: hourly deliveryLimitations: operatingSystems: @@ -11279,7 +11546,7 @@ components: - values operand: undefined frequencyCapping: - maximumImpressions: 6 + maximumImpressions: 0 frequency: hourly deliveryLimitations: operatingSystems: @@ -11357,27 +11624,32 @@ components: data: items: $ref: '#/components/schemas/ReadModelReadAdSetV23Q1' + 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 @@ -11423,21 +11695,28 @@ 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 - ResponseReadAdSet: + ResponseReadAdSetV23Q1: description: output resource example: data: @@ -11452,11 +11731,23 @@ components: targeting: geoLocation: zipCodes: - value: null + value: + values: + - values + - values + operand: undefined countries: - value: null + value: + values: + - values + - values + operand: undefined subdivisions: - value: null + value: + values: + - values + - values + operand: undefined frequencyCapping: maximumImpressions: 0 frequency: hourly @@ -11471,7 +11762,6 @@ components: - other - other bidding: - bidStrategy: actions bidAmount: value: 0.8008281904610115 costController: COS @@ -11481,6 +11771,7 @@ components: mediaType: display destinationEnvironment: undefined advertiserId: advertiserId + objective: customAction budget: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined @@ -11489,7 +11780,7 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSet + type: ReadAdSetV23Q1 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -11534,28 +11825,36 @@ components: title: title properties: data: - $ref: '#/components/schemas/ReadModelReadAdSet' + $ref: '#/components/schemas/ReadModelReadAdSetV23Q1' 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 @@ -11601,37 +11900,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 - AdSetDisplayMultiplierListResponse: + PatchAdSetCategoryBidResultListResponse: description: Data model for a list of response resources example: data: - - attributes: - displayMultiplier: 0.8008281904610115 - categoryName: categoryName - id: id - type: AdSetDisplayMultiplier - - attributes: - displayMultiplier: 0.8008281904610115 - categoryName: categoryName - id: id - type: AdSetDisplayMultiplier + - id: id + type: AdSetCategoryBid + - id: id + type: AdSetCategoryBid warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -11677,29 +11972,38 @@ components: properties: data: items: - $ref: '#/components/schemas/AdSetDisplayMultiplierResource' + $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 - PatchAdSetDisplayMultiplierResultListResponse: + AdSetDisplayMultiplierListResponse: description: Data model for a list of response resources example: data: - - id: id + - attributes: + displayMultiplier: 0.8008281904610115 + categoryName: categoryName + id: id type: AdSetDisplayMultiplier - - id: id + - attributes: + displayMultiplier: 0.8008281904610115 + categoryName: categoryName + id: id type: AdSetDisplayMultiplier warnings: - traceId: traceId @@ -11746,36 +12050,33 @@ components: properties: data: items: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResultResource' + $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 - AdSetCategoryBidListResponse: + PatchAdSetDisplayMultiplierResultListResponse: description: Data model for a list of response resources example: data: - - attributes: - bidAmount: 0.8008281904610115 - categoryName: categoryName - id: id - type: AdSetCategoryBid - - attributes: - bidAmount: 0.8008281904610115 - categoryName: categoryName - id: id - type: AdSetCategoryBid + - id: id + type: AdSetDisplayMultiplier + - id: id + type: AdSetDisplayMultiplier warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -11821,30 +12122,33 @@ components: properties: data: items: - $ref: '#/components/schemas/AdSetCategoryBidResource' + $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 - PatchAdSetCategoryBidResultListResponse: - description: Data model for a list of response resources + PatchResultCampaignListResponse: + description: List of output resources example: data: - id: id - type: AdSetCategoryBid + type: Campaign - id: id - type: AdSetCategoryBid + type: Campaign warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -11890,18 +12194,22 @@ components: properties: data: items: - $ref: '#/components/schemas/PatchAdSetCategoryBidResultResource' + $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 @@ -11969,12 +12277,14 @@ components: 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 @@ -12051,108 +12361,24 @@ components: data: items: $ref: '#/components/schemas/CampaignV23Q1Resource' + 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 - example: - data: - - id: id - type: Campaign - - id: id - type: Campaign - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - items: - $ref: '#/components/schemas/PatchResultCampaignReadResource' - readOnly: true - type: array - uniqueItems: false - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - uniqueItems: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - uniqueItems: false - type: object - AdSetSearchRequestV23Q1: - description: request payload of the search endpoint - example: - filters: - adSetIds: - - adSetIds - - adSetIds - advertiserIds: - - advertiserIds - - advertiserIds - campaignIds: - - campaignIds - - campaignIds - properties: - filters: - $ref: '#/components/schemas/AdSetSearchFilterV23Q1' - type: object RequestsPatchAdSet: description: List of input resources example: @@ -12167,7 +12393,7 @@ components: subdivisions: value: null frequencyCapping: - maximumImpressions: 0 + maximumImpressions: 6 frequency: hourly deliveryLimitations: operatingSystems: @@ -12207,7 +12433,7 @@ components: subdivisions: value: null frequencyCapping: - maximumImpressions: 0 + maximumImpressions: 6 frequency: hourly deliveryLimitations: operatingSystems: @@ -12241,6 +12467,7 @@ components: data: items: $ref: '#/components/schemas/WriteModelPatchAdSet' + nullable: true type: array uniqueItems: false type: object @@ -12270,7 +12497,7 @@ components: - values operand: undefined frequencyCapping: - maximumImpressions: 0 + maximumImpressions: 6 frequency: hourly deliveryLimitations: operatingSystems: @@ -12302,6 +12529,23 @@ components: data: $ref: '#/components/schemas/CreateAdSetResource' type: object + AdSetSearchRequestV23Q1: + description: request payload of the search endpoint + example: + filters: + adSetIds: + - adSetIds + - adSetIds + advertiserIds: + - advertiserIds + - advertiserIds + campaignIds: + - campaignIds + - campaignIds + properties: + filters: + $ref: '#/components/schemas/AdSetSearchFilterV23Q1' + type: object RequestsAdSetId: description: List of input resources example: @@ -12314,25 +12558,7 @@ components: data: items: $ref: '#/components/schemas/WriteModelAdSetId' - type: array - uniqueItems: false - type: object - PatchAdSetDisplayMultiplierListRequest: - description: Data model for a list of input resources - example: - data: - - attributes: - displayMultiplier: 0.8008281904610115 - id: id - type: AdSetDisplayMultiplier - - attributes: - displayMultiplier: 0.8008281904610115 - id: id - type: AdSetDisplayMultiplier - properties: - data: - items: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResource' + nullable: true type: array uniqueItems: false type: object @@ -12352,39 +12578,29 @@ components: data: items: $ref: '#/components/schemas/PatchAdSetCategoryBidResource' + nullable: true type: array uniqueItems: false - type: object - CampaignSearchRequestV23Q1: - description: request payload of the search endpoint - example: - filters: - advertiserIds: - - advertiserIds - - advertiserIds - campaignIds: - - campaignIds - - campaignIds - properties: - filters: - $ref: '#/components/schemas/CampaignSearchFiltersV23Q1' - type: object - CreateCampaignRequest: - description: Data model for an input resources + type: object + PatchAdSetDisplayMultiplierListRequest: + description: Data model for a list of input resources example: data: - attributes: - goal: Unspecified - name: name - spendLimit: - spendLimitRenewal: undefined - spendLimitAmount: 0.8008281904610115 - spendLimitType: capped - advertiserId: advertiserId - type: Campaign + - attributes: + displayMultiplier: 0.8008281904610115 + id: id + type: AdSetDisplayMultiplier + - attributes: + displayMultiplier: 0.8008281904610115 + id: id + type: AdSetDisplayMultiplier properties: data: - $ref: '#/components/schemas/CreateCampaignResource' + items: + $ref: '#/components/schemas/PatchAdSetDisplayMultiplierResource' + nullable: true + type: array + uniqueItems: false type: object PatchCampaignListRequest: description: List of input resources @@ -12410,84 +12626,57 @@ components: data: items: $ref: '#/components/schemas/PatchCampaignWriteResource' + nullable: true type: array uniqueItems: false type: object - ReadModelReadAdSetV23Q1: + CreateCampaignRequest: + description: Data model for an input resources + example: + data: + attributes: + goal: Unspecified + name: name + spendLimit: + spendLimitRenewal: undefined + spendLimitAmount: 0.8008281904610115 + spendLimitType: capped + advertiserId: advertiserId + type: Campaign + properties: + data: + $ref: '#/components/schemas/CreateCampaignResource' + type: object + CampaignSearchRequestV23Q1: + description: request payload of the search endpoint + example: + filters: + advertiserIds: + - advertiserIds + - advertiserIds + campaignIds: + - campaignIds + - campaignIds + properties: + filters: + $ref: '#/components/schemas/CampaignSearchFiltersV23Q1' + type: object + ReadModelAdSetId: 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: - values: - - values - - values - operand: undefined - countries: - value: - values: - - values - - values - operand: undefined - subdivisions: - value: - values: - - values - - values - operand: undefined - frequencyCapping: - maximumImpressions: 6 - frequency: hourly - deliveryLimitations: - operatingSystems: - - android - - android - environments: - - web - - web - devices: - - other - - other - bidding: - bidAmount: - value: 0.8008281904610115 - costController: COS - campaignId: campaignId - name: name - datasetId: datasetId - mediaType: display - destinationEnvironment: undefined - advertiserId: advertiserId - objective: customAction - budget: - budgetDeliverySmoothing: accelerated - budgetDeliveryWeek: undefined - budgetAmount: - value: 0.8008281904610115 - budgetRenewal: undefined - budgetStrategy: capped id: id - type: ReadAdSetV23Q1 + type: AdSetId properties: id: description: Id of the entity + nullable: true readOnly: true type: string type: - example: ReadAdSetV23Q1 + example: AdSetId + nullable: true readOnly: true type: string - attributes: - $ref: '#/components/schemas/ReadAdSetV23Q1' type: object ProblemDetails: description: Data model for common error or warning @@ -12505,10 +12694,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: @@ -12520,38 +12711,96 @@ 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 - ReadModelReadAdSet: + ReadModelReadAdSetV23Q1: description: read model data for resources example: attributes: @@ -12565,11 +12814,23 @@ components: targeting: geoLocation: zipCodes: - value: null + value: + values: + - values + - values + operand: undefined countries: - value: null + value: + values: + - values + - values + operand: undefined subdivisions: - value: null + value: + values: + - values + - values + operand: undefined frequencyCapping: maximumImpressions: 0 frequency: hourly @@ -12584,7 +12845,6 @@ components: - other - other bidding: - bidStrategy: actions bidAmount: value: 0.8008281904610115 costController: COS @@ -12594,6 +12854,7 @@ components: mediaType: display destinationEnvironment: undefined advertiserId: advertiserId + objective: customAction budget: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined @@ -12602,83 +12863,110 @@ components: budgetRenewal: undefined budgetStrategy: capped id: id - type: ReadAdSet + type: ReadAdSetV23Q1 properties: id: description: Id of the entity + nullable: true readOnly: true type: string type: - example: ReadAdSet + example: ReadAdSetV23Q1 + nullable: true readOnly: true type: string attributes: - $ref: '#/components/schemas/ReadAdSet' + $ref: '#/components/schemas/ReadAdSetV23Q1' type: object - AdSetDisplayMultiplierResource: + AdSetCategoryBidResource: description: Data model for a Resource example: attributes: - displayMultiplier: 0.8008281904610115 + bidAmount: 0.8008281904610115 categoryName: categoryName id: id - type: AdSetDisplayMultiplier + type: AdSetCategoryBid properties: attributes: - $ref: '#/components/schemas/AdSetDisplayMultiplier' + $ref: '#/components/schemas/AdSetCategoryBid' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity - example: AdSetDisplayMultiplier + example: AdSetCategoryBid + nullable: true type: string type: object - PatchAdSetDisplayMultiplierResultResource: + PatchAdSetCategoryBidResultResource: + description: Data model for a Resource + example: + id: id + type: AdSetCategoryBid + properties: + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + example: AdSetCategoryBid + nullable: true + type: string + type: object + AdSetDisplayMultiplierResource: description: Data model for a Resource example: + attributes: + displayMultiplier: 0.8008281904610115 + categoryName: categoryName id: id type: AdSetDisplayMultiplier properties: + attributes: + $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 - AdSetCategoryBidResource: + PatchAdSetDisplayMultiplierResultResource: description: Data model for a Resource example: - attributes: - bidAmount: 0.8008281904610115 - categoryName: categoryName id: id - type: AdSetCategoryBid + type: AdSetDisplayMultiplier properties: - attributes: - $ref: '#/components/schemas/AdSetCategoryBid' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity - example: AdSetCategoryBid + example: AdSetDisplayMultiplier + nullable: true type: string type: object - PatchAdSetCategoryBidResultResource: - description: Data model for a Resource + PatchResultCampaignReadResource: + description: read model data for resources example: 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 CampaignV23Q1Resource: @@ -12700,60 +12988,14 @@ components: $ref: '#/components/schemas/CampaignV23Q1' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity example: Campaign + nullable: true type: string type: object - PatchResultCampaignReadResource: - description: read model data for resources - example: - id: id - type: Campaign - properties: - id: - description: Id of the entity - readOnly: true - type: string - type: - example: Campaign - readOnly: true - type: string - type: object - AdSetSearchFilterV23Q1: - 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 - type: object WriteModelPatchAdSet: description: write model data for resources example: @@ -12767,7 +13009,7 @@ components: subdivisions: value: null frequencyCapping: - maximumImpressions: 0 + maximumImpressions: 6 frequency: hourly deliveryLimitations: operatingSystems: @@ -12800,10 +13042,12 @@ 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' @@ -12833,7 +13077,7 @@ components: - values operand: undefined frequencyCapping: - maximumImpressions: 0 + maximumImpressions: 6 frequency: hourly deliveryLimitations: operatingSystems: @@ -12867,8 +13111,45 @@ components: type: description: Canonical type name of the entity example: AdSet + nullable: true type: string type: object + AdSetSearchFilterV23Q1: + 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 + nullable: true + type: array + uniqueItems: false + advertiserIds: + 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 WriteModelAdSetId: description: write model data for resources example: @@ -12877,70 +13158,77 @@ components: 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 - PatchAdSetDisplayMultiplierResource: + PatchAdSetCategoryBidResource: description: Data model for a Resource example: attributes: - displayMultiplier: 0.8008281904610115 + bidAmount: 0.8008281904610115 id: id - type: AdSetDisplayMultiplier + type: AdSetCategoryBid properties: attributes: - $ref: '#/components/schemas/PatchAdSetDisplayMultiplier' + $ref: '#/components/schemas/PatchAdSetCategoryBid' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity - example: AdSetDisplayMultiplier + example: AdSetCategoryBid + nullable: true type: string type: object - PatchAdSetCategoryBidResource: + PatchAdSetDisplayMultiplierResource: description: Data model for a Resource example: attributes: - bidAmount: 0.8008281904610115 + displayMultiplier: 0.8008281904610115 id: id - type: AdSetCategoryBid + type: AdSetDisplayMultiplier properties: attributes: - $ref: '#/components/schemas/PatchAdSetCategoryBid' + $ref: '#/components/schemas/PatchAdSetDisplayMultiplier' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity - example: AdSetCategoryBid + example: AdSetDisplayMultiplier + nullable: true type: string type: object - CampaignSearchFiltersV23Q1: - description: filters on campaign + PatchCampaignWriteResource: + description: write model data for resources example: - advertiserIds: - - advertiserIds - - advertiserIds - campaignIds: - - campaignIds - - campaignIds + attributes: + spendLimit: + spendLimitRenewal: undefined + spendLimitAmount: + value: 0.8008281904610115 + spendLimitType: capped + id: id + type: Campaign properties: - campaignIds: - description: Campaign ids to filter on - items: - type: string - type: array - uniqueItems: false - advertiserIds: - description: Advertiser ids to which campaigns are linked to - items: - type: string - type: array - uniqueItems: false + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + example: Campaign + nullable: true + type: string + attributes: + $ref: '#/components/schemas/PatchCampaign' type: object CreateCampaignResource: description: Data model for a Resource @@ -12960,31 +13248,35 @@ components: type: description: Canonical type name of the entity example: Campaign + nullable: true type: string type: object - PatchCampaignWriteResource: - description: write model data for resources + CampaignSearchFiltersV23Q1: + description: filters on campaign example: - attributes: - spendLimit: - spendLimitRenewal: undefined - spendLimitAmount: - value: 0.8008281904610115 - spendLimitType: capped - id: id - type: Campaign + advertiserIds: + - advertiserIds + - advertiserIds + campaignIds: + - campaignIds + - campaignIds properties: - id: - description: Id of the entity - type: string - type: - description: Canonical type name of the entity - example: Campaign - type: string - attributes: - $ref: '#/components/schemas/PatchCampaign' + 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 - ReadAdSetV23Q1: + ReadAdSet: description: ad set read model example: schedule: @@ -12997,23 +13289,11 @@ components: targeting: geoLocation: zipCodes: - value: - values: - - values - - values - operand: undefined + value: null countries: - value: - values: - - values - - values - operand: undefined + value: null subdivisions: - value: - values: - - values - - values - operand: undefined + value: null frequencyCapping: maximumImpressions: 6 frequency: hourly @@ -13028,6 +13308,7 @@ components: - other - other bidding: + bidStrategy: actions bidAmount: value: 0.8008281904610115 costController: COS @@ -13037,7 +13318,6 @@ components: mediaType: display destinationEnvironment: undefined advertiserId: advertiserId - objective: customAction budget: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined @@ -13048,15 +13328,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 @@ -13064,38 +13348,25 @@ components: - undefined - web - app - type: string - objective: - description: Objective of the ad set - enum: - - customAction - - clicks - - conversions - - displays - - appPromotion - - revenue - - storeConversions - - value - - reach - - visits - - videoViews + nullable: true type: string schedule: - $ref: '#/components/schemas/ReadAdSetScheduleV23Q1' + $ref: '#/components/schemas/ReadAdSetSchedule' bidding: - $ref: '#/components/schemas/ReadAdSetBiddingV23Q1' + $ref: '#/components/schemas/ReadAdSetBidding' targeting: - $ref: '#/components/schemas/AdSetTargetingV23Q1' + $ref: '#/components/schemas/AdSetTargeting' budget: - $ref: '#/components/schemas/ReadAdSetBudgetV23Q1' + $ref: '#/components/schemas/ReadAdSetBudget' mediaType: - description: Media type of the ad set + description: Media type for the ad set enum: - display - video + nullable: true type: string type: object - ReadAdSet: + ReadAdSetV23Q1: description: ad set read model example: schedule: @@ -13108,11 +13379,23 @@ components: targeting: geoLocation: zipCodes: - value: null + value: + values: + - values + - values + operand: undefined countries: - value: null + value: + values: + - values + - values + operand: undefined subdivisions: - value: null + value: + values: + - values + - values + operand: undefined frequencyCapping: maximumImpressions: 0 frequency: hourly @@ -13127,7 +13410,6 @@ components: - other - other bidding: - bidStrategy: actions bidAmount: value: 0.8008281904610115 costController: COS @@ -13137,6 +13419,7 @@ components: mediaType: display destinationEnvironment: undefined advertiserId: advertiserId + objective: customAction budget: budgetDeliverySmoothing: accelerated budgetDeliveryWeek: undefined @@ -13147,15 +13430,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 @@ -13163,21 +13450,57 @@ components: - undefined - web - app + nullable: true + type: string + objective: + description: Objective of the ad set + enum: + - customAction + - clicks + - conversions + - displays + - appPromotion + - revenue + - storeConversions + - value + - reach + - visits + - videoViews + nullable: true type: string schedule: - $ref: '#/components/schemas/ReadAdSetSchedule' + $ref: '#/components/schemas/ReadAdSetScheduleV23Q1' bidding: - $ref: '#/components/schemas/ReadAdSetBidding' + $ref: '#/components/schemas/ReadAdSetBiddingV23Q1' targeting: - $ref: '#/components/schemas/AdSetTargeting' + $ref: '#/components/schemas/AdSetTargetingV23Q1' budget: - $ref: '#/components/schemas/ReadAdSetBudget' + $ref: '#/components/schemas/ReadAdSetBudgetV23Q1' mediaType: - description: Media type for the ad set + description: Media type of the ad set 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 @@ -13189,27 +13512,13 @@ components: 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 - 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 + nullable: true type: number type: object CampaignV23Q1: @@ -13226,9 +13535,11 @@ components: properties: name: description: Name of the campaign + nullable: true type: string advertiserId: description: Advertiser id of the campaign + nullable: true type: string spendLimit: $ref: '#/components/schemas/CampaignSpendLimitV23Q1' @@ -13238,6 +13549,7 @@ components: - unspecified - acquisition - retention + nullable: true type: string type: object PatchAdSet: @@ -13252,7 +13564,7 @@ components: subdivisions: value: null frequencyCapping: - maximumImpressions: 0 + maximumImpressions: 6 frequency: hourly deliveryLimitations: operatingSystems: @@ -13283,6 +13595,7 @@ components: properties: name: description: Name of the ad set + nullable: true type: string scheduling: $ref: '#/components/schemas/PatchAdSetScheduling' @@ -13317,7 +13630,7 @@ components: - values operand: undefined frequencyCapping: - maximumImpressions: 0 + maximumImpressions: 6 frequency: hourly deliveryLimitations: operatingSystems: @@ -13398,6 +13711,18 @@ components: - targeting - trackingCode type: object + PatchAdSetCategoryBid: + description: Category Bid to update for a given combination of Ad Set and Category. + example: + bidAmount: 0.8008281904610115 + 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 + nullable: true + type: number + type: object PatchAdSetDisplayMultiplier: description: Display Multiplier to update for a given combination of Ad Set and Category. @@ -13409,18 +13734,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 CreateCampaign: description: Campaign create model @@ -13454,19 +13781,7 @@ components: - name - spendLimit type: object - PatchCampaign: - description: campaign patch model - example: - spendLimit: - spendLimitRenewal: undefined - spendLimitAmount: - value: 0.8008281904610115 - spendLimitType: capped - properties: - spendLimit: - $ref: '#/components/schemas/PatchCampaignSpendLimit' - type: object - ReadAdSetScheduleV23Q1: + ReadAdSetSchedule: description: ad set schedule read model example: endDate: @@ -13486,6 +13801,7 @@ components: enum: - "on" - "off" + nullable: true type: string deliveryStatus: description: "Delivery status of the delivery of the ad set, i.e. whether\ @@ -13501,17 +13817,35 @@ components: - ended - notDelivering - archived + nullable: true type: string type: object - ReadAdSetBiddingV23Q1: + ReadAdSetBidding: description: ad set bidding read model example: + bidStrategy: actions bidAmount: value: 0.8008281904610115 costController: COS properties: bidAmount: $ref: '#/components/schemas/NillableDecimal' + bidStrategy: + description: The intended optimization for the Ad Set + enum: + - actions + - clicks + - conversions + - displays + - installs + - revenue + - storeConversions + - value + - viewedImpressions + - Visits + - completedVideoViews + nullable: true + type: string costController: description: How spend is controlled enum: @@ -13523,31 +13857,19 @@ components: - CPSV - CPV - dailyBudget - - targetCPM + nullable: true type: string type: object - AdSetTargetingV23Q1: + AdSetTargeting: description: ad set targeting model example: geoLocation: zipCodes: - value: - values: - - values - - values - operand: undefined + value: null countries: - value: - values: - - values - - values - operand: undefined + value: null subdivisions: - value: - values: - - values - - values - operand: undefined + value: null frequencyCapping: maximumImpressions: 6 frequency: hourly @@ -13563,13 +13885,13 @@ components: - other properties: deliveryLimitations: - $ref: '#/components/schemas/AdSetDeliveryLimitationsV23Q1' + $ref: '#/components/schemas/AdSetDeliveryLimitations' geoLocation: - $ref: '#/components/schemas/AdSetGeoLocationV23Q1' + $ref: '#/components/schemas/AdSetGeoLocation' frequencyCapping: - $ref: '#/components/schemas/AdSetFrequencyCappingV23Q1' + $ref: '#/components/schemas/AdSetFrequencyCapping' type: object - ReadAdSetBudgetV23Q1: + ReadAdSetBudget: description: ad set budget read model example: budgetDeliverySmoothing: accelerated @@ -13584,6 +13906,7 @@ components: enum: - capped - uncapped + nullable: true type: string budgetRenewal: description: The pace of the budget renewal @@ -13592,12 +13915,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 @@ -13610,11 +13935,12 @@ components: - fridayToThursday - saturdayToFriday - sundayToSaturday + nullable: true type: string budgetAmount: $ref: '#/components/schemas/NillableDecimal' type: object - ReadAdSetSchedule: + ReadAdSetScheduleV23Q1: description: ad set schedule read model example: endDate: @@ -13634,6 +13960,7 @@ components: enum: - "on" - "off" + nullable: true type: string deliveryStatus: description: "Delivery status of the delivery of the ad set, i.e. whether\ @@ -13648,34 +13975,19 @@ components: - scheduled - ended - notDelivering - - archived - type: string - type: object - ReadAdSetBidding: - description: ad set bidding read model - example: - bidStrategy: actions - bidAmount: - value: 0.8008281904610115 - costController: COS - properties: - bidAmount: - $ref: '#/components/schemas/NillableDecimal' - bidStrategy: - description: The intended optimization for the Ad Set - enum: - - actions - - clicks - - conversions - - displays - - installs - - revenue - - storeConversions - - value - - viewedImpressions - - Visits - - completedVideoViews + - archived + nullable: true type: string + type: object + ReadAdSetBiddingV23Q1: + description: ad set bidding read model + example: + bidAmount: + value: 0.8008281904610115 + costController: COS + properties: + bidAmount: + $ref: '#/components/schemas/NillableDecimal' costController: description: How spend is controlled enum: @@ -13687,18 +13999,32 @@ components: - CPSV - CPV - dailyBudget + - targetCPM + nullable: true type: string type: object - AdSetTargeting: + AdSetTargetingV23Q1: description: ad set targeting model example: geoLocation: zipCodes: - value: null + value: + values: + - values + - values + operand: undefined countries: - value: null + value: + values: + - values + - values + operand: undefined subdivisions: - value: null + value: + values: + - values + - values + operand: undefined frequencyCapping: maximumImpressions: 0 frequency: hourly @@ -13714,13 +14040,13 @@ components: - other properties: deliveryLimitations: - $ref: '#/components/schemas/AdSetDeliveryLimitations' + $ref: '#/components/schemas/AdSetDeliveryLimitationsV23Q1' geoLocation: - $ref: '#/components/schemas/AdSetGeoLocation' + $ref: '#/components/schemas/AdSetGeoLocationV23Q1' frequencyCapping: - $ref: '#/components/schemas/AdSetFrequencyCapping' + $ref: '#/components/schemas/AdSetFrequencyCappingV23Q1' type: object - ReadAdSetBudget: + ReadAdSetBudgetV23Q1: description: ad set budget read model example: budgetDeliverySmoothing: accelerated @@ -13735,6 +14061,7 @@ components: enum: - capped - uncapped + nullable: true type: string budgetRenewal: description: The pace of the budget renewal @@ -13743,12 +14070,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 @@ -13761,6 +14090,7 @@ components: - fridayToThursday - saturdayToFriday - sundayToSaturday + nullable: true type: string budgetAmount: $ref: '#/components/schemas/NillableDecimal' @@ -13778,6 +14108,7 @@ components: enum: - capped - uncapped + nullable: true type: string spendLimitRenewal: description: The pace of the spend limit renewal @@ -13786,6 +14117,7 @@ components: - daily - monthly - lifetime + nullable: true type: string spendLimitAmount: $ref: '#/components/schemas/NillableDecimal' @@ -13827,6 +14159,7 @@ components: enum: - capped - uncapped + nullable: true type: string budgetRenewal: description: The pace of the budget renewal @@ -13835,12 +14168,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 @@ -13853,6 +14188,7 @@ components: - fridayToThursday - saturdayToFriday - sundayToSaturday + nullable: true type: string budgetAmount: $ref: '#/components/schemas/NillableDecimal' @@ -13868,6 +14204,7 @@ components: type: string endDate: format: date-time + nullable: true type: string required: - startDate @@ -13883,6 +14220,7 @@ components: May be `null` for strategies that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded. format: double + nullable: true type: number costController: description: How spend is controlled @@ -13919,7 +14257,7 @@ components: - values operand: undefined frequencyCapping: - maximumImpressions: 0 + maximumImpressions: 6 frequency: hourly deliveryLimitations: operatingSystems: @@ -13961,11 +14299,13 @@ components: - daily - monthly - lifetime + nullable: true type: string budgetDeliverySmoothing: enum: - accelerated - standard + nullable: true type: string budgetDeliveryWeek: enum: @@ -13977,18 +14317,21 @@ components: - fridayToThursday - saturdayToFriday - sundayToSaturday + nullable: true type: string budgetAmount: format: double + nullable: true type: number required: - budgetStrategy type: object - CreateCampaignSpendLimit: - description: campaign spend limit create model + PatchCampaignSpendLimit: + description: campaign spend limit model example: spendLimitRenewal: undefined - spendLimitAmount: 0.8008281904610115 + spendLimitAmount: + value: 0.8008281904610115 spendLimitType: capped properties: spendLimitType: @@ -13996,6 +14339,7 @@ components: enum: - capped - uncapped + nullable: true type: string spendLimitRenewal: description: The pace of the spend limit renewal @@ -14004,20 +14348,16 @@ components: - daily - monthly - lifetime + nullable: true type: string spendLimitAmount: - description: The amount of the spend limit. null if spendLimitType is uncapped. - format: double - type: number - required: - - spendLimitType + $ref: '#/components/schemas/NillableDecimal' type: object - PatchCampaignSpendLimit: - description: campaign spend limit model + CreateCampaignSpendLimit: + description: campaign spend limit create model example: spendLimitRenewal: undefined - spendLimitAmount: - value: 0.8008281904610115 + spendLimitAmount: 0.8008281904610115 spendLimitType: capped properties: spendLimitType: @@ -14033,9 +14373,15 @@ components: - daily - monthly - lifetime + nullable: true type: string spendLimitAmount: - $ref: '#/components/schemas/NillableDecimal' + description: The amount of the spend limit. null if spendLimitType is uncapped. + format: double + nullable: true + type: number + required: + - spendLimitType type: object NillableDateTime: description: "structure that encapsulates an object that have valid business\ @@ -14067,7 +14413,7 @@ components: required: - value type: object - AdSetDeliveryLimitationsV23Q1: + AdSetDeliveryLimitations: description: ad set delivery limitations model example: operatingSystems: @@ -14087,6 +14433,7 @@ components: - web - inApp type: string + nullable: true type: array uniqueItems: false devices: @@ -14098,6 +14445,7 @@ components: - mobile - tablet type: string + nullable: true type: array uniqueItems: false operatingSystems: @@ -14108,39 +14456,28 @@ components: - ios - unknown type: string + nullable: true type: array uniqueItems: false type: object - AdSetGeoLocationV23Q1: + AdSetGeoLocation: description: ad set geolocation model example: zipCodes: - value: - values: - - values - - values - operand: undefined + value: null countries: - value: - values: - - values - - values - operand: undefined + value: null subdivisions: - value: - values: - - values - - values - operand: undefined + value: null properties: countries: - $ref: '#/components/schemas/NillableAdSetTargetingRuleV23Q1' + $ref: '#/components/schemas/NillableAdSetTargetingRule' subdivisions: - $ref: '#/components/schemas/NillableAdSetTargetingRuleV23Q1' + $ref: '#/components/schemas/NillableAdSetTargetingRule' zipCodes: - $ref: '#/components/schemas/NillableAdSetTargetingRuleV23Q1' + $ref: '#/components/schemas/NillableAdSetTargetingRule' type: object - AdSetFrequencyCappingV23Q1: + AdSetFrequencyCapping: description: ad set frequency capping model example: maximumImpressions: 6 @@ -14153,13 +14490,15 @@ components: - daily - lifetime - advanced + nullable: true type: string maximumImpressions: description: Maximum impressions for the specified period format: int32 + nullable: true type: integer type: object - AdSetDeliveryLimitations: + AdSetDeliveryLimitationsV23Q1: description: ad set delivery limitations model example: operatingSystems: @@ -14179,6 +14518,7 @@ components: - web - inApp type: string + nullable: true type: array uniqueItems: false devices: @@ -14190,6 +14530,7 @@ components: - mobile - tablet type: string + nullable: true type: array uniqueItems: false operatingSystems: @@ -14200,27 +14541,40 @@ components: - ios - unknown type: string + nullable: true type: array uniqueItems: false type: object - AdSetGeoLocation: + AdSetGeoLocationV23Q1: description: ad set geolocation model example: zipCodes: - value: null + value: + values: + - values + - values + operand: undefined countries: - value: null + value: + values: + - values + - values + operand: undefined subdivisions: - value: null + value: + values: + - values + - values + operand: undefined properties: countries: - $ref: '#/components/schemas/NillableAdSetTargetingRule' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV23Q1' subdivisions: - $ref: '#/components/schemas/NillableAdSetTargetingRule' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV23Q1' zipCodes: - $ref: '#/components/schemas/NillableAdSetTargetingRule' + $ref: '#/components/schemas/NillableAdSetTargetingRuleV23Q1' type: object - AdSetFrequencyCapping: + AdSetFrequencyCappingV23Q1: description: ad set frequency capping model example: maximumImpressions: 0 @@ -14233,10 +14587,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 CreateAdSetGeoLocation: @@ -14265,31 +14621,31 @@ components: zipCodes: $ref: '#/components/schemas/AdSetTargetingRule' type: object - NillableAdSetTargetingRuleV23Q1: + NillableAdSetTargetingRule: description: "structure that encapsulates an object that have valid business\ \ null values. If the structure is provided (i.e. not null), then the value\ \ in it, even null, is provided." example: - value: - values: - - values - - values - operand: undefined + value: null properties: value: - $ref: '#/components/schemas/AdSetTargetingRuleV23Q1' + $ref: '#/components/schemas/NillableAdSetTargetingRule_value' + required: + - value type: object - NillableAdSetTargetingRule: + NillableAdSetTargetingRuleV23Q1: description: "structure that encapsulates an object that have valid business\ \ null values. If the structure is provided (i.e. not null), then the value\ \ in it, even null, is provided." example: - value: null + value: + values: + - values + - values + operand: undefined properties: value: - $ref: '#/components/schemas/NillableAdSetTargetingRule_value' - required: - - value + $ref: '#/components/schemas/AdSetTargetingRuleV23Q1' type: object AdSetTargetingRule: description: ad set targeting rule model @@ -14305,11 +14661,13 @@ 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 @@ -14327,184 +14685,112 @@ components: - undefined - in - notIn + nullable: true type: string values: description: List of values to apply items: - type: string + type: string + nullable: true + type: array + uniqueItems: false + type: object + AdResponse: + description: Data model for response resource + example: + data: + attributes: + inventoryType: Native + endDate: endDate + name: name + adSetId: adSetId + description: description + creativeId: creativeId + startDate: startDate + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/AdResource' + 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 type: object - CreativeListResponse: + AdListResponse: description: Data model for a list of response resources example: data: - attributes: - dynamicAttributes: - creativeBackgroundColor: creativeBackgroundColor - primaryFont: primaryFont - pricesColor: pricesColor - bodyTextColor: bodyTextColor - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - productImageDisplay: ShowFullImage - adaptiveAttributes: - descriptionFont: descriptionFont - imageDisplay: ShowFullImage - videos: - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - headlineFont: headlineFont - descriptionText: descriptionText - imageSets: - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - layouts: - - Editorial - - Editorial - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - landingPageUrl: https://openapi-generator.tech - colors: - backgroundColor: backgroundColor - text2Color: text2Color - ctaTextColor: ctaTextColor - text1Color: text1Color - ctaBackgroundColor: ctaBackgroundColor - logoAreaAndTitleColor: logoAreaAndTitleColor - headlineText: headlineText - imageAttributes: - urls: - - urls - - urls - landingPageUrl: https://openapi-generator.tech - author: author + inventoryType: Native + endDate: endDate name: name - format: format + adSetId: adSetId description: description - datasetId: datasetId - status: status - advertiserId: advertiserId - htmlTagAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 + creativeId: creativeId + startDate: startDate id: id type: type - attributes: - dynamicAttributes: - creativeBackgroundColor: creativeBackgroundColor - primaryFont: primaryFont - pricesColor: pricesColor - bodyTextColor: bodyTextColor - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - productImageDisplay: ShowFullImage - adaptiveAttributes: - descriptionFont: descriptionFont - imageDisplay: ShowFullImage - videos: - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - headlineFont: headlineFont - descriptionText: descriptionText - imageSets: - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - layouts: - - Editorial - - Editorial - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - landingPageUrl: https://openapi-generator.tech - colors: - backgroundColor: backgroundColor - text2Color: text2Color - ctaTextColor: ctaTextColor - text1Color: text1Color - ctaBackgroundColor: ctaBackgroundColor - logoAreaAndTitleColor: logoAreaAndTitleColor - headlineText: headlineText - imageAttributes: - urls: - - urls - - urls - landingPageUrl: https://openapi-generator.tech - author: author + inventoryType: Native + endDate: endDate name: name - format: format + adSetId: adSetId description: description - datasetId: datasetId - status: status - advertiserId: advertiserId - htmlTagAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 + creativeId: creativeId + startDate: startDate id: id type: type warnings: @@ -14552,108 +14838,81 @@ components: properties: data: items: - $ref: '#/components/schemas/CreativeResource' + $ref: '#/components/schemas/AdResource' + nullable: true type: array uniqueItems: false warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array uniqueItems: false errors: items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - uniqueItems: false - type: object - CreativeResponse: - description: Data model for response resource - example: - data: - attributes: - dynamicAttributes: - creativeBackgroundColor: creativeBackgroundColor - primaryFont: primaryFont - pricesColor: pricesColor - bodyTextColor: bodyTextColor - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - productImageDisplay: ShowFullImage - adaptiveAttributes: - descriptionFont: descriptionFont - imageDisplay: ShowFullImage - videos: - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - headlineFont: headlineFont - descriptionText: descriptionText - imageSets: - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - layouts: - - Editorial - - Editorial - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - landingPageUrl: https://openapi-generator.tech - colors: - backgroundColor: backgroundColor - text2Color: text2Color - ctaTextColor: ctaTextColor - text1Color: text1Color - ctaBackgroundColor: ctaBackgroundColor - logoAreaAndTitleColor: logoAreaAndTitleColor - headlineText: headlineText - imageAttributes: - urls: - - urls - - urls - landingPageUrl: https://openapi-generator.tech + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + uniqueItems: false + type: object + CouponListResponse: + description: Data model for a list of response resources + example: + data: + - attributes: + showEvery: 1 + images: + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + endDate: endDate author: author - name: name format: format description: description - datasetId: datasetId + showDuration: 5 + advertiserId: advertiserId + name: name + adSetId: adSetId + rotationsNumber: 5 + landingPageUrl: landingPageUrl + startDate: startDate status: status + id: id + type: type + - attributes: + showEvery: 1 + images: + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + endDate: endDate + author: author + format: format + description: description + showDuration: 5 advertiserId: advertiserId - htmlTagAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 + name: name + adSetId: adSetId + rotationsNumber: 5 + landingPageUrl: landingPageUrl + startDate: startDate + status: status id: id type: type warnings: @@ -14700,42 +14959,55 @@ components: title: title properties: data: - $ref: '#/components/schemas/CreativeResource' + items: + $ref: '#/components/schemas/CouponResource' + nullable: true + type: array + uniqueItems: false 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 type: object - AdListResponse: - description: Data model for a list of response resources + CouponResponse: + description: Data model for response resource example: data: - - attributes: - inventoryType: Native + attributes: + showEvery: 1 + images: + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 endDate: endDate - name: name - adSetId: adSetId + author: author + format: format description: description - creativeId: creativeId - startDate: startDate - id: id - type: type - - attributes: - inventoryType: Native - endDate: endDate + showDuration: 5 + advertiserId: advertiserId name: name adSetId: adSetId - description: description - creativeId: creativeId + rotationsNumber: 5 + landingPageUrl: landingPageUrl startDate: startDate + status: status id: id type: type warnings: @@ -14782,35 +15054,33 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/AdResource' - type: array - uniqueItems: false + $ref: '#/components/schemas/CouponResource' 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 type: object - AdResponse: + CouponSupportedSizesResponse: description: Data model for response resource example: data: attributes: - inventoryType: Native - endDate: endDate - name: name - adSetId: adSetId - description: description - creativeId: creativeId - startDate: startDate + fullFrame: + - fullFrame + - fullFrame + logoZone: + - logoZone + - logoZone id: id type: type warnings: @@ -14857,76 +15127,192 @@ components: title: title properties: data: - $ref: '#/components/schemas/AdResource' + $ref: '#/components/schemas/CouponSupportedSizesResource' 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 type: object - CouponListResponse: + CreativeListResponse: description: Data model for a list of response resources example: data: - attributes: - showEvery: 1 - images: - - slideUrls: - - slideUrls - - slideUrls - width: 0 - height: 6 - - slideUrls: - - slideUrls - - slideUrls - width: 0 - height: 6 - endDate: endDate + dynamicAttributes: + creativeBackgroundColor: creativeBackgroundColor + primaryFont: primaryFont + pricesColor: pricesColor + bodyTextColor: bodyTextColor + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + productImageDisplay: ShowFullImage + adaptiveAttributes: + descriptionFont: descriptionFont + imageDisplay: ShowFullImage + videos: + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + headlineFont: headlineFont + descriptionText: descriptionText + imageSets: + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + layouts: + - Editorial + - Editorial + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + landingPageUrl: https://openapi-generator.tech + colors: + backgroundColor: backgroundColor + text2Color: text2Color + ctaTextColor: ctaTextColor + text1Color: text1Color + ctaBackgroundColor: ctaBackgroundColor + logoAreaAndTitleColor: logoAreaAndTitleColor + headlineText: headlineText + imageAttributes: + urls: + - urls + - urls + landingPageUrl: https://openapi-generator.tech + author: author + name: name + format: format + description: description + datasetId: datasetId + status: status + advertiserId: advertiserId + htmlTagAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 + id: id + type: type + - attributes: + dynamicAttributes: + creativeBackgroundColor: creativeBackgroundColor + primaryFont: primaryFont + pricesColor: pricesColor + bodyTextColor: bodyTextColor + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + productImageDisplay: ShowFullImage + adaptiveAttributes: + descriptionFont: descriptionFont + imageDisplay: ShowFullImage + videos: + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + headlineFont: headlineFont + descriptionText: descriptionText + imageSets: + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + layouts: + - Editorial + - Editorial + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + landingPageUrl: https://openapi-generator.tech + colors: + backgroundColor: backgroundColor + text2Color: text2Color + ctaTextColor: ctaTextColor + text1Color: text1Color + ctaBackgroundColor: ctaBackgroundColor + logoAreaAndTitleColor: logoAreaAndTitleColor + headlineText: headlineText + imageAttributes: + urls: + - urls + - urls + landingPageUrl: https://openapi-generator.tech author: author - format: format - description: description - showDuration: 5 - advertiserId: advertiserId name: name - adSetId: adSetId - rotationsNumber: 5 - landingPageUrl: landingPageUrl - startDate: startDate - status: status - id: id - type: type - - attributes: - showEvery: 1 - images: - - slideUrls: - - slideUrls - - slideUrls - width: 0 - height: 6 - - slideUrls: - - slideUrls - - slideUrls - width: 0 - height: 6 - endDate: endDate - author: author format: format description: description - showDuration: 5 - advertiserId: advertiserId - name: name - adSetId: adSetId - rotationsNumber: 5 - landingPageUrl: landingPageUrl - startDate: startDate + datasetId: datasetId status: status + advertiserId: advertiserId + htmlTagAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 id: id type: type warnings: @@ -14974,122 +15360,111 @@ components: properties: data: items: - $ref: '#/components/schemas/CouponResource' - type: array - uniqueItems: false - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - uniqueItems: false - errors: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true + $ref: '#/components/schemas/CreativeResource' + nullable: true type: array uniqueItems: false - type: object - CouponResponse: - description: Data model for response resource - example: - data: - attributes: - showEvery: 1 - images: - - slideUrls: - - slideUrls - - slideUrls - width: 0 - height: 6 - - slideUrls: - - slideUrls - - slideUrls - width: 0 - height: 6 - endDate: endDate - author: author - format: format - description: description - showDuration: 5 - advertiserId: advertiserId - name: name - adSetId: adSetId - rotationsNumber: 5 - landingPageUrl: landingPageUrl - startDate: startDate - status: status - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/CouponResource' 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 type: object - CouponSupportedSizesResponse: + CreativeResponse: description: Data model for response resource example: data: attributes: - fullFrame: - - fullFrame - - fullFrame - logoZone: - - logoZone - - logoZone + dynamicAttributes: + creativeBackgroundColor: creativeBackgroundColor + primaryFont: primaryFont + pricesColor: pricesColor + bodyTextColor: bodyTextColor + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + productImageDisplay: ShowFullImage + adaptiveAttributes: + descriptionFont: descriptionFont + imageDisplay: ShowFullImage + videos: + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + headlineFont: headlineFont + descriptionText: descriptionText + imageSets: + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + headlineText: headlineText + layouts: + - Editorial + - Editorial + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech + callsToAction: + - callsToAction + - callsToAction + landingPageUrl: https://openapi-generator.tech + colors: + backgroundColor: backgroundColor + text2Color: text2Color + ctaTextColor: ctaTextColor + text1Color: text1Color + ctaBackgroundColor: ctaBackgroundColor + logoAreaAndTitleColor: logoAreaAndTitleColor + headlineText: headlineText + imageAttributes: + urls: + - urls + - urls + landingPageUrl: https://openapi-generator.tech + author: author + name: name + format: format + description: description + datasetId: datasetId + status: status + advertiserId: advertiserId + htmlTagAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 id: id type: type warnings: @@ -15136,20 +15511,85 @@ components: title: title properties: data: - $ref: '#/components/schemas/CouponSupportedSizesResource' + $ref: '#/components/schemas/CreativeResource' 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 type: object + AdWriteRequest: + description: Data model for input resource + example: + data: + attributes: + inventoryType: Display + endDate: endDate + name: name + adSetId: adSetId + description: description + creativeId: creativeId + startDate: startDate + id: id + type: type + properties: + data: + $ref: '#/components/schemas/AdWriteResource' + type: object + CreateCouponRequest: + description: Data model for input resource + example: + data: + attributes: + showEvery: 2 + images: + - slideBase64Strings: + - slideBase64Strings + - slideBase64Strings + width: 0 + height: 6 + - slideBase64Strings: + - slideBase64Strings + - slideBase64Strings + width: 0 + height: 6 + endDate: endDate + name: name + adSetId: adSetId + format: FullFrame + rotationsNumber: 6 + description: description + landingPageUrl: landingPageUrl + showDuration: 3 + startDate: startDate + id: id + type: type + properties: + data: + $ref: '#/components/schemas/CreateCouponResource' + type: object + UpdateCouponRequest: + description: Data model for input resource + example: + data: + attributes: + endDate: endDate + startDate: startDate + id: id + type: type + properties: + data: + $ref: '#/components/schemas/UpdateCouponResource' + type: object CreativeWriteRequest: description: Data model for input resource example: @@ -15223,68 +15663,90 @@ components: data: $ref: '#/components/schemas/CreativeWriteResource' type: object - AdWriteRequest: - description: Data model for input resource + AdResource: + description: Data model for a Resource example: - data: - attributes: - inventoryType: Display - endDate: endDate - name: name - adSetId: adSetId - description: description - creativeId: creativeId - startDate: startDate - id: id - type: type + attributes: + inventoryType: Native + endDate: endDate + name: name + adSetId: adSetId + description: description + creativeId: creativeId + startDate: startDate + id: id + type: type properties: - data: - $ref: '#/components/schemas/AdWriteResource' + attributes: + $ref: '#/components/schemas/Ad' + id: + nullable: true + type: string + type: + nullable: true + type: string type: object - CreateCouponRequest: - description: Data model for input resource + CouponResource: + description: Data model for a Resource example: - data: - attributes: - showEvery: 2 - images: - - slideBase64Strings: - - slideBase64Strings - - slideBase64Strings - width: 0 - height: 6 - - slideBase64Strings: - - slideBase64Strings - - slideBase64Strings - width: 0 - height: 6 - endDate: endDate - name: name - adSetId: adSetId - format: FullFrame - rotationsNumber: 6 - description: description - landingPageUrl: landingPageUrl - showDuration: 3 - startDate: startDate - id: id - type: type + attributes: + showEvery: 1 + images: + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + - slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + endDate: endDate + author: author + format: format + description: description + showDuration: 5 + advertiserId: advertiserId + name: name + adSetId: adSetId + rotationsNumber: 5 + landingPageUrl: landingPageUrl + startDate: startDate + status: status + id: id + type: type properties: - data: - $ref: '#/components/schemas/CreateCouponResource' + attributes: + $ref: '#/components/schemas/Coupon' + id: + nullable: true + type: string + type: + nullable: true + type: string type: object - UpdateCouponRequest: - description: Data model for input resource + CouponSupportedSizesResource: + description: Data model for a Resource example: - data: - attributes: - endDate: endDate - startDate: startDate - id: id - type: type + attributes: + fullFrame: + - fullFrame + - fullFrame + logoZone: + - logoZone + - logoZone + id: id + type: type properties: - data: - $ref: '#/components/schemas/UpdateCouponResource' + attributes: + $ref: '#/components/schemas/CouponSupportedSizes' + id: + nullable: true + type: string + type: + nullable: true + type: string type: object CreativeResource: description: Data model for a Resource @@ -15377,15 +15839,17 @@ components: attributes: $ref: '#/components/schemas/Creative' id: + nullable: true type: string type: + nullable: true type: string type: object - AdResource: + AdWriteResource: description: Data model for a Resource example: attributes: - inventoryType: Native + inventoryType: Display endDate: endDate name: name adSetId: adSetId @@ -15396,68 +15860,67 @@ components: type: type properties: attributes: - $ref: '#/components/schemas/Ad' + $ref: '#/components/schemas/AdWrite' id: + nullable: true type: string type: + nullable: true type: string type: object - CouponResource: + CreateCouponResource: description: Data model for a Resource example: attributes: - showEvery: 1 + showEvery: 2 images: - - slideUrls: - - slideUrls - - slideUrls + - slideBase64Strings: + - slideBase64Strings + - slideBase64Strings width: 0 height: 6 - - slideUrls: - - slideUrls - - slideUrls + - slideBase64Strings: + - slideBase64Strings + - slideBase64Strings width: 0 height: 6 endDate: endDate - author: author - format: format - description: description - showDuration: 5 - advertiserId: advertiserId name: name adSetId: adSetId - rotationsNumber: 5 + format: FullFrame + rotationsNumber: 6 + description: description landingPageUrl: landingPageUrl + showDuration: 3 startDate: startDate - status: status id: id type: type properties: attributes: - $ref: '#/components/schemas/Coupon' + $ref: '#/components/schemas/CreateCoupon' id: + nullable: true type: string type: + nullable: true type: string type: object - CouponSupportedSizesResource: + UpdateCouponResource: description: Data model for a Resource example: attributes: - fullFrame: - - fullFrame - - fullFrame - logoZone: - - logoZone - - logoZone + endDate: endDate + startDate: startDate id: id type: type properties: attributes: - $ref: '#/components/schemas/CouponSupportedSizes' + $ref: '#/components/schemas/UpdateCoupon' id: + nullable: true type: string type: + nullable: true type: string type: object CreativeWriteResource: @@ -15532,203 +15995,12 @@ components: attributes: $ref: '#/components/schemas/CreativeWrite' id: + nullable: true type: string type: + nullable: true type: string type: object - AdWriteResource: - description: Data model for a Resource - example: - attributes: - inventoryType: Display - endDate: endDate - name: name - adSetId: adSetId - description: description - creativeId: creativeId - startDate: startDate - id: id - type: type - properties: - attributes: - $ref: '#/components/schemas/AdWrite' - id: - type: string - type: - type: string - type: object - CreateCouponResource: - description: Data model for a Resource - example: - attributes: - showEvery: 2 - images: - - slideBase64Strings: - - slideBase64Strings - - slideBase64Strings - width: 0 - height: 6 - - slideBase64Strings: - - slideBase64Strings - - slideBase64Strings - width: 0 - height: 6 - endDate: endDate - name: name - adSetId: adSetId - format: FullFrame - rotationsNumber: 6 - description: description - landingPageUrl: landingPageUrl - showDuration: 3 - startDate: startDate - id: id - type: type - properties: - attributes: - $ref: '#/components/schemas/CreateCoupon' - id: - type: string - type: - type: string - type: object - UpdateCouponResource: - description: Data model for a Resource - example: - attributes: - endDate: endDate - startDate: startDate - id: id - type: type - properties: - attributes: - $ref: '#/components/schemas/UpdateCoupon' - id: - type: string - type: - type: string - type: object - Creative: - description: A creative is a project with the necessary information to display - a creative - example: - dynamicAttributes: - creativeBackgroundColor: creativeBackgroundColor - primaryFont: primaryFont - pricesColor: pricesColor - bodyTextColor: bodyTextColor - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - productImageDisplay: ShowFullImage - adaptiveAttributes: - descriptionFont: descriptionFont - imageDisplay: ShowFullImage - videos: - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - - duration: 1.4658129805029452 - shape: Horizontal - url: https://openapi-generator.tech - headlineFont: headlineFont - descriptionText: descriptionText - imageSets: - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - - images: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - headlineText: headlineText - layouts: - - Editorial - - Editorial - logos: - - shape: Horizontal - url: https://openapi-generator.tech - - shape: Horizontal - url: https://openapi-generator.tech - callsToAction: - - callsToAction - - callsToAction - landingPageUrl: https://openapi-generator.tech - colors: - backgroundColor: backgroundColor - text2Color: text2Color - ctaTextColor: ctaTextColor - text1Color: text1Color - ctaBackgroundColor: ctaBackgroundColor - logoAreaAndTitleColor: logoAreaAndTitleColor - headlineText: headlineText - imageAttributes: - urls: - - urls - - urls - landingPageUrl: https://openapi-generator.tech - author: author - name: name - format: format - description: description - datasetId: datasetId - status: status - advertiserId: advertiserId - htmlTagAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 - properties: - name: - description: The name of the creative - type: string - description: - description: The description of the creative - type: string - author: - description: The login of the person who created this creative ( - type: string - status: - description: The status of the creative - type: string - format: - description: The format of the creative - type: string - advertiserId: - description: Advertiser linked to the Creative - type: string - datasetId: - description: Data set id linked to the Creative - type: string - imageAttributes: - $ref: '#/components/schemas/ImageAttributes' - htmlTagAttributes: - $ref: '#/components/schemas/HtmlTagAttributes' - dynamicAttributes: - $ref: '#/components/schemas/DynamicAttributes' - adaptiveAttributes: - $ref: '#/components/schemas/AdaptiveAttributes' - required: - - advertiserId - - author - - name - - status - type: object Ad: description: An ad is the binding that connects a creative with an ad set example: @@ -15742,15 +16014,19 @@ components: properties: name: description: The name of the ad + nullable: true type: string description: description: The description of the ad + nullable: true type: string creativeId: description: The id of the Creative binded to this Ad + nullable: true type: string adSetId: description: The id of the Ad Set binded to this Ad + nullable: true type: string inventoryType: description: The inventory the Ad belongs to. Possible values are "Display" @@ -15760,15 +16036,18 @@ components: - Native - Display - Video + nullable: true type: string startDate: description: "The date when the ad will be launched\r\nString must be in\ \ ISO8601 format" + nullable: true type: string endDate: description: "The date when when we will stop to show this ad. If the end\ \ date is not specified (i.e. null) then the ad will go on forever\r\n\ String must be in ISO8601 format" + nullable: true type: string type: object Coupon: @@ -15802,55 +16081,69 @@ components: properties: name: description: The name of the Coupon + nullable: true type: string description: description: The description of the Coupon + nullable: true type: string author: description: The login of the person who created this Coupon + nullable: true type: string advertiserId: description: Advertiser linked to the Coupon + nullable: true type: string adSetId: description: The id of the Ad Set on which the Coupon is applied to + nullable: true type: string landingPageUrl: description: Web redirection of the landing page url + nullable: true type: string startDate: description: "The date when the Coupon will be launched\r\nString must be\ \ in ISO8601 format" + nullable: true type: string endDate: description: "The date when when we will stop to show this Coupon. If the\ \ end date is not specified (i.e. null) then the Coupon will go on forever\r\ \nString must be in ISO8601 format" + nullable: true type: string format: description: "Format of the Coupon, it can have two values: \"FullFrame\"\ \ or \"LogoZone\"" + nullable: true type: string status: description: The status of the Coupon + nullable: true type: string images: description: List of slides containing the image URLs items: $ref: '#/components/schemas/ImageSlide' + nullable: true type: array uniqueItems: false showEvery: description: Show the Coupon every N seconds (between 1 and 10) format: int32 + nullable: true type: integer showDuration: description: Show Coupon for a duration of N seconds (between 1 and 5) format: int32 + nullable: true type: integer rotationsNumber: description: Number of rotations for the Coupons (from 1 to 10 times) format: int32 + nullable: true type: integer type: object CouponSupportedSizes: @@ -15867,68 +16160,68 @@ components: description: Array of LogoZone sizes as string in width x height format items: type: string + nullable: true type: array uniqueItems: false fullFrame: description: Array of FullFrame sizes as string in width x height format items: type: string - type: array - uniqueItems: false - type: object - CreativeWrite: - description: Entity to create or update a creative - example: - htmlTagWriteAttributes: - tags: - - htmlTag: htmlTag - size: - width: 0 - height: 6 - - htmlTag: htmlTag - size: - width: 0 - height: 6 - name: name - format: Image - imageWriteAttributes: - base64Strings: - - base64Strings - - base64Strings - landingPageUrl: https://openapi-generator.tech - dynamicWriteAttributes: + nullable: true + type: array + uniqueItems: false + type: object + Creative: + description: A creative is a project with the necessary information to display + a creative + example: + dynamicAttributes: creativeBackgroundColor: creativeBackgroundColor primaryFont: primaryFont - logoBase64String: logoBase64String pricesColor: pricesColor bodyTextColor: bodyTextColor + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech callsToAction: - callsToAction - callsToAction productImageDisplay: ShowFullImage - description: description - datasetId: datasetId - adaptiveWriteAttributes: - videoBase64Strings: - - videoBase64Strings - - videoBase64Strings - logoBase64String: logoBase64String + adaptiveAttributes: descriptionFont: descriptionFont imageDisplay: ShowFullImage + videos: + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech + - duration: 1.4658129805029452 + shape: Horizontal + url: https://openapi-generator.tech headlineFont: headlineFont descriptionText: descriptionText - imageSetsBase64: - - imageBase64Strings: - - imageBase64Strings - - imageBase64Strings + imageSets: + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech headlineText: headlineText - - imageBase64Strings: - - imageBase64Strings - - imageBase64Strings + - images: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech headlineText: headlineText layouts: - Editorial - Editorial + logos: + - shape: Horizontal + url: https://openapi-generator.tech + - shape: Horizontal + url: https://openapi-generator.tech callsToAction: - callsToAction - callsToAction @@ -15941,37 +16234,66 @@ components: ctaBackgroundColor: ctaBackgroundColor logoAreaAndTitleColor: logoAreaAndTitleColor headlineText: headlineText + imageAttributes: + urls: + - urls + - urls + landingPageUrl: https://openapi-generator.tech + author: author + name: name + format: format + description: description + datasetId: datasetId + status: status + advertiserId: advertiserId + htmlTagAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 properties: name: description: The name of the creative type: string description: description: The description of the creative + nullable: true + type: string + author: + description: The login of the person who created this creative ( + type: string + status: + description: The status of the creative type: string format: - description: "The format of the creative\r\nYou can use \"Image\", \" HtmlTag\"\ - , \"Dynamic\" or \"Adaptive\"" - enum: - - Image - - HtmlTag - - Dynamic - - Adaptive + description: The format of the creative + nullable: true + type: string + advertiserId: + description: Advertiser linked to the Creative type: string datasetId: - description: Dataset linked to the Creative + description: Data set id linked to the Creative + nullable: true type: string - imageWriteAttributes: - $ref: '#/components/schemas/ImageWriteAttributes' - htmlTagWriteAttributes: - $ref: '#/components/schemas/HtmlTagWriteAttributes' - dynamicWriteAttributes: - $ref: '#/components/schemas/DynamicWriteAttributes' - adaptiveWriteAttributes: - $ref: '#/components/schemas/AdaptiveWriteAttributes' + imageAttributes: + $ref: '#/components/schemas/ImageAttributes' + htmlTagAttributes: + $ref: '#/components/schemas/HtmlTagAttributes' + dynamicAttributes: + $ref: '#/components/schemas/DynamicAttributes' + adaptiveAttributes: + $ref: '#/components/schemas/AdaptiveAttributes' required: - - datasetId - - format + - advertiserId + - author - name + - status type: object AdWrite: description: Entity to create or update an ad @@ -15989,6 +16311,7 @@ components: type: string description: description: The description of the ad + nullable: true type: string creativeId: description: The id of the Creative bound to this Ad @@ -16004,6 +16327,7 @@ components: enum: - Display - Native + nullable: true type: string startDate: description: "The date when the ad will be launched\r\nString must be in\ @@ -16013,6 +16337,7 @@ components: description: "The date when when we will stop to show this ad. If the end\ \ date is not specified (i.e. null) then the ad will go on forever\r\n\ String must be in ISO8601 format" + nullable: true type: string required: - adSetId @@ -16050,6 +16375,7 @@ components: type: string description: description: The description of the Coupon + nullable: true type: string adSetId: description: The id of the Ad Set on which the Coupon is applied to @@ -16065,6 +16391,7 @@ components: description: "The date when when we will stop to show this Coupon. If the\ \ end date is not specified (i.e. null) then the Coupon will go on forever\r\ \nString must be in ISO8601 format" + nullable: true type: string format: description: "Format of the Coupon, it can have two values: \"FullFrame\"\ @@ -16122,10 +16449,137 @@ components: description: "The date when when we will stop to show this Coupon. If the\ \ end date is not specified (i.e. null) then the Coupon will go on forever\r\ \nString must be in ISO8601 format" + nullable: true type: string required: - startDate type: object + CreativeWrite: + description: Entity to create or update a creative + example: + htmlTagWriteAttributes: + tags: + - htmlTag: htmlTag + size: + width: 0 + height: 6 + - htmlTag: htmlTag + size: + width: 0 + height: 6 + name: name + format: Image + imageWriteAttributes: + base64Strings: + - base64Strings + - base64Strings + landingPageUrl: https://openapi-generator.tech + dynamicWriteAttributes: + creativeBackgroundColor: creativeBackgroundColor + primaryFont: primaryFont + logoBase64String: logoBase64String + pricesColor: pricesColor + bodyTextColor: bodyTextColor + callsToAction: + - callsToAction + - callsToAction + productImageDisplay: ShowFullImage + description: description + datasetId: datasetId + adaptiveWriteAttributes: + videoBase64Strings: + - videoBase64Strings + - videoBase64Strings + logoBase64String: logoBase64String + descriptionFont: descriptionFont + imageDisplay: ShowFullImage + headlineFont: headlineFont + descriptionText: descriptionText + imageSetsBase64: + - imageBase64Strings: + - imageBase64Strings + - imageBase64Strings + headlineText: headlineText + - imageBase64Strings: + - imageBase64Strings + - imageBase64Strings + headlineText: headlineText + layouts: + - Editorial + - Editorial + callsToAction: + - callsToAction + - callsToAction + landingPageUrl: https://openapi-generator.tech + colors: + backgroundColor: backgroundColor + text2Color: text2Color + ctaTextColor: ctaTextColor + text1Color: text1Color + ctaBackgroundColor: ctaBackgroundColor + logoAreaAndTitleColor: logoAreaAndTitleColor + headlineText: headlineText + properties: + name: + description: The name of the creative + type: string + description: + description: The description of the creative + nullable: true + type: string + format: + description: "The format of the creative\r\nYou can use \"Image\", \" HtmlTag\"\ + , \"Dynamic\" or \"Adaptive\"" + enum: + - Image + - HtmlTag + - Dynamic + - Adaptive + type: string + datasetId: + description: Dataset linked to the Creative + type: string + imageWriteAttributes: + $ref: '#/components/schemas/ImageWriteAttributes' + htmlTagWriteAttributes: + $ref: '#/components/schemas/HtmlTagWriteAttributes' + dynamicWriteAttributes: + $ref: '#/components/schemas/DynamicWriteAttributes' + adaptiveWriteAttributes: + $ref: '#/components/schemas/AdaptiveWriteAttributes' + required: + - datasetId + - format + - name + type: object + ImageSlide: + description: Slide containing the image URLs + example: + slideUrls: + - slideUrls + - slideUrls + width: 0 + height: 6 + properties: + width: + description: Width of the Coupon slide + format: int32 + nullable: true + type: integer + height: + description: Height of the Coupon slide + format: int32 + nullable: true + type: integer + slideUrls: + description: Array of images of the same size uploaded on demostatic.criteo.com + when deploying and then static.criteo.net + items: + type: string + nullable: true + type: array + uniqueItems: false + type: object ImageAttributes: description: The attributes specific to Image creatives example: @@ -16139,11 +16593,13 @@ components: and then static.criteo.net items: type: string + nullable: true type: array uniqueItems: false landingPageUrl: description: Web redirection of the landing page url format: uri + nullable: true type: string type: object HtmlTagAttributes: @@ -16163,6 +16619,7 @@ components: description: An array containing the html tags items: $ref: '#/components/schemas/Tag' + nullable: true type: array uniqueItems: false type: object @@ -16188,22 +16645,27 @@ components: and then static.criteo.net items: $ref: '#/components/schemas/ImageShape' + nullable: true type: array uniqueItems: false creativeBackgroundColor: description: "Color of the creative's background\r\nValid hexadecimal color\ \ (e.g. \"AB00FF\")" + nullable: true type: string bodyTextColor: description: "Color of the creative's body text\r\nValid hexadecimal color\ \ (e.g. \"AB00FF\")" + nullable: true type: string pricesColor: description: "Color of the creative's prices\r\nValid hexadecimal color\ \ (e.g. \"AB00FF\")" + nullable: true type: string primaryFont: description: "Font of the primary font\r\nValid supported font like \"Arial\"" + nullable: true type: string callsToAction: description: "A Call-to-Action (CTA) is an action-driven instruction to\ @@ -16211,6 +16673,7 @@ components: \ “Buy now” or “Go!”." items: type: string + nullable: true type: array uniqueItems: false productImageDisplay: @@ -16222,6 +16685,7 @@ components: enum: - ShowFullImage - ZoomOnImage + nullable: true type: string type: object AdaptiveAttributes: @@ -16318,6 +16782,7 @@ components: \ and a headline text." items: $ref: '#/components/schemas/ImageSet' + nullable: true type: array uniqueItems: false imageDisplay: @@ -16328,11 +16793,13 @@ components: enum: - ShowFullImage - ZoomOnImage + nullable: true type: string videos: description: Multiple videos potentially in different shapes. items: $ref: '#/components/schemas/VideoDetail' + nullable: true type: array uniqueItems: false landingPageUrl: @@ -16350,28 +16817,31 @@ components: - layouts - logos type: object - ImageSlide: - description: Slide containing the image URLs + CreateImageSlide: + description: Slide containing the images of the same size as a base-64 encoded + string example: - slideUrls: - - slideUrls - - slideUrls + slideBase64Strings: + - slideBase64Strings + - slideBase64Strings width: 0 height: 6 properties: width: description: Width of the Coupon slide format: int32 + nullable: true type: integer height: description: Height of the Coupon slide format: int32 + nullable: true type: integer - slideUrls: - description: Array of images of the same size uploaded on demostatic.criteo.com - when deploying and then static.criteo.net + slideBase64Strings: + description: Array of images of the same size as a base-64 encoded string items: type: string + nullable: true type: array uniqueItems: false type: object @@ -16439,6 +16909,7 @@ components: creativeBackgroundColor: description: "Color of the creative's background\r\nValid hexadecimal RGB\ \ color (e.g. \"AB00FF\")" + nullable: true type: string bodyTextColor: description: "Color of the creative's body text\r\nValid hexadecimal RGB\ @@ -16450,6 +16921,7 @@ components: type: string primaryFont: description: "Font of the primary font\r\nValid supported font like \"Arial\"" + nullable: true type: string callsToAction: description: "A Call-to-Action (CTA) is an action-driven instruction to\ @@ -16558,6 +17030,7 @@ components: \ as a base-64 encoded string and a headline text." items: $ref: '#/components/schemas/ImageSetBase64' + nullable: true type: array uniqueItems: false imageDisplay: @@ -16568,12 +17041,14 @@ components: enum: - ShowFullImage - ZoomOnImage + nullable: true type: string videoBase64Strings: description: "Multiple videos potentially in different shapes, each video\ \ is a base-64 encoded string." items: type: string + nullable: true type: array uniqueItems: false landingPageUrl: @@ -16591,31 +17066,6 @@ components: - layouts - logoBase64String type: object - CreateImageSlide: - description: Slide containing the images of the same size as a base-64 encoded - string - example: - slideBase64Strings: - - slideBase64Strings - - slideBase64Strings - width: 0 - height: 6 - properties: - width: - description: Width of the Coupon slide - format: int32 - type: integer - height: - description: Height of the Coupon slide - format: int32 - type: integer - slideBase64Strings: - description: Array of images of the same size as a base-64 encoded string - items: - type: string - type: array - uniqueItems: false - type: object Tag: description: Entity specifying the html of the tag and its size example: @@ -16626,6 +17076,7 @@ components: properties: htmlTag: description: Html tag + nullable: true type: string size: $ref: '#/components/schemas/Size' @@ -16713,6 +17164,7 @@ components: uniqueItems: false headlineText: description: The headline of the image set + nullable: true type: string required: - images @@ -16766,6 +17218,7 @@ components: uniqueItems: false headlineText: description: The headline of the image set + nullable: true type: string required: - imageBase64Strings @@ -16778,9 +17231,11 @@ components: properties: width: format: int32 + nullable: true type: integer height: format: int32 + nullable: true type: integer type: object ProblemsDetails: @@ -16789,6 +17244,7 @@ components: errors: items: $ref: '#/components/schemas/ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false @@ -16824,29 +17280,6 @@ components: required: - data type: object - ReportDataMessage: - description: This is the message defining the json report data - example: - data: - - attributes: - rows: - - key: rows - - key: rows - type: type - - attributes: - rows: - - key: rows - - key: rows - type: type - properties: - data: - items: - $ref: '#/components/schemas/ReportEntityMessage' - type: array - uniqueItems: false - required: - - data - type: object MarketingSolutionsReportStatusResponse: description: A top-level object that encapsulates a Criteo API response for a single entity @@ -16906,16 +17339,41 @@ components: 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 + ReportDataMessage: + description: This is the message defining the json report data + example: + data: + - attributes: + rows: + - key: rows + - key: rows + type: type + - attributes: + rows: + - key: rows + - key: rows + type: type + properties: + data: + items: + $ref: '#/components/schemas/ReportEntityMessage' + type: array + uniqueItems: false + required: + - data + type: object ExportResult: description: Result for an async report request example: @@ -16952,121 +17410,43 @@ components: data: $ref: '#/components/schemas/ExportResultData' type: object - StatisticsReportQueryMessage: - description: This is the message defining the query for Adset report + GenerateCategoriesReportRequest: + description: Contains queries for Categories report example: - advertiserIds: "123,456,789" - adSetIds: - - "12345" - - "54321" - adSetNames: - - myAdSet1 - - myAdSet2 - adSetStatus: - - Active - dimensions: - - CampaignId - - Campaign - - AdsetId - - Adset - - AdvertiserId - - Advertiser - - AdId - - Ad - - CouponId - - Coupon - - CategoryId - - Category - - Hour - - Day - - Week - - Month - - Year - - Os - - Device - metrics: - - Clicks - - Displays - - Cpc - - Visits - currency: EUR - format: csv - timezone: Europe/Paris - startDate: 2022-08-29T00:00:00.0000000+00:00 - endDate: 2022-09-01T00:00:00.0000000+00:00 + data: + type: CategoriesReport + attributes: + advertiserIds: + - "123" + - "456" + - "789" + campaignId: "111" + adsetId: "135" + domain: example.com + category: Example + shouldDisplayDomainDimension: true + format: csv + timezone: Europe/Paris + startDate: 2023-04-03T00:00:00.0000000+00:00 + endDate: 2023-04-03T00:00:00.0000000+00:00 properties: - advertiserIds: - description: "The comma-separated list of advertiser ids. If empty, all\ - \ the advertisers in the portfolio will be used" - type: string - adSetIds: - description: "list of adSets ids. If empty, all the adSets will be fetched" - items: - type: string - type: array - uniqueItems: false - adSetNames: - description: "list of adSets names. If empty, all the adSets will be fetched" - items: - type: string - type: array - uniqueItems: false - adSetStatus: - description: "list of adSets status. If empty, all the adSets will be fetched" - items: - type: string - type: array - uniqueItems: false - dimensions: - description: The dimensions for the report. - items: - enum: - - AdsetId - - Adset - - AdvertiserId - - Advertiser - - CategoryId - - Category - - Hour - - Day - - Week - - Month - - Year - - Os - - Device - - CampaignId - - Campaign - - AdId - - Ad - - CouponId - - Coupon - - MarketingObjectiveId - - MarketingObjective - - ChannelId - - Channel - - Goal - type: string - type: array - uniqueItems: false - metrics: - description: The list of metrics to report. - items: - type: string - type: array - uniqueItems: false - 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 + data: + $ref: '#/components/schemas/GenerateCategoriesReportRequestData' + 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. + nullable: true + type: boolean startDate: description: "Start date of the report. Date component of ISO 8061 format,\ \ any time or timezone component is ignored." @@ -17078,35 +17458,9 @@ components: format: date-time type: string required: - - currency - - dimensions - endDate - - format - - metrics - startDate type: object - TransactionsReportQueryDataMessage: - description: Contains queries for Transactions report - example: - data: - - type: TransactionsReport - attributes: - advertiserIds: "123,456,789" - eventType: display - currency: EUR - format: csv - timezone: Europe/Paris - startDate: 2023-04-03T00:00:00.0000000+00:00 - endDate: 2023-04-03T00:00:00.0000000+00:00 - properties: - data: - items: - $ref: '#/components/schemas/TransactionsReportQueryEntityMessage' - type: array - uniqueItems: false - required: - - data - type: object PlacementsReportQueryDataMessage: description: Contains queries for Placements report example: @@ -17141,104 +17495,93 @@ 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 - GenerateCategoriesReportRequest: - description: Contains queries for Categories report + GenerateAudiencePerformanceReportRequest: + description: Request for async audience performance report example: data: - type: CategoriesReport + type: AudiencePerformanceReport attributes: - advertiserIds: - - "123" - - "456" - - "789" - campaignId: "111" - adsetId: "135" - domain: example.com - category: Example - shouldDisplayDomainDimension: true - format: csv - timezone: Europe/Paris startDate: 2023-04-03T00:00:00.0000000+00:00 - endDate: 2023-04-03T00:00:00.0000000+00:00 + endDate: 2023-04-06T00:00:00.0000000+00:00 + advertiserId: "11111" + timezone: Europe/Paris + dimension: Top30BrandsByClicks + metrics: + - Clicks + - Displays + - Visits + currency: EUR + adSetIds: + - "12345" + - "54321" + audienceIds: + - "12345" + - "54321" + segmentsIds: + - "12345" + - "54321" properties: data: - $ref: '#/components/schemas/GenerateCategoriesReportRequestData' + $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequestData' required: - data type: object - GenerateTopProductsReportRequest: - description: Contains queries for topProducts report + GenerateStatisticsReportRequest: + description: Request for async statistics report example: data: - type: TopProductsReport + type: StatisticsReport attributes: + startDate: 2023-04-03T00:00:00.0000000+00:00 + endDate: 2023-04-06T00:00:00.0000000+00:00 + advertiserIds: + - "11111" timezone: Europe/Paris - startDate: 2022-08-29T00:00:00.0000000+00:00 - endDate: 2022-09-01T00:00:00.0000000+00:00 - advertiserId: "1234" - limit: 200 - rankProductsBy: Clicks dimensions: - CampaignId - Campaign - AdSetId - AdSet - - ProductId - - Product - - ProductUrl - - Brand + - AdvertiserId + - Advertiser + - AdId + - Ad + - CouponId + - Coupon + - CategoryId - Category + - Hour + - Day + - Week + - Month + - Year + - Os + - Device + - MarketingCampaignGoal + - MarketingObjective + - MarketingObjectiveId + - VideoPlacement + - VideoPlaybackMethod + - VideoPlayerSize + - VideoDurationInSeconds + - SSP metrics: - Clicks - - Ctr - - Visits - - Sales - - Cost - - Revenue - Displays + - Cpc + - Visits currency: EUR - brands: - - Brand1 - - Brand2 - categoryIds: - - "6666" - - "7777" - campaignIds: - - "9999" adSetIds: - - "11111" - - "22222" + - "12345" + - "54321" + adSetNames: + - myAdSet1 + - myAdSet2 adSetStatus: - Active - - NotRunning properties: data: - $ref: '#/components/schemas/GenerateTopProductsReportRequestData' + $ref: '#/components/schemas/GenerateStatisticsReportRequestData' required: - data type: object @@ -17292,33 +17635,139 @@ components: - Active - NotRunning properties: - data: - $ref: '#/components/schemas/GenerateCreativesReportRequestData' - required: - - data - type: object - GenerateStatisticsReportRequest: - description: Request for async statistics report - example: - data: - type: StatisticsReport - attributes: - startDate: 2023-04-03T00:00:00.0000000+00:00 - endDate: 2023-04-06T00:00:00.0000000+00:00 - advertiserIds: - - "11111" - timezone: Europe/Paris - dimensions: - - CampaignId - - Campaign - - AdSetId - - AdSet + data: + $ref: '#/components/schemas/GenerateCreativesReportRequestData' + required: + - data + type: object + GenerateTopProductsReportRequest: + description: Contains queries for topProducts report + example: + data: + type: TopProductsReport + attributes: + timezone: Europe/Paris + startDate: 2022-08-29T00:00:00.0000000+00:00 + endDate: 2022-09-01T00:00:00.0000000+00:00 + advertiserId: "1234" + limit: 200 + rankProductsBy: Clicks + dimensions: + - CampaignId + - Campaign + - AdSetId + - AdSet + - ProductId + - Product + - ProductUrl + - Brand + - Category + metrics: + - Clicks + - Ctr + - Visits + - Sales + - Cost + - Revenue + - Displays + currency: EUR + brands: + - Brand1 + - Brand2 + categoryIds: + - "6666" + - "7777" + campaignIds: + - "9999" + adSetIds: + - "11111" + - "22222" + adSetStatus: + - Active + - NotRunning + properties: + data: + $ref: '#/components/schemas/GenerateTopProductsReportRequestData' + required: + - data + type: object + StatisticsReportQueryMessage: + description: This is the message defining the query for Adset report + example: + advertiserIds: "123,456,789" + adSetIds: + - "12345" + - "54321" + adSetNames: + - myAdSet1 + - myAdSet2 + adSetStatus: + - Active + dimensions: + - CampaignId + - Campaign + - AdsetId + - Adset + - AdvertiserId + - Advertiser + - AdId + - Ad + - CouponId + - Coupon + - CategoryId + - Category + - Hour + - Day + - Week + - Month + - Year + - Os + - Device + metrics: + - Clicks + - Displays + - Cpc + - Visits + currency: EUR + format: csv + timezone: Europe/Paris + startDate: 2022-08-29T00:00:00.0000000+00:00 + endDate: 2022-09-01T00:00:00.0000000+00:00 + 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 + 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: + description: The dimensions for the report. + items: + enum: + - AdsetId + - Adset - AdvertiserId - Advertiser - - AdId - - Ad - - CouponId - - Coupon - CategoryId - Category - Hour @@ -17328,62 +17777,77 @@ components: - Year - Os - Device - - MarketingCampaignGoal - - MarketingObjective + - CampaignId + - Campaign + - AdId + - Ad + - CouponId + - Coupon - MarketingObjectiveId - - VideoPlacement - - VideoPlaybackMethod - - VideoPlayerSize - - VideoDurationInSeconds - - SSP - metrics: - - Clicks - - Displays - - Cpc - - Visits - currency: EUR - adSetIds: - - "12345" - - "54321" - adSetNames: - - myAdSet1 - - myAdSet2 - adSetStatus: - - Active - properties: - data: - $ref: '#/components/schemas/GenerateStatisticsReportRequestData' + - MarketingObjective + - ChannelId + - Channel + - Goal + type: string + type: array + uniqueItems: false + metrics: + description: The list of metrics to report. + items: + type: string + type: array + uniqueItems: false + 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: - - data + - currency + - dimensions + - endDate + - format + - metrics + - startDate type: object - GenerateAudiencePerformanceReportRequest: - description: Request for async audience performance report + TransactionsReportQueryDataMessage: + description: Contains queries for Transactions report example: data: - type: AudiencePerformanceReport + - type: TransactionsReport attributes: - startDate: 2023-04-03T00:00:00.0000000+00:00 - endDate: 2023-04-06T00:00:00.0000000+00:00 - advertiserId: "11111" - timezone: Europe/Paris - dimension: Top30BrandsByClicks - metrics: - - Clicks - - Displays - - Visits + advertiserIds: "123,456,789" + eventType: display currency: EUR - adSetIds: - - "12345" - - "54321" - audienceIds: - - "12345" - - "54321" - segmentsIds: - - "12345" - - "54321" + format: csv + timezone: Europe/Paris + startDate: 2023-04-03T00:00:00.0000000+00:00 + endDate: 2023-04-03T00:00:00.0000000+00:00 properties: data: - $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequestData' + items: + $ref: '#/components/schemas/TransactionsReportQueryEntityMessage' + type: array + uniqueItems: false required: - data type: object @@ -17410,23 +17874,6 @@ components: - attributes - type type: object - ReportEntityMessage: - description: This is the message defining the json report entity - example: - attributes: - rows: - - key: rows - - key: rows - type: type - properties: - type: - type: string - attributes: - $ref: '#/components/schemas/JsonReportRows' - required: - - attributes - - type - type: object MarketingSolutionsReportStatusResource: description: A class that represents a domain entity exposed by an API example: @@ -17440,9 +17887,28 @@ components: attributes: $ref: '#/components/schemas/MarketingSolutionsReportStatus' id: + nullable: true type: string + type: + nullable: true + type: string + type: object + ReportEntityMessage: + description: This is the message defining the json report entity + example: + attributes: + rows: + - key: rows + - key: rows + type: type + properties: type: type: string + attributes: + $ref: '#/components/schemas/JsonReportRows' + required: + - attributes + - type type: object ExportResultData: description: Result data for an async report request @@ -17484,16 +17950,17 @@ components: type: object type: array uniqueItems: false + nullable: true type: array uniqueItems: false type: object - TransactionsReportQueryEntityMessage: - description: Contains a query for Transaction report and its type + GenerateCategoriesReportRequestData: + description: Contains a query for Categories report and its type properties: type: type: string attributes: - $ref: '#/components/schemas/TransactionsReportQueryMessage' + $ref: '#/components/schemas/GenerateCategoriesReportRequestAttributes' required: - attributes - type @@ -17509,24 +17976,24 @@ components: - attributes - type type: object - GenerateCategoriesReportRequestData: - description: Contains a query for Categories report and its type + GenerateAudiencePerformanceReportRequestData: + description: Request data for async audience performance report properties: type: type: string attributes: - $ref: '#/components/schemas/GenerateCategoriesReportRequestAttributes' + $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequestAttributes' required: - attributes - type type: object - GenerateTopProductsReportRequestData: - description: Contains a query for TopProducts report and its type + GenerateStatisticsReportRequestData: + description: Request data for async statistics report properties: type: type: string attributes: - $ref: '#/components/schemas/GenerateTopProductsReportRequestAttributes' + $ref: '#/components/schemas/GenerateStatisticsReportRequestAttributes' required: - attributes - type @@ -17542,24 +18009,24 @@ components: - attributes - type type: object - GenerateStatisticsReportRequestData: - description: Request data for async statistics report + GenerateTopProductsReportRequestData: + description: Contains a query for TopProducts report and its type properties: type: type: string attributes: - $ref: '#/components/schemas/GenerateStatisticsReportRequestAttributes' + $ref: '#/components/schemas/GenerateTopProductsReportRequestAttributes' required: - attributes - type type: object - GenerateAudiencePerformanceReportRequestData: - description: Request data for async audience performance report + TransactionsReportQueryEntityMessage: + description: Contains a query for Transaction report and its type properties: type: type: string attributes: - $ref: '#/components/schemas/GenerateAudiencePerformanceReportRequestAttributes' + $ref: '#/components/schemas/TransactionsReportQueryMessage' required: - attributes - type @@ -17576,35 +18043,20 @@ components: url: url advertiserId: advertiserId properties: - advertiserId: - type: string - tokenValidUntil: - format: date-time - type: string - files: - items: - $ref: '#/components/schemas/TransparencyReportFile' - type: array - uniqueItems: false - required: - - advertiserId - - files - - tokenValidUntil - type: object - JsonReportRows: - description: This is the message defining the json report rows - example: - rows: - - key: rows - - key: rows - properties: - rows: + advertiserId: + type: string + tokenValidUntil: + format: date-time + type: string + files: items: - additionalProperties: - type: string - type: object + $ref: '#/components/schemas/TransparencyReportFile' type: array uniqueItems: false + required: + - advertiserId + - files + - tokenValidUntil type: object MarketingSolutionsReportStatus: description: Object containing the status of report request and an associated @@ -17621,14 +18073,33 @@ components: - Done - Failure - Expired + nullable: true type: string message: + nullable: true type: string id: + nullable: true type: string type: object x-criteo-canonical: infoType: entity + JsonReportRows: + description: This is the message defining the json report rows + example: + rows: + - key: rows + - key: rows + properties: + rows: + items: + additionalProperties: + type: string + type: object + nullable: true + type: array + uniqueItems: false + type: object ExportMetaData: description: "Metadata for an async report request: descriptions of the columns\ \ and number of rows returned" @@ -17659,126 +18130,14 @@ components: columns: items: $ref: '#/components/schemas/ExportColumn' + nullable: true type: array uniqueItems: false rows: format: int32 + nullable: true type: integer 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: - advertiserIds: - description: The comma-separated list of advertiser ids. - type: string - campaignIds: - description: The comma-separated list of campaign ids. - type: string - adsetIds: - description: The comma-separated list of adSet ids. - type: string - environment: - description: "Type of environment: Web, Android or iOS." - type: string - placement: - description: Filter the value of the placement - type: string - dimensions: - description: The dimensions for the report. - items: - enum: - - AdsetId - - AdvertiserId - - Placement - - Environment - - AdsetName - - AdvertiserName - - CampaignId - - CampaignName - type: string - type: array - uniqueItems: false - metrics: - description: The list of metrics to report. - items: - type: string - type: array - uniqueItems: false - currency: - description: The currency used for the report. ISO 4217 code (three-letter - capitals). - type: string - disclosed: - default: true - description: Returns disclosed or undisclosed placements. - type: boolean - 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: - - advertiserIds - - currency - - dimensions - - endDate - - format - - metrics - - startDate - type: object GenerateCategoriesReportRequestAttributes: description: This is the message defining the query for Categories report properties: @@ -17790,19 +18149,24 @@ components: uniqueItems: false campaignId: description: Report only on the specified Campaign id. + nullable: true type: string adsetId: description: Report only on the specified AdSet id. + nullable: true type: string domain: description: Report only on the specified domain. + nullable: true type: string category: description: Report only on the specified category. + nullable: true type: string shouldDisplayDomainDimension: default: true description: Specify if the domain dimension is displayed in the report. + nullable: true type: boolean format: description: "The file format of the generated report: csv, xml, excel or\ @@ -17812,6 +18176,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,\ @@ -17829,114 +18194,89 @@ components: - format - startDate type: object - GenerateTopProductsReportRequestAttributes: - description: This is the message defining the query for TopProducts report + PlacementsReportQueryMessage: + description: This is the message defining the query for Placements report properties: - timezone: - default: UTC - description: The timezone used for the report. Timezone Database format - (Tz). + advertiserIds: + description: The comma-separated list of advertiser ids. 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 + campaignIds: + description: The comma-separated list of campaign ids. + nullable: true 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 + adsetIds: + description: The comma-separated list of adSet ids. + nullable: true type: string - advertiserId: - description: The client id. + environment: + description: "Type of environment: Web, Android or iOS." + nullable: true type: string - limit: - description: The maximum number of top products returned. - format: int32 - type: integer - rankProductsBy: - description: The metric used to filter the top products. - enum: - - Clicks - - Displays - - Sales + placement: + description: Filter the value of the placement + nullable: true type: string dimensions: description: The dimensions for the report. items: enum: - - Campaign - - CampaignId - - AdSet - - AdSetId - - Product - - ProductId - - Category - - CategoryId - - Advertiser + - AdsetId - AdvertiserId - - ProductUrl - - Brand + - Placement + - Environment + - AdsetName + - AdvertiserName + - CampaignId + - CampaignName type: string type: array uniqueItems: false metrics: description: The list of metrics to report. items: - enum: - - Clicks - - Ctr - - Visits - - Sales - - Cost - - Revenue - - Displays type: string type: array uniqueItems: false currency: - default: EUR description: The currency used for the report. ISO 4217 code (three-letter capitals). type: string - brands: - description: The list of brands names. - items: - type: string - type: array - uniqueItems: false - categoryIds: - description: The list of category ids. - items: - type: string - type: array - uniqueItems: false - campaignIds: - description: The list of campaign ids. - items: - type: string - type: array - uniqueItems: false - adSetIds: - description: The list of adSet ids. - items: - type: string - type: array - uniqueItems: false - adSetStatus: - description: "The list of adSet status (ex: 'Active','NotRunning')." - items: - type: string - type: array - uniqueItems: false + 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\ + \ 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: - - advertiserId + - advertiserIds + - currency + - dimensions - endDate - - rankProductsBy + - format + - metrics - startDate type: object - GenerateCreativesReportRequestAttributes: - description: This is the message defining the query for Creatives report + GenerateAudiencePerformanceReportRequestAttributes: + description: Request attributes for async audience performance report properties: startDate: description: "Start date of the report. Date component of ISO 8061 format,\ @@ -17948,99 +18288,71 @@ components: \ any time or timezone component is ignored." format: date-time type: string - advertiserIds: - description: The list of client ids. - items: - type: string - type: array - uniqueItems: false + advertiserId: + description: The advertiser id + type: string + timezone: + description: The timezone used for the report. Timezone Database format + (Tz). + nullable: true + type: string + dimension: + description: The dimension for the report. + enum: + - AdvertiserId + - Advertiser + - Top30BrandsByDisplays + - Top30BrandsByClicks + - Top30BrandsBySales + - Top30InterestsByDisplays + - Top30InterestsByClicks + - Top30InterestsBySales + type: string metrics: description: The list of metrics to report. items: enum: - Clicks - - Ctr - Displays + - Visits + - Sales + - Revenue + - CostPerVisit + - ExposedUsers type: string type: array uniqueItems: false - dimensions: - description: The list of dimensions to report. - items: - enum: - - AdFormat - - Coupon - - CouponId - - DisplaySize - - SizeCategory - - Ad - - AdId - - Day - - Hour - type: string - type: array - uniqueItems: false - timezone: - description: The timezone used for the report. Timezone Database format - (Tz). + currency: + description: The currency used for the report. ISO 4217 code (three-letter + capitals). + nullable: true type: string - adFormats: - description: The list of adFormats. - items: - type: string - type: array - uniqueItems: false - displaySizes: - description: The list of displaySizes. - items: - type: string - type: array - uniqueItems: false - couponNames: - description: The list of coupon names. - items: - type: string - type: array - uniqueItems: false - couponIds: - description: The list of coupon ids. - items: - type: string - type: array - uniqueItems: false - adNames: - description: The list of ad names. - items: - type: string - type: array - uniqueItems: false - adIds: - description: The list of ad ids. - items: - type: string - type: array - uniqueItems: false - campaignIds: - description: The list of campaign ids (marketing campaign ids). + adSetIds: + description: "The list of adSets ids. If empty, all the adSets will be fetched." items: type: string + nullable: true type: array uniqueItems: false - adSetIds: - description: The list of adSet ids (campaign ids). + audienceIds: + description: "The list of Audiences ids. If empty, all the Audiences will\ + \ be fetched." items: type: string + nullable: true type: array uniqueItems: false - adSetStatus: - description: "The list of adSet status (ex: 'Active','NotRunning')." + segmentsIds: + description: "The list of Segments ids. If empty, all the segments will\ + \ be fetched." items: type: string + nullable: true type: array uniqueItems: false required: - - advertiserIds - - dimensions + - advertiserId + - dimension - endDate - metrics - startDate @@ -18062,11 +18374,13 @@ components: description: The of advertiser ids items: type: string + nullable: true type: array uniqueItems: false timezone: description: The timezone used for the report. Timezone Database format (Tz). + nullable: true type: string dimensions: description: The dimensions for the report. @@ -18387,39 +18701,169 @@ components: type: string type: array uniqueItems: false - currency: - description: The currency used for the report. ISO 4217 code (three-letter - capitals). - type: string - adSetIds: - description: "The list of adSets ids. If empty, all the adSets will be fetched" + currency: + description: The currency used for the report. ISO 4217 code (three-letter + capitals). + nullable: true + type: string + adSetIds: + description: "The list of adSets ids. If empty, all the adSets will be fetched" + items: + type: string + nullable: true + type: array + uniqueItems: false + adSetNames: + description: "The list of adSets names. If empty, all the adSets will be\ + \ fetched" + items: + type: string + nullable: true + type: array + uniqueItems: false + adSetStatus: + description: "The list of adSets status. If empty, all the adSets will be\ + \ fetched" + items: + type: string + nullable: true + type: array + uniqueItems: false + required: + - dimensions + - endDate + - metrics + - startDate + type: object + GenerateCreativesReportRequestAttributes: + description: This is the message defining the query for Creatives report + properties: + 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 + advertiserIds: + description: The list of client ids. + items: + type: string + type: array + uniqueItems: false + metrics: + description: The list of metrics to report. + items: + enum: + - Clicks + - Ctr + - Displays + type: string + type: array + uniqueItems: false + dimensions: + description: The list of dimensions to report. + items: + enum: + - AdFormat + - Coupon + - CouponId + - DisplaySize + - SizeCategory + - Ad + - AdId + - Day + - Hour + type: string + type: array + uniqueItems: false + timezone: + description: The timezone used for the report. Timezone Database format + (Tz). + nullable: true + type: string + adFormats: + description: The list of adFormats. + items: + type: string + nullable: true + type: array + uniqueItems: false + displaySizes: + description: The list of displaySizes. + items: + type: string + nullable: true + type: array + uniqueItems: false + couponNames: + description: The list of coupon names. + items: + type: string + nullable: true + type: array + uniqueItems: false + couponIds: + description: The list of coupon ids. + items: + type: string + nullable: true + type: array + uniqueItems: false + adNames: + description: The list of ad names. items: type: string + nullable: true type: array uniqueItems: false - adSetNames: - description: "The list of adSets names. If empty, all the adSets will be\ - \ fetched" + adIds: + description: The list of ad ids. + items: + type: string + nullable: true + type: array + uniqueItems: false + campaignIds: + description: The list of campaign ids (marketing campaign ids). + items: + type: string + nullable: true + type: array + uniqueItems: false + adSetIds: + description: The list of adSet ids (campaign ids). items: type: string + nullable: true type: array uniqueItems: false adSetStatus: - description: "The list of adSets status. If empty, all the adSets will be\ - \ fetched" + description: "The list of adSet status (ex: 'Active','NotRunning')." items: type: string + nullable: true type: array uniqueItems: false required: + - advertiserIds - dimensions - endDate - metrics - startDate type: object - GenerateAudiencePerformanceReportRequestAttributes: - description: Request attributes for async audience performance report + GenerateTopProductsReportRequestAttributes: + description: This is the message defining the query for TopProducts report properties: + 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." @@ -18431,67 +18875,142 @@ components: format: date-time type: string advertiserId: - description: The advertiser id - type: string - timezone: - description: The timezone used for the report. Timezone Database format - (Tz). + description: The client id. type: string - dimension: - description: The dimension for the report. + limit: + description: The maximum number of top products returned. + format: int32 + nullable: true + type: integer + rankProductsBy: + description: The metric used to filter the top products. enum: - - AdvertiserId - - Advertiser - - Top30BrandsByDisplays - - Top30BrandsByClicks - - Top30BrandsBySales - - Top30InterestsByDisplays - - Top30InterestsByClicks - - Top30InterestsBySales + - Clicks + - Displays + - Sales type: string + dimensions: + description: The dimensions for the report. + items: + enum: + - Campaign + - CampaignId + - AdSet + - AdSetId + - Product + - ProductId + - Category + - CategoryId + - Advertiser + - AdvertiserId + - ProductUrl + - Brand + type: string + nullable: true + type: array + uniqueItems: false metrics: description: The list of metrics to report. items: enum: - Clicks - - Displays + - Ctr - Visits - Sales + - Cost - Revenue - - CostPerVisit - - ExposedUsers + - Displays type: string + nullable: true type: array uniqueItems: false currency: + default: EUR description: The currency used for the report. ISO 4217 code (three-letter capitals). + nullable: true type: string - adSetIds: - description: "The list of adSets ids. If empty, all the adSets will be fetched." + brands: + description: The list of brands names. items: type: string + nullable: true type: array uniqueItems: false - audienceIds: - description: "The list of Audiences ids. If empty, all the Audiences will\ - \ be fetched." + categoryIds: + description: The list of category ids. items: type: string + nullable: true type: array uniqueItems: false - segmentsIds: - description: "The list of Segments ids. If empty, all the segments will\ - \ be fetched." + campaignIds: + description: The list of campaign ids. + items: + type: string + nullable: true + type: array + uniqueItems: false + adSetIds: + description: The list of adSet ids. + items: + type: string + nullable: true + type: array + uniqueItems: false + adSetStatus: + description: "The list of adSet status (ex: 'Active','NotRunning')." items: type: string + nullable: true type: array uniqueItems: false required: - advertiserId - - dimension - endDate - - metrics + - rankProductsBy + - 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: @@ -18524,10 +19043,13 @@ components: relatedTo: AdSetId properties: name: + nullable: true type: string title: + nullable: true type: string description: + nullable: true type: string type: enum: @@ -18539,6 +19061,7 @@ components: - DateTime - Interval - Duration + nullable: true type: string role: enum: @@ -18546,6 +19069,7 @@ components: - Property - Interval - Metric + nullable: true type: string relatedTo: enum: @@ -18595,28 +19119,33 @@ components: - Environment - AdChannel - AdSocialNetwork + nullable: true type: string timezone: + nullable: true type: string duration: + nullable: true type: string currency: + nullable: true type: string deprecated: + nullable: true type: boolean type: object - AdSetTargetingDealIdsResponse: - description: "Represents an API response message containing the usual outcome\ - \ fields (warnings+errors), and a valueResource data,\r\ni.e. data is not\ - \ an entity (no id). This can be used for association objects." + SupplyVendorListResponse: + description: A class implementing the response of the Criteo API as described + in API Guild Guidelines with collection of entities as body example: data: - attributes: - dealIds: - - supplyVendorId: supplyVendorId - dealIdentifier: dealIdentifier - - supplyVendorId: supplyVendorId - dealIdentifier: dealIdentifier + - attributes: + name: name + id: id + type: type + - attributes: + name: name + id: id type: type warnings: - traceId: traceId @@ -18662,27 +19191,38 @@ components: title: title properties: data: - $ref: '#/components/schemas/AdSetTargetingDealIdsResource' + items: + $ref: '#/components/schemas/SupplyVendorResource' + nullable: true + type: array + uniqueItems: false 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 type: object - AdSetTargetingDealIdsSetResultResponse: + AdSetTargetingDealIdsResponse: description: "Represents an API response message containing the usual outcome\ \ fields (warnings+errors), and a valueResource data,\r\ni.e. data is not\ \ an entity (no id). This can be used for association objects." example: data: - attributes: "{}" + attributes: + dealIds: + - supplyVendorId: supplyVendorId + dealIdentifier: dealIdentifier + - supplyVendorId: supplyVendorId + dealIdentifier: dealIdentifier type: type warnings: - traceId: traceId @@ -18728,21 +19268,23 @@ components: title: title properties: data: - $ref: '#/components/schemas/AdSetTargetingDealIdsSetResultResource' + $ref: '#/components/schemas/AdSetTargetingDealIdsResource' 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 type: object - AdSetTargetingDealIdsDisableResultResponse: + AdSetTargetingDealIdsSetResultResponse: description: "Represents an API response message containing the usual outcome\ \ fields (warnings+errors), and a valueResource data,\r\ni.e. data is not\ \ an entity (no id). This can be used for association objects." @@ -18794,43 +19336,29 @@ components: title: title properties: data: - $ref: '#/components/schemas/AdSetTargetingDealIdsDisableResultResource' + $ref: '#/components/schemas/AdSetTargetingDealIdsSetResultResource' 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 type: object - AdSetTargetingVideoPositioningResponse: + AdSetTargetingDealIdsDisableResultResponse: description: "Represents an API response message containing the usual outcome\ \ fields (warnings+errors), and a valueResource data,\r\ni.e. data is not\ \ an entity (no id). This can be used for association objects." example: - data: - attributes: - playbackMethod: - - AutoSoundOn - - AutoSoundOn - videoAspectRatio: - - Horizontal - - Horizontal - videoPlacement: - - InBanner - - InBanner - skippable: Required - videoPlayerSize: - - Small - - Small - videoInStreamPosition: - - PreRoll - - PreRoll + data: + attributes: "{}" type: type warnings: - traceId: traceId @@ -18876,27 +19404,45 @@ components: title: title properties: data: - $ref: '#/components/schemas/AdSetTargetingVideoPositioningResource' + $ref: '#/components/schemas/AdSetTargetingDealIdsDisableResultResource' 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 type: object - AdSetTargetingVideoPositioningSetResultResponse: + AdSetTargetingVideoPositioningResponse: description: "Represents an API response message containing the usual outcome\ \ fields (warnings+errors), and a valueResource data,\r\ni.e. data is not\ \ an entity (no id). This can be used for association objects." example: data: - attributes: "{}" + attributes: + playbackMethod: + - AutoSoundOn + - AutoSoundOn + videoAspectRatio: + - Horizontal + - Horizontal + videoPlacement: + - InBanner + - InBanner + skippable: Required + videoPlayerSize: + - Small + - Small + videoInStreamPosition: + - PreRoll + - PreRoll type: type warnings: - traceId: traceId @@ -18942,21 +19488,23 @@ components: title: title properties: data: - $ref: '#/components/schemas/AdSetTargetingVideoPositioningSetResultResource' + $ref: '#/components/schemas/AdSetTargetingVideoPositioningResource' 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 type: object - AdSetTargetingVideoPositioningDisableResultResponse: + AdSetTargetingVideoPositioningSetResultResponse: description: "Represents an API response message containing the usual outcome\ \ fields (warnings+errors), and a valueResource data,\r\ni.e. data is not\ \ an entity (no id). This can be used for association objects." @@ -19008,32 +19556,29 @@ components: title: title properties: data: - $ref: '#/components/schemas/AdSetTargetingVideoPositioningDisableResultResource' + $ref: '#/components/schemas/AdSetTargetingVideoPositioningSetResultResource' 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 type: object - SupplyVendorListResponse: - description: A class implementing the response of the Criteo API as described - in API Guild Guidelines with collection of entities as body + AdSetTargetingVideoPositioningDisableResultResponse: + description: "Represents an API response message containing the usual outcome\ + \ fields (warnings+errors), and a valueResource data,\r\ni.e. data is not\ + \ an entity (no id). This can be used for association objects." example: data: - - attributes: - name: name - id: id - type: type - - attributes: - name: name - id: id + attributes: "{}" type: type warnings: - traceId: traceId @@ -19079,19 +19624,18 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/SupplyVendorResource' - type: array - uniqueItems: false + $ref: '#/components/schemas/AdSetTargetingVideoPositioningDisableResultResource' 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 @@ -19141,6 +19685,23 @@ components: data: $ref: '#/components/schemas/SetAdSetTargetingVideoPositioningResource' type: object + SupplyVendorResource: + description: A class that represents an entity in a guild compliant way + example: + attributes: + name: name + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/SupplyVendor' + id: + nullable: true + type: string + type: + nullable: true + type: string + type: object AdSetTargetingDealIdsResource: description: A class that represents a ValueType in a guild compliant way example: @@ -19153,6 +19714,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/AdSetTargetingDealIds' @@ -19164,6 +19726,7 @@ components: type: type properties: type: + nullable: true type: string attributes: description: Result of the AdSetTargetingDealIds setting @@ -19178,6 +19741,7 @@ components: type: type properties: type: + nullable: true type: string attributes: description: Result of the AdSetTargetingDealIds disabling @@ -19208,6 +19772,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/AdSetTargetingVideoPositioning' @@ -19219,6 +19784,7 @@ components: type: type properties: type: + nullable: true type: string attributes: description: Result of the AdSetTargetingDealIds setting @@ -19233,6 +19799,7 @@ components: type: type properties: type: + nullable: true type: string attributes: description: Result of the AdSetTargetingVideoPositioning deletion @@ -19240,21 +19807,6 @@ components: x-criteo-canonical: infoType: entity type: object - SupplyVendorResource: - description: A class that represents an entity in a guild compliant way - example: - attributes: - name: name - id: id - type: type - properties: - attributes: - $ref: '#/components/schemas/SupplyVendor' - id: - type: string - type: - type: string - type: object SetAdSetTargetingDealIdsResource: description: A class that represents a ValueType in a guild compliant way example: @@ -19267,6 +19819,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/SetAdSetTargetingDealIds' @@ -19294,10 +19847,22 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/SetAdSetTargetingVideoPositioning' type: object + SupplyVendor: + description: Supply Vendor model + example: + name: name + properties: + name: + nullable: true + type: string + type: object + x-criteo-canonical: + infoType: entity AdSetTargetingDealIds: description: Ad set Deal Id targeting model example: @@ -19310,6 +19875,7 @@ components: dealIds: items: $ref: '#/components/schemas/DealId' + nullable: true type: array uniqueItems: false type: object @@ -19354,6 +19920,7 @@ components: - Interstitial - InStream type: string + nullable: true type: array uniqueItems: false playbackMethod: @@ -19366,12 +19933,14 @@ components: - EnteringViewportSoundOn - EnteringViewportSoundOff type: string + nullable: true type: array uniqueItems: false skippable: enum: - Required - Blocked + nullable: true type: string videoInStreamPosition: items: @@ -19380,6 +19949,7 @@ components: - MidRoll - PostRoll type: string + nullable: true type: array uniqueItems: false videoPlayerSize: @@ -19390,6 +19960,7 @@ components: - Large - ExtraLarge type: string + nullable: true type: array uniqueItems: false videoAspectRatio: @@ -19399,6 +19970,7 @@ components: - Square - Vertical type: string + nullable: true type: array uniqueItems: false type: object @@ -19414,16 +19986,6 @@ components: type: object x-criteo-canonical: infoType: entity - SupplyVendor: - description: Supply Vendor model - example: - name: name - properties: - name: - type: string - type: object - x-criteo-canonical: - infoType: entity SetAdSetTargetingDealIds: description: deal ids targeting writing model example: @@ -19436,6 +19998,7 @@ components: dealIds: items: $ref: '#/components/schemas/DealId' + nullable: true type: array uniqueItems: false type: object @@ -19470,6 +20033,7 @@ components: - Interstitial - InStream type: string + nullable: true type: array uniqueItems: false playbackMethod: @@ -19482,12 +20046,14 @@ components: - EnteringViewportSoundOn - EnteringViewportSoundOff type: string + nullable: true type: array uniqueItems: false skippable: enum: - Required - Blocked + nullable: true type: string videoInStreamPosition: items: @@ -19496,6 +20062,7 @@ components: - MidRoll - PostRoll type: string + nullable: true type: array uniqueItems: false videoPlayerSize: @@ -19506,6 +20073,7 @@ components: - Large - ExtraLarge type: string + nullable: true type: array uniqueItems: false videoAspectRatio: @@ -19515,6 +20083,7 @@ components: - Square - Vertical type: string + nullable: true type: array uniqueItems: false type: object @@ -19527,22 +20096,19 @@ components: dealIdentifier: dealIdentifier properties: dealIdentifier: + nullable: true type: string supplyVendorId: + nullable: true type: string type: object - GetPortfolioResponse: - description: Portfolio fetch Response + AdvertiserCreationResponse: + description: Advertiser Creation Response example: data: - - meta: "{}" - attributes: - advertiserName: advertiserName - id: id - type: campaign - - meta: "{}" - attributes: - advertiserName: advertiserName + relationships: "{}" + meta: "{}" + attributes: "{}" id: id type: campaign warnings: @@ -19550,43 +20116,69 @@ components: code: internal-error instance: instance detail: detail - type: access_control + type: access-control title: title - traceId: traceId code: internal-error instance: instance detail: detail - type: access_control + type: access-control title: title errors: - traceId: traceId - code: internal-error + traceIdentifier: traceIdentifier + code: code instance: instance detail: detail source: key: source - type: access_control + stackTrace: stackTrace + type: unknown title: title - traceId: traceId - code: internal-error + traceIdentifier: traceIdentifier + code: code instance: instance detail: detail source: key: source - type: access_control + stackTrace: stackTrace + type: unknown title: title properties: data: - description: The response�s primary data + $ref: '#/components/schemas/EntityV2OfObject' + errors: + description: "Error list returned by the Criteo API\r\nFor successful requests\ + \ it is empty" items: - $ref: '#/components/schemas/EntityOfPortfolioMessage' + $ref: '#/components/schemas/CommonProblem' + nullable: true + type: array + uniqueItems: false + warnings: + description: "Warnings list returned by the Criteo API\r\nIn some situations\ + \ the operations are successful but it may be useful to issue warnings\ + \ to the API consumer.\r\nFor example the endpoint, entity or field is\ + \ deprecated. Warnings are like compiler warnings, they indicate that\ + \ problems may occur in the future." + items: + $ref: '#/components/schemas/CriteoApiWarningV2' + nullable: true type: array uniqueItems: false + type: object + UnauthorizedResponseV2: + description: Unauthorized Response + properties: + data: + $ref: '#/components/schemas/EntityV2OfObject' errors: description: "Error list returned by the Criteo API\r\nFor successful requests\ \ it is empty" items: - $ref: '#/components/schemas/CriteoApiError' + $ref: '#/components/schemas/CommonProblem' + nullable: true type: array uniqueItems: false warnings: @@ -19596,17 +20188,23 @@ components: \ deprecated. Warnings are like compiler warnings, they indicate that\ \ problems may occur in the future." items: - $ref: '#/components/schemas/CriteoApiWarning' + $ref: '#/components/schemas/CriteoApiWarningV2' + nullable: true type: array uniqueItems: false type: object - AdvertiserCreationResponse: - description: Advertiser Creation Response + GetPortfolioResponse: + description: Portfolio fetch Response example: data: - relationships: "{}" - meta: "{}" - attributes: "{}" + - meta: "{}" + attributes: + advertiserName: advertiserName + id: id + type: campaign + - meta: "{}" + attributes: + advertiserName: advertiserName id: id type: campaign warnings: @@ -19614,66 +20212,45 @@ components: code: internal-error instance: instance detail: detail - type: access-control + type: access_control title: title - traceId: traceId code: internal-error instance: instance detail: detail - type: access-control + type: access_control title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier - code: code + code: internal-error instance: instance detail: detail source: key: source - stackTrace: stackTrace - type: unknown + type: access_control title: title - traceId: traceId - traceIdentifier: traceIdentifier - code: code + code: internal-error instance: instance detail: detail source: key: source - stackTrace: stackTrace - type: unknown + type: access_control title: title properties: data: - $ref: '#/components/schemas/EntityV2OfObject' - errors: - description: "Error list returned by the Criteo API\r\nFor successful requests\ - \ it is empty" - items: - $ref: '#/components/schemas/CommonProblem' - type: array - uniqueItems: false - warnings: - description: "Warnings list returned by the Criteo API\r\nIn some situations\ - \ the operations are successful but it may be useful to issue warnings\ - \ to the API consumer.\r\nFor example the endpoint, entity or field is\ - \ deprecated. Warnings are like compiler warnings, they indicate that\ - \ problems may occur in the future." + description: The response�s primary data items: - $ref: '#/components/schemas/CriteoApiWarningV2' + $ref: '#/components/schemas/EntityOfPortfolioMessage' + nullable: true type: array uniqueItems: false - type: object - UnauthorizedResponseV2: - description: Unauthorized Response - properties: - data: - $ref: '#/components/schemas/EntityV2OfObject' errors: description: "Error list returned by the Criteo API\r\nFor successful requests\ \ it is empty" items: - $ref: '#/components/schemas/CommonProblem' + $ref: '#/components/schemas/CriteoApiError' + nullable: true type: array uniqueItems: false warnings: @@ -19683,24 +20260,23 @@ components: \ deprecated. Warnings are like compiler warnings, they indicate that\ \ problems may occur in the future." items: - $ref: '#/components/schemas/CriteoApiWarningV2' + $ref: '#/components/schemas/CriteoApiWarning' + nullable: true type: array uniqueItems: false type: object - ListAvailableIndustriesResponse: - description: List Available Industries Response + AdvertiserDatasetListResponse: + description: Get datasets response. example: data: - - relationships: "{}" - meta: "{}" - attributes: "{}" + - attributes: + name: name id: id - type: campaign - - relationships: "{}" - meta: "{}" - attributes: "{}" + type: dataset + - attributes: + name: name id: id - type: campaign + type: dataset warnings: - traceId: traceId code: internal-error @@ -19737,9 +20313,10 @@ components: title: title properties: data: - description: The response�s primary data + description: The response’s primary data items: - $ref: '#/components/schemas/EntityV2OfObject' + $ref: '#/components/schemas/EntityV2OfDataset' + nullable: true type: array uniqueItems: false errors: @@ -19747,6 +20324,7 @@ components: \ it is empty" items: $ref: '#/components/schemas/CommonProblem' + nullable: true type: array uniqueItems: false warnings: @@ -19757,21 +20335,24 @@ components: \ problems may occur in the future." items: $ref: '#/components/schemas/CriteoApiWarningV2' + nullable: true type: array uniqueItems: false type: object - AdvertiserDatasetListResponse: - description: Get datasets response. + ListAvailableIndustriesResponse: + description: List Available Industries Response example: data: - - attributes: - name: name + - relationships: "{}" + meta: "{}" + attributes: "{}" id: id - type: dataset - - attributes: - name: name + type: campaign + - relationships: "{}" + meta: "{}" + attributes: "{}" id: id - type: dataset + type: campaign warnings: - traceId: traceId code: internal-error @@ -19808,9 +20389,10 @@ components: title: title properties: data: - description: The response’s primary data + description: The response�s primary data items: - $ref: '#/components/schemas/EntityV2OfDataset' + $ref: '#/components/schemas/EntityV2OfObject' + nullable: true type: array uniqueItems: false errors: @@ -19818,6 +20400,7 @@ components: \ it is empty" items: $ref: '#/components/schemas/CommonProblem' + nullable: true type: array uniqueItems: false warnings: @@ -19828,6 +20411,7 @@ components: \ problems may occur in the future." items: $ref: '#/components/schemas/CriteoApiWarningV2' + nullable: true type: array uniqueItems: false type: object @@ -19847,12 +20431,12 @@ components: data: $ref: '#/components/schemas/ValueResourceOfAdvertiserCreationInput' type: object - EntityOfPortfolioMessage: + EntityV2OfObject: description: Generic Criteo API successful data model example: + relationships: "{}" meta: "{}" - attributes: - advertiserName: advertiserName + attributes: "{}" id: id type: campaign properties: @@ -19864,6 +20448,8 @@ components: - ad - advertiser - agency + - agencyAdvertiserLink + - AgencyAdvertiserTransferRequest - publisher - address - client @@ -19875,37 +20461,49 @@ components: description: A opaque string containing the unique Id of the entity type: string attributes: - $ref: '#/components/schemas/PortfolioMessage' + description: "Generic Criteo API successful data model\r\nWhile others may\ + \ be computed e.g. lastChangedDate.\r\nComputed attributes are only part\ + \ of the read model and not part of the write model." + nullable: true + type: object meta: description: A meta object that contains application-specific metadata + nullable: true + type: object + relationships: + description: Relationships with this entity + nullable: true type: object + required: + - id + - type type: object - CriteoApiError: - description: Criteo API response error + CriteoApiWarningV2: + description: Criteo API response warning example: traceId: traceId code: internal-error instance: instance detail: detail - source: - key: source - type: access_control + type: access-control title: title properties: traceId: description: The correlation ID provided by the gateway + nullable: true type: string type: description: A machine-readable code specifying error category enum: - - access_control + - access-control - authentication - authorization - availability - deprecation - quota - validation - example: access_control + example: access-control + nullable: true type: string code: description: A machine-readable error code string in kabab-case. Unique @@ -19919,38 +20517,76 @@ components: - invalid - invalid-ranged - invalid-timespan + - permission-denied 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). + type: object + EntityOfPortfolioMessage: + description: Generic Criteo API successful data model + example: + meta: "{}" + attributes: + advertiserName: advertiserName + id: id + type: campaign + properties: + type: + description: A string containing the entity type + enum: + - campaign + - adset + - ad + - advertiser + - agency + - publisher + - address + - client + - 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 - CriteoApiWarning: - description: Criteo API response warning + CriteoApiError: + description: Criteo API response error example: traceId: traceId code: internal-error instance: instance detail: detail + source: + key: source type: access_control title: title properties: traceId: description: The correlation ID provided by the gateway + nullable: true type: string type: description: A machine-readable code specifying error category @@ -19963,6 +20599,7 @@ components: - quota - validation example: access_control + nullable: true type: string code: description: A machine-readable error code string in kabab-case. Unique @@ -19977,87 +20614,56 @@ 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 - EntityV2OfObject: - description: Generic Criteo API successful data model - example: - relationships: "{}" - meta: "{}" - attributes: "{}" - id: id - type: campaign - properties: - type: - description: A string containing the entity type - enum: - - campaign - - adset - - ad - - advertiser - - agency - - agencyAdvertiserLink - - AgencyAdvertiserTransferRequest - - publisher - - address - - client - - contact - - industry - example: campaign - type: string - id: - description: A opaque string containing the unique Id of the entity - type: string - attributes: - description: "Generic Criteo API successful data model\r\nWhile others may\ - \ be computed e.g. lastChangedDate.\r\nComputed attributes are only part\ - \ of the read model and not part of the write model." - type: object - meta: - description: A meta object that contains application-specific metadata - type: object - relationships: - description: Relationships with this entity + source: + additionalProperties: + type: string + description: A machine-readable structure to reference to the exact location(s) + causing the error(s). + nullable: true type: object - required: - - id - - type type: object - CriteoApiWarningV2: + CriteoApiWarning: description: Criteo API response warning example: traceId: traceId code: internal-error instance: instance detail: detail - type: access-control + type: access_control title: title properties: traceId: description: The correlation ID provided by the gateway + nullable: true type: string type: description: A machine-readable code specifying error category enum: - - access-control + - access_control - authentication - authorization - availability - deprecation - quota - validation - example: access-control + example: access_control + nullable: true type: string code: description: A machine-readable error code string in kabab-case. Unique @@ -20071,19 +20677,22 @@ components: - invalid - invalid-ranged - invalid-timespan - - permission-denied 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 EntityV2OfDataset: @@ -20129,6 +20738,7 @@ components: a single value properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/AdvertiserCreationInput' @@ -20139,6 +20749,7 @@ components: advertiserName: advertiserName properties: advertiserName: + nullable: true type: string type: object Dataset: @@ -20147,6 +20758,7 @@ components: name: name properties: name: + nullable: true type: string type: object AdvertiserCreationInput: @@ -20265,12 +20877,14 @@ components: description: errors items: $ref: '#/components/schemas/ProductImporterError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/ProductImporterWarning' + nullable: true readOnly: true type: array type: object @@ -21114,6 +21728,7 @@ components: batchId: description: "An entry ID, unique within the batch request." format: int64 + nullable: true type: integer merchantId: description: "The ID of the managing account. Criteo: the partnerId." @@ -21127,15 +21742,18 @@ components: type: string productId: description: The Product ID to delete. Only defined if the method is delete. + nullable: true type: string itemGroupId: description: The itemGroupId of the product to delete. To be defined when the method is delete and the product is a variant. + nullable: true type: string product: $ref: '#/components/schemas/Product' feedId: description: Not used by Criteo. + nullable: true type: string required: - merchantId @@ -21336,6 +21954,7 @@ components: type: string offerId: description: Not used by Criteo. + nullable: true type: string title: description: Title of the item. (500 UTF8 characters max). @@ -21343,6 +21962,7 @@ components: description: description: Description of the item. RECOMMENDED. (5000 UTF8 characters max). + nullable: true type: string link: description: URL directly linking to your item's page on your website. (1000 @@ -21356,12 +21976,15 @@ components: description: Additional URLs of images of the item. items: type: string + nullable: true type: array contentLanguage: description: The two-letter ISO 639-1 language code for the item. + nullable: true type: string targetCountry: description: The CLDR territory code for the item. + nullable: true type: string channel: description: The item's channel (online only). @@ -21371,37 +21994,48 @@ components: expirationDate: description: "Date on which the item should expire, as specified upon insertion,\ \ in ISO 8601 format." + nullable: true type: string adult: description: Set to true if the item is targeted towards adults. RECOMMENDED. + nullable: true type: boolean kind: description: Identifies what kind of resource this is. + nullable: true type: string brand: description: Brand of the item. RECOMMENDED. + nullable: true type: string color: description: Color of the item. + nullable: true type: string googleProductCategory: description: Google's category of the item (see Google product taxonomy). RECOMMENDED. + nullable: true type: string gtin: description: Global Trade Item Number (GTIN) of the item. RECOMMENDED. + nullable: true type: string itemGroupId: description: Shared identifier for all variants of the same product. RECOMMENDED. + nullable: true type: string material: description: The material of which the item is made. + nullable: true type: string mpn: description: Manufacturer Part Number (MPN) of the item. RECOMMENDED. + nullable: true type: string pattern: description: The item's pattern (e.g. polka dots). + nullable: true type: string price: $ref: '#/components/schemas/Price' @@ -21409,11 +22043,13 @@ components: $ref: '#/components/schemas/Price' salePriceEffectiveDate: description: Date range during which the item is on sale. + nullable: true type: string shipping: description: Shipping rules. items: $ref: '#/components/schemas/ProductShipping' + nullable: true type: array shippingWeight: $ref: '#/components/schemas/ProductShippingWeight' @@ -21423,11 +22059,13 @@ components: \ size with the same itemGroupId value." items: type: string + nullable: true type: array taxes: description: Tax information. items: $ref: '#/components/schemas/ProductTax' + nullable: true type: array customAttributes: description: A list of custom (merchant-provided) attributes. This is useful @@ -21435,12 +22073,14 @@ components: attributes explicitly exposed by the API using is forbidden items: $ref: '#/components/schemas/CustomAttribute' + nullable: true type: array identifierExists: description: "False when the item does not have unique product identifiers\ \ appropriate to its category, such as GTIN, MPN, and brand. Required\ \ according to the Unique Product Identifier Rules for all target countries\ \ except for Canada." + nullable: true type: boolean installment: $ref: '#/components/schemas/Installment' @@ -21450,38 +22090,48 @@ components: description: "The number of identical products in a merchant-defined multipack.\ \ To avoid any overflow issue, pass it as a string." format: int64 + nullable: true type: integer customLabel0: description: Custom label 0 for custom grouping of items in a Shopping campaign. + nullable: true type: string customLabel1: description: Custom label 1 for custom grouping of items in a Shopping campaign. + nullable: true type: string customLabel2: description: Custom label 2 for custom grouping of items in a Shopping campaign. + nullable: true type: string customLabel3: description: Custom label 3 for custom grouping of items in a Shopping campaign. + nullable: true type: string customLabel4: description: Custom label 4 for custom grouping of items in a Shopping campaign. + nullable: true type: string isBundle: description: Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price. + nullable: true type: boolean mobileLink: description: accounts.link to a mobile-optimized version of the landing page. + nullable: true type: string availabilityDate: description: "The day a pre-ordered product becomes available for delivery,\ \ in ISO 8601 format." + nullable: true type: string shippingLabel: description: "The shipping label of the product, used to group product in\ \ account-level shipping rules." + nullable: true type: string unitPricingMeasure: $ref: '#/components/schemas/ProductUnitPricingMeasure' @@ -21495,45 +22145,55 @@ components: $ref: '#/components/schemas/ProductShippingDimension' displayAdsId: description: An identifier for an item for dynamic remarketing campaigns. + nullable: true type: string displayAdsSimilarIds: description: Advertiser-specified recommendations. items: type: string + nullable: true type: array displayAdsTitle: description: Title of an item for dynamic remarketing campaigns. + nullable: true type: string displayAdsLink: description: URL directly to your item's landing page for dynamic remarketing campaigns. + nullable: true type: string displayAdsValue: description: Offer margin for dynamic remarketing campaigns. format: double + nullable: true type: number sellOnGoogleQuantity: description: The quantity of the product that is available for selling on Google. Supported only for online products. format: int64 + nullable: true type: integer promotionIds: description: The unique ID of a promotion. items: type: string + nullable: true type: array maxHandlingTime: description: Maximal product handling time (in business days). format: int64 + nullable: true type: integer minHandlingTime: description: Minimal product handling time (in business days). format: int64 + nullable: true type: integer costOfGoodsSold: $ref: '#/components/schemas/Price' source: description: "The source of the offer, i.e., how the offer was created." + nullable: true type: string includedDestinations: description: The list of destinations to include for this target (corresponds @@ -21541,70 +22201,88 @@ components: included unless provided in excludedDestinations. items: type: string + nullable: true type: array excludedDestinations: description: The list of destinations to exclude for this target (corresponds to unchecked check boxes in Merchant Center). items: type: string + nullable: true type: array adsGrouping: description: "Used to group items in an arbitrary way. Only for CPA%, discouraged\ \ otherwise." + nullable: true type: string adsLabels: description: "Similar to adsGrouping, but only works on CPC." items: type: string + nullable: true type: array adsRedirect: description: Allows advertisers to override the item URL when the product is shown within the context of Product Ads. + nullable: true type: string productTypes: description: Categories of the item (formatted as in products data specification). items: type: string + nullable: true type: array ageGroup: description: Target age group of the item. + nullable: true type: string availability: description: Availability status of the item. RECOMMENDED. + nullable: true type: string condition: description: Condition or state of the item. + nullable: true type: string gender: description: Target gender of the item. + nullable: true type: string sizeSystem: description: System in which the size is specified. Recommended for apparel items. + nullable: true type: string sizeType: description: The cut of the item. Recommended for apparel items. + nullable: true type: string energyEfficiencyClass: description: The energy efficiency class as defined in EU directive 2010/30/EU. + nullable: true type: string minEnergyEfficiencyClass: description: The energy efficiency class as defined in EU directive 2010/30/EU. + nullable: true type: string maxEnergyEfficiencyClass: description: The energy efficiency class as defined in EU directive 2010/30/EU. + nullable: true type: string taxCategory: description: "The tax category of the product, used to configure detailed\ \ tax nexus in account-level tax settings." + nullable: true type: string transitTimeLabel: description: "The transit time label of the product, used to group product\ \ in account-level transit time tables." + nullable: true type: string sellerId: description: The ID of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads. + nullable: true type: string required: - channel @@ -21621,10 +22299,12 @@ components: properties: currency: description: The currency of the price. + nullable: true type: string value: description: The price represented as a number. See JSON's number specification for more details. + nullable: true type: string type: object ProductShippingWeight: @@ -21637,9 +22317,11 @@ components: description: The weight of the product used to calculate the shipping cost of the item. format: double + nullable: true type: number unit: description: The unit of value. + nullable: true type: string type: object Installment: @@ -21653,6 +22335,7 @@ components: months: description: The number of installments the buyer has to pay. format: int64 + nullable: true type: integer amount: $ref: '#/components/schemas/Price' @@ -21667,16 +22350,19 @@ components: name: description: Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters. + nullable: true type: string pointsValue: description: The retailer's loyalty points in absolute value. format: int64 + nullable: true type: integer ratio: description: "The ratio of a point when converted to currency. Google assumes\ \ currency based on Merchant Center settings. If ratio is left out, it\ \ defaults to 1.0." format: double + nullable: true type: number type: object ProductUnitPricingMeasure: @@ -21688,9 +22374,11 @@ components: value: description: The measurement of an item. format: double + nullable: true type: number unit: description: The unit of measure. + nullable: true type: string type: object ProductUnitPricingBaseMeasure: @@ -21702,9 +22390,11 @@ components: value: description: The denominator of the unit price. format: int64 + nullable: true type: integer unit: description: The unit of the denominator. + nullable: true type: string type: object ProductShippingDimension: @@ -21717,9 +22407,11 @@ components: description: The dimension of the product used to calculate the shipping cost of the item. format: double + nullable: true type: number unit: description: The unit of value. + nullable: true type: string type: object ProductShipping: @@ -21740,26 +22432,32 @@ components: country: description: The CLDR territory code of the country to which an item will ship. + nullable: true type: string region: description: The geographic region to which a shipping rate applies. + nullable: true type: string service: description: A free-form description of the service class or delivery speed. + nullable: true type: string locationId: description: The numeric ID of a location that the shipping rate applies to as defined in the AdWords API. format: int64 + nullable: true type: integer locationGroupName: description: "The location where the shipping is applicable, represented\ \ by a location group name." + nullable: true type: string postalCode: description: "The postal code range that the shipping rate applies to, represented\ \ by a postal code, a postal code prefix followed by a * wildcard, a range\ \ between two postal codes or two postal code prefixes of equal length." + nullable: true type: string type: object ProductTax: @@ -21775,27 +22473,33 @@ components: rate: description: The percentage of tax rate that applies to the item price. format: double + nullable: true type: number country: description: "The country within which the item is taxed, specified as a\ \ CLDR territory code." + nullable: true type: string region: description: The geographic region to which the tax rate applies. + nullable: true type: string taxShip: description: Set to true if tax is charged on shipping. + nullable: true type: boolean locationId: description: The numeric ID of a location that the tax rate applies to as defined in the AdWords API. format: int64 + nullable: true type: integer postalCode: description: "The postal code range that the tax rate applies to, represented\ \ by a ZIP code, a ZIP code prefix using * wildcard, a range between two\ \ ZIP codes or two ZIP code prefixes of equal length. Examples: 94114,\ \ 94*, 94002-95460, 94*-95*." + nullable: true type: string type: object CustomAttribute: @@ -21889,12 +22593,14 @@ components: 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 @@ -21949,12 +22655,14 @@ components: 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 @@ -22052,17 +22760,20 @@ components: data: items: $ref: '#/components/schemas/ResourceOfProductSet' + 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 @@ -22115,14 +22826,17 @@ components: attributes: $ref: '#/components/schemas/ProductSet' id: + nullable: true type: string type: + nullable: true type: string type: object ValueResourceOfCreateProductSetRequest: description: A class that represents a ValueType in a guild compliant way properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/CreateProductSetRequest' @@ -22151,9 +22865,11 @@ components: properties: datasetId: description: The dataset to which the product set belong + nullable: true type: string name: description: The name of the product set + nullable: true type: string status: description: The status of the product set @@ -22164,40 +22880,50 @@ components: - Valid - Invalid - Deleted + nullable: true type: string isEnabled: description: True if the product set is active + nullable: true type: boolean numberOfProducts: description: The number of product matching the product set format: int32 + nullable: true type: integer creationDate: description: "Optional: The creation date of the product set (UTC time in\ \ ISO8601 format). Example: \"02/25/2022 14:51:26\"\r\nCan be null if\ \ the value doesn't exist." + nullable: true type: string rules: description: The rules identifying the product belonging to the set items: $ref: '#/components/schemas/ProductSetRule' + nullable: true type: array uniqueItems: false id: + nullable: true type: string type: object CreateProductSetRequest: description: Entity to create a product set properties: datasetId: + nullable: true type: string name: + nullable: true type: string isDraft: + nullable: true type: boolean rules: items: $ref: '#/components/schemas/ProductSetRule' + nullable: true type: array uniqueItems: false type: object @@ -22219,6 +22945,7 @@ components: - NotBetween - LessThan - GreaterThan + nullable: true type: string field: description: The field on which we want to apply the rule @@ -22235,11 +22962,13 @@ components: - CustomLabel2 - CustomLabel3 - CustomLabel4 + nullable: true type: string values: description: The values on which we want to apply the rule items: type: string + nullable: true type: array uniqueItems: false type: object @@ -22502,6 +23231,7 @@ components: values: items: type: string + nullable: true type: array required: - field @@ -22533,17 +23263,20 @@ components: description: Recommended products items: $ref: '#/components/schemas/RecommendedProduct' + nullable: true type: array extraInfos: description: "Additional information in case of warnings, errors..." items: format: int32 type: integer + nullable: true type: array type: object OnSiteRecoRequest: description: Recommendation request parameters. example: + adId: 5 identityType: CtoBundle nbRequestedProducts: 0 adSetId: 1 @@ -22564,6 +23297,7 @@ components: userId: description: Used to retrieve user events from Criteo trackers. Optional if UserEvents are passed. + nullable: true type: string identityType: description: "Type of the user identifier (cto_bundle, Idfa, Gaid...)\r\n\ @@ -22572,17 +23306,26 @@ components: - CtoBundle - Idfa - Gaid + nullable: true type: string userEvents: description: Used to perform a recommendation without relying on events stored for a UserId. Optional if UserId is passed. items: $ref: '#/components/schemas/UserEvent' + nullable: true type: array adSetId: description: Id of the AdSet. This field is optional and is resolved automatically for adsets previously configured. format: int32 + nullable: true + type: integer + adId: + description: "Id of the Ad. This field is optional, it allows to setup Reco\ + \ controls at Ad level." + format: int32 + nullable: true type: integer partnerId: description: Id of the partner. @@ -22605,26 +23348,33 @@ components: properties: productExternalId: description: Product external id. Same id than what is used in user events. + nullable: true type: string clickUrl: description: Url leading to product details page and also used to track user click. + nullable: true type: string imageUrl: description: Product image. + nullable: true type: string name: description: Product name. + nullable: true type: string description: description: Product description. + nullable: true type: string price: description: Product price. format: double + nullable: true type: number googleCategory: description: Product google category. + nullable: true type: string type: object UserEvent: @@ -22715,11 +23465,13 @@ components: description: An array of warning objects items: $ref: '#/components/schemas/TargetingErrorModel' + nullable: true type: array errors: description: An array of error objects items: $ref: '#/components/schemas/TargetingErrorModel' + nullable: true type: array type: object OciTargetingResponse: @@ -22775,11 +23527,13 @@ components: description: An array of warning objects items: $ref: '#/components/schemas/TargetingErrorModel' + nullable: true type: array errors: description: An array of error objects items: $ref: '#/components/schemas/TargetingErrorModel' + nullable: true type: array type: object OciBrandSafetyRule: @@ -22798,6 +23552,7 @@ components: blacklisted: items: $ref: '#/components/schemas/OciBrandSafetySegment' + nullable: true type: array type: object OciTargetingRule: @@ -22837,6 +23592,7 @@ components: detail: description: A human-readable detailed explanation specific to this occurrence of the problem. + nullable: true type: string instance: description: A machine-readable URI reference that identifies the specific @@ -22845,9 +23601,11 @@ components: source: description: A machine-readable structure to reference to the exact location(s) causing the error(s). + nullable: true type: object title: description: "A short, human-readable summary of the problem type." + nullable: true type: string traceId: description: The machine-readable correlation Id provided by the gateway. @@ -22927,10 +23685,12 @@ components: operator: $ref: '#/components/schemas/TargetingOperator' value: + nullable: true type: string children: items: $ref: '#/components/schemas/OciTargetingNode' + nullable: true type: array type: object TargetingOperator: @@ -22966,6 +23726,7 @@ components: errors: items: $ref: '#/components/schemas/ErrorDescription' + nullable: true type: array uniqueItems: false type: object @@ -23004,6 +23765,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/TargetingEntity' @@ -23012,14 +23774,19 @@ components: description: Error structure representing an error message properties: title: + nullable: true type: string instance: + nullable: true type: string traceId: + nullable: true type: string code: + nullable: true type: string type: + nullable: true type: string type: object TargetingEntity: @@ -23040,16 +23807,19 @@ components: enum: - DOMAIN - BUNDLE + nullable: true type: string mode: description: Can be either BLOCKLIST or ALLOWLIST enum: - BLOCKLIST - ALLOWLIST + nullable: true type: string data: items: $ref: '#/components/schemas/EntityFilter' + nullable: true type: array uniqueItems: true type: object @@ -23062,12 +23832,36 @@ components: properties: value: description: Could be a domain or a bundle depending on the context + nullable: true type: string readOnly: + nullable: true type: boolean active: + nullable: true type: boolean type: object + DeleteUserProfileModelListRequest: + description: A top-level object that encapsulates a Criteo API request for several + values + example: + data: + - attributes: + userProfileId: userProfileId + userProfileListId: userProfileListId + type: type + - attributes: + userProfileId: userProfileId + userProfileListId: userProfileListId + type: type + properties: + data: + items: + $ref: '#/components/schemas/DeleteUserProfileModelResource' + nullable: true + type: array + uniqueItems: false + type: object SetUserProfileModelListRequest: description: A top-level object that encapsulates a Criteo API request for several values @@ -23105,28 +23899,24 @@ components: data: items: $ref: '#/components/schemas/SetUserProfileModelResource' + nullable: true type: array uniqueItems: false type: object - DeleteUserProfileModelListRequest: - description: A top-level object that encapsulates a Criteo API request for several - values + DeleteUserProfileModelResource: + description: A top-level object that encapsulates a Criteo API response for + a single value example: - data: - - attributes: - userProfileId: userProfileId - userProfileListId: userProfileListId - type: type - - attributes: - userProfileId: userProfileId - userProfileListId: userProfileListId - type: type + attributes: + userProfileId: userProfileId + userProfileListId: userProfileListId + type: type properties: - data: - items: - $ref: '#/components/schemas/DeleteUserProfileModelResource' - type: array - uniqueItems: false + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/DeleteUserProfileModel' type: object SetUserProfileModelResource: description: A top-level object that encapsulates a Criteo API response for @@ -23148,23 +23938,25 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/SetUserProfileModel' type: object - DeleteUserProfileModelResource: - description: A top-level object that encapsulates a Criteo API response for - a single value + DeleteUserProfileModel: + description: Used for the /user-profiles/delete endpoint. Contains information + about the user profile that we delete example: - attributes: - userProfileId: userProfileId - userProfileListId: userProfileListId - type: type + userProfileId: userProfileId + userProfileListId: userProfileListId properties: - type: + userProfileId: type: string - attributes: - $ref: '#/components/schemas/DeleteUserProfileModel' + userProfileListId: + nullable: true + type: string + required: + - userProfileId type: object SetUserProfileModel: description: Used for the /user-profiles/set endpoint. Contains information @@ -23186,34 +23978,23 @@ components: userProfileId: type: string userProfileListId: + nullable: true type: string userProfileIdentifiers: items: $ref: '#/components/schemas/UserProfileIdentifierModel' + nullable: true type: array uniqueItems: false userProfileAttributes: items: $ref: '#/components/schemas/UserProfileAttributeModel' + nullable: true type: array uniqueItems: false required: - userProfileId type: object - DeleteUserProfileModel: - description: Used for the /user-profiles/delete endpoint. Contains information - about the user profile that we delete - example: - userProfileId: userProfileId - userProfileListId: userProfileListId - properties: - userProfileId: - type: string - userProfileListId: - type: string - required: - - userProfileId - type: object UserProfileIdentifierModel: description: Identifier of a user profile example: @@ -23257,6 +24038,7 @@ components: properties: contactListId: description: the affected user list id + nullable: true type: integer operation: description: The action recorded @@ -23264,36 +24046,34 @@ 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 type: object - ContactlistAmendment_attributes: + ContactlistWithAttributesAmendment_attributes: description: the name of the entity type - example: - gumCallerId: 0 - identifiers: - - identifiers - - identifiers - identifierType: email - operation: add properties: operation: - description: Operation to add or remove users + description: Whether to add or remove users enum: - add - remove @@ -23306,25 +24086,37 @@ components: - identityLink - gum - customerid + example: email type: string identifiers: - description: "The users tos add or remove, each in the schema specified" + description: "The users to add or remove, each in the schema specified,\ + \ defined with attributes" items: - type: string + $ref: '#/components/schemas/UserDef' type: array gumCallerId: description: The Gum caller id of the advertiser patching identifiers of type Gum - type: integer + nullable: true + readOnly: true + type: object required: + - identifierType - identifiers - operation type: object - ContactlistWithAttributesAmendment_attributes: + ContactlistAmendment_attributes: description: the name of the entity type + example: + gumCallerId: 0 + identifiers: + - identifiers + - identifiers + identifierType: email + operation: add properties: operation: - description: Whether to add or remove users + description: Operation to add or remove users enum: - add - remove @@ -23337,21 +24129,19 @@ components: - identityLink - gum - customerid - example: email + nullable: true type: string identifiers: - description: "The users to add or remove, each in the schema specified,\ - \ defined with attributes" + description: "The users tos add or remove, each in the schema specified" items: - $ref: '#/components/schemas/UserDef' + type: string type: array gumCallerId: description: The Gum caller id of the advertiser patching identifiers of type Gum - readOnly: true - type: object + nullable: true + type: integer required: - - identifierType - identifiers - operation type: object @@ -23372,6 +24162,7 @@ components: type: null id: id type: type + nullable: true properties: id: type: string @@ -23401,6 +24192,7 @@ components: type: null id: id type: type + nullable: true properties: id: type: string diff --git a/sdks/marketingsolutions_preview/build.gradle b/sdks/marketingsolutions_preview/build.gradle index a2abffff..5c312e85 100644 --- a/sdks/marketingsolutions_preview/build.gradle +++ b/sdks/marketingsolutions_preview/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '0.0.230728' +version = '0.0.230831' repositories { jcenter() @@ -75,7 +75,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-marketingsolutions-sdk' - version '0.0.230728' + version '0.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/marketingsolutions_preview/docs/OnSiteRecoRequest.md b/sdks/marketingsolutions_preview/docs/OnSiteRecoRequest.md index eb00f162..058e05e0 100644 --- a/sdks/marketingsolutions_preview/docs/OnSiteRecoRequest.md +++ b/sdks/marketingsolutions_preview/docs/OnSiteRecoRequest.md @@ -13,6 +13,7 @@ Recommendation request parameters. |**identityType** | [**IdentityTypeEnum**](#IdentityTypeEnum) | Type of the user identifier (cto_bundle, Idfa, Gaid...) Optional if UserId is not set or if its type is cto_bundle | [optional] | |**userEvents** | [**List<UserEvent>**](UserEvent.md) | Used to perform a recommendation without relying on events stored for a UserId. Optional if UserId is passed. | [optional] | |**adSetId** | **Integer** | Id of the AdSet. This field is optional and is resolved automatically for adsets previously configured. | [optional] | +|**adId** | **Integer** | Id of the Ad. This field is optional, it allows to setup Reco controls at Ad level. | [optional] | |**partnerId** | **Integer** | Id of the partner. | | diff --git a/sdks/marketingsolutions_preview/pom.xml b/sdks/marketingsolutions_preview/pom.xml index e2e6e191..625dd574 100644 --- a/sdks/marketingsolutions_preview/pom.xml +++ b/sdks/marketingsolutions_preview/pom.xml @@ -5,7 +5,7 @@ criteo-api-marketingsolutions-sdk jar criteo-api-marketingsolutions-sdk - 0.0.230728 + 0.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API marketingsolutions for preview version diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiCallback.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiCallback.java index 9b8a8d0b..ab3e04c1 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiCallback.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiCallback.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiClient.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiClient.java index 2ee46347..ca8a8046 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiClient.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiClient.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/0.0.230728/java"); + setUserAgent("OpenAPI-Generator/0.0.230831/java"); authentications = new HashMap(); } diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiException.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiException.java index 266625cf..839a9fba 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiException.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiException.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiResponse.java index 7f575a77..fbe98ff1 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ApiResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/Configuration.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/Configuration.java index f7fdbd6c..de90d849 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/Configuration.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/Configuration.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/GzipRequestInterceptor.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/GzipRequestInterceptor.java index 92abe3ea..c24fa3d2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/GzipRequestInterceptor.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/JSON.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/JSON.java index e16bced6..e1419406 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/JSON.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/JSON.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/Pair.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/Pair.java index be404789..f5438fd6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/Pair.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/Pair.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ProgressRequestBody.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ProgressRequestBody.java index de22f064..d0b59d6f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ProgressRequestBody.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ProgressRequestBody.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ProgressResponseBody.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ProgressResponseBody.java index 2aab13f1..1772387c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ProgressResponseBody.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/ProgressResponseBody.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/StringUtil.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/StringUtil.java index 53f96a8b..2ee18b73 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/StringUtil.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/StringUtil.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AdvertiserApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AdvertiserApi.java index 9e0dc759..d5bcde52 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AdvertiserApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AdvertiserApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AnalyticsApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AnalyticsApi.java index ebdff9a1..b6730ae9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AnalyticsApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AnalyticsApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AudienceApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AudienceApi.java index 91407eb1..f0b17bf7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AudienceApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/AudienceApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CampaignApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CampaignApi.java index bdb00eb5..a184e378 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CampaignApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CampaignApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CatalogApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CatalogApi.java index 46388434..c5e8a844 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CatalogApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CatalogApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CreativeApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CreativeApi.java index f52813dd..ca21f720 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CreativeApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/CreativeApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/GatewayApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/GatewayApi.java index 999693c0..39e3c4d3 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/GatewayApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/GatewayApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/OnSiteRecommendationApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/OnSiteRecommendationApi.java index 32dd0522..b8d332b0 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/OnSiteRecommendationApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/OnSiteRecommendationApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/RecoApi.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/RecoApi.java index 285f2b0d..84e712f6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/RecoApi.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/api/RecoApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/ApiKeyAuth.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/ApiKeyAuth.java index 554e539d..4f87d782 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/ApiKeyAuth.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/Authentication.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/Authentication.java index 432a03fb..391a1302 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/Authentication.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/Authentication.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/HttpBasicAuth.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/HttpBasicAuth.java index 7e3f0938..2ade9a98 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/HttpBasicAuth.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/HttpBearerAuth.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/HttpBearerAuth.java index 93cc8a4f..10bf4fa2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/HttpBearerAuth.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/HttpBearerAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/OAuth.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/OAuth.java index 3cec2463..afb1f97b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/OAuth.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/OAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/OAuthFlow.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/OAuthFlow.java index 734b1813..192cb557 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/OAuthFlow.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AbstractOpenApiSchema.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AbstractOpenApiSchema.java index a2380555..2cca742e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AbstractOpenApiSchema.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AbstractOpenApiSchema.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Ad.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Ad.java index 29d0679a..01c79c16 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Ad.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Ad.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -96,7 +97,7 @@ public static InventoryTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -346,11 +347,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, ad.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, creativeId, adSetId, inventoryType, startDate, endDate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdListResponse.java index 949ade74..d9278172 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AdListResponse data(List data) { public AdListResponse addDataItem(AdResource 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, adListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdResource.java index 28ead57e..773df91a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdResponse.java index e1612c76..8e8ebe4f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1.java index e952a24e..588c5921 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetAudienceLinkEntityV1.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(audienceId, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1Resource.java index e48f2a8e..cb4b735b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetAudienceLinkEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1Response.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1Response.java index 4429b64f..e7dee6a3 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1Response.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkEntityV1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetAudienceLinkEntityV1Response.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkInputEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkInputEntityV1.java index eea3a492..0018e8b1 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkInputEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetAudienceLinkInputEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBid.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBid.java index 7865b9b1..ed060301 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBid.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBid.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBidListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBidListResponse.java index 96bd594c..db050699 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBidListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBidListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBidResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBidResource.java index e276b14d..bc5c4e47 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetCategoryBidResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitations.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitations.java index 3a363ee7..546fb632 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitations.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitations.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV23Q1.java index 717d5063..c3292828 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDeliveryLimitationsV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AdSetDeliveryLimitationsV23Q1 environments(List environ public AdSetDeliveryLimitationsV23Q1 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 AdSetDeliveryLimitationsV23Q1 devices(List devices) { public AdSetDeliveryLimitationsV23Q1 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 AdSetDeliveryLimitationsV23Q1 operatingSystems(List public AdSetDeliveryLimitationsV23Q1 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, adSetDeliveryLimitationsV23Q1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplier.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplier.java index 58772fff..694759b8 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplier.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplierListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplierListResponse.java index 55f1395c..28230dd5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplierListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplierListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplierResource.java index cfa219d8..56ca0df6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetDisplayMultiplierResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCapping.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCapping.java index 363298ec..4f7136ec 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCapping.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCapping.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV23Q1.java index d071e425..89a5d06a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetFrequencyCappingV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetFrequencyCappingV23Q1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocation.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocation.java index d813bceb..75ce93e7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocation.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocation.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV23Q1.java index 79480e0a..87cad05c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetGeoLocationV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV23Q1.java index b1d07ffe..2e549510 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchFilterV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AdSetSearchFilterV23Q1 adSetIds(List adSetIds) { public AdSetSearchFilterV23Q1 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 AdSetSearchFilterV23Q1 advertiserIds(List advertiserIds) { public AdSetSearchFilterV23Q1 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 AdSetSearchFilterV23Q1 campaignIds(List campaignIds) { public AdSetSearchFilterV23Q1 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, adSetSearchFilterV23Q1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV23Q1.java index c9077faf..590d8284 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetSearchRequestV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargeting.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargeting.java index 5fc45f24..6eeaec3e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargeting.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargeting.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIds.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIds.java index 92191439..02264e18 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIds.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIds.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AdSetTargetingDealIds dealIds(List dealIds) { public AdSetTargetingDealIds addDealIdsItem(DealId dealIdsItem) { if (this.dealIds == null) { - this.dealIds = new ArrayList<>(); + this.dealIds = null; } this.dealIds.add(dealIdsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, adSetTargetingDealIds.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(dealIds, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsDisableResultResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsDisableResultResource.java index bb0710a0..f7e4867d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsDisableResultResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsDisableResultResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingDealIdsDisableResultResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsDisableResultResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsDisableResultResponse.java index a6ae968d..68e6dfa7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsDisableResultResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsDisableResultResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingDealIdsDisableResultResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsResource.java index cb2060c3..23297949 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingDealIdsResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsResponse.java index 3dfd44da..ff5aee77 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingDealIdsResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsSetResultResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsSetResultResource.java index 332b17d1..3d019d18 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsSetResultResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsSetResultResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingDealIdsSetResultResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsSetResultResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsSetResultResponse.java index 26c7b824..b3c2348b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsSetResultResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingDealIdsSetResultResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingDealIdsSetResultResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRule.java index 6b07a3a4..027a8451 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRule.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV23Q1.java index 06bd39ec..5e7e5661 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingRuleV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AdSetTargetingRuleV23Q1 values(List values) { public AdSetTargetingRuleV23Q1 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, adSetTargetingRuleV23Q1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV23Q1.java index fc13c95f..fe9eac6a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioning.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioning.java index 74ac2f0b..44d7d43d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioning.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioning.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -196,7 +197,7 @@ public static SkippableEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -389,7 +390,7 @@ public AdSetTargetingVideoPositioning videoPlacement(List vi public AdSetTargetingVideoPositioning addVideoPlacementItem(VideoPlacementEnum videoPlacementItem) { if (this.videoPlacement == null) { - this.videoPlacement = new ArrayList<>(); + this.videoPlacement = null; } this.videoPlacement.add(videoPlacementItem); return this; @@ -419,7 +420,7 @@ public AdSetTargetingVideoPositioning playbackMethod(List pl public AdSetTargetingVideoPositioning addPlaybackMethodItem(PlaybackMethodEnum playbackMethodItem) { if (this.playbackMethod == null) { - this.playbackMethod = new ArrayList<>(); + this.playbackMethod = null; } this.playbackMethod.add(playbackMethodItem); return this; @@ -471,7 +472,7 @@ public AdSetTargetingVideoPositioning videoInStreamPosition(List(); + this.videoInStreamPosition = null; } this.videoInStreamPosition.add(videoInStreamPositionItem); return this; @@ -501,7 +502,7 @@ public AdSetTargetingVideoPositioning videoPlayerSize(List public AdSetTargetingVideoPositioning addVideoPlayerSizeItem(VideoPlayerSizeEnum videoPlayerSizeItem) { if (this.videoPlayerSize == null) { - this.videoPlayerSize = new ArrayList<>(); + this.videoPlayerSize = null; } this.videoPlayerSize.add(videoPlayerSizeItem); return this; @@ -531,7 +532,7 @@ public AdSetTargetingVideoPositioning videoAspectRatio(List(); + this.videoAspectRatio = null; } this.videoAspectRatio.add(videoAspectRatioItem); return this; @@ -616,11 +617,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, adSetTargetingVideoPositioning.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(videoPlacement, playbackMethod, skippable, videoInStreamPosition, videoPlayerSize, videoAspectRatio, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningDisableResultResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningDisableResultResource.java index ccbfc1e2..8341b412 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningDisableResultResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningDisableResultResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingVideoPositioningDisableResultResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningDisableResultResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningDisableResultResponse.java index acf34173..16b8de82 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningDisableResultResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningDisableResultResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingVideoPositioningDisableResultResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningResource.java index eaef92d0..fe818a32 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingVideoPositioningResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningResponse.java index 76bb0f22..1e96c557 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingVideoPositioningResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningSetResultResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningSetResultResource.java index 41d896eb..229135b4 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningSetResultResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningSetResultResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingVideoPositioningSetResultResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningSetResultResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningSetResultResponse.java index 3d2060b9..c5590e46 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningSetResultResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdSetTargetingVideoPositioningSetResultResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adSetTargetingVideoPositioningSetResultResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWrite.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWrite.java index a925dd0f..419e8588 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWrite.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWrite.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -94,7 +95,7 @@ public static InventoryTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -344,11 +345,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, adWrite.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, creativeId, adSetId, inventoryType, startDate, endDate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWriteRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWriteRequest.java index 4cdec3d1..4e141c9b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWriteRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWriteRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWriteResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWriteResource.java index 72f8991a..306a9f37 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWriteResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdWriteResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, adWriteResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveAttributes.java index 1123ca58..993ab886 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,6 +28,7 @@ import java.net.URI; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -170,7 +171,7 @@ public static ImageDisplayEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -401,7 +402,7 @@ public AdaptiveAttributes imageSets(List imageSets) { public AdaptiveAttributes addImageSetsItem(ImageSet imageSetsItem) { if (this.imageSets == null) { - this.imageSets = new ArrayList<>(); + this.imageSets = null; } this.imageSets.add(imageSetsItem); return this; @@ -453,7 +454,7 @@ public AdaptiveAttributes videos(List videos) { public AdaptiveAttributes addVideosItem(VideoDetail videosItem) { if (this.videos == null) { - this.videos = new ArrayList<>(); + this.videos = null; } this.videos.add(videosItem); return this; @@ -566,11 +567,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, adaptiveAttributes.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(layouts, logos, headlineText, headlineFont, descriptionText, descriptionFont, callsToAction, colors, imageSets, imageDisplay, videos, landingPageUrl, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveColors.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveColors.java index dc3827fa..3112f230 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveColors.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveColors.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveWriteAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveWriteAttributes.java index 9fd6f8fd..d25dec6d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveWriteAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdaptiveWriteAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,6 +26,7 @@ import java.net.URI; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -168,7 +169,7 @@ public static ImageDisplayEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -394,7 +395,7 @@ public AdaptiveWriteAttributes imageSetsBase64(List imageSetsBas public AdaptiveWriteAttributes addImageSetsBase64Item(ImageSetBase64 imageSetsBase64Item) { if (this.imageSetsBase64 == null) { - this.imageSetsBase64 = new ArrayList<>(); + this.imageSetsBase64 = null; } this.imageSetsBase64.add(imageSetsBase64Item); return this; @@ -446,7 +447,7 @@ public AdaptiveWriteAttributes videoBase64Strings(List videoBase64String public AdaptiveWriteAttributes addVideoBase64StringsItem(String videoBase64StringsItem) { if (this.videoBase64Strings == null) { - this.videoBase64Strings = new ArrayList<>(); + this.videoBase64Strings = null; } this.videoBase64Strings.add(videoBase64StringsItem); return this; @@ -559,11 +560,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, adaptiveWriteAttributes.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(layouts, logoBase64String, headlineText, headlineFont, descriptionText, descriptionFont, callsToAction, colors, imageSetsBase64, imageDisplay, videoBase64Strings, landingPageUrl, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationInput.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationInput.java index 0f250894..c894638a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationInput.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationInput.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationRequest.java index e83587ba..da72f128 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationResponse.java index e7e477ed..29379031 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserCreationResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -98,7 +99,7 @@ public AdvertiserCreationResponse errors(List errors) { public AdvertiserCreationResponse addErrorsItem(CommonProblem errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -128,7 +129,7 @@ public AdvertiserCreationResponse warnings(List warnings) { public AdvertiserCreationResponse addWarningsItem(CriteoApiWarningV2 warningsItem) { if (this.warnings == null) { - this.warnings = new ArrayList<>(); + this.warnings = null; } this.warnings.add(warningsItem); return this; @@ -210,11 +211,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, advertiserCreationResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserDatasetListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserDatasetListResponse.java index a1a70b52..d06e1acc 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserDatasetListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AdvertiserDatasetListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AdvertiserDatasetListResponse data(List data) { public AdvertiserDatasetListResponse addDataItem(EntityV2OfDataset dataItem) { if (this.data == null) { - this.data = new ArrayList<>(); + this.data = null; } this.data.add(dataItem); return this; @@ -106,7 +107,7 @@ public AdvertiserDatasetListResponse errors(List errors) { public AdvertiserDatasetListResponse addErrorsItem(CommonProblem errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -136,7 +137,7 @@ public AdvertiserDatasetListResponse warnings(List warnings) public AdvertiserDatasetListResponse addWarningsItem(CriteoApiWarningV2 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, advertiserDatasetListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AlgebraNodeV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AlgebraNodeV1.java index 88ff3d1d..7c322a91 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AlgebraNodeV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AlgebraNodeV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -77,7 +78,7 @@ public AlgebraNodeV1 and(List and) { public AlgebraNodeV1 addAndItem(AlgebraNodeV1 andItem) { if (this.and == null) { - this.and = new ArrayList<>(); + this.and = null; } this.and.add(andItem); return this; @@ -107,7 +108,7 @@ public AlgebraNodeV1 or(List or) { public AlgebraNodeV1 addOrItem(AlgebraNodeV1 orItem) { if (this.or == null) { - this.or = new ArrayList<>(); + this.or = null; } this.or.add(orItem); return this; @@ -234,11 +235,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, algebraNodeV1.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(and, or, not, audienceSegmentId, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiErrorResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiErrorResponse.java index 2ef4ef17..85902344 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiErrorResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiErrorResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 ApiErrorResponse errors(List errors) { public ApiErrorResponse addErrorsItem(ErrorDescription errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, apiErrorResponse.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, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiRequestOfTargetingEntity.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiRequestOfTargetingEntity.java index 40b8b052..13460476 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiRequestOfTargetingEntity.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiRequestOfTargetingEntity.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiResponseOfTargetingEntity.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiResponseOfTargetingEntity.java index 577f2324..4379cfa9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiResponseOfTargetingEntity.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApiResponseOfTargetingEntity.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModel.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModel.java index 07bde785..e5f3584c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModel.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModelResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModelResource.java index 91bab87a..dd65ad1f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModelResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModelResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModelResponse.java index 0bc84054..b7b0f85f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModelResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ApplicationSummaryModelResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Attribute.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Attribute.java index c2cb71d2..56ff3e9e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Attribute.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Attribute.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkCreateInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkCreateInputV1.java index b201fff8..c1f5730a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkCreateInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkCreateInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceBulkCreateInputV1 data(List data) public AudienceBulkCreateInputV1 addDataItem(AudienceCreateEntityV1Resource 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, audienceBulkCreateInputV1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkDeleteInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkDeleteInputV1.java index 180a63c8..9f5cdfb8 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkDeleteInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkDeleteInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceBulkDeleteInputV1 data(List data) public AudienceBulkDeleteInputV1 addDataItem(AudienceDeleteEntityV1Resource 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, audienceBulkDeleteInputV1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkUpdateInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkUpdateInputV1.java index f90fbf60..ed87e466 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkUpdateInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceBulkUpdateInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceBulkUpdateInputV1 data(List data) public AudienceBulkUpdateInputV1 addDataItem(AudienceUpdateEntityV1Resource 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, audienceBulkUpdateInputV1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceComputeSizeEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceComputeSizeEntityV1Resource.java index 8fce4970..65927589 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceComputeSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceComputeSizeEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceComputeSizeEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceComputeSizesInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceComputeSizesInputV1.java index 4f95a73b..98572d5c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceComputeSizesInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceComputeSizesInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceComputeSizesInputV1 data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceComputeSizesInputV1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceCreateEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceCreateEntityV1.java index fe18b01e..d88dbd57 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceCreateEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceCreateEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -217,11 +218,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceCreateEntityV1.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, advertiserId, algebra, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceCreateEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceCreateEntityV1Resource.java index 17f8a23e..1f73ee51 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceCreateEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceCreateEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceCreateEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceDeleteEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceDeleteEntityV1Resource.java index 7a975893..b577c055 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceDeleteEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceDeleteEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceDeleteEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1.java index e0d69257..48882332 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,6 +25,7 @@ import java.time.OffsetDateTime; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -201,7 +202,7 @@ public AudienceEntityV1 adSetIds(Set adSetIds) { public AudienceEntityV1 addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new LinkedHashSet<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -309,11 +310,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceEntityV1.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, createdAt, updatedAt, advertiserId, adSetIds, algebra, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java index c923ef24..5d232d7e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1AudienceSearchMetadataV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -112,7 +113,7 @@ public AudienceEntityV1AudienceSearchMetadataV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -221,11 +222,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceEntityV1AudienceSearchMetadataV1ListResponse.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(meta, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1ListResponse.java index 6ee6d444..e77abb58 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceEntityV1ListResponse data(List data) { public AudienceEntityV1ListResponse addDataItem(AudienceEntityV1Resource 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, audienceEntityV1ListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1Resource.java index 815d0234..a8ee6123 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceError.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceError.java index 732ea2dd..e1be8b4c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceError.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceError.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeEntityV1.java index f3f2a803..f926b259 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeEntityV1Resource.java index 0a680c9e..71569bba 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceEstimateSizeEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeInputV1.java index e91619d5..5b28eb3d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceEstimateSizeInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceIdEntityV1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceIdEntityV1ListResponse.java index 05604ceb..56a852d0 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceIdEntityV1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceIdEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceIdEntityV1ListResponse data(List data public AudienceIdEntityV1ListResponse addDataItem(AudienceIdEntityV1Resource 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, audienceIdEntityV1ListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceIdEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceIdEntityV1Resource.java index 337f5c8b..cdf99bbb 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceIdEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceIdEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceIdEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceNameDescription.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceNameDescription.java index 25c88460..1336f5ca 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceNameDescription.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceNameDescription.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchEntityV1.java index f658c5e9..3eb5d34d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -77,7 +78,7 @@ public AudienceSearchEntityV1 audienceIds(List audienceIds) { public AudienceSearchEntityV1 addAudienceIdsItem(String audienceIdsItem) { if (this.audienceIds == null) { - this.audienceIds = new ArrayList<>(); + this.audienceIds = null; } this.audienceIds.add(audienceIdsItem); return this; @@ -107,7 +108,7 @@ public AudienceSearchEntityV1 advertiserIds(List advertiserIds) { public AudienceSearchEntityV1 addAdvertiserIdsItem(String advertiserIdsItem) { if (this.advertiserIds == null) { - this.advertiserIds = new ArrayList<>(); + this.advertiserIds = null; } this.advertiserIds.add(advertiserIdsItem); return this; @@ -137,7 +138,7 @@ public AudienceSearchEntityV1 audienceSegmentIds(List audienceSegmentIds public AudienceSearchEntityV1 addAudienceSegmentIdsItem(String audienceSegmentIdsItem) { if (this.audienceSegmentIds == null) { - this.audienceSegmentIds = new ArrayList<>(); + this.audienceSegmentIds = null; } this.audienceSegmentIds.add(audienceSegmentIdsItem); return this; @@ -167,7 +168,7 @@ public AudienceSearchEntityV1 adSetIds(List adSetIds) { public AudienceSearchEntityV1 addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -250,11 +251,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSearchEntityV1.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(audienceIds, advertiserIds, audienceSegmentIds, adSetIds, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchEntityV1Resource.java index f4fc165e..1a313bc4 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSearchEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchInputV1.java index f5aab0ce..4b36815e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchMetadataV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchMetadataV1.java index 76f258f6..9e62893a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchMetadataV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSearchMetadataV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSearchMetadataV1.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(totalItems, limit, offset, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkCreateInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkCreateInputV1.java index 292df2b9..43550eea 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkCreateInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkCreateInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceSegmentBulkCreateInputV1 data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentBulkCreateInputV1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkDeleteInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkDeleteInputV1.java index c5450b42..9c0b9628 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkDeleteInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkDeleteInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceSegmentBulkDeleteInputV1 data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentBulkDeleteInputV1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkUpdateInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkUpdateInputV1.java index 07e62993..4097ee49 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkUpdateInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentBulkUpdateInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceSegmentBulkUpdateInputV1 data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentBulkUpdateInputV1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentComputeSizeEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentComputeSizeEntityV1Resource.java index ecdbc31b..9b436421 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentComputeSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentComputeSizeEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentComputeSizeEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentComputeSizesInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentComputeSizesInputV1.java index 53b48f4a..521192d7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentComputeSizesInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentComputeSizesInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceSegmentComputeSizesInputV1 data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentComputeSizesInputV1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentCreateEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentCreateEntityV1.java index 067def7b..2f640f27 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentCreateEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentCreateEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,6 +26,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; @@ -356,11 +357,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentCreateEntityV1.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, advertiserId, inMarket, prospecting, contactList, location, retargeting, lookalike, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentCreateEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentCreateEntityV1Resource.java index 1e9d5a34..a1883038 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentCreateEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentCreateEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentCreateEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentDeleteEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentDeleteEntityV1Resource.java index a7388011..bf41db72 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentDeleteEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentDeleteEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentDeleteEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1.java index f1ea9e0f..40d756dd 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,6 +29,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; @@ -106,7 +107,7 @@ public static TypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -526,11 +527,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentEntityV1.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, type, createdAt, updatedAt, advertiserId, inMarket, prospecting, contactList, location, behavioral, retargeting, lookalike, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java index c90d7126..ec67d83a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -112,7 +113,7 @@ public AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse data(L public AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse addDataItem(AudienceSegmentEntityV1Resource dataItem) { if (this.data == null) { - this.data = new ArrayList<>(); + this.data = null; } this.data.add(dataItem); return this; @@ -221,11 +222,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.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(meta, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1ListResponse.java index 18b38be8..b5e02c76 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceSegmentEntityV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentEntityV1ListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1Resource.java index 9441d03c..b271d0c9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEstimateSizeInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEstimateSizeInputV1.java index 0dcb6945..3575f5d4 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEstimateSizeInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentEstimateSizeInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentIdEntityV1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentIdEntityV1ListResponse.java index edfe648e..2be30847 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentIdEntityV1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentIdEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceSegmentIdEntityV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentIdEntityV1ListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentIdEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentIdEntityV1Resource.java index 93d6e215..53958e5a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentIdEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentIdEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentIdEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchEntityV1.java index 475b8be5..dd4a7595 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -132,7 +133,7 @@ public AudienceSegmentSearchEntityV1 audienceSegmentIds(List audienceSeg public AudienceSegmentSearchEntityV1 addAudienceSegmentIdsItem(String audienceSegmentIdsItem) { if (this.audienceSegmentIds == null) { - this.audienceSegmentIds = new ArrayList<>(); + this.audienceSegmentIds = null; } this.audienceSegmentIds.add(audienceSegmentIdsItem); return this; @@ -162,7 +163,7 @@ public AudienceSegmentSearchEntityV1 advertiserIds(List advertiserIds) { public AudienceSegmentSearchEntityV1 addAdvertiserIdsItem(String advertiserIdsItem) { if (this.advertiserIds == null) { - this.advertiserIds = new ArrayList<>(); + this.advertiserIds = null; } this.advertiserIds.add(advertiserIdsItem); return this; @@ -192,7 +193,7 @@ public AudienceSegmentSearchEntityV1 audienceSegmentTypes(List(); + this.audienceSegmentTypes = null; } this.audienceSegmentTypes.add(audienceSegmentTypesItem); return this; @@ -274,11 +275,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentSearchEntityV1.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(audienceSegmentIds, advertiserIds, audienceSegmentTypes, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchEntityV1Resource.java index c22e8aa1..87a7916e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentSearchEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchInputV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchInputV1.java index 72b63361..2b393dee 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchInputV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchInputV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchMetadataV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchMetadataV1.java index 293eb00c..20f41e57 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchMetadataV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSearchMetadataV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentSearchMetadataV1.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(totalItems, limit, offset, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1.java index 7a606699..7b049faa 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentSizeEntityV1.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(size, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1ListResponse.java index cfa337bc..933550a1 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceSegmentSizeEntityV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentSizeEntityV1ListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1Resource.java index 3f8e2c09..6587e978 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentSizeEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationEntityV1.java index 3f373250..9c714a8b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationEntityV1Resource.java index 9951d1f1..6942ab00 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentSizeEstimationEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1.java index 750e859b..01c016b3 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentSizeEstimationV1.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(size, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1Resource.java index e29c169f..ed14b374 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentSizeEstimationV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1Response.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1Response.java index 557c184f..f80aabc6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1Response.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentSizeEstimationV1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentSizeEstimationV1Response.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentUpdateEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentUpdateEntityV1.java index 40bbb4bf..57e40486 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentUpdateEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentUpdateEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,6 +27,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; @@ -303,11 +304,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceSegmentUpdateEntityV1.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, inMarket, location, retargeting, lookalike, prospecting, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentUpdateEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentUpdateEntityV1Resource.java index 4b651594..1c1912ab 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentUpdateEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSegmentUpdateEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSegmentUpdateEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1.java index 26c56b19..f38dd3fd 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSizeEntityV1.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(size, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1ListResponse.java index 9ce7e461..6c7748b1 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 AudienceSizeEntityV1ListResponse data(List public AudienceSizeEntityV1ListResponse addDataItem(AudienceSizeEntityV1Resource 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, audienceSizeEntityV1ListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1Resource.java index 2a9d89ab..0b61b508 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSizeEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1.java index 63c010fa..0d414718 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSizeEstimationV1.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(size, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1Resource.java index 1dd88e3c..8804072d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSizeEstimationV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1Response.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1Response.java index 68b2bf39..a5327e87 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1Response.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceSizeEstimationV1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceSizeEstimationV1Response.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceUpdateEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceUpdateEntityV1.java index 96f3d054..2a8a30ff 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceUpdateEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceUpdateEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,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; @@ -191,11 +192,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, audienceUpdateEntityV1.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, algebra, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceUpdateEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceUpdateEntityV1Resource.java index 3f2b9696..f1de4fbf 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceUpdateEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceUpdateEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, audienceUpdateEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceWarning.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceWarning.java index 548f0e25..530eeae4 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceWarning.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/AudienceWarning.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BasicAudienceDefinition.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BasicAudienceDefinition.java index 4c7628b2..e4b228f5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BasicAudienceDefinition.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BasicAudienceDefinition.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BatchAcceptedResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BatchAcceptedResponse.java index 1b2e1e99..5fbfaf4c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BatchAcceptedResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BatchAcceptedResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BehavioralV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BehavioralV1.java index 9cb7cf2e..6b8ac4a8 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BehavioralV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/BehavioralV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -270,11 +271,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, behavioralV1.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(country, category, startDate, endDate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSearchFiltersV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSearchFiltersV23Q1.java index f5fb58d0..79d03181 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSearchFiltersV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSearchFiltersV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 CampaignSearchFiltersV23Q1 campaignIds(List campaignIds) { public CampaignSearchFiltersV23Q1 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 CampaignSearchFiltersV23Q1 advertiserIds(List advertiserIds) { public CampaignSearchFiltersV23Q1 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, campaignSearchFiltersV23Q1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSearchRequestV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSearchRequestV23Q1.java index cee8b48f..571dbd26 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSearchRequestV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSearchRequestV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSpendLimitV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSpendLimitV23Q1.java index 7ab7c8fe..8250e3fe 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSpendLimitV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignSpendLimitV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, campaignSpendLimitV23Q1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1.java index c73fbff1..2b19191c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -93,7 +94,7 @@ public static GoalEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -266,11 +267,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, campaignV23Q1.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, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1ListResponse.java index bf936403..557ce1a5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 CampaignV23Q1ListResponse data(List data) { public CampaignV23Q1ListResponse addDataItem(CampaignV23Q1Resource 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, campaignV23Q1ListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1Resource.java index 14379da5..7d1450bd 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, campaignV23Q1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1Response.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1Response.java index 1936895c..6bef1669 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1Response.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CampaignV23Q1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, campaignV23Q1Response.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CommonProblem.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CommonProblem.java index 2a7d5021..8e0d4ba2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CommonProblem.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CommonProblem.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1.java index 295086f4..80f15816 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, contactListStatisticsEntityV1.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(numberOfIdentifiers, numberOfMatches, matchRate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1Resource.java index 8f6d8017..e7900dc2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, contactListStatisticsEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1Response.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1Response.java index 327b3426..a10adf0c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1Response.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListStatisticsEntityV1Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, contactListStatisticsEntityV1Response.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListV1.java index 316f5c5f..4d0976a6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactListV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, contactListV1.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(isReadOnly, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendment.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendment.java index b86b1009..b0a9e69b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendment.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendment.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentAttributes.java index d7fb2c2f..594743e7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentRequest.java index 7a539ef9..d7248926 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistAmendmentRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistOperation.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistOperation.java index 77c1ce7c..2923441f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistOperation.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistOperation.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistOperationAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistOperationAttributes.java index 22f7a61b..6cb0f6e7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistOperationAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistOperationAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendment.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendment.java index 3137a867..04dada3d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendment.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendment.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentAttributes.java index 4a6ea0a5..d7a24aaf 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -323,11 +324,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, contactlistWithAttributesAmendmentAttributes.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentRequest.java index 77370024..c0db2f03 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ContactlistWithAttributesAmendmentRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Coupon.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Coupon.java index 929e434b..b7f65022 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Coupon.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Coupon.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -338,7 +339,7 @@ public Coupon images(List images) { public Coupon addImagesItem(ImageSlide imagesItem) { if (this.images == null) { - this.images = new ArrayList<>(); + this.images = null; } this.images.add(imagesItem); return this; @@ -497,11 +498,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, coupon.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, author, advertiserId, adSetId, landingPageUrl, startDate, endDate, format, status, images, showEvery, showDuration, rotationsNumber, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponListResponse.java index 9068ad38..75772214 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 CouponListResponse data(List data) { public CouponListResponse addDataItem(CouponResource 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, couponListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponResource.java index ea86392a..b65192e9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, couponResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponResponse.java index f707b1c2..7cfb909c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, couponResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizes.java index ce1336cc..5980d427 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 CouponSupportedSizes logoZone(List logoZone) { public CouponSupportedSizes addLogoZoneItem(String logoZoneItem) { if (this.logoZone == null) { - this.logoZone = new ArrayList<>(); + this.logoZone = null; } this.logoZone.add(logoZoneItem); return this; @@ -99,7 +100,7 @@ public CouponSupportedSizes fullFrame(List fullFrame) { public CouponSupportedSizes addFullFrameItem(String fullFrameItem) { if (this.fullFrame == null) { - this.fullFrame = new ArrayList<>(); + this.fullFrame = null; } this.fullFrame.add(fullFrameItem); return this; @@ -180,11 +181,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, couponSupportedSizes.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(logoZone, fullFrame, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizesResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizesResource.java index 1a24d370..bc1681d2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizesResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizesResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, couponSupportedSizesResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizesResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizesResponse.java index e52475cd..8347010d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizesResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CouponSupportedSizesResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, couponSupportedSizesResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSet.java index 5a1e3f31..63af88db 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBidding.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBidding.java index a7dc538a..87b05f30 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBidding.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBidding.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -221,11 +222,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createAdSetBidding.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, costController, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudget.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudget.java index 67760a89..1e3eecc4 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudget.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetBudget.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -133,7 +134,7 @@ public static BudgetRenewalEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -184,7 +185,7 @@ public static BudgetDeliverySmoothingEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -247,7 +248,7 @@ public static BudgetDeliveryWeekEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -447,11 +448,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createAdSetBudget.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocation.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocation.java index d17a562c..4a753b9d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocation.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetGeoLocation.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetRequest.java index 9dbe74ef..8868e015 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetResource.java index 50b846af..3d1b60d9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, createAdSetResource.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, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetSchedule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetSchedule.java index 098698a2..630a18f7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetSchedule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetSchedule.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -163,11 +164,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createAdSetSchedule.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(startDate, endDate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargeting.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargeting.java index 4dbeacde..ac6550a5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargeting.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateAdSetTargeting.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaign.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaign.java index f384ec39..a54e40df 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaign.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaign.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignRequest.java index 935e64f9..d4c1e7ea 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignResource.java index f8b4a68c..49803e3d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, createCampaignResource.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, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignSpendLimit.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignSpendLimit.java index 793ccf48..8a4d7798 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignSpendLimit.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCampaignSpendLimit.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -133,7 +134,7 @@ public static SpendLimitRenewalEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -287,11 +288,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createCampaignSpendLimit.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCoupon.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCoupon.java index 5f34f009..c06795ef 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCoupon.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCoupon.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -466,11 +467,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createCoupon.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, adSetId, landingPageUrl, startDate, endDate, format, images, showEvery, showDuration, rotationsNumber, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCouponRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCouponRequest.java index 10e91dd4..7cef39e2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCouponRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCouponRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCouponResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCouponResource.java index c674d9a4..03d22f14 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCouponResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateCouponResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, createCouponResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateImageSlide.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateImageSlide.java index bbf88466..37c786f9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateImageSlide.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateImageSlide.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -117,7 +118,7 @@ public CreateImageSlide slideBase64Strings(List slideBase64Strings) { public CreateImageSlide addSlideBase64StringsItem(String slideBase64StringsItem) { if (this.slideBase64Strings == null) { - this.slideBase64Strings = new ArrayList<>(); + this.slideBase64Strings = null; } this.slideBase64Strings.add(slideBase64StringsItem); return this; @@ -199,11 +200,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createImageSlide.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(width, height, slideBase64Strings, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateProductSetRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateProductSetRequest.java index d569d9a1..e295fab4 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateProductSetRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreateProductSetRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -144,7 +145,7 @@ public CreateProductSetRequest rules(List rules) { public CreateProductSetRequest addRulesItem(ProductSetRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList<>(); + this.rules = null; } this.rules.add(rulesItem); return this; @@ -227,11 +228,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createProductSetRequest.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(datasetId, name, isDraft, rules, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Creative.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Creative.java index 85041bd7..caace845 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Creative.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Creative.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -409,11 +410,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, creative.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, author, status, format, advertiserId, datasetId, imageAttributes, htmlTagAttributes, dynamicAttributes, adaptiveAttributes, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeListResponse.java index 58ec61a7..40a3921c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 CreativeListResponse data(List data) { public CreativeListResponse addDataItem(CreativeResource 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, creativeListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeResource.java index d9776c26..6cf48eca 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, creativeResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeResponse.java index 0889b32c..9f3820d0 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, creativeResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWrite.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWrite.java index fa50fd76..9604bf22 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWrite.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWrite.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -379,11 +380,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, creativeWrite.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, format, datasetId, imageWriteAttributes, htmlTagWriteAttributes, dynamicWriteAttributes, adaptiveWriteAttributes, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWriteRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWriteRequest.java index cc5cebad..3f44994c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWriteRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWriteRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWriteResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWriteResource.java index 5b7f4a6b..fac5f1ee 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWriteResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CreativeWriteResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, creativeWriteResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiError.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiError.java index 3585d9aa..1743c4a4 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiError.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiError.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiWarning.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiWarning.java index b8a7d90e..54bd2d09 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiWarning.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiWarning.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiWarningV2.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiWarningV2.java index dfe1f776..65fc20b0 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiWarningV2.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CriteoApiWarningV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 { @@ -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 { @@ -388,11 +389,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, criteoApiWarningV2.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CustomAttribute.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CustomAttribute.java index 274efcd7..a3496d85 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CustomAttribute.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/CustomAttribute.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Dataset.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Dataset.java index 64941b6e..7e1eb030 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Dataset.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Dataset.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, dataset.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, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DealId.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DealId.java index dc96ed9e..59482b14 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DealId.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DealId.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, dealId.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(dealIdentifier, supplyVendorId, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteAudienceContactListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteAudienceContactListResponse.java index 6cf710a4..9c99d22b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteAudienceContactListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteAudienceContactListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModel.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModel.java index 1c50ab85..13c1416c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModel.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, deleteUserProfileModel.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(userProfileId, userProfileListId, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelListRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelListRequest.java index 6fff03f9..34d4e005 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelListRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 DeleteUserProfileModelListRequest data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, deleteUserProfileModelListRequest.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelResource.java index 1c5c77bb..59388288 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DeleteUserProfileModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, deleteUserProfileModelResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DynamicAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DynamicAttributes.java index fa9730e3..1113f6f5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DynamicAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DynamicAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -105,7 +106,7 @@ public static ProductImageDisplayEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -137,7 +138,7 @@ public DynamicAttributes logos(List logos) { public DynamicAttributes addLogosItem(ImageShape logosItem) { if (this.logos == null) { - this.logos = new ArrayList<>(); + this.logos = null; } this.logos.add(logosItem); return this; @@ -255,7 +256,7 @@ public DynamicAttributes callsToAction(List callsToAction) { public DynamicAttributes addCallsToActionItem(String callsToActionItem) { if (this.callsToAction == null) { - this.callsToAction = new ArrayList<>(); + this.callsToAction = null; } this.callsToAction.add(callsToActionItem); return this; @@ -363,11 +364,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, dynamicAttributes.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(logos, creativeBackgroundColor, bodyTextColor, pricesColor, primaryFont, callsToAction, productImageDisplay, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DynamicWriteAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DynamicWriteAttributes.java index 14156e04..ddf56bb5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DynamicWriteAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/DynamicWriteAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -351,11 +352,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, dynamicWriteAttributes.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(logoBase64String, creativeBackgroundColor, bodyTextColor, pricesColor, primaryFont, callsToAction, productImageDisplay, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityFilter.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityFilter.java index 218409e4..c909ccc9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityFilter.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityFilter.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, entityFilter.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(value, readOnly, active, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityOfPortfolioMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityOfPortfolioMessage.java index 46e4ee7c..ad7b122b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityOfPortfolioMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityOfPortfolioMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityV2OfDataset.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityV2OfDataset.java index 005e2080..54485fd9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityV2OfDataset.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityV2OfDataset.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityV2OfObject.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityV2OfObject.java index 93ae7bd1..4be56b6a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityV2OfObject.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityV2OfObject.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -310,11 +311,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, entityV2OfObject.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, relationships, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityWrapperOfTargetingEntity.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityWrapperOfTargetingEntity.java index dfe509f9..b9194bcc 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityWrapperOfTargetingEntity.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/EntityWrapperOfTargetingEntity.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, entityWrapperOfTargetingEntity.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ErrorCodeResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ErrorCodeResponse.java index b69bbad4..2c5fe572 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ErrorCodeResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ErrorCodeResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ErrorDescription.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ErrorDescription.java index 1e11fdf7..e7038220 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ErrorDescription.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ErrorDescription.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, errorDescription.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(title, instance, traceId, code, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportColumn.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportColumn.java index 5348bd65..cb12078e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportColumn.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportColumn.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -102,7 +103,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 RoleEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -296,7 +297,7 @@ public static RelatedToEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -623,11 +624,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, exportColumn.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, title, description, type, role, relatedTo, timezone, duration, currency, deprecated, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportMetaData.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportMetaData.java index 630b6a1c..ff1e90b8 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportMetaData.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportMetaData.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -70,7 +71,7 @@ public ExportMetaData columns(List columns) { public ExportMetaData addColumnsItem(ExportColumn columnsItem) { if (this.columns == null) { - this.columns = new ArrayList<>(); + this.columns = null; } this.columns.add(columnsItem); return this; @@ -173,11 +174,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, exportMetaData.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(columns, rows, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportResult.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportResult.java index cf42cf78..55fbb0ba 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportResult.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportResult.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportResultData.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportResultData.java index ee9a6ae5..45d90c5e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportResultData.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ExportResultData.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -92,7 +93,7 @@ public ExportResultData data(List> data) { public ExportResultData addDataItem(List dataItem) { if (this.data == null) { - this.data = new ArrayList<>(); + this.data = null; } this.data.add(dataItem); return this; @@ -173,11 +174,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, exportResultData.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(metadata, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/FailResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/FailResponse.java index 502334b8..f890d89a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/FailResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/FailResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequest.java index efb798d3..eeb58594 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequestAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequestAttributes.java index 3953d7a8..6b4b2f97 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequestAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequestAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -377,7 +378,7 @@ public GenerateAudiencePerformanceReportRequestAttributes adSetIds(List public GenerateAudiencePerformanceReportRequestAttributes addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -407,7 +408,7 @@ public GenerateAudiencePerformanceReportRequestAttributes audienceIds(List(); + this.audienceIds = null; } this.audienceIds.add(audienceIdsItem); return this; @@ -437,7 +438,7 @@ public GenerateAudiencePerformanceReportRequestAttributes segmentsIds(List(); + this.segmentsIds = null; } this.segmentsIds.add(segmentsIdsItem); return this; @@ -526,11 +527,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, generateAudiencePerformanceReportRequestAttributes.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(startDate, endDate, advertiserId, timezone, dimension, metrics, currency, adSetIds, audienceIds, segmentsIds, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequestData.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequestData.java index 29f621a8..cc113c18 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequestData.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateAudiencePerformanceReportRequestData.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequest.java index a4abc581..0bd8b523 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequestAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequestAttributes.java index 3e4115f4..4e2b513b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequestAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequestAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -386,11 +387,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, generateCategoriesReportRequestAttributes.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(advertiserIds, campaignId, adsetId, domain, category, shouldDisplayDomainDimension, format, timezone, startDate, endDate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequestData.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequestData.java index f08bba2a..79bbaca6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequestData.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCategoriesReportRequestData.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequest.java index 5ebda984..b334598a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequestAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequestAttributes.java index ca5860cf..73605a46 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequestAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequestAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -379,7 +380,7 @@ public GenerateCreativesReportRequestAttributes adFormats(List adFormats public GenerateCreativesReportRequestAttributes addAdFormatsItem(String adFormatsItem) { if (this.adFormats == null) { - this.adFormats = new ArrayList<>(); + this.adFormats = null; } this.adFormats.add(adFormatsItem); return this; @@ -409,7 +410,7 @@ public GenerateCreativesReportRequestAttributes displaySizes(List displa public GenerateCreativesReportRequestAttributes addDisplaySizesItem(String displaySizesItem) { if (this.displaySizes == null) { - this.displaySizes = new ArrayList<>(); + this.displaySizes = null; } this.displaySizes.add(displaySizesItem); return this; @@ -439,7 +440,7 @@ public GenerateCreativesReportRequestAttributes couponNames(List couponN public GenerateCreativesReportRequestAttributes addCouponNamesItem(String couponNamesItem) { if (this.couponNames == null) { - this.couponNames = new ArrayList<>(); + this.couponNames = null; } this.couponNames.add(couponNamesItem); return this; @@ -469,7 +470,7 @@ public GenerateCreativesReportRequestAttributes couponIds(List couponIds public GenerateCreativesReportRequestAttributes addCouponIdsItem(String couponIdsItem) { if (this.couponIds == null) { - this.couponIds = new ArrayList<>(); + this.couponIds = null; } this.couponIds.add(couponIdsItem); return this; @@ -499,7 +500,7 @@ public GenerateCreativesReportRequestAttributes adNames(List adNames) { public GenerateCreativesReportRequestAttributes addAdNamesItem(String adNamesItem) { if (this.adNames == null) { - this.adNames = new ArrayList<>(); + this.adNames = null; } this.adNames.add(adNamesItem); return this; @@ -529,7 +530,7 @@ public GenerateCreativesReportRequestAttributes adIds(List adIds) { public GenerateCreativesReportRequestAttributes addAdIdsItem(String adIdsItem) { if (this.adIds == null) { - this.adIds = new ArrayList<>(); + this.adIds = null; } this.adIds.add(adIdsItem); return this; @@ -559,7 +560,7 @@ public GenerateCreativesReportRequestAttributes campaignIds(List campaig public GenerateCreativesReportRequestAttributes addCampaignIdsItem(String campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList<>(); + this.campaignIds = null; } this.campaignIds.add(campaignIdsItem); return this; @@ -589,7 +590,7 @@ public GenerateCreativesReportRequestAttributes adSetIds(List adSetIds) public GenerateCreativesReportRequestAttributes addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -619,7 +620,7 @@ public GenerateCreativesReportRequestAttributes adSetStatus(List adSetSt public GenerateCreativesReportRequestAttributes addAdSetStatusItem(String adSetStatusItem) { if (this.adSetStatus == null) { - this.adSetStatus = new ArrayList<>(); + this.adSetStatus = null; } this.adSetStatus.add(adSetStatusItem); return this; @@ -713,11 +714,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, generateCreativesReportRequestAttributes.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(startDate, endDate, advertiserIds, metrics, dimensions, timezone, adFormats, displaySizes, couponNames, couponIds, adNames, adIds, campaignIds, adSetIds, adSetStatus, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequestData.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequestData.java index e6945634..06095c1c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequestData.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateCreativesReportRequestData.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequest.java index 175a8736..ae1b3d5d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequestAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequestAttributes.java index 91436960..11faca6c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequestAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequestAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -842,7 +843,7 @@ public GenerateStatisticsReportRequestAttributes advertiserIds(List adve public GenerateStatisticsReportRequestAttributes addAdvertiserIdsItem(String advertiserIdsItem) { if (this.advertiserIds == null) { - this.advertiserIds = new ArrayList<>(); + this.advertiserIds = null; } this.advertiserIds.add(advertiserIdsItem); return this; @@ -970,7 +971,7 @@ public GenerateStatisticsReportRequestAttributes adSetIds(List adSetIds) public GenerateStatisticsReportRequestAttributes addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -1000,7 +1001,7 @@ public GenerateStatisticsReportRequestAttributes adSetNames(List adSetNa public GenerateStatisticsReportRequestAttributes addAdSetNamesItem(String adSetNamesItem) { if (this.adSetNames == null) { - this.adSetNames = new ArrayList<>(); + this.adSetNames = null; } this.adSetNames.add(adSetNamesItem); return this; @@ -1030,7 +1031,7 @@ public GenerateStatisticsReportRequestAttributes adSetStatus(List adSetS public GenerateStatisticsReportRequestAttributes addAdSetStatusItem(String adSetStatusItem) { if (this.adSetStatus == null) { - this.adSetStatus = new ArrayList<>(); + this.adSetStatus = null; } this.adSetStatus.add(adSetStatusItem); return this; @@ -1119,11 +1120,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, generateStatisticsReportRequestAttributes.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(startDate, endDate, advertiserIds, timezone, dimensions, metrics, currency, adSetIds, adSetNames, adSetStatus, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequestData.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequestData.java index 70d78c55..9b42daf9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequestData.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateStatisticsReportRequestData.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequest.java index 3ffef5ab..926fd96e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequestAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequestAttributes.java index 67f03d0c..6626a651 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequestAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequestAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -423,7 +424,7 @@ public GenerateTopProductsReportRequestAttributes dimensions(List(); + this.dimensions = null; } this.dimensions.add(dimensionsItem); return this; @@ -453,7 +454,7 @@ public GenerateTopProductsReportRequestAttributes metrics(List metr public GenerateTopProductsReportRequestAttributes addMetricsItem(MetricsEnum metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList<>(); + this.metrics = null; } this.metrics.add(metricsItem); return this; @@ -505,7 +506,7 @@ public GenerateTopProductsReportRequestAttributes brands(List brands) { public GenerateTopProductsReportRequestAttributes addBrandsItem(String brandsItem) { if (this.brands == null) { - this.brands = new ArrayList<>(); + this.brands = null; } this.brands.add(brandsItem); return this; @@ -535,7 +536,7 @@ public GenerateTopProductsReportRequestAttributes categoryIds(List categ public GenerateTopProductsReportRequestAttributes addCategoryIdsItem(String categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -565,7 +566,7 @@ public GenerateTopProductsReportRequestAttributes campaignIds(List campa public GenerateTopProductsReportRequestAttributes addCampaignIdsItem(String campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList<>(); + this.campaignIds = null; } this.campaignIds.add(campaignIdsItem); return this; @@ -595,7 +596,7 @@ public GenerateTopProductsReportRequestAttributes adSetIds(List adSetIds public GenerateTopProductsReportRequestAttributes addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -625,7 +626,7 @@ public GenerateTopProductsReportRequestAttributes adSetStatus(List adSet public GenerateTopProductsReportRequestAttributes addAdSetStatusItem(String adSetStatusItem) { if (this.adSetStatus == null) { - this.adSetStatus = new ArrayList<>(); + this.adSetStatus = null; } this.adSetStatus.add(adSetStatusItem); return this; @@ -718,11 +719,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, generateTopProductsReportRequestAttributes.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(timezone, startDate, endDate, advertiserId, limit, rankProductsBy, dimensions, metrics, currency, brands, categoryIds, campaignIds, adSetIds, adSetStatus, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequestData.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequestData.java index e8a3c2c7..48db3d10 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequestData.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GenerateTopProductsReportRequestData.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GetPortfolioResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GetPortfolioResponse.java index baf3970d..62046175 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GetPortfolioResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/GetPortfolioResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/HtmlTagAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/HtmlTagAttributes.java index 433bd3fc..43146d58 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/HtmlTagAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/HtmlTagAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 HtmlTagAttributes tags(List tags) { public HtmlTagAttributes addTagsItem(Tag tagsItem) { if (this.tags == null) { - this.tags = new ArrayList<>(); + this.tags = null; } this.tags.add(tagsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, htmlTagAttributes.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(tags, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/HtmlTagWriteAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/HtmlTagWriteAttributes.java index 88e2e0a2..c1f687df 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/HtmlTagWriteAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/HtmlTagWriteAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageAttributes.java index daf171d3..c39be97c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,6 +24,7 @@ import java.net.URI; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -70,7 +71,7 @@ public ImageAttributes urls(List urls) { public ImageAttributes addUrlsItem(String urlsItem) { if (this.urls == null) { - this.urls = new ArrayList<>(); + this.urls = null; } this.urls.add(urlsItem); return this; @@ -173,11 +174,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, imageAttributes.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(urls, landingPageUrl, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSet.java index ce713be1..688d4129 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -170,11 +171,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, imageSet.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(images, headlineText, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSetBase64.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSetBase64.java index 2a9e608c..d741b0c6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSetBase64.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSetBase64.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -169,11 +170,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, imageSetBase64.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(imageBase64Strings, headlineText, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageShape.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageShape.java index 33b8c856..9b0d564e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageShape.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageShape.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSlide.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSlide.java index 6673c9cc..2fcd2958 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSlide.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageSlide.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -117,7 +118,7 @@ public ImageSlide slideUrls(List slideUrls) { public ImageSlide addSlideUrlsItem(String slideUrlsItem) { if (this.slideUrls == null) { - this.slideUrls = new ArrayList<>(); + this.slideUrls = null; } this.slideUrls.add(slideUrlsItem); return this; @@ -199,11 +200,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, imageSlide.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(width, height, slideUrls, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageWriteAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageWriteAttributes.java index a2ab114e..dbb77e95 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageWriteAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ImageWriteAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1.java index 3fe1f083..bb834bf6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, inMarketAudienceSegmentBrandEntityV1.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, size, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java index 8a79494c..0c49cfab 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 InMarketAudienceSegmentBrandEntityV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketAudienceSegmentBrandEntityV1ListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1Resource.java index 1e021fa7..58757c4f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentBrandEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, inMarketAudienceSegmentBrandEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1.java index b815612e..e392f227 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, inMarketAudienceSegmentInterestEntityV1.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(parentId, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java index 5b53e62a..da251d1a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 InMarketAudienceSegmentInterestEntityV1ListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketAudienceSegmentInterestEntityV1ListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1Resource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1Resource.java index b24f6ddc..71953fca 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1Resource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketAudienceSegmentInterestEntityV1Resource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, inMarketAudienceSegmentInterestEntityV1Resource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketCreateV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketCreateV1.java index 273da727..81b3c652 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketCreateV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketCreateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -139,7 +140,7 @@ public static GenderEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -254,7 +255,7 @@ public InMarketCreateV1 buyingPower(Set buyingPower) { public InMarketCreateV1 addBuyingPowerItem(BuyingPowerEnum buyingPowerItem) { if (this.buyingPower == null) { - this.buyingPower = new LinkedHashSet<>(); + this.buyingPower = null; } this.buyingPower.add(buyingPowerItem); return this; @@ -306,7 +307,7 @@ public InMarketCreateV1 interestIds(Set interestIds) { public InMarketCreateV1 addInterestIdsItem(String interestIdsItem) { if (this.interestIds == null) { - this.interestIds = new LinkedHashSet<>(); + this.interestIds = null; } this.interestIds.add(interestIdsItem); return this; @@ -336,7 +337,7 @@ public InMarketCreateV1 brandIds(Set brandIds) { public InMarketCreateV1 addBrandIdsItem(String brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new LinkedHashSet<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -366,7 +367,7 @@ public InMarketCreateV1 priceRange(Set priceRange) { public InMarketCreateV1 addPriceRangeItem(PriceRangeEnum priceRangeItem) { if (this.priceRange == null) { - this.priceRange = new LinkedHashSet<>(); + this.priceRange = null; } this.priceRange.add(priceRangeItem); return this; @@ -451,11 +452,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketCreateV1.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(country, buyingPower, gender, interestIds, brandIds, priceRange, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketSizeEstimationV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketSizeEstimationV1.java index 732d9766..d186b211 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketSizeEstimationV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketSizeEstimationV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -139,7 +140,7 @@ public static GenderEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -254,7 +255,7 @@ public InMarketSizeEstimationV1 buyingPower(Set buyingPower) { public InMarketSizeEstimationV1 addBuyingPowerItem(BuyingPowerEnum buyingPowerItem) { if (this.buyingPower == null) { - this.buyingPower = new LinkedHashSet<>(); + this.buyingPower = null; } this.buyingPower.add(buyingPowerItem); return this; @@ -306,7 +307,7 @@ public InMarketSizeEstimationV1 interestIds(Set interestIds) { public InMarketSizeEstimationV1 addInterestIdsItem(String interestIdsItem) { if (this.interestIds == null) { - this.interestIds = new LinkedHashSet<>(); + this.interestIds = null; } this.interestIds.add(interestIdsItem); return this; @@ -336,7 +337,7 @@ public InMarketSizeEstimationV1 brandIds(Set brandIds) { public InMarketSizeEstimationV1 addBrandIdsItem(String brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new LinkedHashSet<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -366,7 +367,7 @@ public InMarketSizeEstimationV1 priceRange(Set priceRange) { public InMarketSizeEstimationV1 addPriceRangeItem(PriceRangeEnum priceRangeItem) { if (this.priceRange == null) { - this.priceRange = new LinkedHashSet<>(); + this.priceRange = null; } this.priceRange.add(priceRangeItem); return this; @@ -451,11 +452,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketSizeEstimationV1.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(country, buyingPower, gender, interestIds, brandIds, priceRange, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketUpdateV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketUpdateV1.java index f30c6f52..a6d92cd3 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketUpdateV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketUpdateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -208,7 +209,7 @@ public InMarketUpdateV1 buyingPower(Set buyingPower) { public InMarketUpdateV1 addBuyingPowerItem(BuyingPowerEnum buyingPowerItem) { if (this.buyingPower == null) { - this.buyingPower = new LinkedHashSet<>(); + this.buyingPower = null; } this.buyingPower.add(buyingPowerItem); return this; @@ -260,7 +261,7 @@ public InMarketUpdateV1 interestIds(Set interestIds) { public InMarketUpdateV1 addInterestIdsItem(String interestIdsItem) { if (this.interestIds == null) { - this.interestIds = new LinkedHashSet<>(); + this.interestIds = null; } this.interestIds.add(interestIdsItem); return this; @@ -290,7 +291,7 @@ public InMarketUpdateV1 brandIds(Set brandIds) { public InMarketUpdateV1 addBrandIdsItem(String brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new LinkedHashSet<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -320,7 +321,7 @@ public InMarketUpdateV1 priceRange(Set priceRange) { public InMarketUpdateV1 addPriceRangeItem(PriceRangeEnum priceRangeItem) { if (this.priceRange == null) { - this.priceRange = new LinkedHashSet<>(); + this.priceRange = null; } this.priceRange.add(priceRangeItem); return this; @@ -405,11 +406,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketUpdateV1.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(country, buyingPower, gender, interestIds, brandIds, priceRange, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketV1.java index 8ee47190..e79664ac 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/InMarketV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -143,7 +144,7 @@ public static GenderEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -260,7 +261,7 @@ public InMarketV1 buyingPower(Set buyingPower) { public InMarketV1 addBuyingPowerItem(BuyingPowerEnum buyingPowerItem) { if (this.buyingPower == null) { - this.buyingPower = new LinkedHashSet<>(); + this.buyingPower = null; } this.buyingPower.add(buyingPowerItem); return this; @@ -312,7 +313,7 @@ public InMarketV1 interestIds(Set interestIds) { public InMarketV1 addInterestIdsItem(String interestIdsItem) { if (this.interestIds == null) { - this.interestIds = new LinkedHashSet<>(); + this.interestIds = null; } this.interestIds.add(interestIdsItem); return this; @@ -342,7 +343,7 @@ public InMarketV1 brandIds(Set brandIds) { public InMarketV1 addBrandIdsItem(String brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new LinkedHashSet<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -372,7 +373,7 @@ public InMarketV1 priceRange(Set priceRange) { public InMarketV1 addPriceRangeItem(PriceRangeEnum priceRangeItem) { if (this.priceRange == null) { - this.priceRange = new LinkedHashSet<>(); + this.priceRange = null; } this.priceRange.add(priceRangeItem); return this; @@ -457,11 +458,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, inMarketV1.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(country, buyingPower, gender, interestIds, brandIds, priceRange, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Installment.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Installment.java index 5e44b6de..abb8382b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Installment.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Installment.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, installment.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(months, amount, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/JsonReportRows.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/JsonReportRows.java index 168b38d4..2c3ee4db 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/JsonReportRows.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/JsonReportRows.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,6 +24,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -66,7 +67,7 @@ public JsonReportRows rows(List> rows) { public JsonReportRows addRowsItem(Map rowsItem) { if (this.rows == null) { - this.rows = new ArrayList<>(); + this.rows = null; } this.rows.add(rowsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, jsonReportRows.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(rows, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ListAvailableIndustriesResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ListAvailableIndustriesResponse.java index 2511ffc2..a49436f7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ListAvailableIndustriesResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ListAvailableIndustriesResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 ListAvailableIndustriesResponse data(List data) { public ListAvailableIndustriesResponse addDataItem(EntityV2OfObject dataItem) { if (this.data == null) { - this.data = new ArrayList<>(); + this.data = null; } this.data.add(dataItem); return this; @@ -106,7 +107,7 @@ public ListAvailableIndustriesResponse errors(List errors) { public ListAvailableIndustriesResponse addErrorsItem(CommonProblem errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -136,7 +137,7 @@ public ListAvailableIndustriesResponse warnings(List warning public ListAvailableIndustriesResponse addWarningsItem(CriteoApiWarningV2 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, listAvailableIndustriesResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationCreateV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationCreateV1.java index 73a3cf31..81de5f5e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationCreateV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationCreateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationSizeEstimationV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationSizeEstimationV1.java index 35c515ee..96c8e10f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationSizeEstimationV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationSizeEstimationV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationUpdateV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationUpdateV1.java index 867c2908..92cb31f7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationUpdateV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationUpdateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -87,7 +88,7 @@ public static RegistryTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -119,7 +120,7 @@ public LocationUpdateV1 pointsOfInterest(List pointsOfInteres public LocationUpdateV1 addPointsOfInterestItem(PointOfInterestV1 pointsOfInterestItem) { if (this.pointsOfInterest == null) { - this.pointsOfInterest = new ArrayList<>(); + this.pointsOfInterest = null; } this.pointsOfInterest.add(pointsOfInterestItem); return this; @@ -245,11 +246,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, locationUpdateV1.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(pointsOfInterest, radiusInKm, registryType, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationV1.java index 434ae9b9..b90a3ebf 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LocationV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -89,7 +90,7 @@ public static RegistryTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -121,7 +122,7 @@ public LocationV1 pointsOfInterest(List pointsOfInterest) { public LocationV1 addPointsOfInterestItem(PointOfInterestV1 pointsOfInterestItem) { if (this.pointsOfInterest == null) { - this.pointsOfInterest = new ArrayList<>(); + this.pointsOfInterest = null; } this.pointsOfInterest.add(pointsOfInterestItem); return this; @@ -247,11 +248,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, locationV1.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(pointsOfInterest, radiusInKm, registryType, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeCreateV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeCreateV1.java index 68018795..8cf225eb 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeCreateV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeCreateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, lookalikeCreateV1.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(seedSegmentId, targetSize, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeUpdateV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeUpdateV1.java index 4d69bcee..10e92773 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeUpdateV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeUpdateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, lookalikeUpdateV1.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(targetSize, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeV1.java index f8e8464b..18a5dde1 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LookalikeV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, lookalikeV1.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(seedSegmentId, targetSize, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LoyaltyPoints.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LoyaltyPoints.java index 6ec4fac3..6fa99271 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LoyaltyPoints.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/LoyaltyPoints.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, loyaltyPoints.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, pointsValue, ratio, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatus.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatus.java index 84001f2b..ea7fbec6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatus.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatus.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -84,7 +85,7 @@ public static StatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -242,11 +243,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, marketingSolutionsReportStatus.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(status, message, id, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatusResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatusResource.java index 1933ef9e..891cf6e7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatusResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatusResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, marketingSolutionsReportStatusResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatusResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatusResponse.java index 250bff22..39512be2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatusResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/MarketingSolutionsReportStatusResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, marketingSolutionsReportStatusResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ModifyAudienceResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ModifyAudienceResponse.java index 727f3e43..c1b04e67 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ModifyAudienceResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ModifyAudienceResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRule.java index d2ec6b19..8f6f98a0 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRule.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV23Q1.java index 577e51cf..1723f8bd 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleValue.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleValue.java index ad215eea..c1c1ed3a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleValue.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableAdSetTargetingRuleValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableDateTime.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableDateTime.java index 586616bd..90897997 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableDateTime.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableDateTime.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableDecimal.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableDecimal.java index d65bc145..dbcdfec1 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableDecimal.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableDecimal.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableGenderV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableGenderV1.java index 55e2e200..dc793748 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableGenderV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableGenderV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -78,7 +79,7 @@ public static ValueEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -182,11 +183,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, nillableGenderV1.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(value, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableInt32.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableInt32.java index 6da3cfaa..7eb2fbf7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableInt32.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableInt32.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, nillableInt32.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(value, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableString.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableString.java index e8642dc1..8cd3c08b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableString.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/NillableString.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, nillableString.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(value, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyResponse.java index f18185fa..fd14d8da 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -97,7 +98,7 @@ public OciBrandSafetyResponse warnings(List warnings) { public OciBrandSafetyResponse addWarningsItem(TargetingErrorModel warningsItem) { if (this.warnings == null) { - this.warnings = new ArrayList<>(); + this.warnings = null; } this.warnings.add(warningsItem); return this; @@ -127,7 +128,7 @@ public OciBrandSafetyResponse errors(List errors) { public OciBrandSafetyResponse addErrorsItem(TargetingErrorModel errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -209,11 +210,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, ociBrandSafetyResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyResponseData.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyResponseData.java index cd4823ee..e83aa12f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyResponseData.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyResponseData.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyRule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyRule.java index 2d4a25ef..7f1cef94 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyRule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetyRule.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -93,7 +94,7 @@ public OciBrandSafetyRule blacklisted(List blacklisted) { public OciBrandSafetyRule addBlacklistedItem(OciBrandSafetySegment blacklistedItem) { if (this.blacklisted == null) { - this.blacklisted = new ArrayList<>(); + this.blacklisted = null; } this.blacklisted.add(blacklistedItem); return this; @@ -174,11 +175,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, ociBrandSafetyRule.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(target, blacklisted, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetySegment.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetySegment.java index 0383e4d8..b8247aca 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetySegment.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciBrandSafetySegment.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingNode.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingNode.java index c49684c2..7a7481f3 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingNode.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingNode.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -118,7 +119,7 @@ public OciTargetingNode children(List children) { public OciTargetingNode addChildrenItem(OciTargetingNode childrenItem) { if (this.children == null) { - this.children = new ArrayList<>(); + this.children = null; } this.children.add(childrenItem); return this; @@ -200,11 +201,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, ociTargetingNode.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(operator, value, children, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingResponse.java index 1d2f8cc1..af87537d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -97,7 +98,7 @@ public OciTargetingResponse warnings(List warnings) { public OciTargetingResponse addWarningsItem(TargetingErrorModel warningsItem) { if (this.warnings == null) { - this.warnings = new ArrayList<>(); + this.warnings = null; } this.warnings.add(warningsItem); return this; @@ -127,7 +128,7 @@ public OciTargetingResponse errors(List errors) { public OciTargetingResponse addErrorsItem(TargetingErrorModel errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -209,11 +210,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, ociTargetingResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingResponseData.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingResponseData.java index 92f1ace0..ec886561 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingResponseData.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingResponseData.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingRule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingRule.java index 575f33cb..13c3e2a6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingRule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OciTargetingRule.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OkResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OkResponse.java index c7306e78..05b9e35c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OkResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OkResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OnSiteRecoRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OnSiteRecoRequest.java index c9d2453c..0e2c2369 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OnSiteRecoRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OnSiteRecoRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -91,7 +92,7 @@ public static IdentityTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -120,6 +121,10 @@ public IdentityTypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_AD_SET_ID) private Integer adSetId; + public static final String SERIALIZED_NAME_AD_ID = "adId"; + @SerializedName(SERIALIZED_NAME_AD_ID) + private Integer adId; + public static final String SERIALIZED_NAME_PARTNER_ID = "partnerId"; @SerializedName(SERIALIZED_NAME_PARTNER_ID) private Integer partnerId; @@ -201,7 +206,7 @@ public OnSiteRecoRequest userEvents(List userEvents) { public OnSiteRecoRequest addUserEventsItem(UserEvent userEventsItem) { if (this.userEvents == null) { - this.userEvents = new ArrayList<>(); + this.userEvents = null; } this.userEvents.add(userEventsItem); return this; @@ -245,6 +250,28 @@ public void setAdSetId(Integer adSetId) { } + public OnSiteRecoRequest adId(Integer adId) { + + this.adId = adId; + return this; + } + + /** + * Id of the Ad. This field is optional, it allows to setup Reco controls at Ad level. + * @return adId + **/ + @javax.annotation.Nullable + + public Integer getAdId() { + return adId; + } + + + public void setAdId(Integer adId) { + this.adId = adId; + } + + public OnSiteRecoRequest partnerId(Integer partnerId) { this.partnerId = partnerId; @@ -326,13 +353,25 @@ public boolean equals(Object o) { Objects.equals(this.identityType, onSiteRecoRequest.identityType) && Objects.equals(this.userEvents, onSiteRecoRequest.userEvents) && Objects.equals(this.adSetId, onSiteRecoRequest.adSetId) && + Objects.equals(this.adId, onSiteRecoRequest.adId) && Objects.equals(this.partnerId, onSiteRecoRequest.partnerId)&& Objects.equals(this.additionalProperties, onSiteRecoRequest.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(nbRequestedProducts, userId, identityType, userEvents, adSetId, partnerId, additionalProperties); + return Objects.hash(nbRequestedProducts, userId, identityType, userEvents, adSetId, adId, partnerId, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -344,6 +383,7 @@ public String toString() { sb.append(" identityType: ").append(toIndentedString(identityType)).append("\n"); sb.append(" userEvents: ").append(toIndentedString(userEvents)).append("\n"); sb.append(" adSetId: ").append(toIndentedString(adSetId)).append("\n"); + sb.append(" adId: ").append(toIndentedString(adId)).append("\n"); sb.append(" partnerId: ").append(toIndentedString(partnerId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -373,6 +413,7 @@ private String toIndentedString(Object o) { openapiFields.add("identityType"); openapiFields.add("userEvents"); openapiFields.add("adSetId"); + openapiFields.add("adId"); openapiFields.add("partnerId"); // a set of required properties/fields (JSON key names) diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OnSiteRecoResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OnSiteRecoResponse.java index b7a2ec6d..0d51b583 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OnSiteRecoResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/OnSiteRecoResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -70,7 +71,7 @@ public OnSiteRecoResponse products(List products) { public OnSiteRecoResponse addProductsItem(RecommendedProduct productsItem) { if (this.products == null) { - this.products = new ArrayList<>(); + this.products = null; } this.products.add(productsItem); return this; @@ -100,7 +101,7 @@ public OnSiteRecoResponse extraInfos(List extraInfos) { public OnSiteRecoResponse addExtraInfosItem(Integer extraInfosItem) { if (this.extraInfos == null) { - this.extraInfos = new ArrayList<>(); + this.extraInfos = null; } this.extraInfos.add(extraInfosItem); return this; @@ -181,11 +182,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, onSiteRecoResponse.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(products, extraInfos, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Outcome.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Outcome.java index 16d5786a..a300695e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Outcome.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Outcome.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -157,11 +158,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, outcome.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(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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSet.java index 1f7e20c3..76f90213 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBidding.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBidding.java index d5b8947c..d32fe44c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBidding.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBidding.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudget.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudget.java index d6d73fcc..0d4c41b2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudget.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetBudget.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBid.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBid.java index 9ee302b8..428cacda 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBid.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBid.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidListRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidListRequest.java index e4c20e4f..48980aa8 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidListRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResource.java index 749dc999..666ef482 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResultListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResultListResponse.java index aaebbe76..f0b4da83 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResultListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResultListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResultResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResultResource.java index 84e52ae7..8fc92d5d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResultResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetCategoryBidResultResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplier.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplier.java index f50dea1b..007a6098 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplier.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplier.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierListRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierListRequest.java index c76355cd..3cb0a94e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierListRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResource.java index 312f4469..283517d4 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResultListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResultListResponse.java index 81e6bcc0..36cab8d1 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResultListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResultListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 PatchAdSetDisplayMultiplierResultListResponse data(List(); + this.data = null; } this.data.add(dataItem); return this; @@ -193,11 +194,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchAdSetDisplayMultiplierResultListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResultResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResultResource.java index 9a3a2b88..6d442545 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResultResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetDisplayMultiplierResultResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, patchAdSetDisplayMultiplierResultResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetScheduling.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetScheduling.java index fb52ba57..8acdcb43 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetScheduling.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchAdSetScheduling.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaign.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaign.java index eefafaa3..746c9fc5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaign.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaign.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignListRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignListRequest.java index 59087b77..f140d72b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignListRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 PatchCampaignListRequest data(List data) { public PatchCampaignListRequest addDataItem(PatchCampaignWriteResource 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, patchCampaignListRequest.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignSpendLimit.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignSpendLimit.java index f6463024..614a430f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignSpendLimit.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignSpendLimit.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, patchCampaignSpendLimit.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignWriteResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignWriteResource.java index 9b2d8768..eb2cfde2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignWriteResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchCampaignWriteResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, patchCampaignWriteResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchResultCampaignListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchResultCampaignListResponse.java index 47bba83a..69260090 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchResultCampaignListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchResultCampaignListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, patchResultCampaignListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchResultCampaignReadResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchResultCampaignReadResource.java index ef856873..bfde148e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchResultCampaignReadResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PatchResultCampaignReadResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, patchResultCampaignReadResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryDataMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryDataMessage.java index 5c788598..019ea669 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryDataMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryDataMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryEntityMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryEntityMessage.java index 69c94f21..60bfff3a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryEntityMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryEntityMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryMessage.java index 8dc22628..b9d9183b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PlacementsReportQueryMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -531,11 +532,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, placementsReportQueryMessage.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(advertiserIds, campaignIds, adsetIds, environment, placement, dimensions, metrics, currency, disclosed, format, timezone, startDate, endDate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PointOfInterestV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PointOfInterestV1.java index f2f82296..4ebf7cc1 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PointOfInterestV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PointOfInterestV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, pointOfInterestV1.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, latitude, longitude, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PortfolioMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PortfolioMessage.java index 4cd69af9..9c4c640f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PortfolioMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PortfolioMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, portfolioMessage.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(advertiserName, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewError.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewError.java index 9637b491..fd6be083 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewError.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewError.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewFailResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewFailResponse.java index 3edce4e7..0d313cbd 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewFailResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewFailResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewWarning.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewWarning.java index fb1839e5..7febbc6f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewWarning.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/PreviewWarning.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Price.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Price.java index 2f3db1e3..a20e6142 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Price.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Price.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, price.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(currency, value, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProblemDetails.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProblemDetails.java index 897e1a28..84749570 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProblemDetails.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProblemDetails.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 ProblemDetails source(Map source) { public ProblemDetails 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, problemDetails.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProblemsDetails.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProblemsDetails.java index fc5f3d2c..0ba3914b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProblemsDetails.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProblemsDetails.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -137,11 +138,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemsDetails.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, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Product.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Product.java index ee4e362e..887b5851 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Product.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Product.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,6 +33,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; @@ -552,7 +553,7 @@ public Product additionalImageLinks(List additionalImageLinks) { public Product addAdditionalImageLinksItem(String additionalImageLinksItem) { if (this.additionalImageLinks == null) { - this.additionalImageLinks = new ArrayList<>(); + this.additionalImageLinks = null; } this.additionalImageLinks.add(additionalImageLinksItem); return this; @@ -956,7 +957,7 @@ public Product shipping(List shipping) { public Product addShippingItem(ProductShipping shippingItem) { if (this.shipping == null) { - this.shipping = new ArrayList<>(); + this.shipping = null; } this.shipping.add(shippingItem); return this; @@ -1008,7 +1009,7 @@ public Product sizes(List sizes) { public Product addSizesItem(String sizesItem) { if (this.sizes == null) { - this.sizes = new ArrayList<>(); + this.sizes = null; } this.sizes.add(sizesItem); return this; @@ -1038,7 +1039,7 @@ public Product taxes(List taxes) { public Product addTaxesItem(ProductTax taxesItem) { if (this.taxes == null) { - this.taxes = new ArrayList<>(); + this.taxes = null; } this.taxes.add(taxesItem); return this; @@ -1068,7 +1069,7 @@ public Product customAttributes(List customAttributes) { public Product addCustomAttributesItem(CustomAttribute customAttributesItem) { if (this.customAttributes == null) { - this.customAttributes = new ArrayList<>(); + this.customAttributes = null; } this.customAttributes.add(customAttributesItem); return this; @@ -1516,7 +1517,7 @@ public Product displayAdsSimilarIds(List displayAdsSimilarIds) { public Product addDisplayAdsSimilarIdsItem(String displayAdsSimilarIdsItem) { if (this.displayAdsSimilarIds == null) { - this.displayAdsSimilarIds = new ArrayList<>(); + this.displayAdsSimilarIds = null; } this.displayAdsSimilarIds.add(displayAdsSimilarIdsItem); return this; @@ -1634,7 +1635,7 @@ public Product promotionIds(List promotionIds) { public Product addPromotionIdsItem(String promotionIdsItem) { if (this.promotionIds == null) { - this.promotionIds = new ArrayList<>(); + this.promotionIds = null; } this.promotionIds.add(promotionIdsItem); return this; @@ -1752,7 +1753,7 @@ public Product includedDestinations(List includedDestinations) { public Product addIncludedDestinationsItem(String includedDestinationsItem) { if (this.includedDestinations == null) { - this.includedDestinations = new ArrayList<>(); + this.includedDestinations = null; } this.includedDestinations.add(includedDestinationsItem); return this; @@ -1782,7 +1783,7 @@ public Product excludedDestinations(List excludedDestinations) { public Product addExcludedDestinationsItem(String excludedDestinationsItem) { if (this.excludedDestinations == null) { - this.excludedDestinations = new ArrayList<>(); + this.excludedDestinations = null; } this.excludedDestinations.add(excludedDestinationsItem); return this; @@ -1834,7 +1835,7 @@ public Product adsLabels(List adsLabels) { public Product addAdsLabelsItem(String adsLabelsItem) { if (this.adsLabels == null) { - this.adsLabels = new ArrayList<>(); + this.adsLabels = null; } this.adsLabels.add(adsLabelsItem); return this; @@ -1886,7 +1887,7 @@ public Product productTypes(List productTypes) { public Product addProductTypesItem(String productTypesItem) { if (this.productTypes == null) { - this.productTypes = new ArrayList<>(); + this.productTypes = null; } this.productTypes.add(productTypesItem); return this; @@ -2305,11 +2306,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, product.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, offerId, title, description, link, imageLink, additionalImageLinks, contentLanguage, targetCountry, channel, expirationDate, adult, kind, brand, color, googleProductCategory, gtin, itemGroupId, material, mpn, pattern, price, salePrice, salePriceEffectiveDate, shipping, shippingWeight, sizes, taxes, customAttributes, identifierExists, installment, loyaltyPoints, multipack, customLabel0, customLabel1, customLabel2, customLabel3, customLabel4, isBundle, mobileLink, availabilityDate, shippingLabel, unitPricingMeasure, unitPricingBaseMeasure, shippingLength, shippingWidth, shippingHeight, displayAdsId, displayAdsSimilarIds, displayAdsTitle, displayAdsLink, displayAdsValue, sellOnGoogleQuantity, promotionIds, maxHandlingTime, minHandlingTime, costOfGoodsSold, source, includedDestinations, excludedDestinations, adsGrouping, adsLabels, adsRedirect, productTypes, ageGroup, availability, condition, gender, sizeSystem, sizeType, energyEfficiencyClass, minEnergyEfficiencyClass, maxEnergyEfficiencyClass, taxCategory, transitTimeLabel, sellerId, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductImporterError.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductImporterError.java index ac84d013..0f0d4f23 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductImporterError.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductImporterError.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductImporterWarning.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductImporterWarning.java index 79f390be..13cb2139 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductImporterWarning.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductImporterWarning.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSet.java index 64dd7239..575b858a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -97,7 +98,7 @@ public static StatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -281,7 +282,7 @@ public ProductSet rules(List rules) { public ProductSet addRulesItem(ProductSetRule rulesItem) { if (this.rules == null) { - this.rules = new ArrayList<>(); + this.rules = null; } this.rules.add(rulesItem); return this; @@ -390,11 +391,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, productSet.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(datasetId, name, status, isEnabled, numberOfProducts, creationDate, rules, id, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetPreview.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetPreview.java index cc92bfe9..7c970c05 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetPreview.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetRule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetRule.java index 25cc03e1..135af842 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetRule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetRule.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -88,7 +89,7 @@ public static OperatorEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -159,7 +160,7 @@ public static FieldEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -239,7 +240,7 @@ public ProductSetRule values(List values) { public ProductSetRule addValuesItem(String valuesItem) { if (this.values == null) { - this.values = new ArrayList<>(); + this.values = null; } this.values.add(valuesItem); return this; @@ -321,11 +322,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, productSetRule.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(operator, field, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetStatistics.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetStatistics.java index 5c9f0a99..7f932dcc 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetStatistics.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetStatistics.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetStatisticsQuery.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetStatisticsQuery.java index 10c6d08a..16752950 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetStatisticsQuery.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductSetStatisticsQuery.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShipping.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShipping.java index ee3d80d6..a54aba1e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShipping.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShipping.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -298,11 +299,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, productShipping.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(price, country, region, service, locationId, locationGroupName, postalCode, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShippingDimension.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShippingDimension.java index 9fa7c807..15331bce 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShippingDimension.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShippingDimension.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, productShippingDimension.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(value, unit, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShippingWeight.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShippingWeight.java index 9a4fd156..e5d35acc 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShippingWeight.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductShippingWeight.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, productShippingWeight.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(value, unit, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductTax.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductTax.java index 177eca2f..47a478b6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductTax.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductTax.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -270,11 +271,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, productTax.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(rate, country, region, taxShip, locationId, postalCode, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductUnitPricingBaseMeasure.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductUnitPricingBaseMeasure.java index eb9c7bf1..d3139023 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductUnitPricingBaseMeasure.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductUnitPricingBaseMeasure.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, productUnitPricingBaseMeasure.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(value, unit, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductUnitPricingMeasure.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductUnitPricingMeasure.java index b6054fe9..fb94bccb 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductUnitPricingMeasure.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductUnitPricingMeasure.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, productUnitPricingMeasure.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(value, unit, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductsCustomBatchRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductsCustomBatchRequest.java index 07b153bf..473f1811 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductsCustomBatchRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductsCustomBatchRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductsCustomBatchRequestEntry.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductsCustomBatchRequestEntry.java index eb06e6ab..7cb058ec 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductsCustomBatchRequestEntry.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProductsCustomBatchRequestEntry.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -345,11 +346,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, productsCustomBatchRequestEntry.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(batchId, merchantId, method, productId, itemGroupId, product, feedId, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingCreateV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingCreateV1.java index 728b9ded..412246cf 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingCreateV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingCreateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -236,11 +237,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, prospectingCreateV1.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(daysSinceLastVisitMin, daysSinceLastVisitMax, usersType, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingUpdateV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingUpdateV1.java index 48c4e02b..4ed04109 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingUpdateV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingUpdateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -87,7 +88,7 @@ public static UsersTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -237,11 +238,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, prospectingUpdateV1.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(daysSinceLastVisitMin, daysSinceLastVisitMax, usersType, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingV1.java index a8c66e9b..55127463 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ProspectingV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -88,7 +89,7 @@ public static UsersTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -238,11 +239,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, prospectingV1.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(daysSinceLastVisitMin, daysSinceLastVisitMax, usersType, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSet.java index 6039c803..3c8b7a89 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -100,7 +101,7 @@ public static DestinationEnvironmentEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -167,7 +168,7 @@ public static MediaTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -478,11 +479,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSet.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, datasetId, campaignId, destinationEnvironment, schedule, bidding, targeting, budget, mediaType, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBidding.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBidding.java index 26af162c..b373bcc2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBidding.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBidding.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -101,7 +102,7 @@ public static BidStrategyEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -164,7 +165,7 @@ public static CostControllerEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -314,11 +315,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetBidding.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, bidStrategy, costController, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV23Q1.java index 99a0f576..0efa4f54 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBiddingV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 CostControllerEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -224,11 +225,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetBiddingV23Q1.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, costController, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudget.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudget.java index e049630b..67e0dd51 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudget.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudget.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, readAdSetBudget.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV23Q1.java index 027a8e04..17589ff3 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetBudgetV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, readAdSetBudgetV23Q1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetSchedule.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetSchedule.java index 15559039..8987c2d5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetSchedule.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetSchedule.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -87,7 +88,7 @@ public static ActivationStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -154,7 +155,7 @@ public static DeliveryStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -327,11 +328,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetSchedule.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(startDate, endDate, activationStatus, deliveryStatus, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV23Q1.java index 44988422..b66aa70e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetScheduleV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -87,7 +88,7 @@ public static ActivationStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -154,7 +155,7 @@ public static DeliveryStatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -327,11 +328,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetScheduleV23Q1.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(startDate, endDate, activationStatus, deliveryStatus, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV23Q1.java index e3b20605..b7c8c515 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadAdSetV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -100,7 +101,7 @@ public static DestinationEnvironmentEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -169,7 +170,7 @@ public static ObjectiveEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -236,7 +237,7 @@ public static MediaTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -570,11 +571,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readAdSetV23Q1.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, datasetId, campaignId, destinationEnvironment, objective, schedule, bidding, targeting, budget, mediaType, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetId.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetId.java index f4d241e8..437bd259 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetId.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelAdSetId.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -154,11 +155,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, readModelAdSetId.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSet.java index 81af2728..df60bd55 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, readModelReadAdSet.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV23Q1.java index 066184bc..0716e632 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReadModelReadAdSetV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, readModelReadAdSetV23Q1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RecommendedProduct.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RecommendedProduct.java index 3085f30b..43d529e7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RecommendedProduct.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RecommendedProduct.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -297,11 +298,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, recommendedProduct.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(productExternalId, clickUrl, imageUrl, name, description, price, googleCategory, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDataMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDataMessage.java index e531255d..7644f4d9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDataMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDataMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailError.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailError.java index a0c35866..d39a7fa2 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailError.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailError.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailErrors.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailErrors.java index a11de4e3..0662a3a8 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailErrors.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportDetailErrors.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportEntityMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportEntityMessage.java index 7652944b..96ec132e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportEntityMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportEntityMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportOkResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportOkResponse.java index 861b70fa..711c68d7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportOkResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ReportOkResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsAdSetId.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsAdSetId.java index acc872f8..f4a1bc9c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsAdSetId.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsAdSetId.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 RequestsAdSetId data(List data) { public RequestsAdSetId addDataItem(WriteModelAdSetId 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, requestsAdSetId.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSet.java index ee1b0555..bae55c83 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RequestsPatchAdSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 RequestsPatchAdSet data(List data) { public RequestsPatchAdSet addDataItem(WriteModelPatchAdSet 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, requestsPatchAdSet.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceCollectionOutcomeOfProductSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceCollectionOutcomeOfProductSet.java index 1ab15e99..9d16f107 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceCollectionOutcomeOfProductSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceCollectionOutcomeOfProductSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 ResourceCollectionOutcomeOfProductSet data(List dat public ResourceCollectionOutcomeOfProductSet addDataItem(ResourceOfProductSet 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, resourceCollectionOutcomeOfProductSet.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceOfProductSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceOfProductSet.java index d132dabb..5e8ac48a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceOfProductSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceOfProductSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfProductSet.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceOutcomeOfProductSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceOutcomeOfProductSet.java index 7691aa16..115603b6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceOutcomeOfProductSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResourceOutcomeOfProductSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOutcomeOfProductSet.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseAdSetId.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseAdSetId.java index 88d54fef..1a470de3 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseAdSetId.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseAdSetId.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, responseAdSetId.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSet.java index f10dfb11..bef86035 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, responseReadAdSet.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV23Q1.java index 0e2092fc..5455d649 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponseReadAdSetV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, responseReadAdSetV23Q1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetId.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetId.java index 6ae93247..79601125 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetId.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesAdSetId.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, responsesAdSetId.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV23Q1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV23Q1.java index 6a1d5446..f1a0dfe3 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV23Q1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ResponsesReadAdSetV23Q1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, responsesReadAdSetV23Q1.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingCreateV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingCreateV1.java index 05546609..b871b2d6 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingCreateV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingCreateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingUpdateV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingUpdateV1.java index 303d5122..9253e008 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingUpdateV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingUpdateV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -80,7 +81,7 @@ public static VisitorsTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -238,11 +239,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retargetingUpdateV1.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(visitorsType, daysSinceLastVisitMin, daysSinceLastVisitMax, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingV1.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingV1.java index 55c1e26a..c2da6eef 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingV1.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/RetargetingV1.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 VisitorsTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -240,11 +241,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retargetingV1.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(visitorsType, daysSinceLastVisitMin, daysSinceLastVisitMax, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Rules.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Rules.java index 6fa8797b..7edff111 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Rules.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Rules.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -243,7 +244,7 @@ public Rules values(List values) { public Rules addValuesItem(String valuesItem) { if (this.values == null) { - this.values = new ArrayList<>(); + this.values = null; } this.values.add(valuesItem); return this; @@ -325,11 +326,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, rules.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(field, operator, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIds.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIds.java index 5608fd62..50767881 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIds.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIds.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 SetAdSetTargetingDealIds dealIds(List dealIds) { public SetAdSetTargetingDealIds addDealIdsItem(DealId dealIdsItem) { if (this.dealIds == null) { - this.dealIds = new ArrayList<>(); + this.dealIds = null; } this.dealIds.add(dealIdsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, setAdSetTargetingDealIds.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(dealIds, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIdsRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIdsRequest.java index d5318786..bef295a7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIdsRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIdsRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIdsResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIdsResource.java index e39bd0dc..85785ffa 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIdsResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingDealIdsResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, setAdSetTargetingDealIdsResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioning.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioning.java index d6bc8399..62767748 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioning.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioning.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -196,7 +197,7 @@ public static SkippableEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -389,7 +390,7 @@ public SetAdSetTargetingVideoPositioning videoPlacement(List public SetAdSetTargetingVideoPositioning addVideoPlacementItem(VideoPlacementEnum videoPlacementItem) { if (this.videoPlacement == null) { - this.videoPlacement = new ArrayList<>(); + this.videoPlacement = null; } this.videoPlacement.add(videoPlacementItem); return this; @@ -419,7 +420,7 @@ public SetAdSetTargetingVideoPositioning playbackMethod(List public SetAdSetTargetingVideoPositioning addPlaybackMethodItem(PlaybackMethodEnum playbackMethodItem) { if (this.playbackMethod == null) { - this.playbackMethod = new ArrayList<>(); + this.playbackMethod = null; } this.playbackMethod.add(playbackMethodItem); return this; @@ -471,7 +472,7 @@ public SetAdSetTargetingVideoPositioning videoInStreamPosition(List(); + this.videoInStreamPosition = null; } this.videoInStreamPosition.add(videoInStreamPositionItem); return this; @@ -501,7 +502,7 @@ public SetAdSetTargetingVideoPositioning videoPlayerSize(List(); + this.videoPlayerSize = null; } this.videoPlayerSize.add(videoPlayerSizeItem); return this; @@ -531,7 +532,7 @@ public SetAdSetTargetingVideoPositioning videoAspectRatio(List(); + this.videoAspectRatio = null; } this.videoAspectRatio.add(videoAspectRatioItem); return this; @@ -616,11 +617,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, setAdSetTargetingVideoPositioning.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(videoPlacement, playbackMethod, skippable, videoInStreamPosition, videoPlayerSize, videoAspectRatio, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioningRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioningRequest.java index 5fba229d..84dd819a 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioningRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioningRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioningResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioningResource.java index 5771f78b..10822cff 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioningResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetAdSetTargetingVideoPositioningResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, setAdSetTargetingVideoPositioningResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModel.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModel.java index 5823d472..8b3804d0 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModel.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -123,7 +124,7 @@ public SetUserProfileModel userProfileIdentifiers(List(); + this.userProfileIdentifiers = null; } this.userProfileIdentifiers.add(userProfileIdentifiersItem); return this; @@ -153,7 +154,7 @@ public SetUserProfileModel userProfileAttributes(List public SetUserProfileModel addUserProfileAttributesItem(UserProfileAttributeModel userProfileAttributesItem) { if (this.userProfileAttributes == null) { - this.userProfileAttributes = new ArrayList<>(); + this.userProfileAttributes = null; } this.userProfileAttributes.add(userProfileAttributesItem); return this; @@ -236,11 +237,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, setUserProfileModel.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(userProfileId, userProfileListId, userProfileIdentifiers, userProfileAttributes, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelListRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelListRequest.java index f0e0bfa2..0aed9fcc 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelListRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 SetUserProfileModelListRequest data(List dat public SetUserProfileModelListRequest addDataItem(SetUserProfileModelResource 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, setUserProfileModelListRequest.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelResource.java index 21721b8c..8af25173 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SetUserProfileModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, setUserProfileModelResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Size.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Size.java index 8b83350a..5f4d1928 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Size.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Size.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, size.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(width, height, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsOkResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsOkResponse.java index f73e65a1..11ef6421 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsOkResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsOkResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -186,11 +187,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, statisticsOkResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsRecord.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsRecord.java index 3d9c9be2..634ae61c 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsRecord.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsRecord.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsRecordList.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsRecordList.java index 3433a4a4..606415d1 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsRecordList.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsRecordList.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsReportQueryMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsReportQueryMessage.java index da01a7d4..e4c5f916 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsReportQueryMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/StatisticsReportQueryMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -219,7 +220,7 @@ public StatisticsReportQueryMessage adSetIds(List adSetIds) { public StatisticsReportQueryMessage addAdSetIdsItem(String adSetIdsItem) { if (this.adSetIds == null) { - this.adSetIds = new ArrayList<>(); + this.adSetIds = null; } this.adSetIds.add(adSetIdsItem); return this; @@ -249,7 +250,7 @@ public StatisticsReportQueryMessage adSetNames(List adSetNames) { public StatisticsReportQueryMessage addAdSetNamesItem(String adSetNamesItem) { if (this.adSetNames == null) { - this.adSetNames = new ArrayList<>(); + this.adSetNames = null; } this.adSetNames.add(adSetNamesItem); return this; @@ -279,7 +280,7 @@ public StatisticsReportQueryMessage adSetStatus(List adSetStatus) { public StatisticsReportQueryMessage addAdSetStatusItem(String adSetStatusItem) { if (this.adSetStatus == null) { - this.adSetStatus = new ArrayList<>(); + this.adSetStatus = null; } this.adSetStatus.add(adSetStatusItem); return this; @@ -533,11 +534,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, statisticsReportQueryMessage.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(advertiserIds, adSetIds, adSetNames, adSetStatus, dimensions, metrics, currency, format, timezone, startDate, endDate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendor.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendor.java index 7cb1da3e..d087299f 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendor.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendor.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, supplyVendor.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, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendorListResponse.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendorListResponse.java index ca894ee1..ed902a0e 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendorListResponse.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendorListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 SupplyVendorListResponse data(List data) { public SupplyVendorListResponse addDataItem(SupplyVendorResource 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, supplyVendorListResponse.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendorResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendorResource.java index ecc6b5aa..69d001f0 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendorResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/SupplyVendorResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, supplyVendorResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Tag.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Tag.java index 7490d710..bad968e5 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Tag.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Tag.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, tag.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(htmlTag, size, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Target.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Target.java index 0eea8e78..a4e7de79 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Target.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/Target.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetType.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetType.java index bd33fa10..823a2eee 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetType.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetType.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingEntity.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingEntity.java index 8ec08f8e..b8a92583 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingEntity.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingEntity.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.LinkedHashSet; import java.util.Set; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -81,7 +82,7 @@ public static TypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -132,7 +133,7 @@ public static ModeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -212,7 +213,7 @@ public TargetingEntity data(Set data) { public TargetingEntity addDataItem(EntityFilter dataItem) { if (this.data == null) { - this.data = new LinkedHashSet<>(); + this.data = null; } this.data.add(dataItem); return this; @@ -294,11 +295,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, targetingEntity.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, mode, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingErrorModel.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingErrorModel.java index 6473fea0..965e5013 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingErrorModel.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingErrorModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -297,11 +298,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, targetingErrorModel.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(code, detail, instance, source, title, traceId, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingOperator.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingOperator.java index 27ae00d0..43afd200 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingOperator.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TargetingOperator.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryDataMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryDataMessage.java index 72d2c5ec..3750d6aa 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryDataMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryDataMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryEntityMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryEntityMessage.java index 2d30174e..9421cf6b 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryEntityMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryEntityMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryMessage.java index d371f785..5f8eda17 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransactionsReportQueryMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -298,11 +299,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transactionsReportQueryMessage.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(advertiserIds, eventType, currency, format, timezone, startDate, endDate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyQueryMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyQueryMessage.java index b4c223a2..c98409ee 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyQueryMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyQueryMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -190,11 +191,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, transparencyQueryMessage.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(shouldDisplayProductIds, startDate, endDate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportAttributes.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportAttributes.java index e5fedddf..3bf5f1d8 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportAttributes.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportDataMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportDataMessage.java index cce384b0..e99c5aff 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportDataMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportDataMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportEntityMessage.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportEntityMessage.java index 20ee28aa..30933813 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportEntityMessage.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportEntityMessage.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportFile.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportFile.java index 796db16d..dbfcfab9 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportFile.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/TransparencyReportFile.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UnauthorizedResponseV2.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UnauthorizedResponseV2.java index 77a4821f..81275336 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UnauthorizedResponseV2.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UnauthorizedResponseV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -98,7 +99,7 @@ public UnauthorizedResponseV2 errors(List errors) { public UnauthorizedResponseV2 addErrorsItem(CommonProblem errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -128,7 +129,7 @@ public UnauthorizedResponseV2 warnings(List warnings) { public UnauthorizedResponseV2 addWarningsItem(CriteoApiWarningV2 warningsItem) { if (this.warnings == null) { - this.warnings = new ArrayList<>(); + this.warnings = null; } this.warnings.add(warningsItem); return this; @@ -210,11 +211,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, unauthorizedResponseV2.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCoupon.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCoupon.java index 123edf11..38b5854d 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCoupon.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCoupon.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, updateCoupon.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(startDate, endDate, 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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCouponRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCouponRequest.java index 5ca14c38..cc5fd6ac 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCouponRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCouponRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCouponResource.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCouponResource.java index 266c14d1..6735a501 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCouponResource.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UpdateCouponResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, updateCouponResource.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserDef.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserDef.java index 54f2d4f5..e8310887 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserDef.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserDef.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserEvent.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserEvent.java index 258a2c05..bd6af0ee 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserEvent.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserEvent.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileAttributeModel.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileAttributeModel.java index 44188d5f..0d60d380 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileAttributeModel.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileAttributeModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileIdentifierModel.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileIdentifierModel.java index 4f36ca6c..3e86fb43 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileIdentifierModel.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/UserProfileIdentifierModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceInputOfCreateProductSetRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceInputOfCreateProductSetRequest.java index 5334edbf..24b25de7 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceInputOfCreateProductSetRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceInputOfCreateProductSetRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceOfAdvertiserCreationInput.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceOfAdvertiserCreationInput.java index 47d14c79..6f9d23de 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceOfAdvertiserCreationInput.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceOfAdvertiserCreationInput.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, valueResourceOfAdvertiserCreationInput.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceOfCreateProductSetRequest.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceOfCreateProductSetRequest.java index 4f857e72..ee4b34a4 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceOfCreateProductSetRequest.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/ValueResourceOfCreateProductSetRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, valueResourceOfCreateProductSetRequest.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/VideoDetail.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/VideoDetail.java index b07a9a39..5e710d64 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/VideoDetail.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/VideoDetail.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelAdSetId.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelAdSetId.java index 2d827783..7b407564 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelAdSetId.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelAdSetId.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, writeModelAdSetId.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_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSet.java b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSet.java index e6b21cca..79896a08 100644 --- a/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSet.java +++ b/sdks/marketingsolutions_preview/src/main/java/com/criteo/api/marketingsolutions/preview/model/WriteModelPatchAdSet.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - MarketingSolutions * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, writeModelPatchAdSet.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/retailmedia_2022-07/README.md b/sdks/retailmedia_2022-07/README.md index cefbbff2..b2ea1d03 100644 --- a/sdks/retailmedia_2022-07/README.md +++ b/sdks/retailmedia_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-retailmedia-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-retailmedia-sdk:2022.07.0.230728" +compile "com.criteo:criteo-api-retailmedia-sdk:2022.07.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-retailmedia-sdk-2022.07.0.230728.jar` +* `target/criteo-api-retailmedia-sdk-2022.07.0.230831.jar` * `target/lib/*.jar` ## Example diff --git a/sdks/retailmedia_2022-07/api/openapi.yaml b/sdks/retailmedia_2022-07/api/openapi.yaml index cba31dc6..d3d0d496 100644 --- a/sdks/retailmedia_2022-07/api/openapi.yaml +++ b/sdks/retailmedia_2022-07/api/openapi.yaml @@ -74,11 +74,11 @@ paths: tags: - Campaign x-accepts: application/json - /2022-07/retail-media/accounts/{accountId}/retailers: + /2022-07/retail-media/accounts/{accountId}/brands: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId parameters: - description: The given account id explode: false @@ -127,16 +127,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' + $ref: '#/components/schemas/JsonApiPageResponseOfBrand' description: Success tags: - Campaign x-accepts: application/json - /2022-07/retail-media/accounts/{accountId}/brands: + /2022-07/retail-media/accounts/{accountId}/retailers: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId parameters: - description: The given account id explode: false @@ -185,7 +185,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfBrand' + $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' description: Success tags: - Campaign @@ -351,15 +351,38 @@ paths: - Audience x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/accounts/{accountId}/catalogs: + /2022-07/retail-media/accounts/{account-id}/creatives: + get: + description: Get account creatives + operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId + parameters: + - description: External account id to retrieve creatives for + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Creative202110ListResponse' + description: Creatives found + tags: + - Campaign + x-accepts: application/json post: - description: Create a request for a Catalog available to the indicated account. - operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId + description: Create a creative for an account + operationId: CreativesApi_PostApi202207ExternalAccountCreativesByAccountId parameters: - - description: The account to request the catalog for. + - description: External account id to create a creative for explode: false in: path - name: accountId + name: account-id required: true schema: type: string @@ -369,29 +392,39 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiRequestOfCatalogRequest' + $ref: '#/components/schemas/CreativeCreateModel202207' + description: The creative to create x-nullable: false - x-bodyName: request + x-bodyName: creative responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request successfully created + $ref: '#/components/schemas/Creative202207Response' + description: Creatives created tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/catalogs/{catalogId}/status: + /2022-07/retail-media/accounts/{account-id}/creatives/{creative-id}: get: - description: Check the status of a catalog request. - operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId + description: Get the specified creative + operationId: "CreativesApi_GetApi202207ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id to retrieve creatives for explode: false in: path - name: catalogId + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: Creative to get + explode: false + in: path + name: creative-id required: true schema: type: string @@ -402,76 +435,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request found. + $ref: '#/components/schemas/Creative202207Response' + description: Creatives found tags: - Campaign x-accepts: application/json - /2022-07/retail-media/catalogs/{catalogId}/output: - get: - description: "Output the indicated catalog. Catalogs are only available for\ - \ retrieval when their associated status request\r\nis at a Success status.\r\ - \nProduces application/x-json-stream of v2021_07 CatalogProduct json objects." - operationId: CatalogApi_GetApiV1ExternalCatalogOutputByCatalogId + put: + description: Update a creative + operationId: "CreativesApi_PutApi202207ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id containing the creative explode: false in: path - name: catalogId + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: Creative to update + explode: false + in: path + name: creative-id required: true schema: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreativeUpdateModel202207' + description: The creative to create + x-nullable: false + x-bodyName: creative responses: "200": content: - application/x-json-stream: {} - application/json: {} - description: Catalog download initiated. - "400": + application/json: + schema: + $ref: '#/components/schemas/Creative202207Response' + description: Success + "204": content: - application/x-json-stream: {} application/json: {} - description: "The indicated catalog is not available for retrieval, wait\ - \ for a success status." + description: Creative updated tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/retailers/{retailerId}/pages: - get: - description: Get the page types available for the given retailer - operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId + /2022-07/retail-media/accounts/{accountId}/catalogs: + post: + description: Create a request for a Catalog available to the indicated account. + operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId parameters: - - description: The retailers to fetch pages for + - description: The account to request the catalog for. explode: false in: path - name: retailerId + name: accountId required: true schema: - format: int32 - type: integer + type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiRequestOfCatalogRequest' + x-nullable: false + x-bodyName: request responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ExternalRetailerPages202110' - description: Pages fetched successfully + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request successfully created tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/accounts/{account-id}/creatives: + /2022-07/retail-media/catalogs/{catalogId}/output: get: - description: Get account creatives - operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId + description: "Output the indicated catalog. Catalogs are only available for\ + \ retrieval when their associated status request\r\nis at a Success status.\r\ + \nProduces application/x-json-stream of v2021_07 CatalogProduct json objects." + operationId: CatalogApi_GetApiV1ExternalCatalogOutputByCatalogId parameters: - - description: External account id to retrieve creatives for + - description: A catalog ID returned from an account catalog request. explode: false in: path - name: account-id + name: catalogId required: true schema: type: string @@ -480,44 +536,41 @@ paths: responses: "200": content: - application/json: - schema: - $ref: '#/components/schemas/Creative202110ListResponse' - description: Creatives found + application/x-json-stream: {} + application/json: {} + description: Catalog download initiated. + "400": + content: + application/x-json-stream: {} + application/json: {} + description: "The indicated catalog is not available for retrieval, wait\ + \ for a success status." tags: - Campaign x-accepts: application/json - post: - description: Create a creative for an account - operationId: CreativesApi_PostApi202207ExternalAccountCreativesByAccountId + /2022-07/retail-media/catalogs/{catalogId}/status: + get: + description: Check the status of a catalog request. + operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId parameters: - - description: External account id to create a creative for + - description: A catalog ID returned from an account catalog request. explode: false in: path - name: account-id + name: catalogId required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreativeCreateModel202207' - description: The creative to create - x-nullable: false - x-bodyName: creative responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/Creative202207Response' - description: Creatives created + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request found. tags: - Campaign - x-content-type: application/json x-accepts: application/json /2022-07/retail-media/categories: get: @@ -674,27 +727,19 @@ paths: tags: - Campaign x-accepts: application/json - /2022-07/retail-media/accounts/{account-id}/creatives/{creative-id}: + /2022-07/retail-media/retailers/{retailerId}/pages: get: - description: Get the specified creative - operationId: "CreativesApi_GetApi202207ExternalAccountByAccountId}Creatives{creativeId" + description: Get the page types available for the given retailer + operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId parameters: - - description: External account id to retrieve creatives for - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creative to get + - description: The retailers to fetch pages for explode: false in: path - name: creative-id + name: retailerId required: true schema: - type: string + format: int32 + type: integer style: simple x-nullable: false responses: @@ -702,60 +747,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Creative202207Response' - description: Creatives found + $ref: '#/components/schemas/ExternalRetailerPages202110' + description: Pages fetched successfully tags: - Campaign x-accepts: application/json - put: - description: Update a creative - operationId: "CreativesApi_PutApi202207ExternalAccountByAccountId}Creatives{creativeId" - parameters: - - description: External account id containing the creative - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creative to update - explode: false - in: path - name: creative-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreativeUpdateModel202207' - description: The creative to create - x-nullable: false - x-bodyName: creative - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Creative202207Response' - description: Success - "204": - content: - application/json: {} - description: Creative updated - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2022-07/retail-media/reports/campaigns: - post: - description: Request a campaign report - operationId: requestCampaignReport + /2022-07/retail-media/reports/campaigns: + post: + description: Request a campaign report + operationId: requestCampaignReport requestBody: content: application/json: @@ -882,15 +882,15 @@ paths: tags: - Analytics x-accepts: application/json - /2022-07/retail-media/accounts/{accountId}/campaigns: + /2022-07/retail-media/accounts/{account-id}/balances: get: - description: Gets page of campaign objects for the given account id - operationId: CampaignsApi_GetApiV1ExternalAccountCampaignsByAccountId + description: Gets page of balance objects for the given account id + operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId parameters: - - description: The given account id + - description: The account to get balances for explode: false in: path - name: accountId + name: account-id required: true schema: type: string @@ -934,112 +934,103 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfCampaign' + $ref: '#/components/schemas/Balance202110PagedListResponse' description: Success tags: - Campaign x-accepts: application/json - post: - description: Creates a new campaign with the specified settings - operationId: CampaignsApi_PostApiV1ExternalAccountCampaignsByAccountId + /2022-07/retail-media/accounts/{account-id}/line-items: + get: + description: Gets page of line item objects for the given account id + operationId: GetApiV2ExternalAccountLineItemsByAccountId parameters: - description: The given account id explode: false in: path - name: accountId + name: account-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExternalPostCampaign' - description: The campaign settings to create a campaign with + - description: The campaign ids that you would like to limit your result set + to + explode: true + in: query + name: limitToCampaignId + required: false + schema: + items: + type: string + type: array + style: form x-nullable: false - x-bodyName: campaign - responses: - "201": - content: - application/json: {} - description: Success - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' - description: OK - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2022-07/retail-media/campaigns/{campaignId}: - get: - description: Gets the campaign for the given campaign id - operationId: CampaignsApi_GetApiV1ExternalCampaignByCampaignId - parameters: - - description: The given campaign id - explode: false - in: path - name: campaignId - required: true + - description: The campaign types that you would like to limit your result set + to + explode: true + in: query + name: limitToType + required: false schema: + enum: + - Unknown + - Auction + - Preferred type: string - style: simple + style: form + x-nullable: true + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' - description: Success - tags: - - Campaign - x-accepts: application/json - put: - description: Updates the campaign for the given campaign id - operationId: CampaignsApi_PutApiV1ExternalCampaignByCampaignId - parameters: - - description: The given campaign id - explode: false - in: path - name: campaignId - required: true + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false schema: - type: string - style: simple + format: int32 + type: integer + style: form x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExternalPutCampaign' - description: The campaign settings to update that campaign with + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: campaign responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' + $ref: '#/components/schemas/CommonLineItemPagedListResponse' description: Success tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/campaigns/{campaign-id}/auction-line-items: + /2022-07/retail-media/accounts/{accountId}/campaigns: get: - description: Gets page of auction line item objects for the given campaign id - operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId + description: Gets page of campaign objects for the given account id + operationId: CampaignsApi_GetApiV1ExternalAccountCampaignsByAccountId parameters: - - description: The given campaign id + - description: The given account id explode: false in: path - name: campaign-id + name: accountId required: true schema: type: string @@ -1083,25 +1074,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' + $ref: '#/components/schemas/JsonApiPageResponseOfCampaign' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' - description: Bad Request tags: - Campaign x-accepts: application/json post: - description: Creates new auction line item with the specified settings - operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId + description: Creates a new campaign with the specified settings + operationId: CampaignsApi_PostApiV1ExternalAccountCampaignsByAccountId parameters: - - description: The given campaign id + - description: The given account id explode: false in: path - name: campaign-id + name: accountId required: true schema: type: string @@ -1111,31 +1096,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' - description: The line item settings to create a line item with + $ref: '#/components/schemas/ExternalPostCampaign' + description: The campaign settings to create a campaign with x-nullable: false - x-bodyName: lineItem + x-bodyName: campaign responses: "201": content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' + application/json: {} description: Success - "400": + "200": content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' + description: OK tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/line-items/{line-item-id}: + /2022-07/retail-media/auction-line-items/{line-item-id}: get: - description: Gets the line item for the given line item id - operationId: GetApiV2ExternalLineItemByLineItemId + description: Gets the auction line item for the given line item id + operationId: GetApiV2ExternalAuctionLineItemByLineItemId parameters: - description: The given line item id explode: false @@ -1151,143 +1134,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CommonLineItemResponse' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemResponse' + description: Bad Request tags: - Campaign x-accepts: application/json - /2022-07/retail-media/accounts/{account-id}/line-items: - get: - description: Gets page of line item objects for the given account id - operationId: GetApiV2ExternalAccountLineItemsByAccountId + put: + description: Updates the auction line item for the given line item id + operationId: PutApiV2ExternalAuctionLineItemByLineItemId parameters: - - description: The given account id + - description: The given line item id explode: false in: path - name: account-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The campaign ids that you would like to limit your result set - to - explode: true - in: query - name: limitToCampaignId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The campaign types that you would like to limit your result set - to - explode: true - in: query - name: limitToType - required: false - schema: - enum: - - Unknown - - Auction - - Preferred - type: string - style: form - x-nullable: true - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CommonLineItemPagedListResponse' - description: Success - tags: - - Campaign - x-accepts: application/json - /2022-07/retail-media/auction-line-items/{line-item-id}: - get: - description: Gets the auction line item for the given line item id - operationId: GetApiV2ExternalAuctionLineItemByLineItemId - parameters: - - description: The given line item id - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request - tags: - - Campaign - x-accepts: application/json - put: - description: Updates the auction line item for the given line item id - operationId: PutApiV2ExternalAuctionLineItemByLineItemId - parameters: - - description: The given line item id - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemUpdateModelRequest' - description: The line item settings to create a line item with + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemUpdateModelRequest' + description: The line item settings to create a line item with x-nullable: false x-bodyName: lineItem responses: @@ -1417,45 +1293,72 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores: + /2022-07/retail-media/balances/{balance-id}/campaigns: get: - description: This endpoint gets the store target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + description: Gets page of campaigns for the given balanceId + operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId parameters: - - description: The line item to interact with + - description: The balance to get campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string style: simple x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: This endpoint sets the scope of the store target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + /2022-07/retail-media/balances/{balance-id}/campaigns/append: + post: + description: appends one or more campaigns to the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId parameters: - - description: The line item to interact with + - description: The balance to add campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -1465,37 +1368,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Request' - description: The store target to set the scope for + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: storeTarget + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: + /2022-07/retail-media/balances/{balance-id}/campaigns/delete: post: - description: This endpoint appends one or more store ids to targeting on the - specified line item. The resulting state of the store target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId + description: Removes one or more campaigns on the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId parameters: - - description: The line item to interact with + - description: The balance to remove campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -1505,148 +1401,194 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' - description: Store ids to append to the target + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: idsToAppend + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: - post: - description: This endpoint removes one or more store ids from targeting on the - specified line item. The resulting state of the store target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId + /2022-07/retail-media/campaigns/{campaign-id}/auction-line-items: + get: + description: Gets page of auction line item objects for the given campaign id + operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' - description: Store ids to remove from the target + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: - get: - description: This endpoint gets the add to basket target on the specified line - item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + post: + description: Creates new auction line item with the specified settings + operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' + description: The line item settings to create a line item with + x-nullable: false + x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - put: - description: This endpoint sets the scope of the add to basket target on the - specified line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + /2022-07/retail-media/campaigns/{campaign-id}/preferred-line-items: + get: + description: Gets page of preferred line item objects for the given campaign + id + operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketTarget202110Request' - description: The add to basket target to set the scope for + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: addToBasketTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: post: - description: This endpoint appends one or more add to basket ids to targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId + description: Creates a new preferred line item with the specified settings + operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string @@ -1656,38 +1598,59 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to append to the target + $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' + description: The line item settings to create a line item with x-nullable: false - x-bodyName: idsToAppend + x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: - post: - description: This endpoint removes one or more add to basket ids from targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId + /2022-07/retail-media/campaigns/{campaignId}: + get: + description: Gets the campaign for the given campaign id + operationId: CampaignsApi_GetApiV1ExternalCampaignByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaignId + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' + description: Success + tags: + - Campaign + x-accepts: application/json + put: + description: Updates the campaign for the given campaign id + operationId: CampaignsApi_PutApiV1ExternalCampaignByCampaignId + parameters: + - description: The given campaign id + explode: false + in: path + name: campaignId required: true schema: type: string @@ -1697,33 +1660,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to remove from the target + $ref: '#/components/schemas/ExternalPutCampaign' + description: The campaign settings to update that campaign with x-nullable: false - x-bodyName: idsToRemove + x-bodyName: campaign responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: + /2022-07/retail-media/line-items/{line-item-id}: get: - description: This endpoint gets the audience target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + description: Gets the line item for the given line item id + operationId: GetApiV2ExternalLineItemByLineItemId parameters: - - description: The line item to interact with + - description: The given line item id explode: false in: path name: line-item-id @@ -1737,21 +1694,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/CommonLineItemResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: This endpoint sets the scope of the audience target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + /2022-07/retail-media/line-items/{line-item-id}/products: + get: + description: This endpoint gets the promoted products on the specified line + item. + operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId parameters: - description: The line item to interact with explode: false @@ -1762,36 +1714,54 @@ paths: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Request' - description: The audience target to set the scope for + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: audienceTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: + /2022-07/retail-media/line-items/{line-item-id}/products/append: post: - description: This endpoint appends one or more audiences ids to targeting on - the specified line item. The resulting state of the audience target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId + description: This endpoint appends one or more products to promote on the specified + line item. The resulting state of the line item is returned. + operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsAppendByLineItemId parameters: - description: The line item to interact with explode: false @@ -1806,33 +1776,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' - description: Audience ids to append to the target + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: the products to append to this line item x-nullable: false - x-bodyName: idsToAppend + x-bodyName: promotedProductsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: + /2022-07/retail-media/line-items/{line-item-id}/products/delete: post: - description: This endpoint removes one or more audiences ids from targeting - on the specified line item. The resulting state of the audience target is - returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId + description: This endpoint removes one or more products from promotion on the + specified line item. The resulting state of the line item is returned. + operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsDeleteByLineItemId parameters: - description: The line item to interact with explode: false @@ -1847,23 +1810,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' - description: Audience ids to remove from the target + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: "" x-nullable: false - x-bodyName: idsToRemove + x-bodyName: promotedProductsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json @@ -1996,11 +1953,11 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/line-items/{line-item-id}/products: + /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: get: - description: This endpoint gets the promoted products on the specified line + description: This endpoint gets the add to basket target on the specified line item. - operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId parameters: - description: The line item to interact with explode: false @@ -2011,54 +1968,67 @@ paths: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request + tags: + - Campaign + x-accepts: application/json + put: + description: This endpoint sets the scope of the add to basket target on the + specified line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true schema: - format: int32 - type: integer - style: form + type: string + style: simple x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Request' + description: The add to basket target to set the scope for x-nullable: false + x-bodyName: addToBasketTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/line-items/{line-item-id}/products/append: + /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: post: - description: This endpoint appends one or more products to promote on the specified - line item. The resulting state of the line item is returned. - operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsAppendByLineItemId + description: This endpoint appends one or more add to basket ids to targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId parameters: - description: The line item to interact with explode: false @@ -2073,26 +2043,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: the products to append to this line item + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to append to the target x-nullable: false - x-bodyName: promotedProductsToAppend + x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/line-items/{line-item-id}/products/delete: + /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: post: - description: This endpoint removes one or more products from promotion on the - specified line item. The resulting state of the line item is returned. - operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsDeleteByLineItemId + description: This endpoint removes one or more add to basket ids from targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId parameters: - description: The line item to interact with explode: false @@ -2107,93 +2084,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: "" + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to remove from the target x-nullable: false - x-bodyName: promotedProductsToRemove + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/campaigns/{campaign-id}/preferred-line-items: + /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: get: - description: Gets page of preferred line item objects for the given campaign - id - operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId + description: This endpoint gets the audience target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId parameters: - - description: The given campaign id + - description: The line item to interact with explode: false in: path - name: campaign-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Bad Request tags: - Campaign x-accepts: application/json - post: - description: Creates a new preferred line item with the specified settings - operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId + put: + description: This endpoint sets the scope of the audience target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId parameters: - - description: The given campaign id + - description: The line item to interact with explode: false in: path - name: campaign-id + name: line-item-id required: true schema: type: string @@ -2203,150 +2153,187 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' - description: The line item settings to create a line item with + $ref: '#/components/schemas/AudienceTarget202110Request' + description: The audience target to set the scope for x-nullable: false - x-bodyName: lineItem + x-bodyName: audienceTarget responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/accounts/{account-id}/balances: - get: - description: Gets page of balance objects for the given account id - operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId + /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: + post: + description: This endpoint appends one or more audiences ids to targeting on + the specified line item. The resulting state of the audience target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId parameters: - - description: The account to get balances for + - description: The line item to interact with explode: false in: path - name: account-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + description: Audience ids to append to the target x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false + x-bodyName: idsToAppend + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: + post: + description: This endpoint removes one or more audiences ids from targeting + on the specified line item. The resulting state of the audience target is + returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true schema: - format: int32 - type: integer - style: form + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + description: Audience ids to remove from the target x-nullable: false + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Balance202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/balances/{balance-id}/campaigns: + /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores: get: - description: Gets page of campaigns for the given balanceId - operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId + description: This endpoint gets the store target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId parameters: - - description: The balance to get campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request + tags: + - Campaign + x-accepts: application/json + put: + description: This endpoint sets the scope of the store target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true schema: - format: int32 - type: integer - style: form + type: string + style: simple x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Request' + description: The store target to set the scope for x-nullable: false + x-bodyName: storeTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/balances/{balance-id}/campaigns/append: + /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: post: - description: appends one or more campaigns to the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId + description: This endpoint appends one or more store ids to targeting on the + specified line item. The resulting state of the store target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId parameters: - - description: The balance to add campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string @@ -2356,30 +2343,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' + description: Store ids to append to the target x-nullable: false - x-bodyName: campaigns + x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-07/retail-media/balances/{balance-id}/campaigns/delete: + /2022-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: post: - description: Removes one or more campaigns on the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId + description: This endpoint removes one or more store ids from targeting on the + specified line item. The resulting state of the store target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId parameters: - - description: The balance to remove campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string @@ -2389,17 +2383,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' + description: Store ids to remove from the target x-nullable: false - x-bodyName: campaigns + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json @@ -2465,12 +2465,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 @@ -2487,6 +2489,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/ApplicationSummaryModel' @@ -2507,10 +2510,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. @@ -2523,27 +2528,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: @@ -2557,15 +2569,20 @@ 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 JsonApiPageResponseOfAccount: @@ -2664,7 +2681,7 @@ components: - data type: object x-nullable: false - JsonApiPageResponseOfRetailer: + JsonApiPageResponseOfBrand: description: A wrapper class to return a single page of with metadata example: @@ -2678,16 +2695,10 @@ components: data: - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type warnings: @@ -2743,14 +2754,14 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' type: array x-nullable: false required: - data type: object x-nullable: false - JsonApiPageResponseOfBrand: + JsonApiPageResponseOfRetailer: description: A wrapper class to return a single page of with metadata example: @@ -2764,10 +2775,16 @@ components: data: - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type warnings: @@ -2823,7 +2840,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' type: array x-nullable: false required: @@ -3032,15 +3049,12 @@ components: - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: + JsonApiBodyWithIdOfInt64AndBrandAndBrand: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type properties: @@ -3052,18 +3066,21 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalRetailer' + $ref: '#/components/schemas/ExternalBrand' required: - id - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndBrandAndBrand: + JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type properties: @@ -3075,7 +3092,7 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalBrand' + $ref: '#/components/schemas/ExternalRetailer' required: - id - type @@ -3140,44 +3157,44 @@ components: - type type: object x-nullable: false - ExternalRetailer: - description: A Retail Media Retailer used to represent a selection of products - from multiple brands + ExternalBrand: + description: A Retail Media Brand used to represent a collection of products + sold under the same umbrella name example: name: name - campaignEligibilities: - - unknown - - unknown properties: name: - maxLength: 100 + maxLength: 120 + minLength: 0 type: string x-nullable: false - campaignEligibilities: - items: - enum: - - unknown - - auction - - preferred - type: string - x-nullable: false - type: array - x-nullable: false required: - name type: object x-nullable: false - ExternalBrand: - description: A Retail Media Brand used to represent a collection of products - sold under the same umbrella name + ExternalRetailer: + description: A Retail Media Retailer used to represent a selection of products + from multiple brands example: name: name + campaignEligibilities: + - unknown + - unknown properties: name: - maxLength: 120 - minLength: 0 + maxLength: 100 type: string x-nullable: false + campaignEligibilities: + items: + enum: + - unknown + - auction + - preferred + type: string + x-nullable: false + type: array + x-nullable: false required: - name type: object @@ -3241,12 +3258,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 @@ -3264,8 +3283,10 @@ components: attributes: $ref: '#/components/schemas/Asset' id: + nullable: true type: string type: + nullable: true type: string type: object Asset: @@ -3282,8 +3303,10 @@ components: type: string fileLocation: description: A url pointing towards the static file the asset represents. + nullable: true type: string id: + nullable: true type: string required: - fileExtension @@ -3378,12 +3401,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array metadata: @@ -3454,12 +3479,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array type: object @@ -3657,12 +3684,14 @@ components: items: format: int64 type: integer + nullable: true type: array categoryIds: description: The categories to target items: format: int32 type: integer + nullable: true type: array retailerId: description: ID of the retailer associated with this audience @@ -3740,92 +3769,6 @@ components: required: - size type: object - JsonApiSingleResponseOfCatalogStatus: - description: A JSON:API wrapper class to add one JSON:API within a data property - example: - data: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown - id: id - type: type - warnings: - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus' - errors: - items: - $ref: '#/components/schemas/CommonError' - type: array - x-nullable: false - warnings: - items: - $ref: '#/components/schemas/CommonWarning' - type: array - x-nullable: false - required: - - data - type: object - x-nullable: false - ExternalRetailerPages202110: - description: Wraps a list of valid pages for a retailer - example: - pageTypes: - - pageTypes - - pageTypes - properties: - pageTypes: - description: List of valid pages for a retailer - items: - type: string - x-nullable: false - type: array - x-nullable: false - type: object - x-nullable: false Creative202110ListResponse: description: Data model for a list of response resources example: @@ -4023,6 +3966,76 @@ components: x-nullable: false type: object x-nullable: false + JsonApiSingleResponseOfCatalogStatus: + description: A JSON:API wrapper class to add one JSON:API within a data property + example: + data: + attributes: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + id: id + type: type + warnings: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus' + errors: + items: + $ref: '#/components/schemas/CommonError' + type: array + x-nullable: false + warnings: + items: + $ref: '#/components/schemas/CommonWarning' + type: array + x-nullable: false + required: + - data + type: object + x-nullable: false Category202204ListResponse: description: Data model for a list of response resources example: @@ -4601,20 +4614,20 @@ components: x-nullable: false type: object x-nullable: false - JsonApiRequestOfCatalogRequest: - description: "A JSON:API wrapper class to format a with Type, and Attributes properties" + ExternalRetailerPages202110: + description: Wraps a list of valid pages for a retailer example: - data: - attributes: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - type: type + pageTypes: + - pageTypes + - pageTypes properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest' + pageTypes: + description: List of valid pages for a retailer + items: + type: string + x-nullable: false + type: array + x-nullable: false type: object x-nullable: false CreativeCreateModel202207: @@ -4759,33 +4772,20 @@ components: - templateVariableValues type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + JsonApiRequestOfCatalogRequest: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + \ /> with Type, and Attributes properties" example: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown - id: id - type: type + data: + attributes: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + type: type properties: - id: - format: long-id - type: string - x-nullable: false - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogStatus' - required: - - id - - type + data: + $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest' type: object x-nullable: false ResourceOfCreative202110: @@ -4805,9 +4805,11 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/Creative202110' @@ -4829,10 +4831,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. @@ -4932,10 +4936,41 @@ components: $ref: '#/components/schemas/Creative202207' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true + type: string + type: object + x-nullable: false + JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + example: + attributes: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + id: id + type: type + properties: + id: + format: long-id type: string + x-nullable: false + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalCatalogStatus' + required: + - id + - type type: object x-nullable: false ResourceOfCategory202204: @@ -4952,9 +4987,11 @@ components: $ref: '#/components/schemas/Category202204' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -5081,32 +5118,14 @@ components: $ref: '#/components/schemas/Template' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest: - description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" - example: - attributes: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - type: type - properties: - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogRequest' - required: - - type - type: object - x-nullable: false TemplateVariableValue: description: A value for a variable in a creative template. example: @@ -5144,72 +5163,24 @@ components: - id type: object x-nullable: false - ExternalCatalogStatus: - description: The status of an asynchronous request to generate a catalog + JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest: + description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" example: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown + attributes: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + type: type properties: - status: - description: An enumeration of the status of the catalog. - enum: - - unknown - - pending - - success - - failure - - expired - type: string - x-nullable: false - currency: - description: An ISO4217 representation of the currency products are listed - under in this catalog. - type: string - x-nullable: false - rowCount: - description: "An indication of the number of products contained in this\ - \ catalog. Available when\r\nthis catalog reaches a success status." - format: int32 - nullable: true - type: integer - x-nullable: true - fileSizeBytes: - description: The size of this catalog in bytes. Available when this catalog - reaches a success status. - format: int32 - nullable: true - type: integer - x-nullable: true - md5Checksum: - description: "An MD5 checksum of the catalog for use in confirming complete\ - \ and uncorrupted retrieval.\r\nAvailable when this catalog reaches a\ - \ success status." - nullable: true - type: string - x-nullable: true - createdAt: - description: The time this catalog was created. Represented as a UTC ISO8601 - string. - format: date-time + type: type: string x-nullable: false - message: - description: An optional information message intended for developer consumption. - nullable: true - type: string - x-nullable: true + attributes: + $ref: '#/components/schemas/ExternalCatalogRequest' required: - - createdAt - - currency - - fileSizeBytes - - md5Checksum - - message - - rowCount - - status + - type type: object x-nullable: false Creative202110: @@ -5384,6 +5355,74 @@ components: - templateVariableValues type: object x-nullable: false + ExternalCatalogStatus: + description: The status of an asynchronous request to generate a catalog + example: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + properties: + status: + description: An enumeration of the status of the catalog. + enum: + - unknown + - pending + - success + - failure + - expired + type: string + x-nullable: false + currency: + description: An ISO4217 representation of the currency products are listed + under in this catalog. + type: string + x-nullable: false + rowCount: + description: "An indication of the number of products contained in this\ + \ catalog. Available when\r\nthis catalog reaches a success status." + format: int32 + nullable: true + type: integer + x-nullable: true + fileSizeBytes: + description: The size of this catalog in bytes. Available when this catalog + reaches a success status. + format: int32 + nullable: true + type: integer + x-nullable: true + md5Checksum: + description: "An MD5 checksum of the catalog for use in confirming complete\ + \ and uncorrupted retrieval.\r\nAvailable when this catalog reaches a\ + \ success status." + nullable: true + type: string + x-nullable: true + createdAt: + description: The time this catalog was created. Represented as a UTC ISO8601 + string. + format: date-time + type: string + x-nullable: false + message: + description: An optional information message intended for developer consumption. + nullable: true + type: string + x-nullable: true + required: + - createdAt + - currency + - fileSizeBytes + - md5Checksum + - message + - rowCount + - status + type: object + x-nullable: false Template: description: A template for creating creatives. example: @@ -5583,29 +5622,6 @@ components: - updatedAt type: object x-nullable: false - ExternalCatalogRequest: - description: A request for a catalog under the specified format. Currently "json-newline" - is supported. - example: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - properties: - format: - default: json-newline - enum: - - json-newline - type: string - x-nullable: false - brandIdFilter: - items: - format: long-id - type: string - type: array - x-nullable: false - type: object - x-nullable: false TextVariableValue: description: A value of a template text variable example: @@ -5685,6 +5701,29 @@ components: - url type: object x-nullable: false + ExternalCatalogRequest: + description: A request for a catalog under the specified format. Currently "json-newline" + is supported. + example: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + properties: + format: + default: json-newline + enum: + - json-newline + type: string + x-nullable: false + brandIdFilter: + items: + format: long-id + type: string + type: array + x-nullable: false + type: object + x-nullable: false Section: description: Section object that hold template variables example: @@ -5956,6 +5995,7 @@ components: description: The errors items: $ref: '#/components/schemas/Error' + nullable: true type: array type: object EnvelopeReportRequest: @@ -6019,6 +6059,7 @@ components: detail: description: (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. + nullable: true type: string instance: description: (REQUIRED) A URI reference that identifies the specific occurrence @@ -6035,10 +6076,12 @@ components: \ by the implementation technology e.g. .Net, Scala, etc" items: type: string + nullable: true type: array title: description: "(RECOMMENDED) A short, human-readable summary of the problem\ \ type." + nullable: true type: string traceId: description: (REQUIRED) The Correlation ID provided by the Gateway. It is @@ -6103,24 +6146,30 @@ components: createdAt: description: Timestamp when the report started to execute format: date-time + nullable: true type: string expiresAt: description: Timestamp when the cached report will expire format: date-time + nullable: true type: string fileSizeBytes: description: "Total size of file, only populated on success" format: int64 + nullable: true type: integer md5Checksum: description: "The MD5 checksum of the content, only populated on success" + nullable: true type: string message: description: "Failure message, only populated on failure" + nullable: true type: string rowCount: description: "Rows of data in report, only populated on success" format: int64 + nullable: true type: integer status: description: "One of \"pending\", \"success\", \"failure\", or \"expired\"" @@ -6162,6 +6211,7 @@ components: - 7D - 14D - 30D + nullable: true type: string endDate: description: "YYYY-MM-DD, must not be before startDate and not more than\ @@ -6177,16 +6227,19 @@ components: - json - json-compact - json-newline + nullable: true type: string id: description: "The id of the campaign or line item. Either 'id' or 'ids'\ \ must be specified, but not both" + nullable: true type: string ids: description: "The ids of the campaigns or line items. Either 'id' or 'ids'\ \ must be specified, but not both" items: type: string + nullable: true type: array reportType: description: "One of \"summary\", \"keyword\", \"pageType\", \"productCategory\"\ @@ -6200,12 +6253,14 @@ components: - attributedTransactions type: string revenueType: + nullable: true type: string startDate: description: YYYY-MM-DD format: date type: string timeZone: + nullable: true type: string viewAttributionWindow: description: "Defaults to value from campaign or one of \"none\", \"1D\"\ @@ -6217,41 +6272,55 @@ components: - 7D - 14D - 30D + nullable: true type: string required: - endDate - reportType - startDate type: object - JsonApiSingleResponseOfCampaign: - description: A JSON:API wrapper class to add one JSON:API within a data property + Balance202110PagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId + - attributes: createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: none + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + name: name + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 + startDate: 2000-01-23 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 id: id type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6261,6 +6330,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6271,6 +6341,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6280,6 +6351,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6289,20 +6361,130 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign' + items: + $ref: '#/components/schemas/ResourceOfBalance202110' + type: array + x-nullable: false + warnings: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false errors: items: - $ref: '#/components/schemas/CommonError' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + type: object + x-nullable: false + CommonLineItemPagedListResponse: + description: Data model for a paged list of response resources + example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 + data: + - attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + metadata: + $ref: '#/components/schemas/PageMetadata' + data: + items: + $ref: '#/components/schemas/ResourceOfCommonLineItem' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/CommonWarning' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - required: - - data type: object x-nullable: false JsonApiPageResponseOfCampaign: @@ -6421,60 +6603,35 @@ components: - data type: object x-nullable: false - AuctionLineItemPagedListResponse: - description: Data model for a paged list of response resources + JsonApiSingleResponseOfCampaign: + description: A JSON:API wrapper class to add one JSON:API within a data property example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 - createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 - name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 - startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 + attributes: + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: none name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 - startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 id: id type: type warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6484,7 +6641,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6495,7 +6651,6 @@ components: title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6505,7 +6660,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6515,25 +6669,20 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign' + errors: items: - $ref: '#/components/schemas/ResourceOfAuctionLineItem' + $ref: '#/components/schemas/CommonError' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonWarning' type: array x-nullable: false + required: + - data type: object x-nullable: false AuctionLineItemResponse: @@ -6619,24 +6768,13 @@ components: x-nullable: false type: object x-nullable: false - CommonLineItemResponse: - description: Data model for response resource + KeywordTarget202110Response: + description: Data model for a value type resource outcome example: data: attributes: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id + keywords: + key: unknown type: type warnings: - traceId: traceId @@ -6682,7 +6820,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ResourceOfCommonLineItem' + $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -6697,7 +6835,7 @@ components: x-nullable: false type: object x-nullable: false - CommonLineItemPagedListResponse: + BalanceCampaign202110PagedListResponse: description: Data model for a paged list of response resources example: metadata: @@ -6708,34 +6846,10 @@ components: totalItemsAcrossAllPages: 0 currentPageIndex: 1 data: - - attributes: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 + - attributes: "{}" id: id type: type - - attributes: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 + - attributes: "{}" id: id type: type warnings: @@ -6785,7 +6899,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/ResourceOfCommonLineItem' + $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' type: array x-nullable: false warnings: @@ -6802,13 +6916,56 @@ components: x-nullable: false type: object x-nullable: false - KeywordTarget202110Response: - description: Data model for a value type resource outcome + AuctionLineItemPagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - keywords: - key: unknown + - attributes: + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -6853,8 +7010,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' + items: + $ref: '#/components/schemas/ResourceOfAuctionLineItem' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -6869,15 +7031,74 @@ components: x-nullable: false type: object x-nullable: false - StoreTarget202110Response: - description: Data model for a value type resource outcome + PreferredLineItem202110PagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + - attributes: + budgetRemaining: 5.962133916683182 + endDate: 2000-01-23 + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId + createdAt: 2000-01-23T04:56:07.000+00:00 + pacing: unknown + budgetSpent: 1.4658129805029452 + name: name + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + status: unknown + budget: 6.027456183070403 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + budgetRemaining: 5.962133916683182 + endDate: 2000-01-23 + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId + createdAt: 2000-01-23T04:56:07.000+00:00 + pacing: unknown + budgetSpent: 1.4658129805029452 + name: name + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + status: unknown + budget: 6.027456183070403 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -6922,8 +7143,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + items: + $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -6938,18 +7164,38 @@ components: x-nullable: false type: object x-nullable: false - AddToBasketTarget202110Response: - description: Data model for a value type resource outcome + PreferredLineItem202110Response: + description: Data model for response resource example: data: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + budgetRemaining: 5.962133916683182 + endDate: 2000-01-23 + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId + createdAt: 2000-01-23T04:56:07.000+00:00 + pacing: unknown + budgetSpent: 1.4658129805029452 + name: name + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + status: unknown + budget: 6.027456183070403 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -6995,7 +7241,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7010,105 +7256,22 @@ components: x-nullable: false type: object x-nullable: false - AudienceTarget202110Response: - description: Data model for a value type resource outcome + CommonLineItemResponse: + description: Data model for response resource example: data: attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - type: object - x-nullable: false - PreferredLineItem202110Response: - description: Data model for response resource - example: - data: - attributes: - budgetRemaining: 5.962133916683182 + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 endDate: 2000-01-23 campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId - createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 + budgetSpent: 6.027456183070403 name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId targetRetailerId: targetRetailerId + type: unknown startDate: 2000-01-23 status: unknown - budget: 6.027456183070403 + budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -7156,7 +7319,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + $ref: '#/components/schemas/ResourceOfCommonLineItem' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7254,74 +7417,18 @@ components: x-nullable: false type: object x-nullable: false - PreferredLineItem202110PagedListResponse: - description: Data model for a paged list of response resources + AddToBasketTarget202110Response: + description: Data model for a value type resource outcome example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - budgetRemaining: 5.962133916683182 - endDate: 2000-01-23 - campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId - createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 - name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - status: unknown - budget: 6.027456183070403 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - budgetRemaining: 5.962133916683182 - endDate: 2000-01-23 - campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId - createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 - name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - status: unknown - budget: 6.027456183070403 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id + attributes: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type warnings: - traceId: traceId @@ -7366,13 +7473,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7387,44 +7489,15 @@ components: x-nullable: false type: object x-nullable: false - Balance202110PagedListResponse: - description: Data model for a paged list of response resources + AudienceTarget202110Response: + description: Data model for a value type resource outcome example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id + attributes: + scope: unknown + audienceIds: + - audienceIds + - audienceIds type: type warnings: - traceId: traceId @@ -7469,13 +7542,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfBalance202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7490,22 +7558,15 @@ components: x-nullable: false type: object x-nullable: false - BalanceCampaign202110PagedListResponse: - description: Data model for a paged list of response resources + StoreTarget202110Response: + description: Data model for a value type resource outcome example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" - id: id + attributes: + scope: unknown + storeIds: + - storeIds + - storeIds type: type warnings: - traceId: traceId @@ -7550,13 +7611,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7593,23 +7649,59 @@ components: $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign' type: object x-nullable: false - ExternalPutCampaign: - description: An object that represents the available options to set when editing - a Retail Media Campaign + AuctionLineItemUpdateModelRequest: + description: Data model for an input resource example: data: attributes: - clickAttributionWindow: 7D - clickAttributionScope: unknown - viewAttributionScope: unknown + bidStrategy: conversion + endDate: 2000-01-23 + maxBid: 1.4658129805029452 name: name - viewAttributionWindow: none + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + startDate: 2000-01-23 + targetBid: 6.027456183070403 + monthlyPacing: 5.962133916683182 + status: unknown budget: 0.8008281904610115 id: id type: type properties: data: - $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign' + $ref: '#/components/schemas/ResourceOfAuctionLineItemUpdateModel' + type: object + x-nullable: false + KeywordTarget202110Request: + description: Data model for a value type input resource + example: + data: + attributes: + keywords: + key: unknown + type: type + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' + type: object + x-nullable: false + BalanceCampaign202110ListRequest: + description: "A class implementing the request of the Criteo API as described\ + \ in API Guild Guidelines with a collection of entities as body\r\nhttps://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines" + example: + data: + - attributes: "{}" + id: id + type: type + - attributes: "{}" + id: id + type: type + properties: + data: + items: + $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' + type: array + x-nullable: false type: object x-nullable: false AuctionLineItemCreateModelRequest: @@ -7635,69 +7727,107 @@ components: $ref: '#/components/schemas/InputResourceOfAuctionLineItemCreateModel' type: object x-nullable: false - AuctionLineItemUpdateModelRequest: - description: Data model for an input resource + PreferredLineItemCreateModel202110Request: + description: Data model for a create input resource example: data: attributes: - bidStrategy: conversion + pacing: unknown endDate: 2000-01-23 - maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId startDate: 2000-01-23 - targetBid: 6.027456183070403 - monthlyPacing: 5.962133916683182 + creativeId: creativeId status: unknown budget: 0.8008281904610115 - id: id type: type properties: data: - $ref: '#/components/schemas/ResourceOfAuctionLineItemUpdateModel' + $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModel202110' type: object x-nullable: false - KeywordTarget202110Request: - description: Data model for a value type input resource + ExternalPutCampaign: + description: An object that represents the available options to set when editing + a Retail Media Campaign example: data: attributes: - keywords: - key: unknown + clickAttributionWindow: 7D + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: none + budget: 0.8008281904610115 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' + $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign' type: object x-nullable: false - StoreTarget202110Request: - description: Data model for a value type input resource + PromotedProduct202110ListRequest: + description: Data model for a list of input resources example: data: - attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + - attributes: + bidOverride: 0.8008281904610115 + id: id + type: type + - attributes: + bidOverride: 0.8008281904610115 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + items: + $ref: '#/components/schemas/ResourceOfPromotedProduct202110' + type: array + x-nullable: false type: object x-nullable: false - StoreIdsUpdateModel202110Request: - description: Data model for a value type input resource + PreferredLineItemUpdateModel202110Request: + description: Data model for an input resource example: data: attributes: - storeIds: - - storeIds - - storeIds + pacing: accelerated + endDate: 2000-01-23 + name: name + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown + budget: 0.8008281904610115 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' + $ref: '#/components/schemas/ResourceOfPreferredLineItemUpdateModel202110' type: object x-nullable: false AddToBasketTarget202110Request: @@ -7764,107 +7894,94 @@ components: $ref: '#/components/schemas/ValueTypeResourceOfAudienceIdsUpdateModel202110' type: object x-nullable: false - PromotedProduct202110ListRequest: - description: Data model for a list of input resources + StoreTarget202110Request: + description: Data model for a value type input resource example: data: - - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - - attributes: - bidOverride: 0.8008281904610115 - id: id + attributes: + scope: unknown + storeIds: + - storeIds + - storeIds type: type properties: data: - items: - $ref: '#/components/schemas/ResourceOfPromotedProduct202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' type: object x-nullable: false - PreferredLineItemUpdateModel202110Request: - description: Data model for an input resource + StoreIdsUpdateModel202110Request: + description: Data model for a value type input resource example: data: attributes: - pacing: accelerated - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - id: id + storeIds: + - storeIds + - storeIds type: type properties: data: - $ref: '#/components/schemas/ResourceOfPreferredLineItemUpdateModel202110' + $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' type: object x-nullable: false - PreferredLineItemCreateModel202110Request: - description: Data model for a create input resource + ResourceOfBalance202110: + description: A class that represents an entity in a guild compliant way example: - data: - attributes: - pacing: unknown - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - type: type + attributes: + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + name: name + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type properties: - data: - $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModel202110' + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + attributes: + $ref: '#/components/schemas/ExternalBalance202110' type: object x-nullable: false - BalanceCampaign202110ListRequest: - description: "A class implementing the request of the Criteo API as described\ - \ in API Guild Guidelines with a collection of entities as body\r\nhttps://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines" + ResourceOfCommonLineItem: + description: Data model for a Resource example: - data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" - id: id - type: type + attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type properties: - data: - items: - $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' - type: array - x-nullable: false + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + attributes: + $ref: '#/components/schemas/ExternalCommonLineItem' type: object x-nullable: false JsonApiBodyWithIdOfInt64AndCampaignAndCampaign: @@ -7934,43 +8051,16 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalAuctionLineItem' type: object x-nullable: false - ResourceOfCommonLineItem: - description: Data model for a Resource - example: - attributes: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - properties: - id: - description: Id of the entity - type: string - type: - description: Canonical type name of the entity - type: string - attributes: - $ref: '#/components/schemas/ExternalCommonLineItem' - type: object - x-nullable: false ValueTypeResourceOfKeywordTarget202110: description: Data model for a value type resource example: @@ -7986,58 +8076,25 @@ components: $ref: '#/components/schemas/ExternalKeywordTarget202110' type: object x-nullable: false - ValueTypeResourceOfStoreTarget202110: - description: Data model for a value type resource + ResourceOfBalanceCampaign202110: + description: A class that represents an entity in a guild compliant way example: - attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + attributes: "{}" + id: id type: type properties: - type: + id: + description: Id of the entity + nullable: true type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalStoreTarget202110' - type: object - x-nullable: false - ValueTypeResourceOfAddToBasketTarget202110: - description: Data model for a value type resource - example: - attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown - type: type - properties: type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAddToBasketTarget202110' - type: object - x-nullable: false - ValueTypeResourceOfAudienceTarget202110: - description: Data model for a value type resource - example: - attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds - type: type - properties: - type: - type: string + description: Campaigns related to the balance + type: object x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalAudienceTarget202110' type: object x-nullable: false ResourceOfPreferredLineItem202110: @@ -8075,9 +8132,11 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalPreferredLineItem202110' @@ -8093,59 +8152,68 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalPromotedProduct202110' type: object x-nullable: false - ResourceOfBalance202110: - description: A class that represents an entity in a guild compliant way + ValueTypeResourceOfAddToBasketTarget202110: + description: Data model for a value type resource example: attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type properties: - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalBalance202110' + $ref: '#/components/schemas/ExternalAddToBasketTarget202110' type: object x-nullable: false - ResourceOfBalanceCampaign202110: - description: A class that represents an entity in a guild compliant way + ValueTypeResourceOfAudienceTarget202110: + description: Data model for a value type resource example: - attributes: "{}" - id: id + attributes: + scope: unknown + audienceIds: + - audienceIds + - audienceIds type: type properties: - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - description: Campaigns related to the balance - type: object + $ref: '#/components/schemas/ExternalAudienceTarget202110' + type: object + x-nullable: false + ValueTypeResourceOfStoreTarget202110: + description: Data model for a value type resource + example: + attributes: + scope: unknown + storeIds: + - storeIds + - storeIds + type: type + properties: + type: + type: string x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalStoreTarget202110' type: object x-nullable: false JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign: @@ -8174,32 +8242,34 @@ components: - type type: object x-nullable: false - JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign: - description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + ResourceOfAuctionLineItemUpdateModel: + description: Data model for a Resource example: attributes: - clickAttributionWindow: 7D - clickAttributionScope: unknown - viewAttributionScope: unknown + bidStrategy: conversion + endDate: 2000-01-23 + maxBid: 1.4658129805029452 name: name - viewAttributionWindow: none + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + startDate: 2000-01-23 + targetBid: 6.027456183070403 + monthlyPacing: 5.962133916683182 + status: unknown budget: 0.8008281904610115 id: id type: type properties: id: - format: long-id + description: Id of the entity + nullable: true type: string - x-nullable: false type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalEditableCampaignAttributes' - required: - - id - - type + $ref: '#/components/schemas/ExternalAuctionLineItemUpdateModel' type: object x-nullable: false InputResourceOfAuctionLineItemCreateModel: @@ -8227,48 +8297,105 @@ components: $ref: '#/components/schemas/ExternalAuctionLineItemCreateModel' type: object x-nullable: false - ResourceOfAuctionLineItemUpdateModel: + InputResourceOfPreferredLineItemCreateModel202110: description: Data model for a Resource example: attributes: - bidStrategy: conversion + pacing: unknown endDate: 2000-01-23 - maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId startDate: 2000-01-23 - targetBid: 6.027456183070403 - monthlyPacing: 5.962133916683182 + creativeId: creativeId status: unknown budget: 0.8008281904610115 + type: type + properties: + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalPreferredLineItemCreateModel202110' + type: object + x-nullable: false + JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + example: + attributes: + clickAttributionWindow: 7D + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: none + budget: 0.8008281904610115 id: id type: type properties: id: - description: Id of the entity + format: long-id type: string + x-nullable: false type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAuctionLineItemUpdateModel' + $ref: '#/components/schemas/ExternalEditableCampaignAttributes' + required: + - id + - type type: object x-nullable: false - ValueTypeResourceOfStoreIdsUpdateModel202110: - description: Data model for a value type resource + ResourceOfPreferredLineItemUpdateModel202110: + description: Data model for a Resource example: attributes: - storeIds: - - storeIds - - storeIds + pacing: accelerated + endDate: 2000-01-23 + name: name + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown + budget: 0.8008281904610115 + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' + $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModel202110' type: object x-nullable: false ValueTypeResourceOfAddToBasketIdsUpdateModel202110: @@ -8306,75 +8433,208 @@ components: $ref: '#/components/schemas/ExternalAudienceIdsUpdateModel202110' type: object x-nullable: false - ResourceOfPreferredLineItemUpdateModel202110: - description: Data model for a Resource + ValueTypeResourceOfStoreIdsUpdateModel202110: + description: Data model for a value type resource example: attributes: - pacing: accelerated - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - id: id + storeIds: + - storeIds + - storeIds type: type properties: - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModel202110' + $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' type: object x-nullable: false - InputResourceOfPreferredLineItemCreateModel202110: - description: Data model for a Resource + ExternalBalance202110: + description: A Retail Media Balance used to determine the funds available for + any or all campaigns in an account example: - attributes: - pacing: unknown - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - type: type + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + name: name + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + name: + type: string + x-nullable: false + poNumber: + type: string + x-nullable: false + memo: + type: string + x-nullable: false + deposited: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + spent: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + remaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" + type: string + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + type: string + status: + enum: + - unknown + - scheduled + - active + - ended + type: string + x-nullable: false + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + required: + - createdAt + - deposited + - endDate + - memo + - name + - poNumber + - remaining + - spent + - startDate + - status + - updatedAt + type: object + x-nullable: false + ExternalCommonLineItem: + description: A common line item to hold line item information shared between + preferred and auction line items + example: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: + name: + maxLength: 255 + minLength: 0 + type: string + x-nullable: false type: + enum: + - unknown + - auction + - preferred type: string x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalPreferredLineItemCreateModel202110' + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" + type: string + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + nullable: true + type: string + status: + enum: + - unknown + - active + - scheduled + - draft + - paused + - budgetHit + - ended + - archived + - noFunds + type: string + x-nullable: false + targetRetailerId: + format: long-id + type: string + x-nullable: false + budget: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + campaignId: + format: long-id + type: string + x-nullable: false + budgetSpent: + format: double + type: number + x-nullable: false + budgetRemaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + required: + - budgetRemaining + - campaignId + - createdAt + - name + - startDate + - targetRetailerId + - type + - updatedAt type: object x-nullable: false ExternalCampaign: @@ -8552,6 +8812,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string maxBid: format: decimal @@ -8651,105 +8912,6 @@ components: - updatedAt type: object x-nullable: false - ExternalCommonLineItem: - description: A common line item to hold line item information shared between - preferred and auction line items - example: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - properties: - name: - maxLength: 255 - minLength: 0 - type: string - x-nullable: false - type: - enum: - - unknown - - auction - - preferred - type: string - x-nullable: false - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - status: - enum: - - unknown - - active - - scheduled - - draft - - paused - - budgetHit - - ended - - archived - - noFunds - type: string - x-nullable: false - targetRetailerId: - format: long-id - type: string - x-nullable: false - budget: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - campaignId: - format: long-id - type: string - x-nullable: false - budgetSpent: - format: double - type: number - x-nullable: false - budgetRemaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false - required: - - budgetRemaining - - campaignId - - createdAt - - name - - startDate - - targetRetailerId - - type - - updatedAt - type: object - x-nullable: false ExternalKeywordTarget202110: description: Identifies keyword targeting for a line item example: @@ -8760,108 +8922,19 @@ components: additionalProperties: enum: - unknown - - negativeExact - - negativeBroad - type: string - x-nullable: false - description: Keywords that targeting specifications exist for - type: object - x-nullable: false - required: - - keywords - type: object - x-nullable: false - ExternalStoreTarget202110: - description: Identifies store targeting for a line item - example: - scope: unknown - storeIds: - - storeIds - - storeIds - properties: - scope: - description: Scope of the store target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - storeIds: - description: Store ids that should be targeted - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - scope - - storeIds - type: object - x-nullable: false - ExternalAddToBasketTarget202110: - description: Identifies add to basket targeting for a line item - example: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown - properties: - scope: - description: Scope of the add to basket target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - productIds: - description: Product ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - categoryIds: - description: Category ids that add to basket should target - items: + - negativeExact + - negativeBroad type: string x-nullable: false - type: array + description: Keywords that targeting specifications exist for + type: object x-nullable: false required: - - scope + - keywords type: object x-nullable: false - ExternalAudienceTarget202110: - description: Identifies audience targeting for a line item - example: - scope: unknown - audienceIds: - - audienceIds - - audienceIds - properties: - scope: - description: Scope of the audience target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - audienceIds: - description: Audience ids that should be targeted - items: - format: long-id - type: string - type: array - x-nullable: false - required: - - audienceIds - - scope + ExternalBalanceCampaign202110: + description: Campaigns related to the balance type: object x-nullable: false ExternalPreferredLineItem202110: @@ -8999,96 +9072,97 @@ components: x-nullable: true type: object x-nullable: false - ExternalBalance202110: - description: A Retail Media Balance used to determine the funds available for - any or all campaigns in an account + ExternalAddToBasketTarget202110: + description: Identifies add to basket targeting for a line item example: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown properties: - name: + scope: + description: Scope of the add to basket target + enum: + - unknown + - include + - exclude type: string x-nullable: false - poNumber: - type: string + productIds: + description: Product ids that add to basket should target + items: + type: string + x-nullable: false + type: array x-nullable: false - memo: - type: string + categoryIds: + description: Category ids that add to basket should target + items: + type: string + x-nullable: false + type: array x-nullable: false - deposited: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - spent: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - remaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - status: + required: + - scope + type: object + x-nullable: false + ExternalAudienceTarget202110: + description: Identifies audience targeting for a line item + example: + scope: unknown + audienceIds: + - audienceIds + - audienceIds + properties: + scope: + description: Scope of the audience target enum: - unknown - - scheduled - - active - - ended - type: string - x-nullable: false - createdAt: - format: date-time + - include + - exclude type: string x-nullable: false - updatedAt: - format: date-time - type: string + audienceIds: + description: Audience ids that should be targeted + items: + format: long-id + type: string + type: array x-nullable: false required: - - createdAt - - deposited - - endDate - - memo - - name - - poNumber - - remaining - - spent - - startDate - - status - - updatedAt + - audienceIds + - scope type: object x-nullable: false - ExternalBalanceCampaign202110: - description: Campaigns related to the balance + ExternalStoreTarget202110: + description: Identifies store targeting for a line item + example: + scope: unknown + storeIds: + - storeIds + - storeIds + properties: + scope: + description: Scope of the store target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + storeIds: + description: Store ids that should be targeted + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - scope + - storeIds type: object x-nullable: false ExternalCampaignAttributes: @@ -9173,81 +9247,15 @@ components: required: - name type: object - x-nullable: false - ExternalEditableCampaignAttributes: - description: An object that represents the available options to set when editing - a Retail Media Campaign - example: - clickAttributionWindow: 7D - clickAttributionScope: unknown - viewAttributionScope: unknown - name: name - viewAttributionWindow: none - budget: 0.8008281904610115 - properties: - name: - maxLength: 255 - minLength: 0 - type: string - x-nullable: false - budget: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - clickAttributionWindow: - enum: - - 7D - - 14D - - 30D - - unknown - type: string - x-nullable: false - viewAttributionWindow: - enum: - - none - - 1D - - 7D - - 14D - - 30D - - unknown - type: string - x-nullable: false - clickAttributionScope: - enum: - - unknown - - sameSku - - sameSkuCategory - - sameSkuCategoryBrand - nullable: true - type: string - x-nullable: true - viewAttributionScope: - enum: - - unknown - - sameSku - - sameSkuCategory - - sameSkuCategoryBrand - nullable: true - type: string - x-nullable: true - required: - - clickAttributionWindow - - name - - viewAttributionWindow - type: object - x-nullable: false - ExternalAuctionLineItemCreateModel: - description: Model to create a retail media auction line item + x-nullable: false + ExternalAuctionLineItemUpdateModel: + description: Model to update a retail media auction line item example: bidStrategy: conversion endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId + isAutoDailyPacing: true dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 @@ -9271,6 +9279,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -9285,10 +9294,6 @@ components: - noFunds type: string x-nullable: false - targetRetailerId: - format: long-id - type: string - x-nullable: false budget: format: decimal nullable: true @@ -9325,7 +9330,6 @@ components: type: number x-nullable: true isAutoDailyPacing: - default: false type: boolean x-nullable: false bidStrategy: @@ -9338,19 +9342,22 @@ components: type: string x-nullable: false required: + - isAutoDailyPacing - name - startDate - - targetRetailerId + - status + - targetBid type: object x-nullable: false - ExternalAuctionLineItemUpdateModel: - description: Model to update a retail media auction line item + ExternalAuctionLineItemCreateModel: + description: Model to create a retail media auction line item example: bidStrategy: conversion endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true + isAutoDailyPacing: false + targetRetailerId: targetRetailerId dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 @@ -9374,6 +9381,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -9388,6 +9396,10 @@ components: - noFunds type: string x-nullable: false + targetRetailerId: + format: long-id + type: string + x-nullable: false budget: format: decimal nullable: true @@ -9424,6 +9436,7 @@ components: type: number x-nullable: true isAutoDailyPacing: + default: false type: boolean x-nullable: false bidStrategy: @@ -9436,79 +9449,15 @@ components: type: string x-nullable: false required: - - isAutoDailyPacing - name - startDate - - status - - targetBid - type: object - x-nullable: false - ExternalStoreIdsUpdateModel202110: - description: Update model for updating store target ids - example: - storeIds: - - storeIds - - storeIds - properties: - storeIds: - description: Store ids that should be targeted - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - storeIds - type: object - x-nullable: false - ExternalAddToBasketIdsUpdateModel202110: - description: Update model for updating add to basket target ids - example: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - properties: - productIds: - description: Product ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - categoryIds: - description: Category ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - type: object - x-nullable: false - ExternalAudienceIdsUpdateModel202110: - description: Update model for updating audience target ids - example: - audienceIds: - - audienceIds - - audienceIds - properties: - audienceIds: - description: Audience ids that should be targeted - items: - format: long-id - type: string - type: array - x-nullable: false - required: - - audienceIds + - targetRetailerId type: object x-nullable: false - ExternalPreferredLineItemUpdateModel202110: - description: Model used to update a preferred line item + ExternalPreferredLineItemCreateModel202110: + description: Model used to create a preferred line item example: - pacing: accelerated + pacing: unknown endDate: 2000-01-23 name: name capping: @@ -9524,6 +9473,7 @@ components: categoryId: categoryId - includeChildren: true categoryId: categoryId + targetRetailerId: targetRetailerId startDate: 2000-01-23 creativeId: creativeId status: unknown @@ -9562,7 +9512,6 @@ components: type: string x-nullable: false pacing: - default: accelerated enum: - unknown - standard @@ -9573,6 +9522,10 @@ components: $ref: '#/components/schemas/ExternalLineItemCapping202110' page: $ref: '#/components/schemas/ExternalLineItemPage202110' + targetRetailerId: + format: long-id + type: string + x-nullable: false budget: format: double type: number @@ -9583,16 +9536,84 @@ components: type: string x-nullable: true required: + - budget - endDate - name + - pacing + - page - startDate - - status + - targetRetailerId type: object x-nullable: false - ExternalPreferredLineItemCreateModel202110: - description: Model used to create a preferred line item + ExternalEditableCampaignAttributes: + description: An object that represents the available options to set when editing + a Retail Media Campaign example: - pacing: unknown + clickAttributionWindow: 7D + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: none + budget: 0.8008281904610115 + properties: + name: + maxLength: 255 + minLength: 0 + type: string + x-nullable: false + budget: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + clickAttributionWindow: + enum: + - 7D + - 14D + - 30D + - unknown + type: string + x-nullable: false + viewAttributionWindow: + enum: + - none + - 1D + - 7D + - 14D + - 30D + - unknown + type: string + x-nullable: false + clickAttributionScope: + enum: + - unknown + - sameSku + - sameSkuCategory + - sameSkuCategoryBrand + nullable: true + type: string + x-nullable: true + viewAttributionScope: + enum: + - unknown + - sameSku + - sameSkuCategory + - sameSkuCategoryBrand + nullable: true + type: string + x-nullable: true + required: + - clickAttributionWindow + - name + - viewAttributionWindow + type: object + x-nullable: false + ExternalPreferredLineItemUpdateModel202110: + description: Model used to update a preferred line item + example: + pacing: accelerated endDate: 2000-01-23 name: name capping: @@ -9608,7 +9629,6 @@ components: categoryId: categoryId - includeChildren: true categoryId: categoryId - targetRetailerId: targetRetailerId startDate: 2000-01-23 creativeId: creativeId status: unknown @@ -9647,6 +9667,7 @@ components: type: string x-nullable: false pacing: + default: accelerated enum: - unknown - standard @@ -9657,10 +9678,6 @@ components: $ref: '#/components/schemas/ExternalLineItemCapping202110' page: $ref: '#/components/schemas/ExternalLineItemPage202110' - targetRetailerId: - format: long-id - type: string - x-nullable: false budget: format: double type: number @@ -9671,13 +9688,72 @@ components: type: string x-nullable: true required: - - budget - endDate - name - - pacing - - page - startDate - - targetRetailerId + - status + type: object + x-nullable: false + ExternalAddToBasketIdsUpdateModel202110: + description: Update model for updating add to basket target ids + example: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + properties: + productIds: + description: Product ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + categoryIds: + description: Category ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + type: object + x-nullable: false + ExternalAudienceIdsUpdateModel202110: + description: Update model for updating audience target ids + example: + audienceIds: + - audienceIds + - audienceIds + properties: + audienceIds: + description: Audience ids that should be targeted + items: + format: long-id + type: string + type: array + x-nullable: false + required: + - audienceIds + type: object + x-nullable: false + ExternalStoreIdsUpdateModel202110: + description: Update model for updating store target ids + example: + storeIds: + - storeIds + - storeIds + properties: + storeIds: + description: Store ids that should be targeted + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - storeIds type: object x-nullable: false ExternalLineItemCapping202110: diff --git a/sdks/retailmedia_2022-07/build.gradle b/sdks/retailmedia_2022-07/build.gradle index c2ea9530..ab875a1d 100644 --- a/sdks/retailmedia_2022-07/build.gradle +++ b/sdks/retailmedia_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-retailmedia-sdk' - version '2022.07.0.230728' + version '2022.07.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_2022-07/pom.xml b/sdks/retailmedia_2022-07/pom.xml index 7b9b8bd2..35719332 100644 --- a/sdks/retailmedia_2022-07/pom.xml +++ b/sdks/retailmedia_2022-07/pom.xml @@ -5,7 +5,7 @@ criteo-api-retailmedia-sdk jar criteo-api-retailmedia-sdk - 2022.07.0.230728 + 2022.07.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API retailmedia for 2022_07 version diff --git a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/ApiClient.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/ApiClient.java index 61cb6076..f2270f8a 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/ApiClient.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ApplicationSummaryModel.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ApplicationSummaryModel.java index 0294361a..6ac8a685 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ApplicationSummaryModel.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ApplicationSummaryModelResource.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ApplicationSummaryModelResource.java index 731a9ba1..e9362df2 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ApplicationSummaryModelResource.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ApplicationSummaryModelResponse.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ApplicationSummaryModelResponse.java index 9348c525..236400f7 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ApplicationSummaryModelResponse.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/Asset.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/Asset.java index 6ceb92bc..12ee5136 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/Asset.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/Asset.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, asset.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(fileExtension, fileLocation, id, 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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/AssetResource.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/AssetResource.java index d4b6f40d..b1a880fa 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/AssetResource.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/AssetResource.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, assetResource.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/AssetResponse.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/AssetResponse.java index 824d5613..7ef9cf2e 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/AssetResponse.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/AssetResponse.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, assetResponse.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/BadRequest.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/BadRequest.java index be890f13..47d3e3ba 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/BadRequest.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/BadRequest.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 BadRequest errors(List errors) { public BadRequest addErrorsItem(Error errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, badRequest.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, 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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CommonProblem.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CommonProblem.java index 91320816..e4b3c533 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CommonProblem.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CreateRetailMediaAudienceAttributes.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CreateRetailMediaAudienceAttributes.java index 679945cb..fd068ea3 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CreateRetailMediaAudienceAttributes.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CreateRetailMediaAudienceAttributes.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; @@ -237,7 +238,7 @@ public CreateRetailMediaAudienceAttributes brandIds(List brandIds) { public CreateRetailMediaAudienceAttributes addBrandIdsItem(Long brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new ArrayList<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -267,7 +268,7 @@ public CreateRetailMediaAudienceAttributes categoryIds(List categoryIds public CreateRetailMediaAudienceAttributes addCategoryIdsItem(Integer categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -396,11 +397,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceAttributes.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(userType, lookbackWindow, brandIds, categoryIds, retailerId, name, 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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CreateRetailMediaAudienceResponse.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CreateRetailMediaAudienceResponse.java index fa16fddc..bde2a0d5 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CreateRetailMediaAudienceResponse.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/CreateRetailMediaAudienceResponse.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; @@ -186,11 +187,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceResponse.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/Error.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/Error.java index 4a134efb..85babba5 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/Error.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/Error.java @@ -25,6 +25,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -248,7 +249,7 @@ public Error stackTrace(List stackTrace) { public Error addStackTraceItem(String stackTraceItem) { if (this.stackTrace == null) { - this.stackTrace = new ArrayList<>(); + this.stackTrace = null; } this.stackTrace.add(stackTraceItem); return this; @@ -401,11 +402,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, error.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(code, detail, instance, source, stackTrace, title, traceId, 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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/GetPageOfAudiencesByAccountIdResponse.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/GetPageOfAudiencesByAccountIdResponse.java index ca1d065d..d257cbaf 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/GetPageOfAudiencesByAccountIdResponse.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/GetPageOfAudiencesByAccountIdResponse.java @@ -27,6 +27,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; @@ -207,11 +208,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, getPageOfAudiencesByAccountIdResponse.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, metadata, 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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ProblemDetails.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ProblemDetails.java index c9ac54b4..34d2fc9f 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ProblemDetails.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ProblemDetails.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; @@ -420,11 +421,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemDetails.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ReportRequestAttributes.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ReportRequestAttributes.java index a2da6f9f..6ad25a21 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ReportRequestAttributes.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ReportRequestAttributes.java @@ -24,6 +24,7 @@ import java.time.LocalDate; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -83,7 +84,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -142,7 +143,7 @@ public static FormatEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -278,7 +279,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -398,7 +399,7 @@ public ReportRequestAttributes ids(List ids) { public ReportRequestAttributes addIdsItem(String idsItem) { if (this.ids == null) { - this.ids = new ArrayList<>(); + this.ids = null; } this.ids.add(idsItem); return this; @@ -597,11 +598,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportRequestAttributes.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(clickAttributionWindow, endDate, format, id, ids, reportType, revenueType, startDate, timeZone, viewAttributionWindow, 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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ReportStatusAttributes.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ReportStatusAttributes.java index 276d21bb..042c2919 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ReportStatusAttributes.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ReportStatusAttributes.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; @@ -349,11 +350,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportStatusAttributes.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(createdAt, expiresAt, fileSizeBytes, md5Checksum, message, rowCount, status, 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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfAuctionLineItem.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfAuctionLineItem.java index 8d7c8219..39a29da9 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfAuctionLineItem.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfAuctionLineItem.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, resourceOfAuctionLineItem.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfAuctionLineItemUpdateModel.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfAuctionLineItemUpdateModel.java index 327af4a4..822b4003 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfAuctionLineItemUpdateModel.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfAuctionLineItemUpdateModel.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, resourceOfAuctionLineItemUpdateModel.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfBalance202110.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfBalance202110.java index e4d4b505..630a80ea 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfBalance202110.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfBalance202110.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, resourceOfBalance202110.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfBalanceCampaign202110.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfBalanceCampaign202110.java index 67d686e5..10584f90 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfBalanceCampaign202110.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfBalanceCampaign202110.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, resourceOfBalanceCampaign202110.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCategory202204.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCategory202204.java index 70a9d17a..83ad198a 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCategory202204.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCategory202204.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, resourceOfCategory202204.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCommonLineItem.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCommonLineItem.java index 13e8ddf2..4d57b8f1 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCommonLineItem.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCommonLineItem.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, resourceOfCommonLineItem.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCreative202110.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCreative202110.java index a0ec6f0d..b2a80a07 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCreative202110.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCreative202110.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, resourceOfCreative202110.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCreative202207.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCreative202207.java index bf3742ff..959b56ca 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCreative202207.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfCreative202207.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, resourceOfCreative202207.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPreferredLineItem202110.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPreferredLineItem202110.java index 6d5465fa..83ccfdfa 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPreferredLineItem202110.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPreferredLineItem202110.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, resourceOfPreferredLineItem202110.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPreferredLineItemUpdateModel202110.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPreferredLineItemUpdateModel202110.java index ffceb777..6e4f78c9 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPreferredLineItemUpdateModel202110.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPreferredLineItemUpdateModel202110.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, resourceOfPreferredLineItemUpdateModel202110.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPromotedProduct202110.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPromotedProduct202110.java index fceb87de..aed86dc2 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPromotedProduct202110.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfPromotedProduct202110.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, resourceOfPromotedProduct202110.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/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfTemplate.java b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfTemplate.java index bd895868..e6652bb1 100644 --- a/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfTemplate.java +++ b/sdks/retailmedia_2022-07/src/main/java/com/criteo/api/retailmedia/v2022_07/model/ResourceOfTemplate.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, resourceOfTemplate.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/retailmedia_2022-10/README.md b/sdks/retailmedia_2022-10/README.md index 9a258063..7803b90d 100644 --- a/sdks/retailmedia_2022-10/README.md +++ b/sdks/retailmedia_2022-10/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com Criteo API -- Package version: 2022.10.0.230728 +- Package version: 2022.10.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-retailmedia-sdk - 2022.10.0.230728 + 2022.10.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-retailmedia-sdk:2022.10.0.230728" +compile "com.criteo:criteo-api-retailmedia-sdk:2022.10.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-retailmedia-sdk-2022.10.0.230728.jar` +* `target/criteo-api-retailmedia-sdk-2022.10.0.230831.jar` * `target/lib/*.jar` ## Example diff --git a/sdks/retailmedia_2022-10/api/openapi.yaml b/sdks/retailmedia_2022-10/api/openapi.yaml index 09aea857..1a0cc6e9 100644 --- a/sdks/retailmedia_2022-10/api/openapi.yaml +++ b/sdks/retailmedia_2022-10/api/openapi.yaml @@ -74,11 +74,11 @@ paths: tags: - Campaign x-accepts: application/json - /2022-10/retail-media/accounts/{accountId}/retailers: + /2022-10/retail-media/accounts/{accountId}/brands: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId parameters: - description: The given account id explode: false @@ -127,16 +127,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' + $ref: '#/components/schemas/JsonApiPageResponseOfBrand' description: Success tags: - Campaign x-accepts: application/json - /2022-10/retail-media/accounts/{accountId}/brands: + /2022-10/retail-media/accounts/{accountId}/retailers: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId parameters: - description: The given account id explode: false @@ -185,7 +185,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfBrand' + $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' description: Success tags: - Campaign @@ -351,15 +351,38 @@ paths: - Audience x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/accounts/{accountId}/catalogs: + /2022-10/retail-media/accounts/{account-id}/creatives: + get: + description: Get account creatives + operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId + parameters: + - description: External account id to retrieve creatives for + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Creative202110ListResponse' + description: Creatives found + tags: + - Campaign + x-accepts: application/json post: - description: Create a request for a Catalog available to the indicated account. - operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId + description: Create a creative for an account + operationId: CreativesApi_PostApi202207ExternalAccountCreativesByAccountId parameters: - - description: The account to request the catalog for. + - description: External account id to create a creative for explode: false in: path - name: accountId + name: account-id required: true schema: type: string @@ -369,29 +392,39 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiRequestOfCatalogRequest' + $ref: '#/components/schemas/CreativeCreateModel202207' + description: The creative to create x-nullable: false - x-bodyName: request + x-bodyName: creative responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request successfully created + $ref: '#/components/schemas/Creative202207Response' + description: Creatives created tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/catalogs/{catalogId}/status: + /2022-10/retail-media/accounts/{account-id}/creatives/{creative-id}: get: - description: Check the status of a catalog request. - operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId + description: Get the specified creative + operationId: "CreativesApi_GetApi202207ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id to retrieve creatives for explode: false in: path - name: catalogId + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: Creative to get + explode: false + in: path + name: creative-id required: true schema: type: string @@ -402,76 +435,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request found. + $ref: '#/components/schemas/Creative202207Response' + description: Creatives found tags: - Campaign x-accepts: application/json - /2022-10/retail-media/catalogs/{catalogId}/output: - get: - description: "Output the indicated catalog. Catalogs are only available for\ - \ retrieval when their associated status request\r\nis at a Success status.\r\ - \nProduces application/x-json-stream of v2021_07 CatalogProduct json objects." - operationId: CatalogApi_GetApiV1ExternalCatalogOutputByCatalogId + put: + description: Update a creative + operationId: "CreativesApi_PutApi202207ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id containing the creative explode: false in: path - name: catalogId + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: Creative to update + explode: false + in: path + name: creative-id required: true schema: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreativeUpdateModel202207' + description: The creative to create + x-nullable: false + x-bodyName: creative responses: "200": content: - application/x-json-stream: {} - application/json: {} - description: Catalog download initiated. - "400": + application/json: + schema: + $ref: '#/components/schemas/Creative202207Response' + description: Success + "204": content: - application/x-json-stream: {} application/json: {} - description: "The indicated catalog is not available for retrieval, wait\ - \ for a success status." + description: Creative updated tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/retailers/{retailerId}/pages: - get: - description: Get the page types available for the given retailer - operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId + /2022-10/retail-media/accounts/{accountId}/catalogs: + post: + description: Create a request for a Catalog available to the indicated account. + operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId parameters: - - description: The retailers to fetch pages for + - description: The account to request the catalog for. explode: false in: path - name: retailerId + name: accountId required: true schema: - format: int32 - type: integer + type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiRequestOfCatalogRequest' + x-nullable: false + x-bodyName: request responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ExternalRetailerPages202110' - description: Pages fetched successfully + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request successfully created tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/accounts/{account-id}/creatives: + /2022-10/retail-media/catalogs/{catalogId}/output: get: - description: Get account creatives - operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId + description: "Output the indicated catalog. Catalogs are only available for\ + \ retrieval when their associated status request\r\nis at a Success status.\r\ + \nProduces application/x-json-stream of v2021_07 CatalogProduct json objects." + operationId: CatalogApi_GetApiV1ExternalCatalogOutputByCatalogId parameters: - - description: External account id to retrieve creatives for + - description: A catalog ID returned from an account catalog request. explode: false in: path - name: account-id + name: catalogId required: true schema: type: string @@ -480,44 +536,41 @@ paths: responses: "200": content: - application/json: - schema: - $ref: '#/components/schemas/Creative202110ListResponse' - description: Creatives found + application/x-json-stream: {} + application/json: {} + description: Catalog download initiated. + "400": + content: + application/x-json-stream: {} + application/json: {} + description: "The indicated catalog is not available for retrieval, wait\ + \ for a success status." tags: - Campaign x-accepts: application/json - post: - description: Create a creative for an account - operationId: CreativesApi_PostApi202207ExternalAccountCreativesByAccountId + /2022-10/retail-media/catalogs/{catalogId}/status: + get: + description: Check the status of a catalog request. + operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId parameters: - - description: External account id to create a creative for + - description: A catalog ID returned from an account catalog request. explode: false in: path - name: account-id + name: catalogId required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreativeCreateModel202207' - description: The creative to create - x-nullable: false - x-bodyName: creative responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/Creative202207Response' - description: Creatives created + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request found. tags: - Campaign - x-content-type: application/json x-accepts: application/json /2022-10/retail-media/categories: get: @@ -674,27 +727,19 @@ paths: tags: - Campaign x-accepts: application/json - /2022-10/retail-media/accounts/{account-id}/creatives/{creative-id}: + /2022-10/retail-media/retailers/{retailerId}/pages: get: - description: Get the specified creative - operationId: "CreativesApi_GetApi202207ExternalAccountByAccountId}Creatives{creativeId" + description: Get the page types available for the given retailer + operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId parameters: - - description: External account id to retrieve creatives for - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creative to get + - description: The retailers to fetch pages for explode: false in: path - name: creative-id + name: retailerId required: true schema: - type: string + format: int32 + type: integer style: simple x-nullable: false responses: @@ -702,60 +747,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Creative202207Response' - description: Creatives found + $ref: '#/components/schemas/ExternalRetailerPages202110' + description: Pages fetched successfully tags: - Campaign x-accepts: application/json - put: - description: Update a creative - operationId: "CreativesApi_PutApi202207ExternalAccountByAccountId}Creatives{creativeId" - parameters: - - description: External account id containing the creative - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creative to update - explode: false - in: path - name: creative-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreativeUpdateModel202207' - description: The creative to create - x-nullable: false - x-bodyName: creative - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Creative202207Response' - description: Success - "204": - content: - application/json: {} - description: Creative updated - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2022-10/retail-media/reports/campaigns: - post: - description: Request a campaign report - operationId: requestCampaignReport + /2022-10/retail-media/reports/campaigns: + post: + description: Request a campaign report + operationId: requestCampaignReport requestBody: content: application/json: @@ -882,15 +882,15 @@ paths: tags: - Analytics x-accepts: application/json - /2022-10/retail-media/accounts/{accountId}/campaigns: + /2022-10/retail-media/accounts/{account-id}/balances: get: - description: Gets page of campaign objects for the given account id - operationId: CampaignsApi_GetApiV1ExternalAccountCampaignsByAccountId + description: Gets page of balance objects for the given account id + operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId parameters: - - description: The given account id + - description: The account to get balances for explode: false in: path - name: accountId + name: account-id required: true schema: type: string @@ -934,112 +934,103 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfCampaign' + $ref: '#/components/schemas/Balance202110PagedListResponse' description: Success tags: - Campaign x-accepts: application/json - post: - description: Creates a new campaign with the specified settings - operationId: CampaignsApi_PostApiV1ExternalAccountCampaignsByAccountId + /2022-10/retail-media/accounts/{account-id}/line-items: + get: + description: Gets page of line item objects for the given account id + operationId: GetApiV2ExternalAccountLineItemsByAccountId parameters: - description: The given account id explode: false in: path - name: accountId + name: account-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExternalPostCampaign' - description: The campaign settings to create a campaign with + - description: The campaign ids that you would like to limit your result set + to + explode: true + in: query + name: limitToCampaignId + required: false + schema: + items: + type: string + type: array + style: form x-nullable: false - x-bodyName: campaign - responses: - "201": - content: - application/json: {} - description: Success - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' - description: OK - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2022-10/retail-media/campaigns/{campaignId}: - get: - description: Gets the campaign for the given campaign id - operationId: CampaignsApi_GetApiV1ExternalCampaignByCampaignId - parameters: - - description: The given campaign id - explode: false - in: path - name: campaignId - required: true + - description: The campaign types that you would like to limit your result set + to + explode: true + in: query + name: limitToType + required: false schema: + enum: + - Unknown + - Auction + - Preferred type: string - style: simple + style: form + x-nullable: true + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' - description: Success - tags: - - Campaign - x-accepts: application/json - put: - description: Updates the campaign for the given campaign id - operationId: CampaignsApi_PutApiV1ExternalCampaignByCampaignId - parameters: - - description: The given campaign id - explode: false - in: path - name: campaignId - required: true + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false schema: - type: string - style: simple + format: int32 + type: integer + style: form x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExternalPutCampaign' - description: The campaign settings to update that campaign with + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: campaign responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' + $ref: '#/components/schemas/CommonLineItemPagedListResponse' description: Success tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/campaigns/{campaign-id}/auction-line-items: + /2022-10/retail-media/accounts/{accountId}/campaigns: get: - description: Gets page of auction line item objects for the given campaign id - operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId + description: Gets page of campaign objects for the given account id + operationId: CampaignsApi_GetApiV1ExternalAccountCampaignsByAccountId parameters: - - description: The given campaign id + - description: The given account id explode: false in: path - name: campaign-id + name: accountId required: true schema: type: string @@ -1083,25 +1074,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' + $ref: '#/components/schemas/JsonApiPageResponseOfCampaign' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' - description: Bad Request tags: - Campaign x-accepts: application/json post: - description: Creates new auction line item with the specified settings - operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId + description: Creates a new campaign with the specified settings + operationId: CampaignsApi_PostApiV1ExternalAccountCampaignsByAccountId parameters: - - description: The given campaign id + - description: The given account id explode: false in: path - name: campaign-id + name: accountId required: true schema: type: string @@ -1111,31 +1096,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' - description: The line item settings to create a line item with + $ref: '#/components/schemas/ExternalPostCampaign' + description: The campaign settings to create a campaign with x-nullable: false - x-bodyName: lineItem + x-bodyName: campaign responses: "201": content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' + application/json: {} description: Success - "400": + "200": content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' + description: OK tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/line-items/{line-item-id}: + /2022-10/retail-media/auction-line-items/{line-item-id}: get: - description: Gets the line item for the given line item id - operationId: GetApiV2ExternalLineItemByLineItemId + description: Gets the auction line item for the given line item id + operationId: GetApiV2ExternalAuctionLineItemByLineItemId parameters: - description: The given line item id explode: false @@ -1151,143 +1134,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CommonLineItemResponse' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemResponse' + description: Bad Request tags: - Campaign x-accepts: application/json - /2022-10/retail-media/accounts/{account-id}/line-items: - get: - description: Gets page of line item objects for the given account id - operationId: GetApiV2ExternalAccountLineItemsByAccountId + put: + description: Updates the auction line item for the given line item id + operationId: PutApiV2ExternalAuctionLineItemByLineItemId parameters: - - description: The given account id + - description: The given line item id explode: false in: path - name: account-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The campaign ids that you would like to limit your result set - to - explode: true - in: query - name: limitToCampaignId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The campaign types that you would like to limit your result set - to - explode: true - in: query - name: limitToType - required: false - schema: - enum: - - Unknown - - Auction - - Preferred - type: string - style: form - x-nullable: true - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CommonLineItemPagedListResponse' - description: Success - tags: - - Campaign - x-accepts: application/json - /2022-10/retail-media/auction-line-items/{line-item-id}: - get: - description: Gets the auction line item for the given line item id - operationId: GetApiV2ExternalAuctionLineItemByLineItemId - parameters: - - description: The given line item id - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request - tags: - - Campaign - x-accepts: application/json - put: - description: Updates the auction line item for the given line item id - operationId: PutApiV2ExternalAuctionLineItemByLineItemId - parameters: - - description: The given line item id - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemUpdateModelRequest' - description: The line item settings to create a line item with + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemUpdateModelRequest' + description: The line item settings to create a line item with x-nullable: false x-bodyName: lineItem responses: @@ -1417,45 +1293,72 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores: + /2022-10/retail-media/balances/{balance-id}/campaigns: get: - description: This endpoint gets the store target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + description: Gets page of campaigns for the given balanceId + operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId parameters: - - description: The line item to interact with + - description: The balance to get campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string style: simple x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: This endpoint sets the scope of the store target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + /2022-10/retail-media/balances/{balance-id}/campaigns/append: + post: + description: appends one or more campaigns to the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId parameters: - - description: The line item to interact with + - description: The balance to add campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -1465,37 +1368,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Request' - description: The store target to set the scope for + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: storeTarget + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: + /2022-10/retail-media/balances/{balance-id}/campaigns/delete: post: - description: This endpoint appends one or more store ids to targeting on the - specified line item. The resulting state of the store target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId + description: Removes one or more campaigns on the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId parameters: - - description: The line item to interact with + - description: The balance to remove campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -1505,148 +1401,194 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' - description: Store ids to append to the target + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: idsToAppend + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: - post: - description: This endpoint removes one or more store ids from targeting on the - specified line item. The resulting state of the store target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId + /2022-10/retail-media/campaigns/{campaign-id}/auction-line-items: + get: + description: Gets page of auction line item objects for the given campaign id + operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' - description: Store ids to remove from the target + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: - get: - description: This endpoint gets the add to basket target on the specified line - item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + post: + description: Creates new auction line item with the specified settings + operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' + description: The line item settings to create a line item with + x-nullable: false + x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - put: - description: This endpoint sets the scope of the add to basket target on the - specified line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + /2022-10/retail-media/campaigns/{campaign-id}/preferred-line-items: + get: + description: Gets page of preferred line item objects for the given campaign + id + operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketTarget202110Request' - description: The add to basket target to set the scope for + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: addToBasketTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: post: - description: This endpoint appends one or more add to basket ids to targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId + description: Creates a new preferred line item with the specified settings + operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string @@ -1656,38 +1598,59 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to append to the target + $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' + description: The line item settings to create a line item with x-nullable: false - x-bodyName: idsToAppend + x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: - post: - description: This endpoint removes one or more add to basket ids from targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId + /2022-10/retail-media/campaigns/{campaignId}: + get: + description: Gets the campaign for the given campaign id + operationId: CampaignsApi_GetApiV1ExternalCampaignByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaignId + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' + description: Success + tags: + - Campaign + x-accepts: application/json + put: + description: Updates the campaign for the given campaign id + operationId: CampaignsApi_PutApiV1ExternalCampaignByCampaignId + parameters: + - description: The given campaign id + explode: false + in: path + name: campaignId required: true schema: type: string @@ -1697,33 +1660,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to remove from the target + $ref: '#/components/schemas/ExternalPutCampaign' + description: The campaign settings to update that campaign with x-nullable: false - x-bodyName: idsToRemove + x-bodyName: campaign responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaign' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: + /2022-10/retail-media/line-items/{line-item-id}: get: - description: This endpoint gets the audience target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + description: Gets the line item for the given line item id + operationId: GetApiV2ExternalLineItemByLineItemId parameters: - - description: The line item to interact with + - description: The given line item id explode: false in: path name: line-item-id @@ -1737,21 +1694,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/CommonLineItemResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: This endpoint sets the scope of the audience target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + /2022-10/retail-media/line-items/{line-item-id}/products: + get: + description: This endpoint gets the promoted products on the specified line + item. + operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId parameters: - description: The line item to interact with explode: false @@ -1762,36 +1714,54 @@ paths: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Request' - description: The audience target to set the scope for + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: audienceTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: + /2022-10/retail-media/line-items/{line-item-id}/products/append: post: - description: This endpoint appends one or more audiences ids to targeting on - the specified line item. The resulting state of the audience target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId + description: This endpoint appends one or more products to promote on the specified + line item. The resulting state of the line item is returned. + operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsAppendByLineItemId parameters: - description: The line item to interact with explode: false @@ -1806,33 +1776,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' - description: Audience ids to append to the target + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: the products to append to this line item x-nullable: false - x-bodyName: idsToAppend + x-bodyName: promotedProductsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: + /2022-10/retail-media/line-items/{line-item-id}/products/delete: post: - description: This endpoint removes one or more audiences ids from targeting - on the specified line item. The resulting state of the audience target is - returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId + description: This endpoint removes one or more products from promotion on the + specified line item. The resulting state of the line item is returned. + operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsDeleteByLineItemId parameters: - description: The line item to interact with explode: false @@ -1847,23 +1810,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' - description: Audience ids to remove from the target + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: "" x-nullable: false - x-bodyName: idsToRemove + x-bodyName: promotedProductsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json @@ -1996,11 +1953,11 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/line-items/{line-item-id}/products: + /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: get: - description: This endpoint gets the promoted products on the specified line + description: This endpoint gets the add to basket target on the specified line item. - operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId parameters: - description: The line item to interact with explode: false @@ -2011,54 +1968,67 @@ paths: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request + tags: + - Campaign + x-accepts: application/json + put: + description: This endpoint sets the scope of the add to basket target on the + specified line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true schema: - format: int32 - type: integer - style: form + type: string + style: simple x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Request' + description: The add to basket target to set the scope for x-nullable: false + x-bodyName: addToBasketTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/line-items/{line-item-id}/products/append: + /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: post: - description: This endpoint appends one or more products to promote on the specified - line item. The resulting state of the line item is returned. - operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsAppendByLineItemId + description: This endpoint appends one or more add to basket ids to targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId parameters: - description: The line item to interact with explode: false @@ -2073,26 +2043,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: the products to append to this line item + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to append to the target x-nullable: false - x-bodyName: promotedProductsToAppend + x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/line-items/{line-item-id}/products/delete: + /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: post: - description: This endpoint removes one or more products from promotion on the - specified line item. The resulting state of the line item is returned. - operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsDeleteByLineItemId + description: This endpoint removes one or more add to basket ids from targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId parameters: - description: The line item to interact with explode: false @@ -2107,93 +2084,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: "" + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to remove from the target x-nullable: false - x-bodyName: promotedProductsToRemove + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/campaigns/{campaign-id}/preferred-line-items: + /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: get: - description: Gets page of preferred line item objects for the given campaign - id - operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId + description: This endpoint gets the audience target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId parameters: - - description: The given campaign id + - description: The line item to interact with explode: false in: path - name: campaign-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Bad Request tags: - Campaign x-accepts: application/json - post: - description: Creates a new preferred line item with the specified settings - operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId + put: + description: This endpoint sets the scope of the audience target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId parameters: - - description: The given campaign id + - description: The line item to interact with explode: false in: path - name: campaign-id + name: line-item-id required: true schema: type: string @@ -2203,150 +2153,187 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' - description: The line item settings to create a line item with + $ref: '#/components/schemas/AudienceTarget202110Request' + description: The audience target to set the scope for x-nullable: false - x-bodyName: lineItem + x-bodyName: audienceTarget responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/accounts/{account-id}/balances: - get: - description: Gets page of balance objects for the given account id - operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId + /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: + post: + description: This endpoint appends one or more audiences ids to targeting on + the specified line item. The resulting state of the audience target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId parameters: - - description: The account to get balances for + - description: The line item to interact with explode: false in: path - name: account-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + description: Audience ids to append to the target x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false + x-bodyName: idsToAppend + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: + post: + description: This endpoint removes one or more audiences ids from targeting + on the specified line item. The resulting state of the audience target is + returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true schema: - format: int32 - type: integer - style: form + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + description: Audience ids to remove from the target x-nullable: false + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Balance202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/balances/{balance-id}/campaigns: + /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores: get: - description: Gets page of campaigns for the given balanceId - operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId + description: This endpoint gets the store target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId parameters: - - description: The balance to get campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request + tags: + - Campaign + x-accepts: application/json + put: + description: This endpoint sets the scope of the store target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true schema: - format: int32 - type: integer - style: form + type: string + style: simple x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Request' + description: The store target to set the scope for x-nullable: false + x-bodyName: storeTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/balances/{balance-id}/campaigns/append: + /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: post: - description: appends one or more campaigns to the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId + description: This endpoint appends one or more store ids to targeting on the + specified line item. The resulting state of the store target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId parameters: - - description: The balance to add campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string @@ -2356,30 +2343,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' + description: Store ids to append to the target x-nullable: false - x-bodyName: campaigns + x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2022-10/retail-media/balances/{balance-id}/campaigns/delete: + /2022-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: post: - description: Removes one or more campaigns on the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId + description: This endpoint removes one or more store ids from targeting on the + specified line item. The resulting state of the store target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId parameters: - - description: The balance to remove campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string @@ -2389,17 +2383,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' + description: Store ids to remove from the target x-nullable: false - x-bodyName: campaigns + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json @@ -2465,12 +2465,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 @@ -2487,6 +2489,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/ApplicationSummaryModel' @@ -2507,10 +2510,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. @@ -2523,27 +2528,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: @@ -2557,15 +2569,20 @@ 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 JsonApiPageResponseOfAccount: @@ -2664,7 +2681,7 @@ components: - data type: object x-nullable: false - JsonApiPageResponseOfRetailer: + JsonApiPageResponseOfBrand: description: A wrapper class to return a single page of with metadata example: @@ -2678,16 +2695,10 @@ components: data: - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type warnings: @@ -2743,14 +2754,14 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' type: array x-nullable: false required: - data type: object x-nullable: false - JsonApiPageResponseOfBrand: + JsonApiPageResponseOfRetailer: description: A wrapper class to return a single page of with metadata example: @@ -2764,10 +2775,16 @@ components: data: - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type warnings: @@ -2823,7 +2840,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' type: array x-nullable: false required: @@ -3032,15 +3049,12 @@ components: - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: + JsonApiBodyWithIdOfInt64AndBrandAndBrand: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type properties: @@ -3052,18 +3066,21 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalRetailer' + $ref: '#/components/schemas/ExternalBrand' required: - id - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndBrandAndBrand: + JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type properties: @@ -3075,7 +3092,7 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalBrand' + $ref: '#/components/schemas/ExternalRetailer' required: - id - type @@ -3140,44 +3157,44 @@ components: - type type: object x-nullable: false - ExternalRetailer: - description: A Retail Media Retailer used to represent a selection of products - from multiple brands + ExternalBrand: + description: A Retail Media Brand used to represent a collection of products + sold under the same umbrella name example: name: name - campaignEligibilities: - - unknown - - unknown properties: name: - maxLength: 100 + maxLength: 120 + minLength: 0 type: string x-nullable: false - campaignEligibilities: - items: - enum: - - unknown - - auction - - preferred - type: string - x-nullable: false - type: array - x-nullable: false required: - name type: object x-nullable: false - ExternalBrand: - description: A Retail Media Brand used to represent a collection of products - sold under the same umbrella name + ExternalRetailer: + description: A Retail Media Retailer used to represent a selection of products + from multiple brands example: name: name + campaignEligibilities: + - unknown + - unknown properties: name: - maxLength: 120 - minLength: 0 + maxLength: 100 type: string x-nullable: false + campaignEligibilities: + items: + enum: + - unknown + - auction + - preferred + type: string + x-nullable: false + type: array + x-nullable: false required: - name type: object @@ -3241,12 +3258,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 @@ -3264,8 +3283,10 @@ components: attributes: $ref: '#/components/schemas/Asset' id: + nullable: true type: string type: + nullable: true type: string type: object Asset: @@ -3282,8 +3303,10 @@ components: type: string fileLocation: description: A url pointing towards the static file the asset represents. + nullable: true type: string id: + nullable: true type: string required: - fileExtension @@ -3378,12 +3401,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array metadata: @@ -3454,12 +3479,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array type: object @@ -3657,12 +3684,14 @@ components: items: format: int64 type: integer + nullable: true type: array categoryIds: description: The categories to target items: format: int32 type: integer + nullable: true type: array retailerId: description: ID of the retailer associated with this audience @@ -3740,92 +3769,6 @@ components: required: - size type: object - JsonApiSingleResponseOfCatalogStatus: - description: A JSON:API wrapper class to add one JSON:API within a data property - example: - data: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown - id: id - type: type - warnings: - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus' - errors: - items: - $ref: '#/components/schemas/CommonError' - type: array - x-nullable: false - warnings: - items: - $ref: '#/components/schemas/CommonWarning' - type: array - x-nullable: false - required: - - data - type: object - x-nullable: false - ExternalRetailerPages202110: - description: Wraps a list of valid pages for a retailer - example: - pageTypes: - - pageTypes - - pageTypes - properties: - pageTypes: - description: List of valid pages for a retailer - items: - type: string - x-nullable: false - type: array - x-nullable: false - type: object - x-nullable: false Creative202110ListResponse: description: Data model for a list of response resources example: @@ -4023,6 +3966,76 @@ components: x-nullable: false type: object x-nullable: false + JsonApiSingleResponseOfCatalogStatus: + description: A JSON:API wrapper class to add one JSON:API within a data property + example: + data: + attributes: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + id: id + type: type + warnings: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus' + errors: + items: + $ref: '#/components/schemas/CommonError' + type: array + x-nullable: false + warnings: + items: + $ref: '#/components/schemas/CommonWarning' + type: array + x-nullable: false + required: + - data + type: object + x-nullable: false Category202204ListResponse: description: Data model for a list of response resources example: @@ -4601,20 +4614,20 @@ components: x-nullable: false type: object x-nullable: false - JsonApiRequestOfCatalogRequest: - description: "A JSON:API wrapper class to format a with Type, and Attributes properties" + ExternalRetailerPages202110: + description: Wraps a list of valid pages for a retailer example: - data: - attributes: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - type: type + pageTypes: + - pageTypes + - pageTypes properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest' + pageTypes: + description: List of valid pages for a retailer + items: + type: string + x-nullable: false + type: array + x-nullable: false type: object x-nullable: false CreativeCreateModel202207: @@ -4759,33 +4772,20 @@ components: - templateVariableValues type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + JsonApiRequestOfCatalogRequest: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + \ /> with Type, and Attributes properties" example: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown - id: id - type: type + data: + attributes: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + type: type properties: - id: - format: long-id - type: string - x-nullable: false - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogStatus' - required: - - id - - type + data: + $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest' type: object x-nullable: false ResourceOfCreative202110: @@ -4805,9 +4805,11 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/Creative202110' @@ -4829,10 +4831,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. @@ -4932,10 +4936,41 @@ components: $ref: '#/components/schemas/Creative202207' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true + type: string + type: object + x-nullable: false + JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + example: + attributes: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + id: id + type: type + properties: + id: + format: long-id type: string + x-nullable: false + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalCatalogStatus' + required: + - id + - type type: object x-nullable: false ResourceOfCategory202204: @@ -4952,9 +4987,11 @@ components: $ref: '#/components/schemas/Category202204' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -5081,32 +5118,14 @@ components: $ref: '#/components/schemas/Template' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest: - description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" - example: - attributes: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - type: type - properties: - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogRequest' - required: - - type - type: object - x-nullable: false TemplateVariableValue: description: A value for a variable in a creative template. example: @@ -5144,72 +5163,24 @@ components: - id type: object x-nullable: false - ExternalCatalogStatus: - description: The status of an asynchronous request to generate a catalog + JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest: + description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" example: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown + attributes: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + type: type properties: - status: - description: An enumeration of the status of the catalog. - enum: - - unknown - - pending - - success - - failure - - expired - type: string - x-nullable: false - currency: - description: An ISO4217 representation of the currency products are listed - under in this catalog. - type: string - x-nullable: false - rowCount: - description: "An indication of the number of products contained in this\ - \ catalog. Available when\r\nthis catalog reaches a success status." - format: int32 - nullable: true - type: integer - x-nullable: true - fileSizeBytes: - description: The size of this catalog in bytes. Available when this catalog - reaches a success status. - format: int32 - nullable: true - type: integer - x-nullable: true - md5Checksum: - description: "An MD5 checksum of the catalog for use in confirming complete\ - \ and uncorrupted retrieval.\r\nAvailable when this catalog reaches a\ - \ success status." - nullable: true - type: string - x-nullable: true - createdAt: - description: The time this catalog was created. Represented as a UTC ISO8601 - string. - format: date-time + type: type: string x-nullable: false - message: - description: An optional information message intended for developer consumption. - nullable: true - type: string - x-nullable: true + attributes: + $ref: '#/components/schemas/ExternalCatalogRequest' required: - - createdAt - - currency - - fileSizeBytes - - md5Checksum - - message - - rowCount - - status + - type type: object x-nullable: false Creative202110: @@ -5384,6 +5355,74 @@ components: - templateVariableValues type: object x-nullable: false + ExternalCatalogStatus: + description: The status of an asynchronous request to generate a catalog + example: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + properties: + status: + description: An enumeration of the status of the catalog. + enum: + - unknown + - pending + - success + - failure + - expired + type: string + x-nullable: false + currency: + description: An ISO4217 representation of the currency products are listed + under in this catalog. + type: string + x-nullable: false + rowCount: + description: "An indication of the number of products contained in this\ + \ catalog. Available when\r\nthis catalog reaches a success status." + format: int32 + nullable: true + type: integer + x-nullable: true + fileSizeBytes: + description: The size of this catalog in bytes. Available when this catalog + reaches a success status. + format: int32 + nullable: true + type: integer + x-nullable: true + md5Checksum: + description: "An MD5 checksum of the catalog for use in confirming complete\ + \ and uncorrupted retrieval.\r\nAvailable when this catalog reaches a\ + \ success status." + nullable: true + type: string + x-nullable: true + createdAt: + description: The time this catalog was created. Represented as a UTC ISO8601 + string. + format: date-time + type: string + x-nullable: false + message: + description: An optional information message intended for developer consumption. + nullable: true + type: string + x-nullable: true + required: + - createdAt + - currency + - fileSizeBytes + - md5Checksum + - message + - rowCount + - status + type: object + x-nullable: false Template: description: A template for creating creatives. example: @@ -5583,29 +5622,6 @@ components: - updatedAt type: object x-nullable: false - ExternalCatalogRequest: - description: A request for a catalog under the specified format. Currently "json-newline" - is supported. - example: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - properties: - format: - default: json-newline - enum: - - json-newline - type: string - x-nullable: false - brandIdFilter: - items: - format: long-id - type: string - type: array - x-nullable: false - type: object - x-nullable: false TextVariableValue: description: A value of a template text variable example: @@ -5685,6 +5701,29 @@ components: - url type: object x-nullable: false + ExternalCatalogRequest: + description: A request for a catalog under the specified format. Currently "json-newline" + is supported. + example: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + properties: + format: + default: json-newline + enum: + - json-newline + type: string + x-nullable: false + brandIdFilter: + items: + format: long-id + type: string + type: array + x-nullable: false + type: object + x-nullable: false Section: description: Section object that hold template variables example: @@ -5956,6 +5995,7 @@ components: description: The errors items: $ref: '#/components/schemas/Error' + nullable: true type: array type: object EnvelopeReportRequest: @@ -6019,6 +6059,7 @@ components: detail: description: (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. + nullable: true type: string instance: description: (REQUIRED) A URI reference that identifies the specific occurrence @@ -6035,10 +6076,12 @@ components: \ by the implementation technology e.g. .Net, Scala, etc" items: type: string + nullable: true type: array title: description: "(RECOMMENDED) A short, human-readable summary of the problem\ \ type." + nullable: true type: string traceId: description: (REQUIRED) The Correlation ID provided by the Gateway. It is @@ -6103,24 +6146,30 @@ components: createdAt: description: Timestamp when the report started to execute format: date-time + nullable: true type: string expiresAt: description: Timestamp when the cached report will expire format: date-time + nullable: true type: string fileSizeBytes: description: "Total size of file, only populated on success" format: int64 + nullable: true type: integer md5Checksum: description: "The MD5 checksum of the content, only populated on success" + nullable: true type: string message: description: "Failure message, only populated on failure" + nullable: true type: string rowCount: description: "Rows of data in report, only populated on success" format: int64 + nullable: true type: integer status: description: "One of \"pending\", \"success\", \"failure\", or \"expired\"" @@ -6162,6 +6211,7 @@ components: - 7D - 14D - 30D + nullable: true type: string endDate: description: "YYYY-MM-DD, must not be before startDate and not more than\ @@ -6177,16 +6227,19 @@ components: - json - json-compact - json-newline + nullable: true type: string id: description: "The id of the campaign or line item. Either 'id' or 'ids'\ \ must be specified, but not both" + nullable: true type: string ids: description: "The ids of the campaigns or line items. Either 'id' or 'ids'\ \ must be specified, but not both" items: type: string + nullable: true type: array reportType: description: "One of \"summary\", \"keyword\", \"pageType\", \"productCategory\"\ @@ -6200,12 +6253,14 @@ components: - attributedTransactions type: string revenueType: + nullable: true type: string startDate: description: YYYY-MM-DD format: date type: string timeZone: + nullable: true type: string viewAttributionWindow: description: "Defaults to value from campaign or one of \"none\", \"1D\"\ @@ -6217,41 +6272,55 @@ components: - 7D - 14D - 30D + nullable: true type: string required: - endDate - reportType - startDate type: object - JsonApiSingleResponseOfCampaign: - description: A JSON:API wrapper class to add one JSON:API within a data property + Balance202110PagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId + - attributes: createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: none + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + name: name + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 + startDate: 2000-01-23 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 id: id type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6261,6 +6330,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6271,6 +6341,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6280,6 +6351,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6289,20 +6361,130 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign' + items: + $ref: '#/components/schemas/ResourceOfBalance202110' + type: array + x-nullable: false + warnings: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false errors: items: - $ref: '#/components/schemas/CommonError' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + type: object + x-nullable: false + CommonLineItemPagedListResponse: + description: Data model for a paged list of response resources + example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 + data: + - attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + metadata: + $ref: '#/components/schemas/PageMetadata' + data: + items: + $ref: '#/components/schemas/ResourceOfCommonLineItem' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/CommonWarning' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - required: - - data type: object x-nullable: false JsonApiPageResponseOfCampaign: @@ -6421,60 +6603,35 @@ components: - data type: object x-nullable: false - AuctionLineItemPagedListResponse: - description: Data model for a paged list of response resources + JsonApiSingleResponseOfCampaign: + description: A JSON:API wrapper class to add one JSON:API within a data property example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 - createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 - name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 - startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 + attributes: + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: none name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 - startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 id: id type: type warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6484,7 +6641,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6495,7 +6651,6 @@ components: title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6505,7 +6660,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -6515,25 +6669,20 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignAndCampaign' + errors: items: - $ref: '#/components/schemas/ResourceOfAuctionLineItem' + $ref: '#/components/schemas/CommonError' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonWarning' type: array x-nullable: false + required: + - data type: object x-nullable: false AuctionLineItemResponse: @@ -6619,24 +6768,13 @@ components: x-nullable: false type: object x-nullable: false - CommonLineItemResponse: - description: Data model for response resource + KeywordTarget202110Response: + description: Data model for a value type resource outcome example: data: attributes: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id + keywords: + key: unknown type: type warnings: - traceId: traceId @@ -6682,7 +6820,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ResourceOfCommonLineItem' + $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -6697,7 +6835,7 @@ components: x-nullable: false type: object x-nullable: false - CommonLineItemPagedListResponse: + BalanceCampaign202110PagedListResponse: description: Data model for a paged list of response resources example: metadata: @@ -6708,34 +6846,10 @@ components: totalItemsAcrossAllPages: 0 currentPageIndex: 1 data: - - attributes: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 + - attributes: "{}" id: id type: type - - attributes: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 + - attributes: "{}" id: id type: type warnings: @@ -6785,7 +6899,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/ResourceOfCommonLineItem' + $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' type: array x-nullable: false warnings: @@ -6802,13 +6916,56 @@ components: x-nullable: false type: object x-nullable: false - KeywordTarget202110Response: - description: Data model for a value type resource outcome + AuctionLineItemPagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - keywords: - key: unknown + - attributes: + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -6853,8 +7010,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' + items: + $ref: '#/components/schemas/ResourceOfAuctionLineItem' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -6869,15 +7031,74 @@ components: x-nullable: false type: object x-nullable: false - StoreTarget202110Response: - description: Data model for a value type resource outcome + PreferredLineItem202110PagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + - attributes: + budgetRemaining: 5.962133916683182 + endDate: 2000-01-23 + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId + createdAt: 2000-01-23T04:56:07.000+00:00 + pacing: unknown + budgetSpent: 1.4658129805029452 + name: name + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + status: unknown + budget: 6.027456183070403 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + budgetRemaining: 5.962133916683182 + endDate: 2000-01-23 + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId + createdAt: 2000-01-23T04:56:07.000+00:00 + pacing: unknown + budgetSpent: 1.4658129805029452 + name: name + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + status: unknown + budget: 6.027456183070403 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -6922,8 +7143,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + items: + $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -6938,18 +7164,38 @@ components: x-nullable: false type: object x-nullable: false - AddToBasketTarget202110Response: - description: Data model for a value type resource outcome + PreferredLineItem202110Response: + description: Data model for response resource example: data: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + budgetRemaining: 5.962133916683182 + endDate: 2000-01-23 + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId + createdAt: 2000-01-23T04:56:07.000+00:00 + pacing: unknown + budgetSpent: 1.4658129805029452 + name: name + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + status: unknown + budget: 6.027456183070403 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -6995,7 +7241,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7010,105 +7256,22 @@ components: x-nullable: false type: object x-nullable: false - AudienceTarget202110Response: - description: Data model for a value type resource outcome + CommonLineItemResponse: + description: Data model for response resource example: data: attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - type: object - x-nullable: false - PreferredLineItem202110Response: - description: Data model for response resource - example: - data: - attributes: - budgetRemaining: 5.962133916683182 + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 endDate: 2000-01-23 campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId - createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 + budgetSpent: 6.027456183070403 name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId targetRetailerId: targetRetailerId + type: unknown startDate: 2000-01-23 status: unknown - budget: 6.027456183070403 + budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -7156,7 +7319,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + $ref: '#/components/schemas/ResourceOfCommonLineItem' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7254,74 +7417,18 @@ components: x-nullable: false type: object x-nullable: false - PreferredLineItem202110PagedListResponse: - description: Data model for a paged list of response resources + AddToBasketTarget202110Response: + description: Data model for a value type resource outcome example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - budgetRemaining: 5.962133916683182 - endDate: 2000-01-23 - campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId - createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 - name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - status: unknown - budget: 6.027456183070403 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - budgetRemaining: 5.962133916683182 - endDate: 2000-01-23 - campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId - createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 - name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - status: unknown - budget: 6.027456183070403 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id + attributes: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type warnings: - traceId: traceId @@ -7366,13 +7473,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7387,44 +7489,15 @@ components: x-nullable: false type: object x-nullable: false - Balance202110PagedListResponse: - description: Data model for a paged list of response resources + AudienceTarget202110Response: + description: Data model for a value type resource outcome example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id + attributes: + scope: unknown + audienceIds: + - audienceIds + - audienceIds type: type warnings: - traceId: traceId @@ -7469,13 +7542,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfBalance202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7490,22 +7558,15 @@ components: x-nullable: false type: object x-nullable: false - BalanceCampaign202110PagedListResponse: - description: Data model for a paged list of response resources + StoreTarget202110Response: + description: Data model for a value type resource outcome example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" - id: id + attributes: + scope: unknown + storeIds: + - storeIds + - storeIds type: type warnings: - traceId: traceId @@ -7550,13 +7611,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7593,23 +7649,59 @@ components: $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign' type: object x-nullable: false - ExternalPutCampaign: - description: An object that represents the available options to set when editing - a Retail Media Campaign + AuctionLineItemUpdateModelRequest: + description: Data model for an input resource example: data: attributes: - clickAttributionWindow: 7D - clickAttributionScope: unknown - viewAttributionScope: unknown + bidStrategy: conversion + endDate: 2000-01-23 + maxBid: 1.4658129805029452 name: name - viewAttributionWindow: none + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + startDate: 2000-01-23 + targetBid: 6.027456183070403 + monthlyPacing: 5.962133916683182 + status: unknown budget: 0.8008281904610115 id: id type: type properties: data: - $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign' + $ref: '#/components/schemas/ResourceOfAuctionLineItemUpdateModel' + type: object + x-nullable: false + KeywordTarget202110Request: + description: Data model for a value type input resource + example: + data: + attributes: + keywords: + key: unknown + type: type + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' + type: object + x-nullable: false + BalanceCampaign202110ListRequest: + description: "A class implementing the request of the Criteo API as described\ + \ in API Guild Guidelines with a collection of entities as body\r\nhttps://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines" + example: + data: + - attributes: "{}" + id: id + type: type + - attributes: "{}" + id: id + type: type + properties: + data: + items: + $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' + type: array + x-nullable: false type: object x-nullable: false AuctionLineItemCreateModelRequest: @@ -7635,69 +7727,107 @@ components: $ref: '#/components/schemas/InputResourceOfAuctionLineItemCreateModel' type: object x-nullable: false - AuctionLineItemUpdateModelRequest: - description: Data model for an input resource + PreferredLineItemCreateModel202110Request: + description: Data model for a create input resource example: data: attributes: - bidStrategy: conversion + pacing: unknown endDate: 2000-01-23 - maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId startDate: 2000-01-23 - targetBid: 6.027456183070403 - monthlyPacing: 5.962133916683182 + creativeId: creativeId status: unknown budget: 0.8008281904610115 - id: id type: type properties: data: - $ref: '#/components/schemas/ResourceOfAuctionLineItemUpdateModel' + $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModel202110' type: object x-nullable: false - KeywordTarget202110Request: - description: Data model for a value type input resource + ExternalPutCampaign: + description: An object that represents the available options to set when editing + a Retail Media Campaign example: data: attributes: - keywords: - key: unknown + clickAttributionWindow: 7D + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: none + budget: 0.8008281904610115 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' + $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign' type: object x-nullable: false - StoreTarget202110Request: - description: Data model for a value type input resource + PromotedProduct202110ListRequest: + description: Data model for a list of input resources example: data: - attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + - attributes: + bidOverride: 0.8008281904610115 + id: id + type: type + - attributes: + bidOverride: 0.8008281904610115 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + items: + $ref: '#/components/schemas/ResourceOfPromotedProduct202110' + type: array + x-nullable: false type: object x-nullable: false - StoreIdsUpdateModel202110Request: - description: Data model for a value type input resource + PreferredLineItemUpdateModel202110Request: + description: Data model for an input resource example: data: attributes: - storeIds: - - storeIds - - storeIds + pacing: accelerated + endDate: 2000-01-23 + name: name + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown + budget: 0.8008281904610115 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' + $ref: '#/components/schemas/ResourceOfPreferredLineItemUpdateModel202110' type: object x-nullable: false AddToBasketTarget202110Request: @@ -7764,107 +7894,94 @@ components: $ref: '#/components/schemas/ValueTypeResourceOfAudienceIdsUpdateModel202110' type: object x-nullable: false - PromotedProduct202110ListRequest: - description: Data model for a list of input resources + StoreTarget202110Request: + description: Data model for a value type input resource example: data: - - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - - attributes: - bidOverride: 0.8008281904610115 - id: id + attributes: + scope: unknown + storeIds: + - storeIds + - storeIds type: type properties: data: - items: - $ref: '#/components/schemas/ResourceOfPromotedProduct202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' type: object x-nullable: false - PreferredLineItemUpdateModel202110Request: - description: Data model for an input resource + StoreIdsUpdateModel202110Request: + description: Data model for a value type input resource example: data: attributes: - pacing: accelerated - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - id: id + storeIds: + - storeIds + - storeIds type: type properties: data: - $ref: '#/components/schemas/ResourceOfPreferredLineItemUpdateModel202110' + $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' type: object x-nullable: false - PreferredLineItemCreateModel202110Request: - description: Data model for a create input resource + ResourceOfBalance202110: + description: A class that represents an entity in a guild compliant way example: - data: - attributes: - pacing: unknown - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - type: type + attributes: + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + name: name + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type properties: - data: - $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModel202110' + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + attributes: + $ref: '#/components/schemas/ExternalBalance202110' type: object x-nullable: false - BalanceCampaign202110ListRequest: - description: "A class implementing the request of the Criteo API as described\ - \ in API Guild Guidelines with a collection of entities as body\r\nhttps://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines" + ResourceOfCommonLineItem: + description: Data model for a Resource example: - data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" - id: id - type: type + attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type properties: - data: - items: - $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' - type: array - x-nullable: false + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + attributes: + $ref: '#/components/schemas/ExternalCommonLineItem' type: object x-nullable: false JsonApiBodyWithIdOfInt64AndCampaignAndCampaign: @@ -7934,43 +8051,16 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalAuctionLineItem' type: object x-nullable: false - ResourceOfCommonLineItem: - description: Data model for a Resource - example: - attributes: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - properties: - id: - description: Id of the entity - type: string - type: - description: Canonical type name of the entity - type: string - attributes: - $ref: '#/components/schemas/ExternalCommonLineItem' - type: object - x-nullable: false ValueTypeResourceOfKeywordTarget202110: description: Data model for a value type resource example: @@ -7986,58 +8076,25 @@ components: $ref: '#/components/schemas/ExternalKeywordTarget202110' type: object x-nullable: false - ValueTypeResourceOfStoreTarget202110: - description: Data model for a value type resource + ResourceOfBalanceCampaign202110: + description: A class that represents an entity in a guild compliant way example: - attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + attributes: "{}" + id: id type: type properties: - type: + id: + description: Id of the entity + nullable: true type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalStoreTarget202110' - type: object - x-nullable: false - ValueTypeResourceOfAddToBasketTarget202110: - description: Data model for a value type resource - example: - attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown - type: type - properties: type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAddToBasketTarget202110' - type: object - x-nullable: false - ValueTypeResourceOfAudienceTarget202110: - description: Data model for a value type resource - example: - attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds - type: type - properties: - type: - type: string + description: Campaigns related to the balance + type: object x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalAudienceTarget202110' type: object x-nullable: false ResourceOfPreferredLineItem202110: @@ -8075,9 +8132,11 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalPreferredLineItem202110' @@ -8093,59 +8152,68 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalPromotedProduct202110' type: object x-nullable: false - ResourceOfBalance202110: - description: A class that represents an entity in a guild compliant way + ValueTypeResourceOfAddToBasketTarget202110: + description: Data model for a value type resource example: attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type properties: - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalBalance202110' + $ref: '#/components/schemas/ExternalAddToBasketTarget202110' type: object x-nullable: false - ResourceOfBalanceCampaign202110: - description: A class that represents an entity in a guild compliant way + ValueTypeResourceOfAudienceTarget202110: + description: Data model for a value type resource example: - attributes: "{}" - id: id + attributes: + scope: unknown + audienceIds: + - audienceIds + - audienceIds type: type properties: - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - description: Campaigns related to the balance - type: object + $ref: '#/components/schemas/ExternalAudienceTarget202110' + type: object + x-nullable: false + ValueTypeResourceOfStoreTarget202110: + description: Data model for a value type resource + example: + attributes: + scope: unknown + storeIds: + - storeIds + - storeIds + type: type + properties: + type: + type: string x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalStoreTarget202110' type: object x-nullable: false JsonApiBodyWithoutIdOfCampaignAttributesAndCampaign: @@ -8174,32 +8242,34 @@ components: - type type: object x-nullable: false - JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign: - description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + ResourceOfAuctionLineItemUpdateModel: + description: Data model for a Resource example: attributes: - clickAttributionWindow: 7D - clickAttributionScope: unknown - viewAttributionScope: unknown + bidStrategy: conversion + endDate: 2000-01-23 + maxBid: 1.4658129805029452 name: name - viewAttributionWindow: none + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + startDate: 2000-01-23 + targetBid: 6.027456183070403 + monthlyPacing: 5.962133916683182 + status: unknown budget: 0.8008281904610115 id: id type: type properties: id: - format: long-id + description: Id of the entity + nullable: true type: string - x-nullable: false type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalEditableCampaignAttributes' - required: - - id - - type + $ref: '#/components/schemas/ExternalAuctionLineItemUpdateModel' type: object x-nullable: false InputResourceOfAuctionLineItemCreateModel: @@ -8227,48 +8297,105 @@ components: $ref: '#/components/schemas/ExternalAuctionLineItemCreateModel' type: object x-nullable: false - ResourceOfAuctionLineItemUpdateModel: + InputResourceOfPreferredLineItemCreateModel202110: description: Data model for a Resource example: attributes: - bidStrategy: conversion + pacing: unknown endDate: 2000-01-23 - maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId startDate: 2000-01-23 - targetBid: 6.027456183070403 - monthlyPacing: 5.962133916683182 + creativeId: creativeId status: unknown budget: 0.8008281904610115 + type: type + properties: + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalPreferredLineItemCreateModel202110' + type: object + x-nullable: false + JsonApiBodyWithExternalIdOfEditableCampaignAttributesAndCampaign: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + example: + attributes: + clickAttributionWindow: 7D + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: none + budget: 0.8008281904610115 id: id type: type properties: id: - description: Id of the entity + format: long-id type: string + x-nullable: false type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAuctionLineItemUpdateModel' + $ref: '#/components/schemas/ExternalEditableCampaignAttributes' + required: + - id + - type type: object x-nullable: false - ValueTypeResourceOfStoreIdsUpdateModel202110: - description: Data model for a value type resource + ResourceOfPreferredLineItemUpdateModel202110: + description: Data model for a Resource example: attributes: - storeIds: - - storeIds - - storeIds + pacing: accelerated + endDate: 2000-01-23 + name: name + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown + budget: 0.8008281904610115 + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' + $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModel202110' type: object x-nullable: false ValueTypeResourceOfAddToBasketIdsUpdateModel202110: @@ -8306,75 +8433,208 @@ components: $ref: '#/components/schemas/ExternalAudienceIdsUpdateModel202110' type: object x-nullable: false - ResourceOfPreferredLineItemUpdateModel202110: - description: Data model for a Resource + ValueTypeResourceOfStoreIdsUpdateModel202110: + description: Data model for a value type resource example: attributes: - pacing: accelerated - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - id: id + storeIds: + - storeIds + - storeIds type: type properties: - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModel202110' + $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' type: object x-nullable: false - InputResourceOfPreferredLineItemCreateModel202110: - description: Data model for a Resource + ExternalBalance202110: + description: A Retail Media Balance used to determine the funds available for + any or all campaigns in an account example: - attributes: - pacing: unknown - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - type: type + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + name: name + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + name: + type: string + x-nullable: false + poNumber: + type: string + x-nullable: false + memo: + type: string + x-nullable: false + deposited: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + spent: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + remaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" + type: string + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + type: string + status: + enum: + - unknown + - scheduled + - active + - ended + type: string + x-nullable: false + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + required: + - createdAt + - deposited + - endDate + - memo + - name + - poNumber + - remaining + - spent + - startDate + - status + - updatedAt + type: object + x-nullable: false + ExternalCommonLineItem: + description: A common line item to hold line item information shared between + preferred and auction line items + example: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: + name: + maxLength: 255 + minLength: 0 + type: string + x-nullable: false type: + enum: + - unknown + - auction + - preferred type: string x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalPreferredLineItemCreateModel202110' + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" + type: string + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + nullable: true + type: string + status: + enum: + - unknown + - active + - scheduled + - draft + - paused + - budgetHit + - ended + - archived + - noFunds + type: string + x-nullable: false + targetRetailerId: + format: long-id + type: string + x-nullable: false + budget: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + campaignId: + format: long-id + type: string + x-nullable: false + budgetSpent: + format: double + type: number + x-nullable: false + budgetRemaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + required: + - budgetRemaining + - campaignId + - createdAt + - name + - startDate + - targetRetailerId + - type + - updatedAt type: object x-nullable: false ExternalCampaign: @@ -8552,6 +8812,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string maxBid: format: decimal @@ -8651,105 +8912,6 @@ components: - updatedAt type: object x-nullable: false - ExternalCommonLineItem: - description: A common line item to hold line item information shared between - preferred and auction line items - example: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - properties: - name: - maxLength: 255 - minLength: 0 - type: string - x-nullable: false - type: - enum: - - unknown - - auction - - preferred - type: string - x-nullable: false - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - status: - enum: - - unknown - - active - - scheduled - - draft - - paused - - budgetHit - - ended - - archived - - noFunds - type: string - x-nullable: false - targetRetailerId: - format: long-id - type: string - x-nullable: false - budget: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - campaignId: - format: long-id - type: string - x-nullable: false - budgetSpent: - format: double - type: number - x-nullable: false - budgetRemaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false - required: - - budgetRemaining - - campaignId - - createdAt - - name - - startDate - - targetRetailerId - - type - - updatedAt - type: object - x-nullable: false ExternalKeywordTarget202110: description: Identifies keyword targeting for a line item example: @@ -8760,108 +8922,19 @@ components: additionalProperties: enum: - unknown - - negativeExact - - negativeBroad - type: string - x-nullable: false - description: Keywords that targeting specifications exist for - type: object - x-nullable: false - required: - - keywords - type: object - x-nullable: false - ExternalStoreTarget202110: - description: Identifies store targeting for a line item - example: - scope: unknown - storeIds: - - storeIds - - storeIds - properties: - scope: - description: Scope of the store target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - storeIds: - description: Store ids that should be targeted - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - scope - - storeIds - type: object - x-nullable: false - ExternalAddToBasketTarget202110: - description: Identifies add to basket targeting for a line item - example: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown - properties: - scope: - description: Scope of the add to basket target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - productIds: - description: Product ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - categoryIds: - description: Category ids that add to basket should target - items: + - negativeExact + - negativeBroad type: string x-nullable: false - type: array + description: Keywords that targeting specifications exist for + type: object x-nullable: false required: - - scope + - keywords type: object x-nullable: false - ExternalAudienceTarget202110: - description: Identifies audience targeting for a line item - example: - scope: unknown - audienceIds: - - audienceIds - - audienceIds - properties: - scope: - description: Scope of the audience target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - audienceIds: - description: Audience ids that should be targeted - items: - format: long-id - type: string - type: array - x-nullable: false - required: - - audienceIds - - scope + ExternalBalanceCampaign202110: + description: Campaigns related to the balance type: object x-nullable: false ExternalPreferredLineItem202110: @@ -8999,96 +9072,97 @@ components: x-nullable: true type: object x-nullable: false - ExternalBalance202110: - description: A Retail Media Balance used to determine the funds available for - any or all campaigns in an account + ExternalAddToBasketTarget202110: + description: Identifies add to basket targeting for a line item example: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown properties: - name: + scope: + description: Scope of the add to basket target + enum: + - unknown + - include + - exclude type: string x-nullable: false - poNumber: - type: string + productIds: + description: Product ids that add to basket should target + items: + type: string + x-nullable: false + type: array x-nullable: false - memo: - type: string + categoryIds: + description: Category ids that add to basket should target + items: + type: string + x-nullable: false + type: array x-nullable: false - deposited: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - spent: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - remaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - status: + required: + - scope + type: object + x-nullable: false + ExternalAudienceTarget202110: + description: Identifies audience targeting for a line item + example: + scope: unknown + audienceIds: + - audienceIds + - audienceIds + properties: + scope: + description: Scope of the audience target enum: - unknown - - scheduled - - active - - ended - type: string - x-nullable: false - createdAt: - format: date-time + - include + - exclude type: string x-nullable: false - updatedAt: - format: date-time - type: string + audienceIds: + description: Audience ids that should be targeted + items: + format: long-id + type: string + type: array x-nullable: false required: - - createdAt - - deposited - - endDate - - memo - - name - - poNumber - - remaining - - spent - - startDate - - status - - updatedAt + - audienceIds + - scope type: object x-nullable: false - ExternalBalanceCampaign202110: - description: Campaigns related to the balance + ExternalStoreTarget202110: + description: Identifies store targeting for a line item + example: + scope: unknown + storeIds: + - storeIds + - storeIds + properties: + scope: + description: Scope of the store target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + storeIds: + description: Store ids that should be targeted + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - scope + - storeIds type: object x-nullable: false ExternalCampaignAttributes: @@ -9173,81 +9247,15 @@ components: required: - name type: object - x-nullable: false - ExternalEditableCampaignAttributes: - description: An object that represents the available options to set when editing - a Retail Media Campaign - example: - clickAttributionWindow: 7D - clickAttributionScope: unknown - viewAttributionScope: unknown - name: name - viewAttributionWindow: none - budget: 0.8008281904610115 - properties: - name: - maxLength: 255 - minLength: 0 - type: string - x-nullable: false - budget: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - clickAttributionWindow: - enum: - - 7D - - 14D - - 30D - - unknown - type: string - x-nullable: false - viewAttributionWindow: - enum: - - none - - 1D - - 7D - - 14D - - 30D - - unknown - type: string - x-nullable: false - clickAttributionScope: - enum: - - unknown - - sameSku - - sameSkuCategory - - sameSkuCategoryBrand - nullable: true - type: string - x-nullable: true - viewAttributionScope: - enum: - - unknown - - sameSku - - sameSkuCategory - - sameSkuCategoryBrand - nullable: true - type: string - x-nullable: true - required: - - clickAttributionWindow - - name - - viewAttributionWindow - type: object - x-nullable: false - ExternalAuctionLineItemCreateModel: - description: Model to create a retail media auction line item + x-nullable: false + ExternalAuctionLineItemUpdateModel: + description: Model to update a retail media auction line item example: bidStrategy: conversion endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId + isAutoDailyPacing: true dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 @@ -9271,6 +9279,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -9285,10 +9294,6 @@ components: - noFunds type: string x-nullable: false - targetRetailerId: - format: long-id - type: string - x-nullable: false budget: format: decimal nullable: true @@ -9325,7 +9330,6 @@ components: type: number x-nullable: true isAutoDailyPacing: - default: false type: boolean x-nullable: false bidStrategy: @@ -9338,19 +9342,22 @@ components: type: string x-nullable: false required: + - isAutoDailyPacing - name - startDate - - targetRetailerId + - status + - targetBid type: object x-nullable: false - ExternalAuctionLineItemUpdateModel: - description: Model to update a retail media auction line item + ExternalAuctionLineItemCreateModel: + description: Model to create a retail media auction line item example: bidStrategy: conversion endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true + isAutoDailyPacing: false + targetRetailerId: targetRetailerId dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 @@ -9374,6 +9381,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -9388,6 +9396,10 @@ components: - noFunds type: string x-nullable: false + targetRetailerId: + format: long-id + type: string + x-nullable: false budget: format: decimal nullable: true @@ -9424,6 +9436,7 @@ components: type: number x-nullable: true isAutoDailyPacing: + default: false type: boolean x-nullable: false bidStrategy: @@ -9436,79 +9449,15 @@ components: type: string x-nullable: false required: - - isAutoDailyPacing - name - startDate - - status - - targetBid - type: object - x-nullable: false - ExternalStoreIdsUpdateModel202110: - description: Update model for updating store target ids - example: - storeIds: - - storeIds - - storeIds - properties: - storeIds: - description: Store ids that should be targeted - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - storeIds - type: object - x-nullable: false - ExternalAddToBasketIdsUpdateModel202110: - description: Update model for updating add to basket target ids - example: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - properties: - productIds: - description: Product ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - categoryIds: - description: Category ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - type: object - x-nullable: false - ExternalAudienceIdsUpdateModel202110: - description: Update model for updating audience target ids - example: - audienceIds: - - audienceIds - - audienceIds - properties: - audienceIds: - description: Audience ids that should be targeted - items: - format: long-id - type: string - type: array - x-nullable: false - required: - - audienceIds + - targetRetailerId type: object x-nullable: false - ExternalPreferredLineItemUpdateModel202110: - description: Model used to update a preferred line item + ExternalPreferredLineItemCreateModel202110: + description: Model used to create a preferred line item example: - pacing: accelerated + pacing: unknown endDate: 2000-01-23 name: name capping: @@ -9524,6 +9473,7 @@ components: categoryId: categoryId - includeChildren: true categoryId: categoryId + targetRetailerId: targetRetailerId startDate: 2000-01-23 creativeId: creativeId status: unknown @@ -9562,7 +9512,6 @@ components: type: string x-nullable: false pacing: - default: accelerated enum: - unknown - standard @@ -9573,6 +9522,10 @@ components: $ref: '#/components/schemas/ExternalLineItemCapping202110' page: $ref: '#/components/schemas/ExternalLineItemPage202110' + targetRetailerId: + format: long-id + type: string + x-nullable: false budget: format: double type: number @@ -9583,16 +9536,84 @@ components: type: string x-nullable: true required: + - budget - endDate - name + - pacing + - page - startDate - - status + - targetRetailerId type: object x-nullable: false - ExternalPreferredLineItemCreateModel202110: - description: Model used to create a preferred line item + ExternalEditableCampaignAttributes: + description: An object that represents the available options to set when editing + a Retail Media Campaign example: - pacing: unknown + clickAttributionWindow: 7D + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: none + budget: 0.8008281904610115 + properties: + name: + maxLength: 255 + minLength: 0 + type: string + x-nullable: false + budget: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + clickAttributionWindow: + enum: + - 7D + - 14D + - 30D + - unknown + type: string + x-nullable: false + viewAttributionWindow: + enum: + - none + - 1D + - 7D + - 14D + - 30D + - unknown + type: string + x-nullable: false + clickAttributionScope: + enum: + - unknown + - sameSku + - sameSkuCategory + - sameSkuCategoryBrand + nullable: true + type: string + x-nullable: true + viewAttributionScope: + enum: + - unknown + - sameSku + - sameSkuCategory + - sameSkuCategoryBrand + nullable: true + type: string + x-nullable: true + required: + - clickAttributionWindow + - name + - viewAttributionWindow + type: object + x-nullable: false + ExternalPreferredLineItemUpdateModel202110: + description: Model used to update a preferred line item + example: + pacing: accelerated endDate: 2000-01-23 name: name capping: @@ -9608,7 +9629,6 @@ components: categoryId: categoryId - includeChildren: true categoryId: categoryId - targetRetailerId: targetRetailerId startDate: 2000-01-23 creativeId: creativeId status: unknown @@ -9647,6 +9667,7 @@ components: type: string x-nullable: false pacing: + default: accelerated enum: - unknown - standard @@ -9657,10 +9678,6 @@ components: $ref: '#/components/schemas/ExternalLineItemCapping202110' page: $ref: '#/components/schemas/ExternalLineItemPage202110' - targetRetailerId: - format: long-id - type: string - x-nullable: false budget: format: double type: number @@ -9671,13 +9688,72 @@ components: type: string x-nullable: true required: - - budget - endDate - name - - pacing - - page - startDate - - targetRetailerId + - status + type: object + x-nullable: false + ExternalAddToBasketIdsUpdateModel202110: + description: Update model for updating add to basket target ids + example: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + properties: + productIds: + description: Product ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + categoryIds: + description: Category ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + type: object + x-nullable: false + ExternalAudienceIdsUpdateModel202110: + description: Update model for updating audience target ids + example: + audienceIds: + - audienceIds + - audienceIds + properties: + audienceIds: + description: Audience ids that should be targeted + items: + format: long-id + type: string + type: array + x-nullable: false + required: + - audienceIds + type: object + x-nullable: false + ExternalStoreIdsUpdateModel202110: + description: Update model for updating store target ids + example: + storeIds: + - storeIds + - storeIds + properties: + storeIds: + description: Store ids that should be targeted + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - storeIds type: object x-nullable: false ExternalLineItemCapping202110: diff --git a/sdks/retailmedia_2022-10/build.gradle b/sdks/retailmedia_2022-10/build.gradle index 0cb5ba0b..77802ca2 100644 --- a/sdks/retailmedia_2022-10/build.gradle +++ b/sdks/retailmedia_2022-10/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2022.10.0.230728' +version = '2022.10.0.230831' repositories { jcenter() @@ -75,7 +75,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '2022.10.0.230728' + version '2022.10.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_2022-10/pom.xml b/sdks/retailmedia_2022-10/pom.xml index aee7f497..b78d926f 100644 --- a/sdks/retailmedia_2022-10/pom.xml +++ b/sdks/retailmedia_2022-10/pom.xml @@ -5,7 +5,7 @@ criteo-api-retailmedia-sdk jar criteo-api-retailmedia-sdk - 2022.10.0.230728 + 2022.10.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API retailmedia for 2022_10 version diff --git a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/ApiClient.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/ApiClient.java index 9c3f2fbf..8cab9248 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/ApiClient.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2022.10.0.230728/java"); + setUserAgent("OpenAPI-Generator/2022.10.0.230831/java"); authentications = new HashMap(); } diff --git a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ApplicationSummaryModel.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ApplicationSummaryModel.java index e0e9b851..60319970 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ApplicationSummaryModel.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ApplicationSummaryModelResource.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ApplicationSummaryModelResource.java index 2763751b..eb6a0a6f 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ApplicationSummaryModelResource.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ApplicationSummaryModelResponse.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ApplicationSummaryModelResponse.java index 84088193..04a60516 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ApplicationSummaryModelResponse.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/Asset.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/Asset.java index bca8939a..d5dc7a1c 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/Asset.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/Asset.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, asset.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(fileExtension, fileLocation, id, 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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/AssetResource.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/AssetResource.java index 4eef89b1..3bb41562 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/AssetResource.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/AssetResource.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, assetResource.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/AssetResponse.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/AssetResponse.java index ccc55ebc..552bc61a 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/AssetResponse.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/AssetResponse.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, assetResponse.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/BadRequest.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/BadRequest.java index ae7010bc..952a5ff2 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/BadRequest.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/BadRequest.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 BadRequest errors(List errors) { public BadRequest addErrorsItem(Error errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, badRequest.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, 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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CommonProblem.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CommonProblem.java index aea92e60..7ed1b25e 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CommonProblem.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CreateRetailMediaAudienceAttributes.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CreateRetailMediaAudienceAttributes.java index 9b1c29de..d7e79022 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CreateRetailMediaAudienceAttributes.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CreateRetailMediaAudienceAttributes.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; @@ -237,7 +238,7 @@ public CreateRetailMediaAudienceAttributes brandIds(List brandIds) { public CreateRetailMediaAudienceAttributes addBrandIdsItem(Long brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new ArrayList<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -267,7 +268,7 @@ public CreateRetailMediaAudienceAttributes categoryIds(List categoryIds public CreateRetailMediaAudienceAttributes addCategoryIdsItem(Integer categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -396,11 +397,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceAttributes.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(userType, lookbackWindow, brandIds, categoryIds, retailerId, name, 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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CreateRetailMediaAudienceResponse.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CreateRetailMediaAudienceResponse.java index e0137e99..9824b85d 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CreateRetailMediaAudienceResponse.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/CreateRetailMediaAudienceResponse.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; @@ -186,11 +187,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceResponse.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/Error.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/Error.java index db3b178c..e954f471 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/Error.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/Error.java @@ -25,6 +25,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -248,7 +249,7 @@ public Error stackTrace(List stackTrace) { public Error addStackTraceItem(String stackTraceItem) { if (this.stackTrace == null) { - this.stackTrace = new ArrayList<>(); + this.stackTrace = null; } this.stackTrace.add(stackTraceItem); return this; @@ -401,11 +402,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, error.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(code, detail, instance, source, stackTrace, title, traceId, 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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/GetPageOfAudiencesByAccountIdResponse.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/GetPageOfAudiencesByAccountIdResponse.java index 7c460f08..b318c063 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/GetPageOfAudiencesByAccountIdResponse.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/GetPageOfAudiencesByAccountIdResponse.java @@ -27,6 +27,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; @@ -207,11 +208,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, getPageOfAudiencesByAccountIdResponse.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, metadata, 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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ProblemDetails.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ProblemDetails.java index fe0d7a3b..eb9852c6 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ProblemDetails.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ProblemDetails.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; @@ -420,11 +421,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemDetails.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ReportRequestAttributes.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ReportRequestAttributes.java index 283a4c89..e0de98df 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ReportRequestAttributes.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ReportRequestAttributes.java @@ -24,6 +24,7 @@ import java.time.LocalDate; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -83,7 +84,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -142,7 +143,7 @@ public static FormatEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -278,7 +279,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -398,7 +399,7 @@ public ReportRequestAttributes ids(List ids) { public ReportRequestAttributes addIdsItem(String idsItem) { if (this.ids == null) { - this.ids = new ArrayList<>(); + this.ids = null; } this.ids.add(idsItem); return this; @@ -597,11 +598,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportRequestAttributes.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(clickAttributionWindow, endDate, format, id, ids, reportType, revenueType, startDate, timeZone, viewAttributionWindow, 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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ReportStatusAttributes.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ReportStatusAttributes.java index c20707c4..6da192bf 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ReportStatusAttributes.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ReportStatusAttributes.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; @@ -349,11 +350,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportStatusAttributes.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(createdAt, expiresAt, fileSizeBytes, md5Checksum, message, rowCount, status, 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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfAuctionLineItem.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfAuctionLineItem.java index f7212de0..9988c0fe 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfAuctionLineItem.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfAuctionLineItem.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, resourceOfAuctionLineItem.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfAuctionLineItemUpdateModel.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfAuctionLineItemUpdateModel.java index 92ae2b94..258138fb 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfAuctionLineItemUpdateModel.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfAuctionLineItemUpdateModel.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, resourceOfAuctionLineItemUpdateModel.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfBalance202110.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfBalance202110.java index 0f241716..cf17ec9f 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfBalance202110.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfBalance202110.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, resourceOfBalance202110.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfBalanceCampaign202110.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfBalanceCampaign202110.java index ff5ce1ee..7fdbc81e 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfBalanceCampaign202110.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfBalanceCampaign202110.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, resourceOfBalanceCampaign202110.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCategory202204.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCategory202204.java index a3fcdf84..97512bcb 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCategory202204.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCategory202204.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, resourceOfCategory202204.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCommonLineItem.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCommonLineItem.java index 7a855f13..8fec17e8 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCommonLineItem.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCommonLineItem.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, resourceOfCommonLineItem.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCreative202110.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCreative202110.java index a22b4e2b..6dc9ac89 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCreative202110.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCreative202110.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, resourceOfCreative202110.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCreative202207.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCreative202207.java index 607f7489..9ae741a1 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCreative202207.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfCreative202207.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, resourceOfCreative202207.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPreferredLineItem202110.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPreferredLineItem202110.java index 8ce6d003..0f060d06 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPreferredLineItem202110.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPreferredLineItem202110.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, resourceOfPreferredLineItem202110.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPreferredLineItemUpdateModel202110.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPreferredLineItemUpdateModel202110.java index 7266be50..0c9ece32 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPreferredLineItemUpdateModel202110.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPreferredLineItemUpdateModel202110.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, resourceOfPreferredLineItemUpdateModel202110.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPromotedProduct202110.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPromotedProduct202110.java index 174db9b6..c8ea0d47 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPromotedProduct202110.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfPromotedProduct202110.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, resourceOfPromotedProduct202110.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/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfTemplate.java b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfTemplate.java index 9b0a28c1..8910b060 100644 --- a/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfTemplate.java +++ b/sdks/retailmedia_2022-10/src/main/java/com/criteo/api/retailmedia/v2022_10/model/ResourceOfTemplate.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, resourceOfTemplate.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/retailmedia_2023-01/README.md b/sdks/retailmedia_2023-01/README.md index 13954256..3e23f87b 100644 --- a/sdks/retailmedia_2023-01/README.md +++ b/sdks/retailmedia_2023-01/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com Criteo API -- Package version: 2023.01.0.230728 +- Package version: 2023.01.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-retailmedia-sdk - 2023.01.0.230728 + 2023.01.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-retailmedia-sdk:2023.01.0.230728" +compile "com.criteo:criteo-api-retailmedia-sdk:2023.01.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-retailmedia-sdk-2023.01.0.230728.jar` +* `target/criteo-api-retailmedia-sdk-2023.01.0.230831.jar` * `target/lib/*.jar` ## Example diff --git a/sdks/retailmedia_2023-01/api/openapi.yaml b/sdks/retailmedia_2023-01/api/openapi.yaml index 233d1ed7..61f2e9c8 100644 --- a/sdks/retailmedia_2023-01/api/openapi.yaml +++ b/sdks/retailmedia_2023-01/api/openapi.yaml @@ -74,11 +74,11 @@ paths: tags: - Campaign x-accepts: application/json - /2023-01/retail-media/accounts/{accountId}/retailers: + /2023-01/retail-media/accounts/{accountId}/brands: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId parameters: - description: The given account id explode: false @@ -127,16 +127,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' + $ref: '#/components/schemas/JsonApiPageResponseOfBrand' description: Success tags: - Campaign x-accepts: application/json - /2023-01/retail-media/accounts/{accountId}/brands: + /2023-01/retail-media/accounts/{accountId}/retailers: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId parameters: - description: The given account id explode: false @@ -185,7 +185,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfBrand' + $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' description: Success tags: - Campaign @@ -501,15 +501,38 @@ paths: - Audience x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/accounts/{accountId}/catalogs: + /2023-01/retail-media/accounts/{account-id}/creatives: + get: + description: Get account creatives + operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId + parameters: + - description: External account id to retrieve creatives for + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Creative202110ListResponse' + description: Creatives found + tags: + - Campaign + x-accepts: application/json post: - description: Create a request for a Catalog available to the indicated account. - operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId + description: Create a creative for an account + operationId: CreativesApi_PostApi202207ExternalAccountCreativesByAccountId parameters: - - description: The account to request the catalog for. + - description: External account id to create a creative for explode: false in: path - name: accountId + name: account-id required: true schema: type: string @@ -519,29 +542,39 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiRequestOfCatalogRequest' + $ref: '#/components/schemas/CreativeCreateModel202207' + description: The creative to create x-nullable: false - x-bodyName: request + x-bodyName: creative responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request successfully created + $ref: '#/components/schemas/Creative202207Response' + description: Creatives created tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/catalogs/{catalogId}/status: + /2023-01/retail-media/accounts/{account-id}/creatives/{creative-id}: get: - description: Check the status of a catalog request. - operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId + description: Get the specified creative + operationId: "CreativesApi_GetApi202207ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id to retrieve creatives for explode: false in: path - name: catalogId + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: Creative to get + explode: false + in: path + name: creative-id required: true schema: type: string @@ -552,76 +585,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request found. + $ref: '#/components/schemas/Creative202207Response' + description: Creatives found tags: - Campaign x-accepts: application/json - /2023-01/retail-media/catalogs/{catalogId}/output: - get: - description: "Output the indicated catalog. Catalogs are only available for\ - \ retrieval when their associated status request\r\nis at a Success status.\r\ - \nProduces application/x-json-stream of v2021_07 CatalogProduct json objects." - operationId: CatalogApi_GetApiV1ExternalCatalogOutputByCatalogId + put: + description: Update a creative + operationId: "CreativesApi_PutApi202207ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id containing the creative explode: false in: path - name: catalogId + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: Creative to update + explode: false + in: path + name: creative-id required: true schema: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreativeUpdateModel202207' + description: The creative to create + x-nullable: false + x-bodyName: creative responses: "200": content: - application/x-json-stream: {} - application/json: {} - description: Catalog download initiated. - "400": + application/json: + schema: + $ref: '#/components/schemas/Creative202207Response' + description: Success + "204": content: - application/x-json-stream: {} application/json: {} - description: "The indicated catalog is not available for retrieval, wait\ - \ for a success status." + description: Creative updated tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/retailers/{retailerId}/pages: - get: - description: Get the page types available for the given retailer - operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId + /2023-01/retail-media/accounts/{accountId}/catalogs: + post: + description: Create a request for a Catalog available to the indicated account. + operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId parameters: - - description: The retailers to fetch pages for + - description: The account to request the catalog for. explode: false in: path - name: retailerId + name: accountId required: true schema: - format: int32 - type: integer + type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiRequestOfCatalogRequest' + x-nullable: false + x-bodyName: request responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ExternalRetailerPages202110' - description: Pages fetched successfully + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request successfully created tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/accounts/{account-id}/creatives: + /2023-01/retail-media/catalogs/{catalogId}/output: get: - description: Get account creatives - operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId + description: "Output the indicated catalog. Catalogs are only available for\ + \ retrieval when their associated status request\r\nis at a Success status.\r\ + \nProduces application/x-json-stream of v2021_07 CatalogProduct json objects." + operationId: CatalogApi_GetApiV1ExternalCatalogOutputByCatalogId parameters: - - description: External account id to retrieve creatives for + - description: A catalog ID returned from an account catalog request. explode: false in: path - name: account-id + name: catalogId required: true schema: type: string @@ -630,44 +686,41 @@ paths: responses: "200": content: - application/json: - schema: - $ref: '#/components/schemas/Creative202110ListResponse' - description: Creatives found + application/x-json-stream: {} + application/json: {} + description: Catalog download initiated. + "400": + content: + application/x-json-stream: {} + application/json: {} + description: "The indicated catalog is not available for retrieval, wait\ + \ for a success status." tags: - Campaign x-accepts: application/json - post: - description: Create a creative for an account - operationId: CreativesApi_PostApi202207ExternalAccountCreativesByAccountId + /2023-01/retail-media/catalogs/{catalogId}/status: + get: + description: Check the status of a catalog request. + operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId parameters: - - description: External account id to create a creative for + - description: A catalog ID returned from an account catalog request. explode: false in: path - name: account-id + name: catalogId required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreativeCreateModel202207' - description: The creative to create - x-nullable: false - x-bodyName: creative responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/Creative202207Response' - description: Creatives created + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request found. tags: - Campaign - x-content-type: application/json x-accepts: application/json /2023-01/retail-media/categories: get: @@ -824,27 +877,19 @@ paths: tags: - Campaign x-accepts: application/json - /2023-01/retail-media/accounts/{account-id}/creatives/{creative-id}: + /2023-01/retail-media/retailers/{retailerId}/pages: get: - description: Get the specified creative - operationId: "CreativesApi_GetApi202207ExternalAccountByAccountId}Creatives{creativeId" + description: Get the page types available for the given retailer + operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId parameters: - - description: External account id to retrieve creatives for - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creative to get + - description: The retailers to fetch pages for explode: false in: path - name: creative-id + name: retailerId required: true schema: - type: string + format: int32 + type: integer style: simple x-nullable: false responses: @@ -852,60 +897,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Creative202207Response' - description: Creatives found + $ref: '#/components/schemas/ExternalRetailerPages202110' + description: Pages fetched successfully tags: - Campaign x-accepts: application/json - put: - description: Update a creative - operationId: "CreativesApi_PutApi202207ExternalAccountByAccountId}Creatives{creativeId" - parameters: - - description: External account id containing the creative - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creative to update - explode: false - in: path - name: creative-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreativeUpdateModel202207' - description: The creative to create - x-nullable: false - x-bodyName: creative - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Creative202207Response' - description: Success - "204": - content: - application/json: {} - description: Creative updated - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-01/retail-media/reports/campaigns: - post: - description: Request a campaign report - operationId: requestCampaignReport + /2023-01/retail-media/reports/campaigns: + post: + description: Request a campaign report + operationId: requestCampaignReport requestBody: content: application/json: @@ -1032,15 +1032,15 @@ paths: tags: - Analytics x-accepts: application/json - /2023-01/retail-media/campaigns/{campaign-id}/auction-line-items: + /2023-01/retail-media/accounts/{account-id}/balances: get: - description: Gets page of auction line item objects for the given campaign id - operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId + description: Gets page of balance objects for the given account id + operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId parameters: - - description: The given campaign id + - description: The account to get balances for explode: false in: path - name: campaign-id + name: account-id required: true schema: type: string @@ -1084,75 +1084,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' - description: Bad Request - tags: - - Campaign - x-accepts: application/json - post: - description: Creates new auction line item with the specified settings - operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId - parameters: - - description: The given campaign id - explode: false - in: path - name: campaign-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' - description: The line item settings to create a line item with - x-nullable: false - x-bodyName: lineItem - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-01/retail-media/line-items/{line-item-id}: - get: - description: Gets the line item for the given line item id - operationId: GetApiV2ExternalLineItemByLineItemId - parameters: - - description: The given line item id - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CommonLineItemResponse' + $ref: '#/components/schemas/Balance202110PagedListResponse' description: Success tags: - Campaign @@ -1240,6 +1172,103 @@ paths: tags: - Campaign x-accepts: application/json + /2023-01/retail-media/accounts/{accountId}/campaigns: + get: + description: "Get all the editable and creatable campaign attributes including\ + \ all types of budgets for each campaigns in relation to the account id, limited\ + \ by the campaign ids." + operationId: Campaigns_GetApi202301ExternalAccountCampaignsByAccountId + parameters: + - description: The account to request the campaign for. + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + default: 0 + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + default: 25 + format: int32 + type: integer + style: form + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiPageResponseOfCampaignV202301' + description: Success + tags: + - Campaign + x-accepts: application/json + post: + description: Create a campaign and assign budgets for the given account id with + creatable campaign attributes given in request body constrained by business + validation. The validation error includes details and source of errors. Pacing + can be adjusted and affected by the status of the campaign and the days left + on the campaign if auto daily pacing is enabled. + operationId: Campaigns_PostApi202301ExternalAccountCampaignsByAccountId + parameters: + - description: The account to request the campaign for. + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PostCampaignV202301' + description: Creatable campaign attributes + x-nullable: false + x-bodyName: campaign + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' + description: Success + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json /2023-01/retail-media/auction-line-items/{line-item-id}: get: description: Gets the auction line item for the given line item id @@ -1418,45 +1447,72 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/stores: + /2023-01/retail-media/balances/{balance-id}/campaigns: get: - description: This endpoint gets the store target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + description: Gets page of campaigns for the given balanceId + operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId parameters: - - description: The line item to interact with + - description: The balance to get campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string style: simple x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: This endpoint sets the scope of the store target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + /2023-01/retail-media/balances/{balance-id}/campaigns/append: + post: + description: appends one or more campaigns to the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId parameters: - - description: The line item to interact with + - description: The balance to add campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -1466,37 +1522,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Request' - description: The store target to set the scope for + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: storeTarget + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: + /2023-01/retail-media/balances/{balance-id}/campaigns/delete: post: - description: This endpoint appends one or more store ids to targeting on the - specified line item. The resulting state of the store target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId + description: Removes one or more campaigns on the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId parameters: - - description: The line item to interact with + - description: The balance to remove campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -1506,107 +1555,92 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' - description: Store ids to append to the target + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: idsToAppend + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: - post: - description: This endpoint removes one or more store ids from targeting on the - specified line item. The resulting state of the store target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId + /2023-01/retail-media/campaigns/{campaign-id}/auction-line-items: + get: + description: Gets page of auction line item objects for the given campaign id + operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' - description: Store ids to remove from the target + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form x-nullable: false - x-bodyName: idsToRemove - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: - get: - description: This endpoint gets the add to basket target on the specified line - item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId - parameters: - - description: The line item to interact with - explode: false - in: path - name: line-item-id - required: true + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false schema: - type: string - style: simple + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: This endpoint sets the scope of the add to basket target on the - specified line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + post: + description: Creates new auction line item with the specified settings + operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string @@ -1616,79 +1650,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Request' - description: The add to basket target to set the scope for + $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' + description: The line item settings to create a line item with x-nullable: false - x-bodyName: addToBasketTarget + x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: - post: - description: This endpoint appends one or more add to basket ids to targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId + /2023-01/retail-media/campaigns/{campaign-id}/preferred-line-items: + get: + description: Gets page of preferred line item objects for the given campaign + id + operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to append to the target + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: post: - description: This endpoint removes one or more add to basket ids from targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId + description: Creates a new preferred line item with the specified settings + operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string @@ -1698,36 +1752,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to remove from the target + $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' + description: The line item settings to create a line item with x-nullable: false - x-bodyName: idsToRemove + x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: + /2023-01/retail-media/campaigns/{campaignId}: get: - description: This endpoint gets the audience target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + description: Get all the editable and creatable campaign attributes including + all types of budgets given the campaign id + operationId: Campaigns_GetApi202301ExternalCampaignByCampaignId parameters: - - description: The line item to interact with + - description: Campaign Id of the campaign detail explode: false in: path - name: line-item-id + name: campaignId required: true schema: type: string @@ -1738,26 +1793,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign x-accepts: application/json put: - description: This endpoint sets the scope of the audience target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + description: Edit a campaign for the given campaign id with a given editable + attributes. This will return updated creatable and editable attributes of + the campaign as the result of the operation. Pacing can be adjusted and affected + by the status of the campaign and the days left on the campaign if auto daily + pacing is enabled. + operationId: Campaigns_PutApi202301ExternalCampaignByCampaignId parameters: - - description: The line item to interact with + - description: Campaign Id of the updating campaign explode: false in: path - name: line-item-id + name: campaignId required: true schema: type: string @@ -1767,34 +1819,79 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Request' - description: The audience target to set the scope for + $ref: '#/components/schemas/PutCampaignV202301' + description: Editable campaign attributes x-nullable: false - x-bodyName: audienceTarget + x-bodyName: campaign responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2023-01/retail-media/line-items/{line-item-id}: + get: + description: Gets the line item for the given line item id + operationId: GetApiV2ExternalLineItemByLineItemId + parameters: + - description: The given line item id + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request + $ref: '#/components/schemas/CommonLineItemResponse' + description: Success tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: - post: - description: This endpoint appends one or more audiences ids to targeting on - the specified line item. The resulting state of the audience target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId + /2023-01/retail-media/line-items/{line-item-id}/bid-multipliers: + get: + description: Get bid multipliers by line item + operationId: LineItems_GetApi202301ExternalLineItemBidMultipliersByLineItemId parameters: - - description: The line item to interact with + - description: Long external id of the associated line item + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + application/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + text/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + description: Success + tags: + - Campaign + x-accepts: application/json + put: + description: Replace bid multipliers on a line item + operationId: LineItems_PutApi202301ExternalLineItemBidMultipliersByLineItemId + parameters: + - description: Long external id of the associated line item explode: false in: path name: line-item-id @@ -1802,38 +1899,93 @@ paths: schema: type: string style: simple - x-nullable: false requestBody: content: application/json: schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' - description: Audience ids to append to the target + $ref: '#/components/schemas/LineItemBidMultipliersRequest' x-nullable: false - x-bodyName: idsToAppend + x-bodyName: request responses: "200": content: + text/plain: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersResponse' application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/LineItemBidMultipliersResponse' + text/json: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersResponse' description: Success - "400": + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2023-01/retail-media/line-items/{line-item-id}/products: + get: + description: This endpoint gets the promoted products on the specified line + item. + operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + responses: + "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + description: Success tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: + /2023-01/retail-media/line-items/{line-item-id}/products/append: post: - description: This endpoint removes one or more audiences ids from targeting - on the specified line item. The resulting state of the audience target is - returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId + description: This endpoint appends one or more products to promote on the specified + line item. The resulting state of the line item is returned. + operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsAppendByLineItemId parameters: - description: The line item to interact with explode: false @@ -1848,23 +2000,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' - description: Audience ids to remove from the target + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: the products to append to this line item x-nullable: false - x-bodyName: idsToRemove + x-bodyName: promotedProductsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' description: Success - "400": + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2023-01/retail-media/line-items/{line-item-id}/products/delete: + post: + description: This endpoint removes one or more products from promotion on the + specified line item. The resulting state of the line item is returned. + operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsDeleteByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: "" + x-nullable: false + x-bodyName: promotedProductsToRemove + responses: + "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + description: Success tags: - Campaign x-content-type: application/json @@ -1997,11 +2177,11 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/line-items/{line-item-id}/products: + /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: get: - description: This endpoint gets the promoted products on the specified line + description: This endpoint gets the add to basket target on the specified line item. - operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId parameters: - description: The line item to interact with explode: false @@ -2012,54 +2192,26 @@ paths: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success - tags: - - Campaign - x-accepts: application/json - /2023-01/retail-media/line-items/{line-item-id}/products/append: - post: - description: This endpoint appends one or more products to promote on the specified - line item. The resulting state of the line item is returned. - operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsAppendByLineItemId + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request + tags: + - Campaign + x-accepts: application/json + put: + description: This endpoint sets the scope of the add to basket target on the + specified line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId parameters: - description: The line item to interact with explode: false @@ -2074,26 +2226,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: the products to append to this line item + $ref: '#/components/schemas/AddToBasketTarget202110Request' + description: The add to basket target to set the scope for x-nullable: false - x-bodyName: promotedProductsToAppend + x-bodyName: addToBasketTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/line-items/{line-item-id}/products/delete: + /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: post: - description: This endpoint removes one or more products from promotion on the - specified line item. The resulting state of the line item is returned. - operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsDeleteByLineItemId + description: This endpoint appends one or more add to basket ids to targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId parameters: - description: The line item to interact with explode: false @@ -2108,93 +2267,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: "" - x-nullable: false - x-bodyName: promotedProductsToRemove - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' - description: Success - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-01/retail-media/campaigns/{campaign-id}/preferred-line-items: - get: - description: Gets page of preferred line item objects for the given campaign - id - operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId - parameters: - - description: The given campaign id - explode: false - in: path - name: campaign-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to append to the target x-nullable: false + x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json + /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: post: - description: Creates a new preferred line item with the specified settings - operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId + description: This endpoint removes one or more add to basket ids from targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId parameters: - - description: The given campaign id + - description: The line item to interact with explode: false in: path - name: campaign-id + name: line-item-id required: true schema: type: string @@ -2204,150 +2308,106 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' - description: The line item settings to create a line item with + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to remove from the target x-nullable: false - x-bodyName: lineItem + x-bodyName: idsToRemove responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/accounts/{account-id}/balances: + /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: get: - description: Gets page of balance objects for the given account id - operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId + description: This endpoint gets the audience target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId parameters: - - description: The account to get balances for + - description: The line item to interact with explode: false in: path - name: account-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Balance202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign x-accepts: application/json - /2023-01/retail-media/balances/{balance-id}/campaigns: - get: - description: Gets page of campaigns for the given balanceId - operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId + put: + description: This endpoint sets the scope of the audience target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId parameters: - - description: The balance to get campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Request' + description: The audience target to set the scope for x-nullable: false + x-bodyName: audienceTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/balances/{balance-id}/campaigns/append: + /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: post: - description: appends one or more campaigns to the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId + description: This endpoint appends one or more audiences ids to targeting on + the specified line item. The resulting state of the audience target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId parameters: - - description: The balance to add campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string @@ -2357,30 +2417,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + description: Audience ids to append to the target x-nullable: false - x-bodyName: campaigns + x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/balances/{balance-id}/campaigns/delete: + /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: post: - description: Removes one or more campaigns on the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId + description: This endpoint removes one or more audiences ids from targeting + on the specified line item. The resulting state of the audience target is + returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId parameters: - - description: The balance to remove campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string @@ -2390,27 +2458,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + description: Audience ids to remove from the target x-nullable: false - x-bodyName: campaigns + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-01/retail-media/line-items/{line-item-id}/bid-multipliers: + /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/stores: get: - description: Get bid multipliers by line item - operationId: LineItems_GetApi202301ExternalLineItemBidMultipliersByLineItemId + description: This endpoint gets the store target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId parameters: - - description: Long external id of the associated line item + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2418,27 +2492,29 @@ paths: schema: type: string style: simple + x-nullable: false responses: "200": content: - text/plain: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' - text/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign x-accepts: application/json put: - description: Replace bid multipliers on a line item - operationId: LineItems_PutApi202301ExternalLineItemBidMultipliersByLineItemId + description: This endpoint sets the scope of the store target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingStoresByLineItemId parameters: - - description: Long external id of the associated line item + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2446,103 +2522,42 @@ paths: schema: type: string style: simple + x-nullable: false requestBody: content: application/json: schema: - $ref: '#/components/schemas/LineItemBidMultipliersRequest' + $ref: '#/components/schemas/StoreTarget202110Request' + description: The store target to set the scope for x-nullable: false - x-bodyName: request + x-bodyName: storeTarget responses: "200": content: - text/plain: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' application/json: schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' - text/json: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-01/retail-media/accounts/{accountId}/campaigns: - get: - description: "Get all the editable and creatable campaign attributes including\ - \ all types of budgets for each campaigns in relation to the account id, limited\ - \ by the campaign ids." - operationId: Campaigns_GetApi202301ExternalAccountCampaignsByAccountId - parameters: - - description: The account to request the campaign for. - explode: false - in: path - name: accountId - required: true - schema: - type: string - style: simple - x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - default: 0 - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - default: 25 - format: int32 - type: integer - style: form - x-nullable: false - responses: - "200": + "400": content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfCampaignV202301' - description: Success + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json + /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: post: - description: Create a campaign and assign budgets for the given account id with - creatable campaign attributes given in request body constrained by business - validation. The validation error includes details and source of errors. Pacing - can be adjusted and affected by the status of the campaign and the days left - on the campaign if auto daily pacing is enabled. - operationId: Campaigns_PostApi202301ExternalAccountCampaignsByAccountId + description: This endpoint appends one or more store ids to targeting on the + specified line item. The resulting state of the store target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId parameters: - - description: The account to request the campaign for. + - description: The line item to interact with explode: false in: path - name: accountId + name: line-item-id required: true schema: type: string @@ -2552,58 +2567,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PostCampaignV202301' - description: Creatable campaign attributes + $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' + description: Store ids to append to the target x-nullable: false - x-bodyName: campaign + x-bodyName: idsToAppend responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-01/retail-media/campaigns/{campaignId}: - get: - description: Get all the editable and creatable campaign attributes including - all types of budgets given the campaign id - operationId: Campaigns_GetApi202301ExternalCampaignByCampaignId - parameters: - - description: Campaign Id of the campaign detail - explode: false - in: path - name: campaignId - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": + "400": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' - description: Success + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - put: - description: Edit a campaign for the given campaign id with a given editable - attributes. This will return updated creatable and editable attributes of - the campaign as the result of the operation. Pacing can be adjusted and affected - by the status of the campaign and the days left on the campaign if auto daily - pacing is enabled. - operationId: Campaigns_PutApi202301ExternalCampaignByCampaignId + /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: + post: + description: This endpoint removes one or more store ids from targeting on the + specified line item. The resulting state of the store target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId parameters: - - description: Campaign Id of the updating campaign + - description: The line item to interact with explode: false in: path - name: campaignId + name: line-item-id required: true schema: type: string @@ -2613,17 +2607,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PutCampaignV202301' - description: Editable campaign attributes + $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' + description: Store ids to remove from the target x-nullable: false - x-bodyName: campaign + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json @@ -2689,12 +2689,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 @@ -2711,6 +2713,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/ApplicationSummaryModel' @@ -2731,10 +2734,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. @@ -2747,27 +2752,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: @@ -2781,15 +2793,20 @@ 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 JsonApiPageResponseOfAccount: @@ -2888,7 +2905,7 @@ components: - data type: object x-nullable: false - JsonApiPageResponseOfRetailer: + JsonApiPageResponseOfBrand: description: A wrapper class to return a single page of with metadata example: @@ -2902,16 +2919,10 @@ components: data: - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type warnings: @@ -2967,14 +2978,14 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' type: array x-nullable: false required: - data type: object x-nullable: false - JsonApiPageResponseOfBrand: + JsonApiPageResponseOfRetailer: description: A wrapper class to return a single page of with metadata example: @@ -2988,10 +2999,16 @@ components: data: - attributes: name: name - id: id + campaignEligibilities: + - unknown + - unknown + id: id type: type - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type warnings: @@ -3047,7 +3064,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' type: array x-nullable: false required: @@ -3256,15 +3273,12 @@ components: - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: + JsonApiBodyWithIdOfInt64AndBrandAndBrand: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type properties: @@ -3276,18 +3290,21 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalRetailer' + $ref: '#/components/schemas/ExternalBrand' required: - id - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndBrandAndBrand: + JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type properties: @@ -3299,7 +3316,7 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalBrand' + $ref: '#/components/schemas/ExternalRetailer' required: - id - type @@ -3364,6 +3381,21 @@ components: - type type: object x-nullable: false + ExternalBrand: + description: A Retail Media Brand used to represent a collection of products + sold under the same umbrella name + example: + name: name + properties: + name: + maxLength: 120 + minLength: 0 + type: string + x-nullable: false + required: + - name + type: object + x-nullable: false ExternalRetailer: description: A Retail Media Retailer used to represent a selection of products from multiple brands @@ -3391,21 +3423,6 @@ components: - name type: object x-nullable: false - ExternalBrand: - description: A Retail Media Brand used to represent a collection of products - sold under the same umbrella name - example: - name: name - properties: - name: - maxLength: 120 - minLength: 0 - type: string - x-nullable: false - required: - - name - type: object - x-nullable: false AssetResponse: description: A class implementing the response of the Criteo API as described in API Guild Guidelines with a single entity as body @@ -3465,12 +3482,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 @@ -3488,8 +3507,10 @@ components: attributes: $ref: '#/components/schemas/Asset' id: + nullable: true type: string type: + nullable: true type: string type: object Asset: @@ -3506,8 +3527,10 @@ components: type: string fileLocation: description: A url pointing towards the static file the asset represents. + nullable: true type: string id: + nullable: true type: string required: - fileExtension @@ -3602,12 +3625,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array metadata: @@ -3678,12 +3703,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array type: object @@ -3812,12 +3839,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array metadata: @@ -3833,12 +3862,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object @@ -3923,12 +3954,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object @@ -4304,12 +4337,14 @@ components: items: format: int64 type: integer + nullable: true type: array categoryIds: description: The categories to target items: format: int32 type: integer + nullable: true type: array retailerId: description: ID of the retailer associated with this audience @@ -4554,113 +4589,31 @@ components: items: format: int32 type: integer + nullable: true type: array brandIds: description: The brands to target items: format: int64 type: integer + nullable: true type: array minPrice: description: The min price of targeted skus. format: double + nullable: true readOnly: true type: number maxPrice: description: The max price of targeted skus. format: double + nullable: true readOnly: true type: number required: - lookbackWindow - userAction type: object - JsonApiSingleResponseOfCatalogStatus: - description: A JSON:API wrapper class to add one JSON:API within a data property - example: - data: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown - id: id - type: type - warnings: - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus' - errors: - items: - $ref: '#/components/schemas/CommonError' - type: array - x-nullable: false - warnings: - items: - $ref: '#/components/schemas/CommonWarning' - type: array - x-nullable: false - required: - - data - type: object - x-nullable: false - ExternalRetailerPages202110: - description: Wraps a list of valid pages for a retailer - example: - pageTypes: - - pageTypes - - pageTypes - properties: - pageTypes: - description: List of valid pages for a retailer - items: - type: string - x-nullable: false - type: array - x-nullable: false - type: object - x-nullable: false Creative202110ListResponse: description: Data model for a list of response resources example: @@ -4858,6 +4811,76 @@ components: x-nullable: false type: object x-nullable: false + JsonApiSingleResponseOfCatalogStatus: + description: A JSON:API wrapper class to add one JSON:API within a data property + example: + data: + attributes: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + id: id + type: type + warnings: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus' + errors: + items: + $ref: '#/components/schemas/CommonError' + type: array + x-nullable: false + warnings: + items: + $ref: '#/components/schemas/CommonWarning' + type: array + x-nullable: false + required: + - data + type: object + x-nullable: false Category202204ListResponse: description: Data model for a list of response resources example: @@ -5436,20 +5459,20 @@ components: x-nullable: false type: object x-nullable: false - JsonApiRequestOfCatalogRequest: - description: "A JSON:API wrapper class to format a with Type, and Attributes properties" + ExternalRetailerPages202110: + description: Wraps a list of valid pages for a retailer example: - data: - attributes: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - type: type + pageTypes: + - pageTypes + - pageTypes properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest' + pageTypes: + description: List of valid pages for a retailer + items: + type: string + x-nullable: false + type: array + x-nullable: false type: object x-nullable: false CreativeCreateModel202207: @@ -5594,33 +5617,20 @@ components: - templateVariableValues type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + JsonApiRequestOfCatalogRequest: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + \ /> with Type, and Attributes properties" example: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown - id: id - type: type + data: + attributes: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + type: type properties: - id: - format: long-id - type: string - x-nullable: false - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogStatus' - required: - - id - - type + data: + $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest' type: object x-nullable: false ResourceOfCreative202110: @@ -5640,9 +5650,11 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/Creative202110' @@ -5664,10 +5676,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. @@ -5767,10 +5781,41 @@ components: $ref: '#/components/schemas/Creative202207' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true + type: string + type: object + x-nullable: false + JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + example: + attributes: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + id: id + type: type + properties: + id: + format: long-id type: string + x-nullable: false + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalCatalogStatus' + required: + - id + - type type: object x-nullable: false ResourceOfCategory202204: @@ -5787,9 +5832,11 @@ components: $ref: '#/components/schemas/Category202204' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -5916,32 +5963,14 @@ components: $ref: '#/components/schemas/Template' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest: - description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" - example: - attributes: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - type: type - properties: - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogRequest' - required: - - type - type: object - x-nullable: false TemplateVariableValue: description: A value for a variable in a creative template. example: @@ -5979,72 +6008,24 @@ components: - id type: object x-nullable: false - ExternalCatalogStatus: - description: The status of an asynchronous request to generate a catalog + JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest: + description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" example: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown + attributes: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + type: type properties: - status: - description: An enumeration of the status of the catalog. - enum: - - unknown - - pending - - success - - failure - - expired - type: string - x-nullable: false - currency: - description: An ISO4217 representation of the currency products are listed - under in this catalog. - type: string - x-nullable: false - rowCount: - description: "An indication of the number of products contained in this\ - \ catalog. Available when\r\nthis catalog reaches a success status." - format: int32 - nullable: true - type: integer - x-nullable: true - fileSizeBytes: - description: The size of this catalog in bytes. Available when this catalog - reaches a success status. - format: int32 - nullable: true - type: integer - x-nullable: true - md5Checksum: - description: "An MD5 checksum of the catalog for use in confirming complete\ - \ and uncorrupted retrieval.\r\nAvailable when this catalog reaches a\ - \ success status." - nullable: true - type: string - x-nullable: true - createdAt: - description: The time this catalog was created. Represented as a UTC ISO8601 - string. - format: date-time + type: type: string x-nullable: false - message: - description: An optional information message intended for developer consumption. - nullable: true - type: string - x-nullable: true + attributes: + $ref: '#/components/schemas/ExternalCatalogRequest' required: - - createdAt - - currency - - fileSizeBytes - - md5Checksum - - message - - rowCount - - status + - type type: object x-nullable: false Creative202110: @@ -6219,6 +6200,74 @@ components: - templateVariableValues type: object x-nullable: false + ExternalCatalogStatus: + description: The status of an asynchronous request to generate a catalog + example: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + properties: + status: + description: An enumeration of the status of the catalog. + enum: + - unknown + - pending + - success + - failure + - expired + type: string + x-nullable: false + currency: + description: An ISO4217 representation of the currency products are listed + under in this catalog. + type: string + x-nullable: false + rowCount: + description: "An indication of the number of products contained in this\ + \ catalog. Available when\r\nthis catalog reaches a success status." + format: int32 + nullable: true + type: integer + x-nullable: true + fileSizeBytes: + description: The size of this catalog in bytes. Available when this catalog + reaches a success status. + format: int32 + nullable: true + type: integer + x-nullable: true + md5Checksum: + description: "An MD5 checksum of the catalog for use in confirming complete\ + \ and uncorrupted retrieval.\r\nAvailable when this catalog reaches a\ + \ success status." + nullable: true + type: string + x-nullable: true + createdAt: + description: The time this catalog was created. Represented as a UTC ISO8601 + string. + format: date-time + type: string + x-nullable: false + message: + description: An optional information message intended for developer consumption. + nullable: true + type: string + x-nullable: true + required: + - createdAt + - currency + - fileSizeBytes + - md5Checksum + - message + - rowCount + - status + type: object + x-nullable: false Template: description: A template for creating creatives. example: @@ -6418,36 +6467,13 @@ components: - updatedAt type: object x-nullable: false - ExternalCatalogRequest: - description: A request for a catalog under the specified format. Currently "json-newline" - is supported. + TextVariableValue: + description: A value of a template text variable example: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline + text: text properties: - format: - default: json-newline - enum: - - json-newline - type: string - x-nullable: false - brandIdFilter: - items: - format: long-id - type: string - type: array - x-nullable: false - type: object - x-nullable: false - TextVariableValue: - description: A value of a template text variable - example: - text: text - properties: - text: - description: The displayed text + text: + description: The displayed text type: string x-nullable: false required: @@ -6520,6 +6546,29 @@ components: - url type: object x-nullable: false + ExternalCatalogRequest: + description: A request for a catalog under the specified format. Currently "json-newline" + is supported. + example: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + properties: + format: + default: json-newline + enum: + - json-newline + type: string + x-nullable: false + brandIdFilter: + items: + format: long-id + type: string + type: array + x-nullable: false + type: object + x-nullable: false Section: description: Section object that hold template variables example: @@ -6791,6 +6840,7 @@ components: description: The errors items: $ref: '#/components/schemas/Error' + nullable: true type: array type: object EnvelopeReportRequest: @@ -6854,6 +6904,7 @@ components: detail: description: (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. + nullable: true type: string instance: description: (REQUIRED) A URI reference that identifies the specific occurrence @@ -6870,10 +6921,12 @@ components: \ by the implementation technology e.g. .Net, Scala, etc" items: type: string + nullable: true type: array title: description: "(RECOMMENDED) A short, human-readable summary of the problem\ \ type." + nullable: true type: string traceId: description: (REQUIRED) The Correlation ID provided by the Gateway. It is @@ -6938,24 +6991,30 @@ components: createdAt: description: Timestamp when the report started to execute format: date-time + nullable: true type: string expiresAt: description: Timestamp when the cached report will expire format: date-time + nullable: true type: string fileSizeBytes: description: "Total size of file, only populated on success" format: int64 + nullable: true type: integer md5Checksum: description: "The MD5 checksum of the content, only populated on success" + nullable: true type: string message: description: "Failure message, only populated on failure" + nullable: true type: string rowCount: description: "Rows of data in report, only populated on success" format: int64 + nullable: true type: integer status: description: "One of \"pending\", \"success\", \"failure\", or \"expired\"" @@ -6997,6 +7056,7 @@ components: - 7D - 14D - 30D + nullable: true type: string endDate: description: "YYYY-MM-DD, must not be before startDate and not more than\ @@ -7012,16 +7072,19 @@ components: - json - json-compact - json-newline + nullable: true type: string id: description: "The id of the campaign or line item. Either 'id' or 'ids'\ \ must be specified, but not both" + nullable: true type: string ids: description: "The ids of the campaigns or line items. Either 'id' or 'ids'\ \ must be specified, but not both" items: type: string + nullable: true type: array reportType: description: "One of \"summary\", \"keyword\", \"pageType\", \"productCategory\"\ @@ -7035,12 +7098,14 @@ components: - attributedTransactions type: string revenueType: + nullable: true type: string startDate: description: YYYY-MM-DD format: date type: string timeZone: + nullable: true type: string viewAttributionWindow: description: "Defaults to value from campaign or one of \"none\", \"1D\"\ @@ -7052,13 +7117,14 @@ components: - 7D - 14D - 30D + nullable: true type: string required: - endDate - reportType - startDate type: object - AuctionLineItemPagedListResponse: + Balance202110PagedListResponse: description: Data model for a paged list of response resources example: metadata: @@ -7070,41 +7136,29 @@ components: currentPageIndex: 1 data: - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id @@ -7156,7 +7210,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/ResourceOfAuctionLineItem' + $ref: '#/components/schemas/ResourceOfBalance202110' type: array x-nullable: false warnings: @@ -7173,94 +7227,33 @@ components: x-nullable: false type: object x-nullable: false - AuctionLineItemResponse: - description: Data model for response resource + CommonLineItemPagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 + - attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 endDate: 2000-01-23 campaignId: campaignId - targetBid: 5.637376656633329 - createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + budgetSpent: 6.027456183070403 name: name - isAutoDailyPacing: false targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + type: unknown startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown + budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/ResourceOfAuctionLineItem' - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - type: object - x-nullable: false - CommonLineItemResponse: - description: Data model for response resource - example: - data: - attributes: + - attributes: budgetRemaining: 1.4658129805029452 createdAt: 2000-01-23T04:56:07.000+00:00 endDate: 2000-01-23 @@ -7318,8 +7311,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ResourceOfCommonLineItem' + items: + $ref: '#/components/schemas/ResourceOfCommonLineItem' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7334,8 +7332,9 @@ components: x-nullable: false type: object x-nullable: false - CommonLineItemPagedListResponse: - description: Data model for a paged list of response resources + JsonApiPageResponseOfCampaignV202301: + description: A wrapper class to return a single page of with metadata example: metadata: currentPageSize: 6 @@ -7346,38 +7345,61 @@ components: currentPageIndex: 1 data: - attributes: - budgetRemaining: 1.4658129805029452 + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 status: unknown - budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 id: id type: type - attributes: - budgetRemaining: 1.4658129805029452 + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 status: unknown - budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 id: id type: type warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -7387,7 +7409,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -7398,7 +7419,6 @@ components: title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -7408,7 +7428,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -7418,38 +7437,62 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' - data: + errors: items: - $ref: '#/components/schemas/ResourceOfCommonLineItem' + $ref: '#/components/schemas/CommonError' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonWarning' type: array x-nullable: false - errors: + metadata: + $ref: '#/components/schemas/PageMetadata' + data: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' type: array x-nullable: false + required: + - data + - metadata type: object x-nullable: false - KeywordTarget202110Response: - description: Data model for a value type resource outcome + JsonApiSingleResponseOfCampaignV202301: + description: A JSON:API wrapper class to add one JSON:API within a data property example: data: attributes: - keywords: - key: unknown + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 + id: id type: type warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -7459,7 +7502,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -7470,7 +7512,6 @@ components: title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -7480,7 +7521,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -7491,30 +7531,44 @@ components: title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' - warnings: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' + errors: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonError' type: array x-nullable: false - errors: + warnings: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonWarning' type: array x-nullable: false + required: + - data type: object x-nullable: false - StoreTarget202110Response: - description: Data model for a value type resource outcome + AuctionLineItemResponse: + description: Data model for response resource example: data: attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -7560,7 +7614,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + $ref: '#/components/schemas/ResourceOfAuctionLineItem' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7575,18 +7629,13 @@ components: x-nullable: false type: object x-nullable: false - AddToBasketTarget202110Response: + KeywordTarget202110Response: description: Data model for a value type resource outcome example: data: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + keywords: + key: unknown type: type warnings: - traceId: traceId @@ -7632,7 +7681,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7647,15 +7696,22 @@ components: x-nullable: false type: object x-nullable: false - AudienceTarget202110Response: - description: Data model for a value type resource outcome + BalanceCampaign202110PagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + - attributes: "{}" + id: id + type: type + - attributes: "{}" + id: id type: type warnings: - traceId: traceId @@ -7700,8 +7756,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' + items: + $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7716,36 +7777,54 @@ components: x-nullable: false type: object x-nullable: false - PreferredLineItem202110Response: - description: Data model for response resource + AuctionLineItemPagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - budgetRemaining: 5.962133916683182 + - attributes: + bidStrategy: conversion + budgetRemaining: 7.061401241503109 endDate: 2000-01-23 campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId + targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId + isAutoDailyPacing: false targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 budget: 6.027456183070403 + status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -7792,8 +7871,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + items: + $ref: '#/components/schemas/ResourceOfAuctionLineItem' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -7808,7 +7892,7 @@ components: x-nullable: false type: object x-nullable: false - PromotedProduct202110PagedListResponse: + PreferredLineItem202110PagedListResponse: description: Data model for a paged list of response resources example: metadata: @@ -7820,115 +7904,32 @@ components: currentPageIndex: 1 data: - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - metadata: - $ref: '#/components/schemas/PageMetadata' - data: - items: - $ref: '#/components/schemas/ResourceOfPromotedProduct202110' - type: array - x-nullable: false - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - type: object - x-nullable: false - PreferredLineItem202110PagedListResponse: - description: Data model for a paged list of response resources - example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 - data: - - attributes: - budgetRemaining: 5.962133916683182 - endDate: 2000-01-23 - campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId - createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 - name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - status: unknown - budget: 6.027456183070403 - updatedAt: 2000-01-23T04:56:07.000+00:00 + budgetRemaining: 5.962133916683182 + endDate: 2000-01-23 + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId + createdAt: 2000-01-23T04:56:07.000+00:00 + pacing: unknown + budgetSpent: 1.4658129805029452 + name: name + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + status: unknown + budget: 6.027456183070403 + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - attributes: @@ -8024,42 +8025,36 @@ components: x-nullable: false type: object x-nullable: false - Balance202110PagedListResponse: - description: Data model for a paged list of response resources + PreferredLineItem202110Response: + description: Data model for response resource example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 + attributes: + budgetRemaining: 5.962133916683182 endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 + pacing: unknown + budgetSpent: 1.4658129805029452 name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId startDate: 2000-01-23 status: unknown + budget: 6.027456183070403 updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -8106,13 +8101,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfBalance202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -8127,21 +8117,23 @@ components: x-nullable: false type: object x-nullable: false - BalanceCampaign202110PagedListResponse: - description: Data model for a paged list of response resources + CommonLineItemResponse: + description: Data model for response resource example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" + attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type warnings: @@ -8187,13 +8179,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfCommonLineItem' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -8352,9 +8339,8 @@ components: x-nullable: false type: object x-nullable: false - JsonApiPageResponseOfCampaignV202301: - description: A wrapper class to return a single page of with metadata + PromotedProduct202110PagedListResponse: + description: Data model for a paged list of response resources example: metadata: currentPageSize: 6 @@ -8365,61 +8351,16 @@ components: currentPageIndex: 1 data: - attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 - startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 + bidOverride: 0.8008281904610115 id: id type: type - attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 - startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 + bidOverride: 0.8008281904610115 id: id type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8429,6 +8370,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8439,6 +8381,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8448,6 +8391,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8457,62 +8401,43 @@ components: type: unknown title: title properties: - errors: + metadata: + $ref: '#/components/schemas/PageMetadata' + data: items: - $ref: '#/components/schemas/CommonError' + $ref: '#/components/schemas/ResourceOfPromotedProduct202110' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/CommonWarning' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - metadata: - $ref: '#/components/schemas/PageMetadata' - data: + errors: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - required: - - data - - metadata type: object x-nullable: false - JsonApiSingleResponseOfCampaignV202301: - description: A JSON:API wrapper class to add one JSON:API within a data property + AddToBasketTarget202110Response: + description: Data model for a value type resource outcome example: data: attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 - startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 - id: id + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8522,6 +8447,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8532,6 +8458,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8541,6 +8468,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8551,42 +8479,184 @@ components: title: title properties: data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + warnings: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false errors: items: - $ref: '#/components/schemas/CommonError' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false + type: object + x-nullable: false + AudienceTarget202110Response: + description: Data model for a value type resource outcome + example: + data: + attributes: + scope: unknown + audienceIds: + - audienceIds + - audienceIds + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' warnings: items: - $ref: '#/components/schemas/CommonWarning' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - required: - - data type: object x-nullable: false - AuctionLineItemCreateModelRequest: - description: Data model for a create input resource + StoreTarget202110Response: + description: Data model for a value type resource outcome example: data: attributes: - bidStrategy: conversion - endDate: 2000-01-23 - maxBid: 1.4658129805029452 + scope: unknown + storeIds: + - storeIds + - storeIds + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + warnings: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + type: object + x-nullable: false + PostCampaignV202301: + description: An object that represents the available options to set when creating + a Retail Media Campaign + example: + data: + attributes: + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + clickAttributionScope: unknown + viewAttributionScope: unknown + viewAttributionWindow: None name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.637376656633329 - startDate: 2000-01-23 - targetBid: 6.027456183070403 - monthlyPacing: 5.962133916683182 - status: unknown + isAutoDailyPacing: true + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 budget: 0.8008281904610115 type: type properties: data: - $ref: '#/components/schemas/InputResourceOfAuctionLineItemCreateModel' + $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301' type: object x-nullable: false AuctionLineItemUpdateModelRequest: @@ -8625,97 +8695,122 @@ components: $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' type: object x-nullable: false - StoreTarget202110Request: - description: Data model for a value type input resource + BalanceCampaign202110ListRequest: + description: "A class implementing the request of the Criteo API as described\ + \ in API Guild Guidelines with a collection of entities as body\r\nhttps://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines" example: data: - attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + - attributes: "{}" + id: id type: type - properties: - data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' - type: object - x-nullable: false - StoreIdsUpdateModel202110Request: - description: Data model for a value type input resource - example: - data: - attributes: - storeIds: - - storeIds - - storeIds + - attributes: "{}" + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' + items: + $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' + type: array + x-nullable: false type: object x-nullable: false - AddToBasketTarget202110Request: - description: Data model for a value type input resource + AuctionLineItemCreateModelRequest: + description: Data model for a create input resource example: data: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + bidStrategy: conversion + endDate: 2000-01-23 + maxBid: 1.4658129805029452 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.637376656633329 + startDate: 2000-01-23 + targetBid: 6.027456183070403 + monthlyPacing: 5.962133916683182 + status: unknown + budget: 0.8008281904610115 type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + $ref: '#/components/schemas/InputResourceOfAuctionLineItemCreateModel' type: object x-nullable: false - AddToBasketIdsUpdateModel202110Request: - description: Data model for a value type input resource + PreferredLineItemCreateModel202110Request: + description: Data model for a create input resource example: data: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds + pacing: unknown + endDate: 2000-01-23 + name: name + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown + budget: 0.8008281904610115 type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketIdsUpdateModel202110' + $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModel202110' type: object x-nullable: false - AudienceTarget202110Request: - description: Data model for a value type input resource + PutCampaignV202301: + description: An object that represents the available options to set when editing + a Retail Media Campaign example: data: attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + clickAttributionWindow: 7D + endDate: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: None + isAutoDailyPacing: true + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + budget: 0.8008281904610115 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' + $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301' type: object x-nullable: false - AudienceIdsUpdateModel202110Request: - description: Data model for a value type input resource + LineItemBidMultipliersRequest: + description: Data model for an input resource example: data: attributes: - audienceIds: - - audienceIds - - audienceIds + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + categories: 1.4658129805029452 + confirmation: 5.637376656633329 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + homepage: 6.027456183070403 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceIdsUpdateModel202110' + $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' type: object x-nullable: false PromotedProduct202110ListRequest: @@ -8770,147 +8865,112 @@ components: $ref: '#/components/schemas/ResourceOfPreferredLineItemUpdateModel202110' type: object x-nullable: false - PreferredLineItemCreateModel202110Request: - description: Data model for a create input resource + AddToBasketTarget202110Request: + description: Data model for a value type input resource example: data: attributes: - pacing: unknown - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type properties: data: - $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModel202110' + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' type: object x-nullable: false - BalanceCampaign202110ListRequest: - description: "A class implementing the request of the Criteo API as described\ - \ in API Guild Guidelines with a collection of entities as body\r\nhttps://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines" + AddToBasketIdsUpdateModel202110Request: + description: Data model for a value type input resource example: data: - - attributes: "{}" - id: id + attributes: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds type: type - - attributes: "{}" - id: id + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketIdsUpdateModel202110' + type: object + x-nullable: false + AudienceTarget202110Request: + description: Data model for a value type input resource + example: + data: + attributes: + scope: unknown + audienceIds: + - audienceIds + - audienceIds type: type properties: data: - items: - $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' type: object x-nullable: false - LineItemBidMultipliersRequest: - description: Data model for an input resource + AudienceIdsUpdateModel202110Request: + description: Data model for a value type input resource example: data: attributes: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 - id: id + audienceIds: + - audienceIds + - audienceIds type: type properties: data: - $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' + $ref: '#/components/schemas/ValueTypeResourceOfAudienceIdsUpdateModel202110' type: object x-nullable: false - PostCampaignV202301: - description: An object that represents the available options to set when creating - a Retail Media Campaign + StoreTarget202110Request: + description: Data model for a value type input resource example: data: attributes: - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - clickAttributionScope: unknown - viewAttributionScope: unknown - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - budget: 0.8008281904610115 + scope: unknown + storeIds: + - storeIds + - storeIds type: type properties: data: - $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301' + $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' type: object x-nullable: false - PutCampaignV202301: - description: An object that represents the available options to set when editing - a Retail Media Campaign + StoreIdsUpdateModel202110Request: + description: Data model for a value type input resource example: data: attributes: - clickAttributionWindow: 7D - endDate: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - viewAttributionScope: unknown - name: name - viewAttributionWindow: None - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - budget: 0.8008281904610115 - id: id + storeIds: + - storeIds + - storeIds type: type properties: data: - $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301' + $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' type: object x-nullable: false - ResourceOfAuctionLineItem: - description: Data model for a Resource + ResourceOfBalance202110: + description: A class that represents an entity in a guild compliant way example: attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id @@ -8918,12 +8978,14 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: - $ref: '#/components/schemas/ExternalAuctionLineItem' + $ref: '#/components/schemas/ExternalBalance202110' type: object x-nullable: false ResourceOfCommonLineItem: @@ -8947,81 +9009,132 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalCommonLineItem' type: object x-nullable: false - ValueTypeResourceOfKeywordTarget202110: - description: Data model for a value type resource + JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: - keywords: - key: unknown + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 + id: id type: type properties: + id: + format: long-id + type: string + x-nullable: false type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalKeywordTarget202110' + $ref: '#/components/schemas/CampaignV202301' + required: + - id + - type type: object x-nullable: false - ValueTypeResourceOfStoreTarget202110: - description: Data model for a value type resource + ResourceOfAuctionLineItem: + description: Data model for a Resource example: attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalStoreTarget202110' + $ref: '#/components/schemas/ExternalAuctionLineItem' type: object x-nullable: false - ValueTypeResourceOfAddToBasketTarget202110: + ValueTypeResourceOfKeywordTarget202110: description: Data model for a value type resource example: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + keywords: + key: unknown type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAddToBasketTarget202110' + $ref: '#/components/schemas/ExternalKeywordTarget202110' type: object x-nullable: false - ValueTypeResourceOfAudienceTarget202110: - description: Data model for a value type resource + ResourceOfBalanceCampaign202110: + description: A class that represents an entity in a guild compliant way example: - attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + attributes: "{}" + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAudienceTarget202110' + description: Campaigns related to the balance + type: object + x-nullable: false type: object x-nullable: false ResourceOfPreferredLineItem202110: @@ -9059,79 +9172,16 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalPreferredLineItem202110' type: object x-nullable: false - ResourceOfPromotedProduct202110: - description: Data model for a Resource - example: - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - properties: - id: - description: Id of the entity - type: string - type: - description: Canonical type name of the entity - type: string - attributes: - $ref: '#/components/schemas/ExternalPromotedProduct202110' - type: object - x-nullable: false - ResourceOfBalance202110: - description: A class that represents an entity in a guild compliant way - example: - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - properties: - id: - description: Id of the entity - type: string - type: - description: Canonical type name of the entity - type: string - attributes: - $ref: '#/components/schemas/ExternalBalance202110' - type: object - x-nullable: false - ResourceOfBalanceCampaign202110: - description: A class that represents an entity in a guild compliant way - example: - attributes: "{}" - id: id - type: type - properties: - id: - description: Id of the entity - type: string - type: - description: Canonical type name of the entity - type: string - attributes: - description: Campaigns related to the balance - type: object - x-nullable: false - type: object - x-nullable: false JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers: description: Response object for line item bid multiplier calls example: @@ -9180,115 +9230,76 @@ components: $ref: '#/components/schemas/LineItemBidMultipliers' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301: - description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + ResourceOfPromotedProduct202110: + description: Data model for a Resource example: attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 - startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 + bidOverride: 0.8008281904610115 id: id type: type properties: id: - format: long-id + description: Id of the entity + nullable: true type: string - x-nullable: false type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/CampaignV202301' - required: - - id - - type + $ref: '#/components/schemas/ExternalPromotedProduct202110' type: object x-nullable: false - InputResourceOfAuctionLineItemCreateModel: - description: Data model for a Resource + ValueTypeResourceOfAddToBasketTarget202110: + description: Data model for a value type resource example: attributes: - bidStrategy: conversion - endDate: 2000-01-23 - maxBid: 1.4658129805029452 - name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.637376656633329 - startDate: 2000-01-23 - targetBid: 6.027456183070403 - monthlyPacing: 5.962133916683182 - status: unknown - budget: 0.8008281904610115 + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAuctionLineItemCreateModel' + $ref: '#/components/schemas/ExternalAddToBasketTarget202110' type: object x-nullable: false - ResourceOfAuctionLineItemUpdateModel: - description: Data model for a Resource + ValueTypeResourceOfAudienceTarget202110: + description: Data model for a value type resource example: attributes: - bidStrategy: conversion - endDate: 2000-01-23 - maxBid: 1.4658129805029452 - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - startDate: 2000-01-23 - targetBid: 6.027456183070403 - monthlyPacing: 5.962133916683182 - status: unknown - budget: 0.8008281904610115 - id: id + scope: unknown + audienceIds: + - audienceIds + - audienceIds type: type properties: - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAuctionLineItemUpdateModel' + $ref: '#/components/schemas/ExternalAudienceTarget202110' type: object x-nullable: false - ValueTypeResourceOfStoreIdsUpdateModel202110: + ValueTypeResourceOfStoreTarget202110: description: Data model for a value type resource example: attributes: + scope: unknown storeIds: - storeIds - storeIds @@ -9298,79 +9309,93 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' + $ref: '#/components/schemas/ExternalStoreTarget202110' type: object x-nullable: false - ValueTypeResourceOfAddToBasketIdsUpdateModel202110: - description: Data model for a value type resource + JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301: + description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" example: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + clickAttributionScope: unknown + viewAttributionScope: unknown + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + budget: 0.8008281904610115 type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAddToBasketIdsUpdateModel202110' + $ref: '#/components/schemas/CampaignAttributesV202301' + required: + - type type: object x-nullable: false - ValueTypeResourceOfAudienceIdsUpdateModel202110: - description: Data model for a value type resource + ResourceOfAuctionLineItemUpdateModel: + description: Data model for a Resource example: attributes: - audienceIds: - - audienceIds - - audienceIds + bidStrategy: conversion + endDate: 2000-01-23 + maxBid: 1.4658129805029452 + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + startDate: 2000-01-23 + targetBid: 6.027456183070403 + monthlyPacing: 5.962133916683182 + status: unknown + budget: 0.8008281904610115 + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAudienceIdsUpdateModel202110' + $ref: '#/components/schemas/ExternalAuctionLineItemUpdateModel' type: object x-nullable: false - ResourceOfPreferredLineItemUpdateModel202110: + InputResourceOfAuctionLineItemCreateModel: description: Data model for a Resource example: attributes: - pacing: accelerated + bidStrategy: conversion endDate: 2000-01-23 + maxBid: 1.4658129805029452 name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.637376656633329 startDate: 2000-01-23 - creativeId: creativeId + targetBid: 6.027456183070403 + monthlyPacing: 5.962133916683182 status: unknown budget: 0.8008281904610115 - id: id type: type properties: - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModel202110' + $ref: '#/components/schemas/ExternalAuctionLineItemCreateModel' type: object x-nullable: false InputResourceOfPreferredLineItemCreateModel202110: @@ -9407,68 +9432,489 @@ components: $ref: '#/components/schemas/ExternalPreferredLineItemCreateModel202110' type: object x-nullable: false - JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301: + JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301: description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" + \ /> with external Id, Type, and\r\nAttributes properties" example: attributes: - clickAttributionWindow: 30D + clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction clickAttributionScope: unknown viewAttributionScope: unknown - viewAttributionWindow: None name: name + viewAttributionWindow: None isAutoDailyPacing: true dailyPacing: 1.4658129805029452 monthlyPacing: 6.027456183070403 startDate: 2000-01-23T04:56:07.000+00:00 budget: 0.8008281904610115 + id: id type: type properties: + id: + format: long-id + type: string + x-nullable: false type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/CampaignAttributesV202301' + $ref: '#/components/schemas/EditableCampaignAttributesV202301' required: + - id - type type: object x-nullable: false - JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301: - description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + ResourceOfPreferredLineItemUpdateModel202110: + description: Data model for a Resource example: attributes: - clickAttributionWindow: 7D - endDate: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - viewAttributionScope: unknown + pacing: accelerated + endDate: 2000-01-23 name: name - viewAttributionWindow: None - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown budget: 0.8008281904610115 id: id type: type properties: id: - format: long-id + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + attributes: + $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModel202110' + type: object + x-nullable: false + ValueTypeResourceOfAddToBasketIdsUpdateModel202110: + description: Data model for a value type resource + example: + attributes: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + type: type + properties: + type: type: string x-nullable: false - type: + attributes: + $ref: '#/components/schemas/ExternalAddToBasketIdsUpdateModel202110' + type: object + x-nullable: false + ValueTypeResourceOfAudienceIdsUpdateModel202110: + description: Data model for a value type resource + example: + attributes: + audienceIds: + - audienceIds + - audienceIds + type: type + properties: + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalAudienceIdsUpdateModel202110' + type: object + x-nullable: false + ValueTypeResourceOfStoreIdsUpdateModel202110: + description: Data model for a value type resource + example: + attributes: + storeIds: + - storeIds + - storeIds + type: type + properties: + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' + type: object + x-nullable: false + ExternalBalance202110: + description: A Retail Media Balance used to determine the funds available for + any or all campaigns in an account + example: + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + name: name + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + name: + type: string + x-nullable: false + poNumber: + type: string + x-nullable: false + memo: + type: string + x-nullable: false + deposited: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + spent: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + remaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" + type: string + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + type: string + status: + enum: + - unknown + - scheduled + - active + - ended + type: string + x-nullable: false + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + required: + - createdAt + - deposited + - endDate + - memo + - name + - poNumber + - remaining + - spent + - startDate + - status + - updatedAt + type: object + x-nullable: false + ExternalCommonLineItem: + description: A common line item to hold line item information shared between + preferred and auction line items + example: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + name: + maxLength: 255 + minLength: 0 + type: string + x-nullable: false + type: + enum: + - unknown + - auction + - preferred + type: string + x-nullable: false + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" + type: string + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + nullable: true + type: string + status: + enum: + - unknown + - active + - scheduled + - draft + - paused + - budgetHit + - ended + - archived + - noFunds + type: string + x-nullable: false + targetRetailerId: + format: long-id + type: string + x-nullable: false + budget: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + campaignId: + format: long-id + type: string + x-nullable: false + budgetSpent: + format: double + type: number + x-nullable: false + budgetRemaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + required: + - budgetRemaining + - campaignId + - createdAt + - name + - startDate + - targetRetailerId + - type + - updatedAt + type: object + x-nullable: false + CampaignV202301: + description: A Retail Media Campaign used to represent an advertiser's marketing + objective + example: + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 + properties: + accountId: + format: long-id + type: string + x-nullable: false + promotedBrandIds: + items: + format: long-id + type: string + type: array + x-nullable: false + budgetSpent: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + budgetRemaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + status: + enum: + - unknown + - active + - inactive + - scheduled + - ended + type: string + x-nullable: false + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + type: + default: auction + enum: + - unknown + - auction + - preferred + type: string + x-nullable: false + drawableBalanceIds: + items: + format: long-id + type: string + type: array + x-nullable: false + clickAttributionWindow: + default: 30D + enum: + - 7D + - 14D + - 30D + - unknown + type: string + x-nullable: false + viewAttributionWindow: + default: None + enum: + - None + - Unknown + - OneDay + - SevenDays + - FourteenDays + - ThirtyDays + type: string + x-nullable: false + name: + maxLength: 255 + minLength: 0 + type: string + x-nullable: false + budget: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + monthlyPacing: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + dailyPacing: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + isAutoDailyPacing: + type: boolean + x-nullable: false + startDate: + format: date-time + nullable: true type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/EditableCampaignAttributesV202301' + x-nullable: true + endDate: + format: date-time + nullable: true + type: string + x-nullable: true + clickAttributionScope: + enum: + - unknown + - sameSku + - sameSkuCategory + - sameSkuCategoryBrand + nullable: true + type: string + x-nullable: true + viewAttributionScope: + enum: + - unknown + - sameSku + - sameSkuCategory + - sameSkuCategoryBrand + nullable: true + type: string + x-nullable: true required: - - id - - type + - accountId + - budgetRemaining + - budgetSpent + - createdAt + - endDate + - isAutoDailyPacing + - name + - promotedBrandIds + - startDate + - updatedAt type: object x-nullable: false ExternalAuctionLineItem: @@ -9509,6 +9955,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string maxBid: format: decimal @@ -9591,234 +10038,46 @@ components: type: number x-nullable: true createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false - required: - - budgetRemaining - - campaignId - - createdAt - - name - - startDate - - targetRetailerId - - updatedAt - type: object - x-nullable: false - ExternalCommonLineItem: - description: A common line item to hold line item information shared between - preferred and auction line items - example: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - properties: - name: - maxLength: 255 - minLength: 0 - type: string - x-nullable: false - type: - enum: - - unknown - - auction - - preferred - type: string - x-nullable: false - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - status: - enum: - - unknown - - active - - scheduled - - draft - - paused - - budgetHit - - ended - - archived - - noFunds - type: string - x-nullable: false - targetRetailerId: - format: long-id - type: string - x-nullable: false - budget: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - campaignId: - format: long-id - type: string - x-nullable: false - budgetSpent: - format: double - type: number - x-nullable: false - budgetRemaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false - required: - - budgetRemaining - - campaignId - - createdAt - - name - - startDate - - targetRetailerId - - type - - updatedAt - type: object - x-nullable: false - ExternalKeywordTarget202110: - description: Identifies keyword targeting for a line item - example: - keywords: - key: unknown - properties: - keywords: - additionalProperties: - enum: - - unknown - - negativeExact - - negativeBroad - type: string - x-nullable: false - description: Keywords that targeting specifications exist for - type: object - x-nullable: false - required: - - keywords - type: object - x-nullable: false - ExternalStoreTarget202110: - description: Identifies store targeting for a line item - example: - scope: unknown - storeIds: - - storeIds - - storeIds - properties: - scope: - description: Scope of the store target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - storeIds: - description: Store ids that should be targeted - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - scope - - storeIds - type: object - x-nullable: false - ExternalAddToBasketTarget202110: - description: Identifies add to basket targeting for a line item - example: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown - properties: - scope: - description: Scope of the add to basket target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - productIds: - description: Product ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - categoryIds: - description: Category ids that add to basket should target - items: - type: string - x-nullable: false - type: array + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string x-nullable: false required: - - scope + - budgetRemaining + - campaignId + - createdAt + - name + - startDate + - targetRetailerId + - updatedAt type: object x-nullable: false - ExternalAudienceTarget202110: - description: Identifies audience targeting for a line item + ExternalKeywordTarget202110: + description: Identifies keyword targeting for a line item example: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + keywords: + key: unknown properties: - scope: - description: Scope of the audience target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - audienceIds: - description: Audience ids that should be targeted - items: - format: long-id + keywords: + additionalProperties: + enum: + - unknown + - negativeExact + - negativeBroad type: string - type: array + x-nullable: false + description: Keywords that targeting specifications exist for + type: object x-nullable: false required: - - audienceIds - - scope + - keywords + type: object + x-nullable: false + ExternalBalanceCampaign202110: + description: Campaigns related to the balance type: object x-nullable: false ExternalPreferredLineItem202110: @@ -9942,112 +10201,6 @@ components: - updatedAt type: object x-nullable: false - ExternalPromotedProduct202110: - description: identifies a promoted product - example: - bidOverride: 0.8008281904610115 - properties: - bidOverride: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - type: object - x-nullable: false - ExternalBalance202110: - description: A Retail Media Balance used to determine the funds available for - any or all campaigns in an account - example: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - properties: - name: - type: string - x-nullable: false - poNumber: - type: string - x-nullable: false - memo: - type: string - x-nullable: false - deposited: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - spent: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - remaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - status: - enum: - - unknown - - scheduled - - active - - ended - type: string - x-nullable: false - createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false - required: - - createdAt - - deposited - - endDate - - memo - - name - - poNumber - - remaining - - spent - - startDate - - status - - updatedAt - type: object - x-nullable: false - ExternalBalanceCampaign202110: - description: Campaigns related to the balance - type: object - x-nullable: false LineItemBidMultipliers: description: Data model representing bid multipliers on a line item example: @@ -10094,76 +10247,133 @@ components: x-nullable: false type: object x-nullable: false - CampaignV202301: - description: A Retail Media Campaign used to represent an advertiser's marketing - objective + ExternalPromotedProduct202110: + description: identifies a promoted product + example: + bidOverride: 0.8008281904610115 + properties: + bidOverride: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + type: object + x-nullable: false + ExternalAddToBasketTarget202110: + description: Identifies add to basket targeting for a line item + example: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown + properties: + scope: + description: Scope of the add to basket target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + productIds: + description: Product ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + categoryIds: + description: Category ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - scope + type: object + x-nullable: false + ExternalAudienceTarget202110: + description: Identifies audience targeting for a line item + example: + scope: unknown + audienceIds: + - audienceIds + - audienceIds + properties: + scope: + description: Scope of the audience target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + audienceIds: + description: Audience ids that should be targeted + items: + format: long-id + type: string + type: array + x-nullable: false + required: + - audienceIds + - scope + type: object + x-nullable: false + ExternalStoreTarget202110: + description: Identifies store targeting for a line item + example: + scope: unknown + storeIds: + - storeIds + - storeIds + properties: + scope: + description: Scope of the store target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + storeIds: + description: Store ids that should be targeted + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - scope + - storeIds + type: object + x-nullable: false + CampaignAttributesV202301: + description: An object that represents the available options to set when creating + a Retail Media Campaign example: - budgetRemaining: 6.027456183070403 clickAttributionWindow: 30D endDate: 2000-01-23T04:56:07.000+00:00 drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds viewAttributionWindow: None name: name isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 + budget: 0.8008281904610115 properties: - accountId: - format: long-id - type: string - x-nullable: false - promotedBrandIds: - items: - format: long-id - type: string - type: array - x-nullable: false - budgetSpent: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - budgetRemaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - status: - enum: - - unknown - - active - - inactive - - scheduled - - ended - type: string - x-nullable: false - createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false type: default: auction enum: @@ -10256,27 +10466,20 @@ components: type: string x-nullable: true required: - - accountId - - budgetRemaining - - budgetSpent - - createdAt - endDate - isAutoDailyPacing - name - - promotedBrandIds - startDate - - updatedAt type: object x-nullable: false - ExternalAuctionLineItemCreateModel: - description: Model to create a retail media auction line item + ExternalAuctionLineItemUpdateModel: + description: Model to update a retail media auction line item example: bidStrategy: conversion endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId + isAutoDailyPacing: true dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 @@ -10300,6 +10503,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -10314,10 +10518,6 @@ components: - noFunds type: string x-nullable: false - targetRetailerId: - format: long-id - type: string - x-nullable: false budget: format: decimal nullable: true @@ -10354,7 +10554,6 @@ components: type: number x-nullable: true isAutoDailyPacing: - default: false type: boolean x-nullable: false bidStrategy: @@ -10367,19 +10566,22 @@ components: type: string x-nullable: false required: + - isAutoDailyPacing - name - startDate - - targetRetailerId + - status + - targetBid type: object x-nullable: false - ExternalAuctionLineItemUpdateModel: - description: Model to update a retail media auction line item + ExternalAuctionLineItemCreateModel: + description: Model to create a retail media auction line item example: bidStrategy: conversion endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true + isAutoDailyPacing: false + targetRetailerId: targetRetailerId dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 @@ -10403,6 +10605,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -10417,6 +10620,10 @@ components: - noFunds type: string x-nullable: false + targetRetailerId: + format: long-id + type: string + x-nullable: false budget: format: decimal nullable: true @@ -10453,6 +10660,7 @@ components: type: number x-nullable: true isAutoDailyPacing: + default: false type: boolean x-nullable: false bidStrategy: @@ -10465,157 +10673,9 @@ components: type: string x-nullable: false required: - - isAutoDailyPacing - - name - - startDate - - status - - targetBid - type: object - x-nullable: false - ExternalStoreIdsUpdateModel202110: - description: Update model for updating store target ids - example: - storeIds: - - storeIds - - storeIds - properties: - storeIds: - description: Store ids that should be targeted - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - storeIds - type: object - x-nullable: false - ExternalAddToBasketIdsUpdateModel202110: - description: Update model for updating add to basket target ids - example: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - properties: - productIds: - description: Product ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - categoryIds: - description: Category ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - type: object - x-nullable: false - ExternalAudienceIdsUpdateModel202110: - description: Update model for updating audience target ids - example: - audienceIds: - - audienceIds - - audienceIds - properties: - audienceIds: - description: Audience ids that should be targeted - items: - format: long-id - type: string - type: array - x-nullable: false - required: - - audienceIds - type: object - x-nullable: false - ExternalPreferredLineItemUpdateModel202110: - description: Model used to update a preferred line item - example: - pacing: accelerated - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - properties: - name: - maxLength: 255 - minLength: 0 - type: string - x-nullable: false - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - status: - enum: - - unknown - - active - - scheduled - - draft - - paused - - budgetHit - - ended - - archived - - noFunds - type: string - x-nullable: false - pacing: - default: accelerated - enum: - - unknown - - standard - - accelerated - type: string - x-nullable: false - capping: - $ref: '#/components/schemas/ExternalLineItemCapping202110' - page: - $ref: '#/components/schemas/ExternalLineItemPage202110' - budget: - format: double - type: number - x-nullable: false - creativeId: - format: long-id - nullable: true - type: string - x-nullable: true - required: - - endDate - name - startDate - - status + - targetRetailerId type: object x-nullable: false ExternalPreferredLineItemCreateModel202110: @@ -10709,60 +10769,22 @@ components: - targetRetailerId type: object x-nullable: false - CampaignAttributesV202301: - description: An object that represents the available options to set when creating + EditableCampaignAttributesV202301: + description: An object that represents the available options to set when editing a Retail Media Campaign example: - clickAttributionWindow: 30D + clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction clickAttributionScope: unknown viewAttributionScope: unknown - viewAttributionWindow: None name: name + viewAttributionWindow: None isAutoDailyPacing: true dailyPacing: 1.4658129805029452 monthlyPacing: 6.027456183070403 startDate: 2000-01-23T04:56:07.000+00:00 budget: 0.8008281904610115 properties: - type: - default: auction - enum: - - unknown - - auction - - preferred - type: string - x-nullable: false - drawableBalanceIds: - items: - format: long-id - type: string - type: array - x-nullable: false - clickAttributionWindow: - default: 30D - enum: - - 7D - - 14D - - 30D - - unknown - type: string - x-nullable: false - viewAttributionWindow: - default: None - enum: - - None - - Unknown - - OneDay - - SevenDays - - FourteenDays - - ThirtyDays - type: string - x-nullable: false name: maxLength: 255 minLength: 0 @@ -10802,6 +10824,24 @@ components: nullable: true type: string x-nullable: true + clickAttributionWindow: + enum: + - 7D + - 14D + - 30D + - unknown + type: string + x-nullable: false + viewAttributionWindow: + enum: + - None + - Unknown + - OneDay + - SevenDays + - FourteenDays + - ThirtyDays + type: string + x-nullable: false clickAttributionScope: enum: - unknown @@ -10821,26 +10861,36 @@ components: type: string x-nullable: true required: + - clickAttributionWindow - endDate - isAutoDailyPacing - name - startDate + - viewAttributionWindow type: object x-nullable: false - EditableCampaignAttributesV202301: - description: An object that represents the available options to set when editing - a Retail Media Campaign + ExternalPreferredLineItemUpdateModel202110: + description: Model used to update a preferred line item example: - clickAttributionWindow: 7D - endDate: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - viewAttributionScope: unknown + pacing: accelerated + endDate: 2000-01-23 name: name - viewAttributionWindow: None - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown budget: 0.8008281904610115 properties: name: @@ -10848,83 +10898,121 @@ components: minLength: 0 type: string x-nullable: false - budget: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - monthlyPacing: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - dailyPacing: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - isAutoDailyPacing: - type: boolean - x-nullable: false startDate: - format: date-time - nullable: true + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" type: string - x-nullable: true endDate: - format: date-time - nullable: true + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" type: string - x-nullable: true - clickAttributionWindow: + status: enum: - - 7D - - 14D - - 30D - unknown + - active + - scheduled + - draft + - paused + - budgetHit + - ended + - archived + - noFunds type: string x-nullable: false - viewAttributionWindow: - enum: - - None - - Unknown - - OneDay - - SevenDays - - FourteenDays - - ThirtyDays - type: string - x-nullable: false - clickAttributionScope: + pacing: + default: accelerated enum: - unknown - - sameSku - - sameSkuCategory - - sameSkuCategoryBrand - nullable: true + - standard + - accelerated type: string - x-nullable: true - viewAttributionScope: - enum: - - unknown - - sameSku - - sameSkuCategory - - sameSkuCategoryBrand + x-nullable: false + capping: + $ref: '#/components/schemas/ExternalLineItemCapping202110' + page: + $ref: '#/components/schemas/ExternalLineItemPage202110' + budget: + format: double + type: number + x-nullable: false + creativeId: + format: long-id nullable: true type: string x-nullable: true required: - - clickAttributionWindow - endDate - - isAutoDailyPacing - name - startDate - - viewAttributionWindow + - status + type: object + x-nullable: false + ExternalAddToBasketIdsUpdateModel202110: + description: Update model for updating add to basket target ids + example: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + properties: + productIds: + description: Product ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + categoryIds: + description: Category ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + type: object + x-nullable: false + ExternalAudienceIdsUpdateModel202110: + description: Update model for updating audience target ids + example: + audienceIds: + - audienceIds + - audienceIds + properties: + audienceIds: + description: Audience ids that should be targeted + items: + format: long-id + type: string + type: array + x-nullable: false + required: + - audienceIds + type: object + x-nullable: false + ExternalStoreIdsUpdateModel202110: + description: Update model for updating store target ids + example: + storeIds: + - storeIds + - storeIds + properties: + storeIds: + description: Store ids that should be targeted + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - storeIds type: object x-nullable: false ExternalLineItemCapping202110: diff --git a/sdks/retailmedia_2023-01/build.gradle b/sdks/retailmedia_2023-01/build.gradle index f4c1434b..a5754ebc 100644 --- a/sdks/retailmedia_2023-01/build.gradle +++ b/sdks/retailmedia_2023-01/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2023.01.0.230728' +version = '2023.01.0.230831' repositories { jcenter() @@ -75,7 +75,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '2023.01.0.230728' + version '2023.01.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_2023-01/pom.xml b/sdks/retailmedia_2023-01/pom.xml index a08b7bc4..f7208922 100644 --- a/sdks/retailmedia_2023-01/pom.xml +++ b/sdks/retailmedia_2023-01/pom.xml @@ -5,7 +5,7 @@ criteo-api-retailmedia-sdk jar criteo-api-retailmedia-sdk - 2023.01.0.230728 + 2023.01.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API retailmedia for 2023_01 version diff --git a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/ApiClient.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/ApiClient.java index 898ae9ee..e75b4419 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/ApiClient.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2023.01.0.230728/java"); + setUserAgent("OpenAPI-Generator/2023.01.0.230831/java"); authentications = new HashMap(); } diff --git a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ApplicationSummaryModel.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ApplicationSummaryModel.java index 9856a818..4d92f984 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ApplicationSummaryModel.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ApplicationSummaryModelResource.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ApplicationSummaryModelResource.java index cb5e0c48..69eb484a 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ApplicationSummaryModelResource.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ApplicationSummaryModelResponse.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ApplicationSummaryModelResponse.java index 28b6e4ad..f24ce6e2 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ApplicationSummaryModelResponse.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/Asset.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/Asset.java index 3135dbae..7c60dc58 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/Asset.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/Asset.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, asset.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(fileExtension, fileLocation, id, 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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/AssetResource.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/AssetResource.java index 2f8be79d..9518d5f6 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/AssetResource.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/AssetResource.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, assetResource.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/AssetResponse.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/AssetResponse.java index 890ee176..c22ed537 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/AssetResponse.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/AssetResponse.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, assetResponse.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/BadRequest.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/BadRequest.java index 7e92bd0d..51806700 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/BadRequest.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/BadRequest.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 BadRequest errors(List errors) { public BadRequest addErrorsItem(Error errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, badRequest.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, 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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CommonProblem.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CommonProblem.java index 32467cde..c988b1a6 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CommonProblem.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CommonStatusCodeResponse.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CommonStatusCodeResponse.java index ce76a52e..8be7c481 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CommonStatusCodeResponse.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CommonStatusCodeResponse.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; @@ -157,11 +158,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, commonStatusCodeResponse.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateRetailMediaAudienceAttributes.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateRetailMediaAudienceAttributes.java index 0a44afba..2a78a3b7 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateRetailMediaAudienceAttributes.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateRetailMediaAudienceAttributes.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; @@ -237,7 +238,7 @@ public CreateRetailMediaAudienceAttributes brandIds(List brandIds) { public CreateRetailMediaAudienceAttributes addBrandIdsItem(Long brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new ArrayList<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -267,7 +268,7 @@ public CreateRetailMediaAudienceAttributes categoryIds(List categoryIds public CreateRetailMediaAudienceAttributes addCategoryIdsItem(Integer categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -396,11 +397,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceAttributes.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(userType, lookbackWindow, brandIds, categoryIds, retailerId, name, 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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateRetailMediaAudienceResponse.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateRetailMediaAudienceResponse.java index b30b32b2..fb443f50 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateRetailMediaAudienceResponse.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateRetailMediaAudienceResponse.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; @@ -186,11 +187,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceResponse.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateUserBehaviorSegmentV2.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateUserBehaviorSegmentV2.java index 02250dc9..8f8659d9 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateUserBehaviorSegmentV2.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/CreateUserBehaviorSegmentV2.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; @@ -249,7 +250,7 @@ public CreateUserBehaviorSegmentV2 categoryIds(List categoryIds) { public CreateUserBehaviorSegmentV2 addCategoryIdsItem(Integer categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -279,7 +280,7 @@ public CreateUserBehaviorSegmentV2 brandIds(List brandIds) { public CreateUserBehaviorSegmentV2 addBrandIdsItem(Long brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new ArrayList<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -390,11 +391,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createUserBehaviorSegmentV2.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(userAction, lookbackWindow, categoryIds, brandIds, minPrice, maxPrice, 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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/Error.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/Error.java index 3f06ad8c..277d702e 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/Error.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/Error.java @@ -25,6 +25,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -248,7 +249,7 @@ public Error stackTrace(List stackTrace) { public Error addStackTraceItem(String stackTraceItem) { if (this.stackTrace == null) { - this.stackTrace = new ArrayList<>(); + this.stackTrace = null; } this.stackTrace.add(stackTraceItem); return this; @@ -401,11 +402,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, error.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(code, detail, instance, source, stackTrace, title, traceId, 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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/GetPageOfAudiencesByAccountIdResponse.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/GetPageOfAudiencesByAccountIdResponse.java index d85d8049..cd713bdc 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/GetPageOfAudiencesByAccountIdResponse.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/GetPageOfAudiencesByAccountIdResponse.java @@ -27,6 +27,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; @@ -207,11 +208,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, getPageOfAudiencesByAccountIdResponse.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, metadata, 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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ProblemDetails.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ProblemDetails.java index da64d3eb..51f2a37d 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ProblemDetails.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ProblemDetails.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; @@ -420,11 +421,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemDetails.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ReportRequestAttributes.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ReportRequestAttributes.java index e7f812db..94b59122 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ReportRequestAttributes.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ReportRequestAttributes.java @@ -24,6 +24,7 @@ import java.time.LocalDate; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -83,7 +84,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -142,7 +143,7 @@ public static FormatEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -278,7 +279,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -398,7 +399,7 @@ public ReportRequestAttributes ids(List ids) { public ReportRequestAttributes addIdsItem(String idsItem) { if (this.ids == null) { - this.ids = new ArrayList<>(); + this.ids = null; } this.ids.add(idsItem); return this; @@ -597,11 +598,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportRequestAttributes.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(clickAttributionWindow, endDate, format, id, ids, reportType, revenueType, startDate, timeZone, viewAttributionWindow, 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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ReportStatusAttributes.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ReportStatusAttributes.java index 7ac402a7..ff5f2572 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ReportStatusAttributes.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ReportStatusAttributes.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; @@ -349,11 +350,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportStatusAttributes.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(createdAt, expiresAt, fileSizeBytes, md5Checksum, message, rowCount, status, 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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfAuctionLineItem.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfAuctionLineItem.java index acfa9f7f..3e1c70c6 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfAuctionLineItem.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfAuctionLineItem.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, resourceOfAuctionLineItem.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfAuctionLineItemUpdateModel.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfAuctionLineItemUpdateModel.java index ff43d2e1..f0d42084 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfAuctionLineItemUpdateModel.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfAuctionLineItemUpdateModel.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, resourceOfAuctionLineItemUpdateModel.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfBalance202110.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfBalance202110.java index c822e906..576f2229 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfBalance202110.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfBalance202110.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, resourceOfBalance202110.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfBalanceCampaign202110.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfBalanceCampaign202110.java index 677c6991..72cdf1c8 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfBalanceCampaign202110.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfBalanceCampaign202110.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, resourceOfBalanceCampaign202110.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCategory202204.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCategory202204.java index 0a2aa3c7..fd8dc1ca 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCategory202204.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCategory202204.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, resourceOfCategory202204.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCommonLineItem.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCommonLineItem.java index 5e5c44d1..abf3f953 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCommonLineItem.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCommonLineItem.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, resourceOfCommonLineItem.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCreative202110.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCreative202110.java index f174b167..8963de49 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCreative202110.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCreative202110.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, resourceOfCreative202110.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCreative202207.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCreative202207.java index 81037f0e..cfdc28ae 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCreative202207.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfCreative202207.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, resourceOfCreative202207.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfLineItemBidMultipliers.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfLineItemBidMultipliers.java index 6eb609f1..4f94fb68 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfLineItemBidMultipliers.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfLineItemBidMultipliers.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, resourceOfLineItemBidMultipliers.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPreferredLineItem202110.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPreferredLineItem202110.java index b6b198a0..d64a702a 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPreferredLineItem202110.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPreferredLineItem202110.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, resourceOfPreferredLineItem202110.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPreferredLineItemUpdateModel202110.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPreferredLineItemUpdateModel202110.java index 7d88fc26..a8be73d8 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPreferredLineItemUpdateModel202110.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPreferredLineItemUpdateModel202110.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, resourceOfPreferredLineItemUpdateModel202110.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPromotedProduct202110.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPromotedProduct202110.java index e468a682..ef42d6a4 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPromotedProduct202110.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfPromotedProduct202110.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, resourceOfPromotedProduct202110.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfTemplate.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfTemplate.java index 26ec0516..bbe30df6 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfTemplate.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/ResourceOfTemplate.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, resourceOfTemplate.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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/RetailMediaAudienceV2ListResponse.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/RetailMediaAudienceV2ListResponse.java index 7e334464..f4f1d3fb 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/RetailMediaAudienceV2ListResponse.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/RetailMediaAudienceV2ListResponse.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; @@ -206,11 +207,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaAudienceV2ListResponse.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, metadata, 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/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/RetailMediaAudienceV2Response.java b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/RetailMediaAudienceV2Response.java index 63d1ae17..8f222017 100644 --- a/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/RetailMediaAudienceV2Response.java +++ b/sdks/retailmedia_2023-01/src/main/java/com/criteo/api/retailmedia/v2023_01/model/RetailMediaAudienceV2Response.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, retailMediaAudienceV2Response.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/retailmedia_2023-04/README.md b/sdks/retailmedia_2023-04/README.md index 223c9e9b..89a1b4e7 100644 --- a/sdks/retailmedia_2023-04/README.md +++ b/sdks/retailmedia_2023-04/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com Criteo API -- Package version: 2023.04.0.230728 +- Package version: 2023.04.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-retailmedia-sdk - 2023.04.0.230728 + 2023.04.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-retailmedia-sdk:2023.04.0.230728" +compile "com.criteo:criteo-api-retailmedia-sdk:2023.04.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-retailmedia-sdk-2023.04.0.230728.jar` +* `target/criteo-api-retailmedia-sdk-2023.04.0.230831.jar` * `target/lib/*.jar` ## Example diff --git a/sdks/retailmedia_2023-04/api/openapi.yaml b/sdks/retailmedia_2023-04/api/openapi.yaml index bb09cd12..f34c0b35 100644 --- a/sdks/retailmedia_2023-04/api/openapi.yaml +++ b/sdks/retailmedia_2023-04/api/openapi.yaml @@ -74,11 +74,11 @@ paths: tags: - Campaign x-accepts: application/json - /2023-04/retail-media/accounts/{accountId}/retailers: + /2023-04/retail-media/accounts/{accountId}/brands: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId parameters: - description: The given account id explode: false @@ -127,16 +127,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' + $ref: '#/components/schemas/JsonApiPageResponseOfBrand' description: Success tags: - Campaign x-accepts: application/json - /2023-04/retail-media/accounts/{accountId}/brands: + /2023-04/retail-media/accounts/{accountId}/retailers: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId parameters: - description: The given account id explode: false @@ -185,7 +185,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfBrand' + $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' description: Success tags: - Campaign @@ -718,106 +718,118 @@ paths: tags: - Campaign x-accepts: application/json - /2023-04/retail-media/accounts/{accountId}/catalogs: - post: - description: Create a request for a Catalog available to the indicated account. - operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId + /2023-04/retail-media/accounts/{account-id}/creatives: + get: + description: Get account creatives + operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId parameters: - - description: The account to request the catalog for. + - description: External account id to retrieve creatives for explode: false in: path - name: accountId + name: account-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/JsonApiRequestOfCatalogRequest' - x-nullable: false - x-bodyName: request responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request successfully created + $ref: '#/components/schemas/Creative202110ListResponse' + description: Creatives found tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/catalogs/{catalogId}/status: - get: - description: Check the status of a catalog request. - operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId + post: + description: Create a creative for an account + operationId: CreativesApi_PostApi202210ExternalAccountCreativesByAccountId parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id to create a creative for explode: false in: path - name: catalogId + name: account-id required: true schema: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreativeCreateModel202207' + description: The creative to create + x-nullable: false + x-bodyName: creative responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request found. + $ref: '#/components/schemas/Creative202210Response' + description: Creatives created tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/catalogs/{catalogId}/output: - get: - description: "Output the indicated catalog. Catalogs are only available for\ - \ retrieval when their associated status request\r\nis at a Success status.\r\ - \nProduces application/x-json-stream of v2021_07 CatalogProduct json objects." - operationId: CatalogApi_GetApiV1ExternalCatalogOutputByCatalogId + /2023-04/retail-media/accounts/{account-id}/creatives/search: + post: + description: Get account creatives + operationId: CreativesApi_PostApi202210ExternalAccountCreativesSearchByAccountId parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id to retrieve creatives for explode: false in: path - name: catalogId + name: account-id required: true schema: type: string style: simple x-nullable: false + - description: Creatives to filter by + explode: true + in: query + name: creative-ids + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false responses: "200": content: - application/x-json-stream: {} - application/json: {} - description: Catalog download initiated. - "400": - content: - application/x-json-stream: {} - application/json: {} - description: "The indicated catalog is not available for retrieval, wait\ - \ for a success status." + application/json: + schema: + $ref: '#/components/schemas/Creative202210ListResponse' + description: Creatives found tags: - Campaign x-accepts: application/json - /2023-04/retail-media/retailers/{retailerId}/pages: + /2023-04/retail-media/accounts/{account-id}/creatives/{creative-id}: get: - description: Get the page types available for the given retailer - operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId + description: Get the specified creative + operationId: "CreativesApi_GetApi202210ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: The retailers to fetch pages for + - description: External account id to retrieve creatives for explode: false in: path - name: retailerId + name: account-id required: true schema: - format: int32 - type: integer + type: string + style: simple + x-nullable: false + - description: Creative to get + explode: false + in: path + name: creative-id + required: true + schema: + type: string style: simple x-nullable: false responses: @@ -825,17 +837,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExternalRetailerPages202110' - description: Pages fetched successfully + $ref: '#/components/schemas/Creative202210Response' + description: Creatives found tags: - Campaign x-accepts: application/json - /2023-04/retail-media/accounts/{account-id}/creatives: - get: - description: Get account creatives - operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId + put: + description: Update a creative + operationId: "CreativesApi_PutApi202210ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: External account id to retrieve creatives for + - description: External account id containing the creative explode: false in: path name: account-id @@ -844,24 +855,47 @@ paths: type: string style: simple x-nullable: false + - description: Creative to update + explode: false + in: path + name: creative-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreativeUpdateModel202207' + description: The creative to create + x-nullable: false + x-bodyName: creative responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Creative202110ListResponse' - description: Creatives found + $ref: '#/components/schemas/Creative202210Response' + description: Success + "204": + content: + application/json: {} + description: Creative updated tags: - Campaign + x-content-type: application/json x-accepts: application/json + /2023-04/retail-media/accounts/{accountId}/catalogs: post: - description: Create a creative for an account - operationId: CreativesApi_PostApi202210ExternalAccountCreativesByAccountId + description: Create a request for a Catalog available to the indicated account. + operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId parameters: - - description: External account id to create a creative for + - description: The account to request the catalog for. explode: false in: path - name: account-id + name: accountId required: true schema: type: string @@ -871,21 +905,75 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreativeCreateModel202207' - description: The creative to create + $ref: '#/components/schemas/JsonApiRequestOfCatalogRequest' x-nullable: false - x-bodyName: creative + x-bodyName: request responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/Creative202210Response' - description: Creatives created + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request successfully created tags: - Campaign x-content-type: application/json x-accepts: application/json + /2023-04/retail-media/catalogs/{catalogId}/output: + get: + description: "Output the indicated catalog. Catalogs are only available for\ + \ retrieval when their associated status request\r\nis at a Success status.\r\ + \nProduces application/x-json-stream of v2021_07 CatalogProduct json objects." + operationId: CatalogApi_GetApiV1ExternalCatalogOutputByCatalogId + parameters: + - description: A catalog ID returned from an account catalog request. + explode: false + in: path + name: catalogId + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/x-json-stream: {} + application/json: {} + description: Catalog download initiated. + "400": + content: + application/x-json-stream: {} + application/json: {} + description: "The indicated catalog is not available for retrieval, wait\ + \ for a success status." + tags: + - Campaign + x-accepts: application/json + /2023-04/retail-media/catalogs/{catalogId}/status: + get: + description: Check the status of a catalog request. + operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId + parameters: + - description: A catalog ID returned from an account catalog request. + explode: false + in: path + name: catalogId + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request found. + tags: + - Campaign + x-accepts: application/json /2023-04/retail-media/categories: get: description: Endpoint to search categories by text and retailer. @@ -1041,116 +1129,28 @@ paths: tags: - Campaign x-accepts: application/json - /2023-04/retail-media/accounts/{account-id}/creatives/{creative-id}: + /2023-04/retail-media/retailers/{retailerId}/pages: get: - description: Get the specified creative - operationId: "CreativesApi_GetApi202210ExternalAccountByAccountId}Creatives{creativeId" + description: Get the page types available for the given retailer + operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId parameters: - - description: External account id to retrieve creatives for + - description: The retailers to fetch pages for explode: false in: path - name: account-id + name: retailerId required: true schema: - type: string + format: int32 + type: integer style: simple x-nullable: false - - description: Creative to get - explode: false - in: path - name: creative-id - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Creative202210Response' - description: Creatives found - tags: - - Campaign - x-accepts: application/json - put: - description: Update a creative - operationId: "CreativesApi_PutApi202210ExternalAccountByAccountId}Creatives{creativeId" - parameters: - - description: External account id containing the creative - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creative to update - explode: false - in: path - name: creative-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreativeUpdateModel202207' - description: The creative to create - x-nullable: false - x-bodyName: creative - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Creative202210Response' - description: Success - "204": - content: - application/json: {} - description: Creative updated - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-04/retail-media/accounts/{account-id}/creatives/search: - post: - description: Get account creatives - operationId: CreativesApi_PostApi202210ExternalAccountCreativesSearchByAccountId - parameters: - - description: External account id to retrieve creatives for - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creatives to filter by - explode: true - in: query - name: creative-ids - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Creative202210ListResponse' - description: Creatives found + $ref: '#/components/schemas/ExternalRetailerPages202110' + description: Pages fetched successfully tags: - Campaign x-accepts: application/json @@ -1284,15 +1284,15 @@ paths: tags: - Analytics x-accepts: application/json - /2023-04/retail-media/campaigns/{campaign-id}/auction-line-items: + /2023-04/retail-media/accounts/{account-id}/balances: get: - description: Gets page of auction line item objects for the given campaign id - operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId + description: Gets page of balance objects for the given account id + operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId parameters: - - description: The given campaign id + - description: The account to get balances for explode: false in: path - name: campaign-id + name: account-id required: true schema: type: string @@ -1336,75 +1336,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' - description: Bad Request - tags: - - Campaign - x-accepts: application/json - post: - description: Creates new auction line item with the specified settings - operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId - parameters: - - description: The given campaign id - explode: false - in: path - name: campaign-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' - description: The line item settings to create a line item with - x-nullable: false - x-bodyName: lineItem - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-04/retail-media/line-items/{line-item-id}: - get: - description: Gets the line item for the given line item id - operationId: GetApiV2ExternalLineItemByLineItemId - parameters: - - description: The given line item id - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CommonLineItemResponse' + $ref: '#/components/schemas/Balance202110PagedListResponse' description: Success tags: - Campaign @@ -1492,44 +1424,79 @@ paths: tags: - Campaign x-accepts: application/json - /2023-04/retail-media/auction-line-items/{line-item-id}: + /2023-04/retail-media/accounts/{accountId}/campaigns: get: - description: Gets the auction line item for the given line item id - operationId: GetApiV2ExternalAuctionLineItemByLineItemId + description: "Get all the editable and creatable campaign attributes including\ + \ all types of budgets for each campaigns in relation to the account id, limited\ + \ by the campaign ids." + operationId: Campaigns_GetApi202301ExternalAccountCampaignsByAccountId parameters: - - description: The given line item id + - description: The account to request the campaign for. explode: false in: path - name: line-item-id + name: accountId required: true schema: type: string style: simple x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + default: 0 + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + default: 25 + format: int32 + type: integer + style: form + x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemResponse' + $ref: '#/components/schemas/JsonApiPageResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: Updates the auction line item for the given line item id - operationId: PutApiV2ExternalAuctionLineItemByLineItemId + post: + description: Create a campaign and assign budgets for the given account id with + creatable campaign attributes given in request body constrained by business + validation. The validation error includes details and source of errors. Pacing + can be adjusted and affected by the status of the campaign and the days left + on the campaign if auto daily pacing is enabled. + operationId: Campaigns_PostApi202301ExternalAccountCampaignsByAccountId parameters: - - description: The given line item id + - description: The account to request the campaign for. explode: false in: path - name: line-item-id + name: accountId required: true schema: type: string @@ -1539,33 +1506,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemUpdateModelRequest' - description: The line item settings to create a line item with + $ref: '#/components/schemas/PostCampaignV202301' + description: Creatable campaign attributes x-nullable: false - x-bodyName: lineItem + x-bodyName: campaign responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemResponse' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/auction-line-items/{line-item-id}/targeting/keywords: + /2023-04/retail-media/auction-line-items/{line-item-id}: get: - description: This endpoint gets the keyword target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId - parameters: - - description: The line item to interact with + description: Gets the auction line item for the given line item id + operationId: GetApiV2ExternalAuctionLineItemByLineItemId + parameters: + - description: The given line item id explode: false in: path name: line-item-id @@ -1579,24 +1540,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/KeywordTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/KeywordTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Bad Request tags: - Campaign x-accepts: application/json - /2023-04/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append: - post: - description: This endpoint appends one or more keywords to targeting on the - specified line item. The resulting state of the keyword target is returned. - operationId: TargetingApi_PostApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId + put: + description: Updates the auction line item for the given line item id + operationId: PutApiV2ExternalAuctionLineItemByLineItemId parameters: - - description: The line item to interact with + - description: The given line item id explode: false in: path name: line-item-id @@ -1609,32 +1568,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/KeywordTarget202110Request' - description: "" + $ref: '#/components/schemas/AuctionLineItemUpdateModelRequest' + description: The line item settings to create a line item with x-nullable: false - x-bodyName: keywordsToAppend + x-bodyName: lineItem responses: "200": content: application/json: schema: - $ref: '#/components/schemas/KeywordTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/KeywordTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete: - post: - description: This endpoint removes one or more keywords from targeting on the - specified line item. The resulting state of the keyword target is returned. - operationId: TargetingApi_PostApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId + /2023-04/retail-media/auction-line-items/{line-item-id}/targeting/keywords: + get: + description: This endpoint gets the keyword target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalAuctionLineItemTargetingKeywordsByLineItemId parameters: - description: The line item to interact with explode: false @@ -1645,14 +1603,6 @@ paths: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/KeywordTarget202110Request' - description: "" - x-nullable: false - x-bodyName: keywordsToRemove responses: "200": content: @@ -1668,12 +1618,12 @@ paths: description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/stores: - get: - description: This endpoint gets the store target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + /2023-04/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append: + post: + description: This endpoint appends one or more keywords to targeting on the + specified line item. The resulting state of the keyword target is returned. + operationId: TargetingApi_PostApi202110ExternalAuctionLineItemTargetingKeywordsAppendByLineItemId parameters: - description: The line item to interact with explode: false @@ -1684,26 +1634,36 @@ paths: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/KeywordTarget202110Request' + description: "" + x-nullable: false + x-bodyName: keywordsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/KeywordTarget202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/KeywordTarget202110Response' description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - put: - description: This endpoint sets the scope of the store target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + /2023-04/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete: + post: + description: This endpoint removes one or more keywords from targeting on the + specified line item. The resulting state of the keyword target is returned. + operationId: TargetingApi_PostApi202110ExternalAuctionLineItemTargetingKeywordsDeleteByLineItemId parameters: - description: The line item to interact with explode: false @@ -1718,37 +1678,93 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Request' - description: The store target to set the scope for + $ref: '#/components/schemas/KeywordTarget202110Request' + description: "" x-nullable: false - x-bodyName: storeTarget + x-bodyName: keywordsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/KeywordTarget202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/KeywordTarget202110Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: + /2023-04/retail-media/balances/{balance-id}/campaigns: + get: + description: Gets page of campaigns for the given balanceId + operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId + parameters: + - description: The balance to get campaigns from + explode: false + in: path + name: balance-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + description: Success + tags: + - Campaign + x-accepts: application/json + /2023-04/retail-media/balances/{balance-id}/campaigns/append: post: - description: This endpoint appends one or more store ids to targeting on the - specified line item. The resulting state of the store target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId + description: appends one or more campaigns to the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId parameters: - - description: The line item to interact with + - description: The balance to add campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -1758,37 +1774,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' - description: Store ids to append to the target + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: idsToAppend + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: + /2023-04/retail-media/balances/{balance-id}/campaigns/delete: post: - description: This endpoint removes one or more store ids from targeting on the - specified line item. The resulting state of the store target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId + description: Removes one or more campaigns on the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId parameters: - - description: The line item to interact with + - description: The balance to remove campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -1798,67 +1807,92 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' - description: Store ids to remove from the target + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: idsToRemove + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: + /2023-04/retail-media/campaigns/{campaign-id}/auction-line-items: get: - description: This endpoint gets the add to basket target on the specified line - item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + description: Gets page of auction line item objects for the given campaign id + operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: This endpoint sets the scope of the add to basket target on the - specified line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + post: + description: Creates new auction line item with the specified settings + operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string @@ -1868,79 +1902,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Request' - description: The add to basket target to set the scope for + $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' + description: The line item settings to create a line item with x-nullable: false - x-bodyName: addToBasketTarget + x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: - post: - description: This endpoint appends one or more add to basket ids to targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId + /2023-04/retail-media/campaigns/{campaign-id}/preferred-line-items: + get: + description: Gets page of preferred line item objects for the given campaign + id + operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to append to the target + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: post: - description: This endpoint removes one or more add to basket ids from targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId + description: Creates a new preferred line item with the specified settings + operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string @@ -1950,36 +2004,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to remove from the target + $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' + description: The line item settings to create a line item with x-nullable: false - x-bodyName: idsToRemove + x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: + /2023-04/retail-media/campaigns/{campaignId}: get: - description: This endpoint gets the audience target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + description: Get all the editable and creatable campaign attributes including + all types of budgets given the campaign id + operationId: Campaigns_GetApi202301ExternalCampaignByCampaignId parameters: - - description: The line item to interact with + - description: Campaign Id of the campaign detail explode: false in: path - name: line-item-id + name: campaignId required: true schema: type: string @@ -1990,26 +2045,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign x-accepts: application/json put: - description: This endpoint sets the scope of the audience target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + description: Edit a campaign for the given campaign id with a given editable + attributes. This will return updated creatable and editable attributes of + the campaign as the result of the operation. Pacing can be adjusted and affected + by the status of the campaign and the days left on the campaign if auto daily + pacing is enabled. + operationId: Campaigns_PutApi202301ExternalCampaignByCampaignId parameters: - - description: The line item to interact with + - description: Campaign Id of the updating campaign explode: false in: path - name: line-item-id + name: campaignId required: true schema: type: string @@ -2019,34 +2071,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Request' - description: The audience target to set the scope for + $ref: '#/components/schemas/PutCampaignV202301' + description: Editable campaign attributes x-nullable: false - x-bodyName: audienceTarget + x-bodyName: campaign responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: - post: - description: This endpoint appends one or more audiences ids to targeting on - the specified line item. The resulting state of the audience target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId + /2023-04/retail-media/line-items/{line-item-id}: + get: + description: Gets the line item for the given line item id + operationId: GetApiV2ExternalLineItemByLineItemId parameters: - - description: The line item to interact with + - description: The given line item id explode: false in: path name: line-item-id @@ -2055,39 +2100,22 @@ paths: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' - description: Audience ids to append to the target - x-nullable: false - x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/CommonLineItemResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: - post: - description: This endpoint removes one or more audiences ids from targeting - on the specified line item. The resulting state of the audience target is - returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId + /2023-04/retail-media/line-items/{line-item-id}/bid-multipliers: + get: + description: Get bid multipliers by line item + operationId: LineItems_GetApi202301ExternalLineItemBidMultipliersByLineItemId parameters: - - description: The line item to interact with + - description: Long external id of the associated line item explode: false in: path name: line-item-id @@ -2095,39 +2123,27 @@ paths: schema: type: string style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' - description: Audience ids to remove from the target - x-nullable: false - x-bodyName: idsToRemove responses: "200": content: - application/json: + text/plain: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Success - "400": - content: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + text/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + description: Success tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/line-items/{line-item-id}/products/pause: - post: - description: This endpoint pauses one or more promoted products on a specified - line item. - operationId: PromotedProducts_PostApi202110ExternalLineItemProductsPauseByLineItemId + put: + description: Replace bid multipliers on a line item + operationId: LineItems_PutApi202301ExternalLineItemBidMultipliersByLineItemId parameters: - - description: The line item to interact with. + - description: Long external id of the associated line item explode: false in: path name: line-item-id @@ -2135,29 +2151,37 @@ paths: schema: type: string style: simple - x-nullable: false requestBody: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: The products from which their IDs will be used to pause. + $ref: '#/components/schemas/LineItemBidMultipliersRequest' x-nullable: false - x-bodyName: promotedProductsToPause + x-bodyName: request responses: "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersResponse' + application/json: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersResponse' + text/json: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersResponse' description: Success tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/line-items/{line-item-id}/products/unpause: - post: - description: This endpoint unpauses one or more promoted products on a specified - line item. - operationId: PromotedProducts_PostApi202110ExternalLineItemProductsUnpauseByLineItemId + /2023-04/retail-media/line-items/{line-item-id}/products: + get: + description: This endpoint gets the promoted products on the specified line + item. + operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId parameters: - - description: The line item to interact with. + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2166,114 +2190,16 @@ paths: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: The products from which their IDs will be used to unpause. - x-nullable: false - x-bodyName: promotedProductsToUnpause - responses: - "200": - description: Success - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-04/retail-media/preferred-line-items/{line-item-id}: - get: - description: Gets the preferred line item for the given line item id - operationId: LineItemsApi_GetApi202110ExternalPreferredLineItemByLineItemId - parameters: - - description: The given line item id - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' - description: Bad Request - tags: - - Campaign - x-accepts: application/json - put: - description: Updates the preferred line item for the given line item id - operationId: LineItemsApi_PutApi202110ExternalPreferredLineItemByLineItemId - parameters: - - description: The given line item id - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PreferredLineItemUpdateModel202110Request' - description: The line item settings to create a line item with - x-nullable: false - x-bodyName: lineItem - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' - description: Bad Request - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-04/retail-media/line-items/{line-item-id}/products: - get: - description: This endpoint gets the promoted products on the specified line - item. - operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId - parameters: - - description: The line item to interact with - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form x-nullable: false - description: The 0 indexed page index you would like to receive given the page size @@ -2375,78 +2301,104 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/campaigns/{campaign-id}/preferred-line-items: - get: - description: Gets page of preferred line item objects for the given campaign - id - operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId + /2023-04/retail-media/line-items/{line-item-id}/products/pause: + post: + description: This endpoint pauses one or more promoted products on a specified + line item. + operationId: PromotedProducts_PostApi202110ExternalLineItemProductsPauseByLineItemId parameters: - - description: The given campaign id + - description: The line item to interact with. explode: false in: path - name: campaign-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: The products from which their IDs will be used to pause. x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false + x-bodyName: promotedProductsToPause + responses: + "200": + description: Success + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2023-04/retail-media/line-items/{line-item-id}/products/unpause: + post: + description: This endpoint unpauses one or more promoted products on a specified + line item. + operationId: PromotedProducts_PostApi202110ExternalLineItemProductsUnpauseByLineItemId + parameters: + - description: The line item to interact with. + explode: false + in: path + name: line-item-id + required: true schema: - format: int32 - type: integer - style: form + type: string + style: simple x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: The products from which their IDs will be used to unpause. + x-nullable: false + x-bodyName: promotedProductsToUnpause + responses: + "200": + description: Success + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2023-04/retail-media/preferred-line-items/{line-item-id}: + get: + description: Gets the preferred line item for the given line item id + operationId: LineItemsApi_GetApi202110ExternalPreferredLineItemByLineItemId + parameters: + - description: The given line item id + explode: false + in: path + name: line-item-id + required: true schema: - format: int32 - type: integer - style: form + type: string + style: simple x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Bad Request tags: - Campaign x-accepts: application/json - post: - description: Creates a new preferred line item with the specified settings - operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId + put: + description: Updates the preferred line item for the given line item id + operationId: LineItemsApi_PutApi202110ExternalPreferredLineItemByLineItemId parameters: - - description: The given campaign id + - description: The given line item id explode: false in: path - name: campaign-id + name: line-item-id required: true schema: type: string @@ -2456,12 +2408,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' + $ref: '#/components/schemas/PreferredLineItemUpdateModel202110Request' description: The line item settings to create a line item with x-nullable: false x-bodyName: lineItem responses: - "201": + "200": content: application/json: schema: @@ -2477,129 +2429,87 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/accounts/{account-id}/balances: + /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: get: - description: Gets page of balance objects for the given account id - operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId + description: This endpoint gets the add to basket target on the specified line + item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId parameters: - - description: The account to get balances for + - description: The line item to interact with explode: false in: path - name: account-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Balance202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-accepts: application/json - /2023-04/retail-media/balances/{balance-id}/campaigns: - get: - description: Gets page of campaigns for the given balanceId - operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId + put: + description: This endpoint sets the scope of the add to basket target on the + specified line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId parameters: - - description: The balance to get campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Request' + description: The add to basket target to set the scope for x-nullable: false + x-bodyName: addToBasketTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/balances/{balance-id}/campaigns/append: + /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: post: - description: appends one or more campaigns to the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId + description: This endpoint appends one or more add to basket ids to targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId parameters: - - description: The balance to add campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string @@ -2609,30 +2519,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to append to the target x-nullable: false - x-bodyName: campaigns + x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/balances/{balance-id}/campaigns/delete: + /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: post: - description: Removes one or more campaigns on the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId + description: This endpoint removes one or more add to basket ids from targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId parameters: - - description: The balance to remove campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string @@ -2642,27 +2560,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to remove from the target x-nullable: false - x-bodyName: campaigns + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/line-items/{line-item-id}/bid-multipliers: + /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: get: - description: Get bid multipliers by line item - operationId: LineItems_GetApi202301ExternalLineItemBidMultipliersByLineItemId + description: This endpoint gets the audience target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId parameters: - - description: Long external id of the associated line item + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2670,27 +2594,29 @@ paths: schema: type: string style: simple + x-nullable: false responses: "200": content: - text/plain: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' - text/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign x-accepts: application/json put: - description: Replace bid multipliers on a line item - operationId: LineItems_PutApi202301ExternalLineItemBidMultipliersByLineItemId + description: This endpoint sets the scope of the audience target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId parameters: - - description: Long external id of the associated line item + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2698,103 +2624,83 @@ paths: schema: type: string style: simple + x-nullable: false requestBody: content: application/json: schema: - $ref: '#/components/schemas/LineItemBidMultipliersRequest' + $ref: '#/components/schemas/AudienceTarget202110Request' + description: The audience target to set the scope for x-nullable: false - x-bodyName: request + x-bodyName: audienceTarget responses: "200": content: - text/plain: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' application/json: schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' - text/json: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/accounts/{accountId}/campaigns: - get: - description: "Get all the editable and creatable campaign attributes including\ - \ all types of budgets for each campaigns in relation to the account id, limited\ - \ by the campaign ids." - operationId: Campaigns_GetApi202301ExternalAccountCampaignsByAccountId + /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: + post: + description: This endpoint appends one or more audiences ids to targeting on + the specified line item. The resulting state of the audience target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId parameters: - - description: The account to request the campaign for. + - description: The line item to interact with explode: false in: path - name: accountId + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - default: 0 - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - default: 25 - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + description: Audience ids to append to the target x-nullable: false + x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfCampaignV202301' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json + /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: post: - description: Create a campaign and assign budgets for the given account id with - creatable campaign attributes given in request body constrained by business - validation. The validation error includes details and source of errors. Pacing - can be adjusted and affected by the status of the campaign and the days left - on the campaign if auto daily pacing is enabled. - operationId: Campaigns_PostApi202301ExternalAccountCampaignsByAccountId + description: This endpoint removes one or more audiences ids from targeting + on the specified line item. The resulting state of the audience target is + returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId parameters: - - description: The account to request the campaign for. + - description: The line item to interact with explode: false in: path - name: accountId + name: line-item-id required: true schema: type: string @@ -2804,31 +2710,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PostCampaignV202301' - description: Creatable campaign attributes + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + description: Audience ids to remove from the target x-nullable: false - x-bodyName: campaign + x-bodyName: idsToRemove responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-04/retail-media/campaigns/{campaignId}: + /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/stores: get: - description: Get all the editable and creatable campaign attributes including - all types of budgets given the campaign id - operationId: Campaigns_GetApi202301ExternalCampaignByCampaignId + description: This endpoint gets the store target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId parameters: - - description: Campaign Id of the campaign detail + - description: The line item to interact with explode: false in: path - name: campaignId + name: line-item-id required: true schema: type: string @@ -2839,23 +2750,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign x-accepts: application/json put: - description: Edit a campaign for the given campaign id with a given editable - attributes. This will return updated creatable and editable attributes of - the campaign as the result of the operation. Pacing can be adjusted and affected - by the status of the campaign and the days left on the campaign if auto daily - pacing is enabled. - operationId: Campaigns_PutApi202301ExternalCampaignByCampaignId + description: This endpoint sets the scope of the store target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingStoresByLineItemId parameters: - - description: Campaign Id of the updating campaign + - description: The line item to interact with explode: false in: path - name: campaignId + name: line-item-id required: true schema: type: string @@ -2865,17 +2779,103 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PutCampaignV202301' - description: Editable campaign attributes + $ref: '#/components/schemas/StoreTarget202110Request' + description: The store target to set the scope for x-nullable: false - x-bodyName: campaign + x-bodyName: storeTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' + $ref: '#/components/schemas/StoreTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: + post: + description: This endpoint appends one or more store ids to targeting on the + specified line item. The resulting state of the store target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' + description: Store ids to append to the target + x-nullable: false + x-bodyName: idsToAppend + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: + post: + description: This endpoint removes one or more store ids from targeting on the + specified line item. The resulting state of the store target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' + description: Store ids to remove from the target + x-nullable: false + x-bodyName: idsToRemove + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json @@ -2941,12 +2941,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 @@ -2963,6 +2965,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/ApplicationSummaryModel' @@ -2983,10 +2986,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. @@ -2999,27 +3004,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: @@ -3033,15 +3045,20 @@ 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 JsonApiPageResponseOfAccount: @@ -3140,7 +3157,7 @@ components: - data type: object x-nullable: false - JsonApiPageResponseOfRetailer: + JsonApiPageResponseOfBrand: description: A wrapper class to return a single page of with metadata example: @@ -3154,16 +3171,10 @@ components: data: - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type warnings: @@ -3219,14 +3230,14 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' type: array x-nullable: false required: - data type: object x-nullable: false - JsonApiPageResponseOfBrand: + JsonApiPageResponseOfRetailer: description: A wrapper class to return a single page of with metadata example: @@ -3240,10 +3251,16 @@ components: data: - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type warnings: @@ -3299,7 +3316,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' type: array x-nullable: false required: @@ -3508,15 +3525,12 @@ components: - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: + JsonApiBodyWithIdOfInt64AndBrandAndBrand: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type properties: @@ -3528,18 +3542,21 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalRetailer' + $ref: '#/components/schemas/ExternalBrand' required: - id - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndBrandAndBrand: + JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type properties: @@ -3551,7 +3568,7 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalBrand' + $ref: '#/components/schemas/ExternalRetailer' required: - id - type @@ -3616,6 +3633,21 @@ components: - type type: object x-nullable: false + ExternalBrand: + description: A Retail Media Brand used to represent a collection of products + sold under the same umbrella name + example: + name: name + properties: + name: + maxLength: 120 + minLength: 0 + type: string + x-nullable: false + required: + - name + type: object + x-nullable: false ExternalRetailer: description: A Retail Media Retailer used to represent a selection of products from multiple brands @@ -3643,21 +3675,6 @@ components: - name type: object x-nullable: false - ExternalBrand: - description: A Retail Media Brand used to represent a collection of products - sold under the same umbrella name - example: - name: name - properties: - name: - maxLength: 120 - minLength: 0 - type: string - x-nullable: false - required: - - name - type: object - x-nullable: false AssetResponse: description: A class implementing the response of the Criteo API as described in API Guild Guidelines with a single entity as body @@ -3717,12 +3734,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 @@ -3740,8 +3759,10 @@ components: attributes: $ref: '#/components/schemas/Asset' id: + nullable: true type: string type: + nullable: true type: string type: object Asset: @@ -3758,8 +3779,10 @@ components: type: string fileLocation: description: A url pointing towards the static file the asset represents. + nullable: true type: string id: + nullable: true type: string required: - fileExtension @@ -3854,12 +3877,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array metadata: @@ -3930,12 +3955,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array type: object @@ -4064,12 +4091,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array metadata: @@ -4085,12 +4114,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object @@ -4175,12 +4206,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object @@ -4556,12 +4589,14 @@ components: items: format: int64 type: integer + nullable: true type: array categoryIds: description: The categories to target items: format: int32 type: integer + nullable: true type: array retailerId: description: ID of the retailer associated with this audience @@ -4806,21 +4841,25 @@ components: items: format: int32 type: integer + nullable: true type: array brandIds: description: The brands to target items: format: int64 type: integer + nullable: true type: array minPrice: description: The min price of targeted skus. format: double + nullable: true readOnly: true type: number maxPrice: description: The max price of targeted skus. format: double + nullable: true readOnly: true type: number required: @@ -4901,12 +4940,14 @@ components: errors: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false warnings: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false @@ -4960,12 +5001,14 @@ components: errors: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false warnings: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false @@ -5031,12 +5074,14 @@ components: errors: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false warnings: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false @@ -5102,6 +5147,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -5127,25 +5173,34 @@ components: status: 6 properties: traceIdentifier: + nullable: true type: string code: + nullable: true type: string source: additionalProperties: type: string + nullable: true type: object stackTrace: + nullable: true type: string type: + nullable: true type: string title: + nullable: true type: string status: format: int32 + nullable: true type: integer detail: + nullable: true type: string instance: + nullable: true type: string type: object RetailMediaExternalv1ProposalStatusModelResource: @@ -5162,6 +5217,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -5185,6 +5241,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -5206,6 +5263,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -5242,6 +5300,7 @@ components: rank: items: type: string + nullable: true type: array uniqueItems: false type: object @@ -5280,12 +5339,15 @@ components: - Approved type: string comment: + nullable: true type: string createdAt: format: date-time + nullable: true type: string updatedAt: format: date-time + nullable: true type: string required: - bookingStatus @@ -5307,6 +5369,7 @@ components: keywords: items: $ref: '#/components/schemas/RetailMediaExternalv1AddRemoveKeywordModel' + nullable: true type: array uniqueItems: false type: object @@ -5323,6 +5386,7 @@ components: keywords: items: $ref: '#/components/schemas/RetailMediaExternalv1SetBidModel' + nullable: true type: array uniqueItems: false type: object @@ -5353,23 +5417,28 @@ components: - AutoApproved - Rejected - AutoRejected + nullable: true type: string matchType: enum: - PositiveExactMatch - NegativeExactMatch - NegativeBroadMatch + nullable: true type: string bid: format: double + nullable: true type: number inputKeywords: $ref: '#/components/schemas/RetailMediaExternalv1InputKeywordsModel' createdAt: format: date-time + nullable: true type: string updatedAt: format: date-time + nullable: true type: string type: object RetailMediaExternalv1AddRemoveKeywordModel: @@ -5382,14 +5451,17 @@ components: phrase: maxLength: 255 minLength: 0 + nullable: true type: string matchType: enum: - PositiveExactMatch - NegativeExactMatch - NegativeBroadMatch + nullable: true type: string isDeleted: + nullable: true type: boolean type: object RetailMediaExternalv1SetBidModel: @@ -5401,9 +5473,11 @@ components: phrase: maxLength: 255 minLength: 0 + nullable: true type: string bid: format: double + nullable: true type: number type: object RetailMediaExternalv1InputKeywordsModel: @@ -5422,36 +5496,51 @@ components: negativeBroad: items: type: string + nullable: true type: array uniqueItems: false negativeExact: items: type: string + nullable: true type: array uniqueItems: false positiveExact: items: type: string + nullable: true type: array uniqueItems: false type: object - JsonApiSingleResponseOfCatalogStatus: - description: A JSON:API wrapper class to add one JSON:API within a data property + Creative202110ListResponse: + description: Data model for a list of response resources example: data: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown + - attributes: + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + brandId: 0 + name: name + retailerId: 6 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + brandId: 0 + name: name + retailerId: 6 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5461,6 +5550,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5471,6 +5561,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5480,6 +5571,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5490,59 +5582,79 @@ components: title: title properties: data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus' - errors: items: - $ref: '#/components/schemas/CommonError' + $ref: '#/components/schemas/ResourceOfCreative202110' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/CommonWarning' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - required: - - data - type: object - x-nullable: false - ExternalRetailerPages202110: - description: Wraps a list of valid pages for a retailer - example: - pageTypes: - - pageTypes - - pageTypes - properties: - pageTypes: - description: List of valid pages for a retailer + errors: items: - type: string - x-nullable: false + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false type: object x-nullable: false - Creative202110ListResponse: - description: Data model for a list of response resources + Creative202210Response: + description: Data model for response resource example: data: - - attributes: - associatedLineItemIds: - - associatedLineItemIds - - associatedLineItemIds - brandId: 0 - name: name - retailerId: 6 - status: Ready - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: + attributes: + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + templateName: templateName associatedLineItemIds: - associatedLineItemIds - associatedLineItemIds + environments: + - pageType: Search + environments: + - Web + - Web + - pageType: Search + environments: + - Web + - Web brandId: 0 + creativeFormatType: Unknown name: name retailerId: 6 + templateId: 1 status: Ready updatedAt: 2000-01-23T04:56:07.000+00:00 id: id @@ -5591,10 +5703,7 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/ResourceOfCreative202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfCreative202210' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -5609,11 +5718,66 @@ components: x-nullable: false type: object x-nullable: false - Creative202210Response: - description: Data model for response resource + Creative202210ListResponse: + description: Data model for a list of response resources example: data: - attributes: + - attributes: + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Search + environments: + - Web + - Web + - pageType: Search + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown + name: name + retailerId: 6 + templateId: 1 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: formatId: 5 templateVariableValues: - colorVariableValue: @@ -5712,7 +5876,10 @@ components: title: title properties: data: - $ref: '#/components/schemas/ResourceOfCreative202210' + items: + $ref: '#/components/schemas/ResourceOfCreative202210' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -5727,25 +5894,23 @@ components: x-nullable: false type: object x-nullable: false - Category202204ListResponse: - description: Data model for a list of response resources + JsonApiSingleResponseOfCatalogStatus: + description: A JSON:API wrapper class to add one JSON:API within a data property example: data: - - attributes: - name: name - text: text - parentId: parentId - id: id - type: type - - attributes: - name: name - text: text - parentId: parentId + attributes: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown id: id type: type warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5755,7 +5920,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5766,7 +5930,6 @@ components: title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5776,7 +5939,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -5787,19 +5949,94 @@ components: title: title properties: data: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus' + errors: items: - $ref: '#/components/schemas/ResourceOfCategory202204' + $ref: '#/components/schemas/CommonError' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonWarning' type: array x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' + required: + - data + type: object + x-nullable: false + Category202204ListResponse: + description: Data model for a list of response resources + example: + data: + - attributes: + name: name + text: text + parentId: parentId + id: id + type: type + - attributes: + name: name + text: text + parentId: parentId + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + items: + $ref: '#/components/schemas/ResourceOfCategory202204' + type: array + x-nullable: false + warnings: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/ProblemDetails' readOnly: true type: array x-nullable: false @@ -6305,198 +6542,22 @@ components: x-nullable: false type: object x-nullable: false - Creative202210ListResponse: - description: Data model for a list of response resources + ExternalRetailerPages202110: + description: Wraps a list of valid pages for a retailer example: - data: - - attributes: - formatId: 5 - templateVariableValues: - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - templateName: templateName - associatedLineItemIds: - - associatedLineItemIds - - associatedLineItemIds - environments: - - pageType: Search - environments: - - Web - - Web - - pageType: Search - environments: - - Web - - Web - brandId: 0 - creativeFormatType: Unknown - name: name - retailerId: 6 - templateId: 1 - status: Ready - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - formatId: 5 - templateVariableValues: - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - templateName: templateName - associatedLineItemIds: - - associatedLineItemIds - - associatedLineItemIds - environments: - - pageType: Search - environments: - - Web - - Web - - pageType: Search - environments: - - Web - - Web - brandId: 0 - creativeFormatType: Unknown - name: name - retailerId: 6 - templateId: 1 - status: Ready - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title + pageTypes: + - pageTypes + - pageTypes properties: - data: - items: - $ref: '#/components/schemas/ResourceOfCreative202210' - type: array - x-nullable: false - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: + pageTypes: + description: List of valid pages for a retailer items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + type: string + x-nullable: false type: array x-nullable: false type: object x-nullable: false - JsonApiRequestOfCatalogRequest: - description: "A JSON:API wrapper class to format a with Type, and Attributes properties" - example: - data: - attributes: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - type: type - properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest' - type: object - x-nullable: false CreativeCreateModel202207: description: Create model of a creative example: @@ -6639,33 +6700,20 @@ components: - templateVariableValues type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + JsonApiRequestOfCatalogRequest: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + \ /> with Type, and Attributes properties" example: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown - id: id - type: type + data: + attributes: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + type: type properties: - id: - format: long-id - type: string - x-nullable: false - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogStatus' - required: - - id - - type + data: + $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest' type: object x-nullable: false ResourceOfCreative202110: @@ -6685,9 +6733,11 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/Creative202110' @@ -6709,10 +6759,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. @@ -6821,10 +6873,41 @@ components: $ref: '#/components/schemas/Creative202210' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true + type: string + type: object + x-nullable: false + JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + example: + attributes: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + id: id + type: type + properties: + id: + format: long-id type: string + x-nullable: false + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalCatalogStatus' + required: + - id + - type type: object x-nullable: false ResourceOfCategory202204: @@ -6841,9 +6924,11 @@ components: $ref: '#/components/schemas/Category202204' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -6970,32 +7055,14 @@ components: $ref: '#/components/schemas/Template' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest: - description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" - example: - attributes: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - type: type - properties: - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogRequest' - required: - - type - type: object - x-nullable: false TemplateVariableValue: description: A value for a variable in a creative template. example: @@ -7033,72 +7100,24 @@ components: - id type: object x-nullable: false - ExternalCatalogStatus: - description: The status of an asynchronous request to generate a catalog + JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest: + description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" example: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown + attributes: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + type: type properties: - status: - description: An enumeration of the status of the catalog. - enum: - - unknown - - pending - - success - - failure - - expired - type: string - x-nullable: false - currency: - description: An ISO4217 representation of the currency products are listed - under in this catalog. - type: string - x-nullable: false - rowCount: - description: "An indication of the number of products contained in this\ - \ catalog. Available when\r\nthis catalog reaches a success status." - format: int32 - nullable: true - type: integer - x-nullable: true - fileSizeBytes: - description: The size of this catalog in bytes. Available when this catalog - reaches a success status. - format: int32 - nullable: true - type: integer - x-nullable: true - md5Checksum: - description: "An MD5 checksum of the catalog for use in confirming complete\ - \ and uncorrupted retrieval.\r\nAvailable when this catalog reaches a\ - \ success status." - nullable: true - type: string - x-nullable: true - createdAt: - description: The time this catalog was created. Represented as a UTC ISO8601 - string. - format: date-time + type: type: string x-nullable: false - message: - description: An optional information message intended for developer consumption. - nullable: true - type: string - x-nullable: true + attributes: + $ref: '#/components/schemas/ExternalCatalogRequest' required: - - createdAt - - currency - - fileSizeBytes - - md5Checksum - - message - - rowCount - - status + - type type: object x-nullable: false Creative202110: @@ -7294,6 +7313,74 @@ components: - templateVariableValues type: object x-nullable: false + ExternalCatalogStatus: + description: The status of an asynchronous request to generate a catalog + example: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + properties: + status: + description: An enumeration of the status of the catalog. + enum: + - unknown + - pending + - success + - failure + - expired + type: string + x-nullable: false + currency: + description: An ISO4217 representation of the currency products are listed + under in this catalog. + type: string + x-nullable: false + rowCount: + description: "An indication of the number of products contained in this\ + \ catalog. Available when\r\nthis catalog reaches a success status." + format: int32 + nullable: true + type: integer + x-nullable: true + fileSizeBytes: + description: The size of this catalog in bytes. Available when this catalog + reaches a success status. + format: int32 + nullable: true + type: integer + x-nullable: true + md5Checksum: + description: "An MD5 checksum of the catalog for use in confirming complete\ + \ and uncorrupted retrieval.\r\nAvailable when this catalog reaches a\ + \ success status." + nullable: true + type: string + x-nullable: true + createdAt: + description: The time this catalog was created. Represented as a UTC ISO8601 + string. + format: date-time + type: string + x-nullable: false + message: + description: An optional information message intended for developer consumption. + nullable: true + type: string + x-nullable: true + required: + - createdAt + - currency + - fileSizeBytes + - md5Checksum + - message + - rowCount + - status + type: object + x-nullable: false Template: description: A template for creating creatives. example: @@ -7493,31 +7580,8 @@ components: - updatedAt type: object x-nullable: false - ExternalCatalogRequest: - description: A request for a catalog under the specified format. Currently "json-newline" - is supported. - example: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - properties: - format: - default: json-newline - enum: - - json-newline - type: string - x-nullable: false - brandIdFilter: - items: - format: long-id - type: string - type: array - x-nullable: false - type: object - x-nullable: false - TextVariableValue: - description: A value of a template text variable + TextVariableValue: + description: A value of a template text variable example: text: text properties: @@ -7595,6 +7659,29 @@ components: - url type: object x-nullable: false + ExternalCatalogRequest: + description: A request for a catalog under the specified format. Currently "json-newline" + is supported. + example: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + properties: + format: + default: json-newline + enum: + - json-newline + type: string + x-nullable: false + brandIdFilter: + items: + format: long-id + type: string + type: array + x-nullable: false + type: object + x-nullable: false PageTypeEnvironment: description: The PageType-Environment Tuples for creatives example: @@ -7905,6 +7992,7 @@ components: description: The errors items: $ref: '#/components/schemas/Error' + nullable: true type: array type: object EnvelopeReportRequest: @@ -7968,6 +8056,7 @@ components: detail: description: (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. + nullable: true type: string instance: description: (REQUIRED) A URI reference that identifies the specific occurrence @@ -7984,10 +8073,12 @@ components: \ by the implementation technology e.g. .Net, Scala, etc" items: type: string + nullable: true type: array title: description: "(RECOMMENDED) A short, human-readable summary of the problem\ \ type." + nullable: true type: string traceId: description: (REQUIRED) The Correlation ID provided by the Gateway. It is @@ -8052,24 +8143,30 @@ components: createdAt: description: Timestamp when the report started to execute format: date-time + nullable: true type: string expiresAt: description: Timestamp when the cached report will expire format: date-time + nullable: true type: string fileSizeBytes: description: "Total size of file, only populated on success" format: int64 + nullable: true type: integer md5Checksum: description: "The MD5 checksum of the content, only populated on success" + nullable: true type: string message: description: "Failure message, only populated on failure" + nullable: true type: string rowCount: description: "Rows of data in report, only populated on success" format: int64 + nullable: true type: integer status: description: "One of \"pending\", \"success\", \"failure\", or \"expired\"" @@ -8111,6 +8208,7 @@ components: - 7D - 14D - 30D + nullable: true type: string endDate: description: "YYYY-MM-DD, must not be before startDate and not more than\ @@ -8126,16 +8224,19 @@ components: - json - json-compact - json-newline + nullable: true type: string id: description: "The id of the campaign or line item. Either 'id' or 'ids'\ \ must be specified, but not both" + nullable: true type: string ids: description: "The ids of the campaigns or line items. Either 'id' or 'ids'\ \ must be specified, but not both" items: type: string + nullable: true type: array reportType: description: "One of \"summary\", \"keyword\", \"pageType\", \"productCategory\"\ @@ -8149,12 +8250,14 @@ components: - attributedTransactions type: string revenueType: + nullable: true type: string startDate: description: YYYY-MM-DD format: date type: string timeZone: + nullable: true type: string viewAttributionWindow: description: "Defaults to value from campaign or one of \"none\", \"1D\"\ @@ -8166,13 +8269,14 @@ components: - 7D - 14D - 30D + nullable: true type: string required: - endDate - reportType - startDate type: object - AuctionLineItemPagedListResponse: + Balance202110PagedListResponse: description: Data model for a paged list of response resources example: metadata: @@ -8184,41 +8288,29 @@ components: currentPageIndex: 1 data: - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id @@ -8270,7 +8362,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/ResourceOfAuctionLineItem' + $ref: '#/components/schemas/ResourceOfBalance202110' type: array x-nullable: false warnings: @@ -8287,27 +8379,44 @@ components: x-nullable: false type: object x-nullable: false - AuctionLineItemResponse: - description: Data model for response resource + CommonLineItemPagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 + - attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 endDate: 2000-01-23 campaignId: campaignId - targetBid: 5.637376656633329 + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + budgetRemaining: 1.4658129805029452 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 name: name - isAutoDailyPacing: false targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + type: unknown startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown + budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -8354,8 +8463,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ResourceOfAuctionLineItem' + items: + $ref: '#/components/schemas/ResourceOfCommonLineItem' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -8370,28 +8484,74 @@ components: x-nullable: false type: object x-nullable: false - CommonLineItemResponse: - description: Data model for response resource + JsonApiPageResponseOfCampaignV202301: + description: A wrapper class to return a single page of with metadata example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - budgetRemaining: 1.4658129805029452 + - attributes: + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 + id: id + type: type + - attributes: + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 status: unknown - budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 id: id type: type warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8401,7 +8561,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8412,7 +8571,6 @@ components: title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8422,7 +8580,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8432,66 +8589,62 @@ components: type: unknown title: title properties: - data: - $ref: '#/components/schemas/ResourceOfCommonLineItem' + errors: + items: + $ref: '#/components/schemas/CommonError' + type: array + x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonWarning' type: array x-nullable: false - errors: + metadata: + $ref: '#/components/schemas/PageMetadata' + data: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' type: array x-nullable: false + required: + - data + - metadata type: object x-nullable: false - CommonLineItemPagedListResponse: - description: Data model for a paged list of response resources + JsonApiSingleResponseOfCampaignV202301: + description: A JSON:API wrapper class to add one JSON:API within a data property example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - budgetRemaining: 1.4658129805029452 + attributes: + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 status: unknown - budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 id: id type: type warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8501,7 +8654,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8512,7 +8664,6 @@ components: title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8522,7 +8673,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8532,34 +8682,45 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' + errors: items: - $ref: '#/components/schemas/ResourceOfCommonLineItem' + $ref: '#/components/schemas/CommonError' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonWarning' type: array x-nullable: false + required: + - data type: object x-nullable: false - KeywordTarget202110Response: - description: Data model for a value type resource outcome + AuctionLineItemResponse: + description: Data model for response resource example: data: attributes: - keywords: - key: unknown + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -8605,7 +8766,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' + $ref: '#/components/schemas/ResourceOfAuctionLineItem' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -8620,15 +8781,13 @@ components: x-nullable: false type: object x-nullable: false - StoreTarget202110Response: + KeywordTarget202110Response: description: Data model for a value type resource outcome example: data: attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + keywords: + key: unknown type: type warnings: - traceId: traceId @@ -8674,7 +8833,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -8689,18 +8848,22 @@ components: x-nullable: false type: object x-nullable: false - AddToBasketTarget202110Response: - description: Data model for a value type resource outcome + BalanceCampaign202110PagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + - attributes: "{}" + id: id + type: type + - attributes: "{}" + id: id type: type warnings: - traceId: traceId @@ -8745,8 +8908,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + items: + $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -8761,15 +8929,56 @@ components: x-nullable: false type: object x-nullable: false - AudienceTarget202110Response: - description: Data model for a value type resource outcome + AuctionLineItemPagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + - attributes: + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -8814,8 +9023,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' + items: + $ref: '#/components/schemas/ResourceOfAuctionLineItem' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -8830,11 +9044,47 @@ components: x-nullable: false type: object x-nullable: false - PreferredLineItem202110Response: - description: Data model for response resource + PreferredLineItem202110PagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: + - attributes: + budgetRemaining: 5.962133916683182 + endDate: 2000-01-23 + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId + createdAt: 2000-01-23T04:56:07.000+00:00 + pacing: unknown + budgetSpent: 1.4658129805029452 + name: name + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + status: unknown + budget: 6.027456183070403 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: budgetRemaining: 5.962133916683182 endDate: 2000-01-23 campaignId: campaignId @@ -8906,8 +9156,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + items: + $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -8922,130 +9177,11 @@ components: x-nullable: false type: object x-nullable: false - PromotedProduct202110PagedListResponse: - description: Data model for a paged list of response resources + PreferredLineItem202110Response: + description: Data model for response resource example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - metadata: - $ref: '#/components/schemas/PageMetadata' - data: - items: - $ref: '#/components/schemas/ResourceOfPromotedProduct202110' - type: array - x-nullable: false - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - type: object - x-nullable: false - PreferredLineItem202110PagedListResponse: - description: Data model for a paged list of response resources - example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 - data: - - attributes: - budgetRemaining: 5.962133916683182 - endDate: 2000-01-23 - campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId - createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 - name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - status: unknown - budget: 6.027456183070403 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: + attributes: budgetRemaining: 5.962133916683182 endDate: 2000-01-23 campaignId: campaignId @@ -9117,13 +9253,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9138,42 +9269,22 @@ components: x-nullable: false type: object x-nullable: false - Balance202110PagedListResponse: - description: Data model for a paged list of response resources + CommonLineItemResponse: + description: Data model for response resource example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: + attributes: + budgetRemaining: 1.4658129805029452 createdAt: 2000-01-23T04:56:07.000+00:00 endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 + campaignId: campaignId + budgetSpent: 6.027456183070403 name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 + targetRetailerId: targetRetailerId + type: unknown startDate: 2000-01-23 status: unknown + budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -9220,94 +9331,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' - data: - items: - $ref: '#/components/schemas/ResourceOfBalance202110' - type: array - x-nullable: false - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - type: object - x-nullable: false - BalanceCampaign202110PagedListResponse: - description: Data model for a paged list of response resources - example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 - data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfCommonLineItem' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9466,9 +9491,8 @@ components: x-nullable: false type: object x-nullable: false - JsonApiPageResponseOfCampaignV202301: - description: A wrapper class to return a single page of with metadata + PromotedProduct202110PagedListResponse: + description: Data model for a paged list of response resources example: metadata: currentPageSize: 6 @@ -9479,61 +9503,16 @@ components: currentPageIndex: 1 data: - attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 - startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 + bidOverride: 0.8008281904610115 id: id type: type - attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 - startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 + bidOverride: 0.8008281904610115 id: id type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9543,6 +9522,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9553,6 +9533,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9562,6 +9543,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9571,62 +9553,43 @@ components: type: unknown title: title properties: - errors: + metadata: + $ref: '#/components/schemas/PageMetadata' + data: items: - $ref: '#/components/schemas/CommonError' + $ref: '#/components/schemas/ResourceOfPromotedProduct202110' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/CommonWarning' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - metadata: - $ref: '#/components/schemas/PageMetadata' - data: + errors: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - required: - - data - - metadata type: object x-nullable: false - JsonApiSingleResponseOfCampaignV202301: - description: A JSON:API wrapper class to add one JSON:API within a data property + AddToBasketTarget202110Response: + description: Data model for a value type resource outcome example: data: attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 - startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 - id: id + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9636,6 +9599,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9646,6 +9610,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9655,6 +9620,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9665,223 +9631,262 @@ components: title: title properties: data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' - errors: + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + warnings: items: - $ref: '#/components/schemas/CommonError' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - warnings: + errors: items: - $ref: '#/components/schemas/CommonWarning' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - required: - - data - type: object - x-nullable: false - AuctionLineItemCreateModelRequest: - description: Data model for a create input resource - example: - data: - attributes: - bidStrategy: conversion - endDate: 2000-01-23 - maxBid: 1.4658129805029452 - name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.637376656633329 - startDate: 2000-01-23 - targetBid: 6.027456183070403 - monthlyPacing: 5.962133916683182 - status: unknown - budget: 0.8008281904610115 - type: type - properties: - data: - $ref: '#/components/schemas/InputResourceOfAuctionLineItemCreateModel' - type: object - x-nullable: false - AuctionLineItemUpdateModelRequest: - description: Data model for an input resource - example: - data: - attributes: - bidStrategy: conversion - endDate: 2000-01-23 - maxBid: 1.4658129805029452 - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - startDate: 2000-01-23 - targetBid: 6.027456183070403 - monthlyPacing: 5.962133916683182 - status: unknown - budget: 0.8008281904610115 - id: id - type: type - properties: - data: - $ref: '#/components/schemas/ResourceOfAuctionLineItemUpdateModel' - type: object - x-nullable: false - KeywordTarget202110Request: - description: Data model for a value type input resource - example: - data: - attributes: - keywords: - key: unknown - type: type - properties: - data: - $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' type: object x-nullable: false - StoreTarget202110Request: - description: Data model for a value type input resource + AudienceTarget202110Response: + description: Data model for a value type resource outcome example: data: attributes: scope: unknown - storeIds: - - storeIds - - storeIds + audienceIds: + - audienceIds + - audienceIds type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' + warnings: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false type: object x-nullable: false - StoreIdsUpdateModel202110Request: - description: Data model for a value type input resource + StoreTarget202110Response: + description: Data model for a value type resource outcome example: data: attributes: + scope: unknown storeIds: - storeIds - storeIds type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' - type: object - x-nullable: false - AddToBasketTarget202110Request: - description: Data model for a value type input resource - example: - data: - attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown - type: type - properties: - data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + warnings: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false type: object x-nullable: false - AddToBasketIdsUpdateModel202110Request: - description: Data model for a value type input resource + PostCampaignV202301: + description: An object that represents the available options to set when creating + a Retail Media Campaign example: data: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + clickAttributionScope: unknown + viewAttributionScope: unknown + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + budget: 0.8008281904610115 type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketIdsUpdateModel202110' + $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301' type: object x-nullable: false - AudienceTarget202110Request: - description: Data model for a value type input resource + AuctionLineItemUpdateModelRequest: + description: Data model for an input resource example: data: attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + bidStrategy: conversion + endDate: 2000-01-23 + maxBid: 1.4658129805029452 + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + startDate: 2000-01-23 + targetBid: 6.027456183070403 + monthlyPacing: 5.962133916683182 + status: unknown + budget: 0.8008281904610115 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' + $ref: '#/components/schemas/ResourceOfAuctionLineItemUpdateModel' type: object x-nullable: false - AudienceIdsUpdateModel202110Request: + KeywordTarget202110Request: description: Data model for a value type input resource example: data: attributes: - audienceIds: - - audienceIds - - audienceIds + keywords: + key: unknown type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceIdsUpdateModel202110' + $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' type: object x-nullable: false - PromotedProduct202110ListRequest: - description: Data model for a list of input resources + BalanceCampaign202110ListRequest: + description: "A class implementing the request of the Criteo API as described\ + \ in API Guild Guidelines with a collection of entities as body\r\nhttps://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines" example: data: - - attributes: - bidOverride: 0.8008281904610115 + - attributes: "{}" id: id type: type - - attributes: - bidOverride: 0.8008281904610115 + - attributes: "{}" id: id type: type properties: data: items: - $ref: '#/components/schemas/ResourceOfPromotedProduct202110' + $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' type: array x-nullable: false type: object x-nullable: false - PreferredLineItemUpdateModel202110Request: - description: Data model for an input resource + AuctionLineItemCreateModelRequest: + description: Data model for a create input resource example: data: attributes: - pacing: accelerated + bidStrategy: conversion endDate: 2000-01-23 + maxBid: 1.4658129805029452 name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.637376656633329 startDate: 2000-01-23 - creativeId: creativeId + targetBid: 6.027456183070403 + monthlyPacing: 5.962133916683182 status: unknown budget: 0.8008281904610115 - id: id type: type properties: data: - $ref: '#/components/schemas/ResourceOfPreferredLineItemUpdateModel202110' + $ref: '#/components/schemas/InputResourceOfAuctionLineItemCreateModel' type: object x-nullable: false PreferredLineItemCreateModel202110Request: @@ -9916,23 +9921,28 @@ components: $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModel202110' type: object x-nullable: false - BalanceCampaign202110ListRequest: - description: "A class implementing the request of the Criteo API as described\ - \ in API Guild Guidelines with a collection of entities as body\r\nhttps://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines" + PutCampaignV202301: + description: An object that represents the available options to set when editing + a Retail Media Campaign example: data: - - attributes: "{}" - id: id - type: type - - attributes: "{}" + attributes: + clickAttributionWindow: 7D + endDate: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: None + isAutoDailyPacing: true + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + budget: 0.8008281904610115 id: id type: type properties: data: - items: - $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' - type: array - x-nullable: false + $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301' type: object x-nullable: false LineItemBidMultipliersRequest: @@ -9955,76 +9965,164 @@ components: $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' type: object x-nullable: false - PostCampaignV202301: - description: An object that represents the available options to set when creating - a Retail Media Campaign + PromotedProduct202110ListRequest: + description: Data model for a list of input resources example: data: - attributes: - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - clickAttributionScope: unknown - viewAttributionScope: unknown - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - budget: 0.8008281904610115 + - attributes: + bidOverride: 0.8008281904610115 + id: id + type: type + - attributes: + bidOverride: 0.8008281904610115 + id: id type: type properties: data: - $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301' + items: + $ref: '#/components/schemas/ResourceOfPromotedProduct202110' + type: array + x-nullable: false type: object x-nullable: false - PutCampaignV202301: - description: An object that represents the available options to set when editing - a Retail Media Campaign + PreferredLineItemUpdateModel202110Request: + description: Data model for an input resource example: data: attributes: - clickAttributionWindow: 7D - endDate: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - viewAttributionScope: unknown + pacing: accelerated + endDate: 2000-01-23 name: name - viewAttributionWindow: None - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - budget: 0.8008281904610115 - id: id - type: type - properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301' - type: object - x-nullable: false - ResourceOfAuctionLineItem: - description: Data model for a Resource + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown + budget: 0.8008281904610115 + id: id + type: type + properties: + data: + $ref: '#/components/schemas/ResourceOfPreferredLineItemUpdateModel202110' + type: object + x-nullable: false + AddToBasketTarget202110Request: + description: Data model for a value type input resource + example: + data: + attributes: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown + type: type + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + type: object + x-nullable: false + AddToBasketIdsUpdateModel202110Request: + description: Data model for a value type input resource + example: + data: + attributes: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + type: type + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketIdsUpdateModel202110' + type: object + x-nullable: false + AudienceTarget202110Request: + description: Data model for a value type input resource + example: + data: + attributes: + scope: unknown + audienceIds: + - audienceIds + - audienceIds + type: type + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' + type: object + x-nullable: false + AudienceIdsUpdateModel202110Request: + description: Data model for a value type input resource + example: + data: + attributes: + audienceIds: + - audienceIds + - audienceIds + type: type + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfAudienceIdsUpdateModel202110' + type: object + x-nullable: false + StoreTarget202110Request: + description: Data model for a value type input resource + example: + data: + attributes: + scope: unknown + storeIds: + - storeIds + - storeIds + type: type + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + type: object + x-nullable: false + StoreIdsUpdateModel202110Request: + description: Data model for a value type input resource + example: + data: + attributes: + storeIds: + - storeIds + - storeIds + type: type + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' + type: object + x-nullable: false + ResourceOfBalance202110: + description: A class that represents an entity in a guild compliant way example: attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id @@ -10032,12 +10130,14 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: - $ref: '#/components/schemas/ExternalAuctionLineItem' + $ref: '#/components/schemas/ExternalBalance202110' type: object x-nullable: false ResourceOfCommonLineItem: @@ -10061,81 +10161,132 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalCommonLineItem' type: object x-nullable: false - ValueTypeResourceOfKeywordTarget202110: - description: Data model for a value type resource + JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: - keywords: - key: unknown + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 + id: id type: type properties: + id: + format: long-id + type: string + x-nullable: false type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalKeywordTarget202110' + $ref: '#/components/schemas/CampaignV202301' + required: + - id + - type type: object x-nullable: false - ValueTypeResourceOfStoreTarget202110: - description: Data model for a value type resource + ResourceOfAuctionLineItem: + description: Data model for a Resource example: attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalStoreTarget202110' + $ref: '#/components/schemas/ExternalAuctionLineItem' type: object x-nullable: false - ValueTypeResourceOfAddToBasketTarget202110: + ValueTypeResourceOfKeywordTarget202110: description: Data model for a value type resource example: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + keywords: + key: unknown type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAddToBasketTarget202110' + $ref: '#/components/schemas/ExternalKeywordTarget202110' type: object x-nullable: false - ValueTypeResourceOfAudienceTarget202110: - description: Data model for a value type resource + ResourceOfBalanceCampaign202110: + description: A class that represents an entity in a guild compliant way example: - attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + attributes: "{}" + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAudienceTarget202110' + description: Campaigns related to the balance + type: object + x-nullable: false type: object x-nullable: false ResourceOfPreferredLineItem202110: @@ -10173,180 +10324,178 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalPreferredLineItem202110' type: object x-nullable: false - ResourceOfPromotedProduct202110: - description: Data model for a Resource + JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers: + description: Response object for line item bid multiplier calls example: attributes: - bidOverride: 0.8008281904610115 + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + categories: 1.4658129805029452 + confirmation: 5.637376656633329 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + homepage: 6.027456183070403 id: id type: type properties: id: - description: Id of the entity + format: long-id type: string + x-nullable: false type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalPromotedProduct202110' + $ref: '#/components/schemas/LineItemBidMultipliers' + required: + - id + - type type: object x-nullable: false - ResourceOfBalance202110: - description: A class that represents an entity in a guild compliant way + ResourceOfLineItemBidMultipliers: + description: Data model for a Resource example: attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + categories: 1.4658129805029452 + confirmation: 5.637376656633329 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + homepage: 6.027456183070403 id: id type: type properties: + attributes: + $ref: '#/components/schemas/LineItemBidMultipliers' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string - attributes: - $ref: '#/components/schemas/ExternalBalance202110' type: object x-nullable: false - ResourceOfBalanceCampaign202110: - description: A class that represents an entity in a guild compliant way + ResourceOfPromotedProduct202110: + description: Data model for a Resource example: - attributes: "{}" + attributes: + bidOverride: 0.8008281904610115 id: id type: type properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: - description: Campaigns related to the balance - type: object - x-nullable: false + $ref: '#/components/schemas/ExternalPromotedProduct202110' type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers: - description: Response object for line item bid multiplier calls + ValueTypeResourceOfAddToBasketTarget202110: + description: Data model for a value type resource example: attributes: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 - id: id + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type properties: - id: - format: long-id + type: type: string x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalAddToBasketTarget202110' + type: object + x-nullable: false + ValueTypeResourceOfAudienceTarget202110: + description: Data model for a value type resource + example: + attributes: + scope: unknown + audienceIds: + - audienceIds + - audienceIds + type: type + properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/LineItemBidMultipliers' - required: - - id - - type + $ref: '#/components/schemas/ExternalAudienceTarget202110' type: object x-nullable: false - ResourceOfLineItemBidMultipliers: - description: Data model for a Resource + ValueTypeResourceOfStoreTarget202110: + description: Data model for a value type resource example: attributes: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 - id: id + scope: unknown + storeIds: + - storeIds + - storeIds type: type properties: - attributes: - $ref: '#/components/schemas/LineItemBidMultipliers' - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalStoreTarget202110' type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301: + JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + \ /> with Type, and\r\nAttributes properties" example: attributes: - budgetRemaining: 6.027456183070403 clickAttributionWindow: 30D endDate: 2000-01-23T04:56:07.000+00:00 drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds viewAttributionWindow: None name: name isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 - id: id + budget: 0.8008281904610115 type: type properties: - id: - format: long-id - type: string - x-nullable: false type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/CampaignV202301' + $ref: '#/components/schemas/CampaignAttributesV202301' required: - - id - type type: object x-nullable: false - InputResourceOfAuctionLineItemCreateModel: + ResourceOfAuctionLineItemUpdateModel: description: Data model for a Resource example: attributes: @@ -10354,24 +10503,29 @@ components: endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId + isAutoDailyPacing: true dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 monthlyPacing: 5.962133916683182 status: unknown budget: 0.8008281904610115 + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAuctionLineItemCreateModel' + $ref: '#/components/schemas/ExternalAuctionLineItemUpdateModel' type: object x-nullable: false - ResourceOfAuctionLineItemUpdateModel: + InputResourceOfAuctionLineItemCreateModel: description: Data model for a Resource example: attributes: @@ -10379,82 +10533,28 @@ components: endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true + isAutoDailyPacing: false + targetRetailerId: targetRetailerId dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 monthlyPacing: 5.962133916683182 status: unknown budget: 0.8008281904610115 - id: id - type: type - properties: - id: - description: Id of the entity - type: string - type: - description: Canonical type name of the entity - type: string - attributes: - $ref: '#/components/schemas/ExternalAuctionLineItemUpdateModel' - type: object - x-nullable: false - ValueTypeResourceOfStoreIdsUpdateModel202110: - description: Data model for a value type resource - example: - attributes: - storeIds: - - storeIds - - storeIds - type: type - properties: - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' - type: object - x-nullable: false - ValueTypeResourceOfAddToBasketIdsUpdateModel202110: - description: Data model for a value type resource - example: - attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - type: type - properties: - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalAddToBasketIdsUpdateModel202110' - type: object - x-nullable: false - ValueTypeResourceOfAudienceIdsUpdateModel202110: - description: Data model for a value type resource - example: - attributes: - audienceIds: - - audienceIds - - audienceIds type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAudienceIdsUpdateModel202110' + $ref: '#/components/schemas/ExternalAuctionLineItemCreateModel' type: object x-nullable: false - ResourceOfPreferredLineItemUpdateModel202110: + InputResourceOfPreferredLineItemCreateModel202110: description: Data model for a Resource example: attributes: - pacing: accelerated + pacing: unknown endDate: 2000-01-23 name: name capping: @@ -10470,28 +10570,58 @@ components: categoryId: categoryId - includeChildren: true categoryId: categoryId + targetRetailerId: targetRetailerId startDate: 2000-01-23 creativeId: creativeId status: unknown budget: 0.8008281904610115 - id: id type: type properties: - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModel202110' + $ref: '#/components/schemas/ExternalPreferredLineItemCreateModel202110' type: object x-nullable: false - InputResourceOfPreferredLineItemCreateModel202110: - description: Data model for a Resource + JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: - pacing: unknown + clickAttributionWindow: 7D + endDate: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: None + isAutoDailyPacing: true + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + budget: 0.8008281904610115 + id: id + type: type + properties: + id: + format: long-id + type: string + x-nullable: false + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/EditableCampaignAttributesV202301' + required: + - id + - type + type: object + x-nullable: false + ResourceOfPreferredLineItemUpdateModel202110: + description: Data model for a Resource + example: + attributes: + pacing: accelerated endDate: 2000-01-23 name: name capping: @@ -10507,82 +10637,436 @@ components: categoryId: categoryId - includeChildren: true categoryId: categoryId - targetRetailerId: targetRetailerId startDate: 2000-01-23 creativeId: creativeId status: unknown budget: 0.8008281904610115 + id: id + type: type + properties: + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + attributes: + $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModel202110' + type: object + x-nullable: false + ValueTypeResourceOfAddToBasketIdsUpdateModel202110: + description: Data model for a value type resource + example: + attributes: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalPreferredLineItemCreateModel202110' + $ref: '#/components/schemas/ExternalAddToBasketIdsUpdateModel202110' type: object x-nullable: false - JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301: - description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" + ValueTypeResourceOfAudienceIdsUpdateModel202110: + description: Data model for a value type resource example: attributes: - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - clickAttributionScope: unknown - viewAttributionScope: unknown - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - budget: 0.8008281904610115 + audienceIds: + - audienceIds + - audienceIds type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/CampaignAttributesV202301' - required: - - type + $ref: '#/components/schemas/ExternalAudienceIdsUpdateModel202110' type: object x-nullable: false - JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301: - description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + ValueTypeResourceOfStoreIdsUpdateModel202110: + description: Data model for a value type resource example: attributes: - clickAttributionWindow: 7D - endDate: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - viewAttributionScope: unknown - name: name - viewAttributionWindow: None - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - budget: 0.8008281904610115 - id: id + storeIds: + - storeIds + - storeIds type: type properties: - id: + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' + type: object + x-nullable: false + ExternalBalance202110: + description: A Retail Media Balance used to determine the funds available for + any or all campaigns in an account + example: + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + name: name + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + name: + type: string + x-nullable: false + poNumber: + type: string + x-nullable: false + memo: + type: string + x-nullable: false + deposited: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + spent: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + remaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" + type: string + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + type: string + status: + enum: + - unknown + - scheduled + - active + - ended + type: string + x-nullable: false + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + required: + - createdAt + - deposited + - endDate + - memo + - name + - poNumber + - remaining + - spent + - startDate + - status + - updatedAt + type: object + x-nullable: false + ExternalCommonLineItem: + description: A common line item to hold line item information shared between + preferred and auction line items + example: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + name: + maxLength: 255 + minLength: 0 + type: string + x-nullable: false + type: + enum: + - unknown + - auction + - preferred + type: string + x-nullable: false + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" + type: string + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + nullable: true + type: string + status: + enum: + - unknown + - active + - scheduled + - draft + - paused + - budgetHit + - ended + - archived + - noFunds + type: string + x-nullable: false + targetRetailerId: + format: long-id + type: string + x-nullable: false + budget: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + campaignId: + format: long-id + type: string + x-nullable: false + budgetSpent: + format: double + type: number + x-nullable: false + budgetRemaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + required: + - budgetRemaining + - campaignId + - createdAt + - name + - startDate + - targetRetailerId + - type + - updatedAt + type: object + x-nullable: false + CampaignV202301: + description: A Retail Media Campaign used to represent an advertiser's marketing + objective + example: + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 + properties: + accountId: format: long-id type: string x-nullable: false - type: + promotedBrandIds: + items: + format: long-id + type: string + type: array + x-nullable: false + budgetSpent: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + budgetRemaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + status: + enum: + - unknown + - active + - inactive + - scheduled + - ended + type: string + x-nullable: false + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + type: + default: auction + enum: + - unknown + - auction + - preferred + type: string + x-nullable: false + drawableBalanceIds: + items: + format: long-id + type: string + type: array + x-nullable: false + clickAttributionWindow: + default: 30D + enum: + - 7D + - 14D + - 30D + - unknown + type: string + x-nullable: false + viewAttributionWindow: + default: None + enum: + - None + - Unknown + - OneDay + - SevenDays + - FourteenDays + - ThirtyDays + type: string + x-nullable: false + name: + maxLength: 255 + minLength: 0 + type: string + x-nullable: false + budget: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + monthlyPacing: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + dailyPacing: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + isAutoDailyPacing: + type: boolean + x-nullable: false + startDate: + format: date-time + nullable: true type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/EditableCampaignAttributesV202301' + x-nullable: true + endDate: + format: date-time + nullable: true + type: string + x-nullable: true + clickAttributionScope: + enum: + - unknown + - sameSku + - sameSkuCategory + - sameSkuCategoryBrand + nullable: true + type: string + x-nullable: true + viewAttributionScope: + enum: + - unknown + - sameSku + - sameSkuCategory + - sameSkuCategoryBrand + nullable: true + type: string + x-nullable: true required: - - id - - type + - accountId + - budgetRemaining + - budgetSpent + - createdAt + - endDate + - isAutoDailyPacing + - name + - promotedBrandIds + - startDate + - updatedAt type: object x-nullable: false ExternalAuctionLineItem: @@ -10623,6 +11107,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string maxBid: format: decimal @@ -10705,234 +11190,46 @@ components: type: number x-nullable: true createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false - required: - - budgetRemaining - - campaignId - - createdAt - - name - - startDate - - targetRetailerId - - updatedAt - type: object - x-nullable: false - ExternalCommonLineItem: - description: A common line item to hold line item information shared between - preferred and auction line items - example: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - properties: - name: - maxLength: 255 - minLength: 0 - type: string - x-nullable: false - type: - enum: - - unknown - - auction - - preferred - type: string - x-nullable: false - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - status: - enum: - - unknown - - active - - scheduled - - draft - - paused - - budgetHit - - ended - - archived - - noFunds - type: string - x-nullable: false - targetRetailerId: - format: long-id - type: string - x-nullable: false - budget: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - campaignId: - format: long-id - type: string - x-nullable: false - budgetSpent: - format: double - type: number - x-nullable: false - budgetRemaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false - required: - - budgetRemaining - - campaignId - - createdAt - - name - - startDate - - targetRetailerId - - type - - updatedAt - type: object - x-nullable: false - ExternalKeywordTarget202110: - description: Identifies keyword targeting for a line item - example: - keywords: - key: unknown - properties: - keywords: - additionalProperties: - enum: - - unknown - - negativeExact - - negativeBroad - type: string - x-nullable: false - description: Keywords that targeting specifications exist for - type: object - x-nullable: false - required: - - keywords - type: object - x-nullable: false - ExternalStoreTarget202110: - description: Identifies store targeting for a line item - example: - scope: unknown - storeIds: - - storeIds - - storeIds - properties: - scope: - description: Scope of the store target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - storeIds: - description: Store ids that should be targeted - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - scope - - storeIds - type: object - x-nullable: false - ExternalAddToBasketTarget202110: - description: Identifies add to basket targeting for a line item - example: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown - properties: - scope: - description: Scope of the add to basket target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - productIds: - description: Product ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - categoryIds: - description: Category ids that add to basket should target - items: - type: string - x-nullable: false - type: array + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string x-nullable: false required: - - scope + - budgetRemaining + - campaignId + - createdAt + - name + - startDate + - targetRetailerId + - updatedAt type: object x-nullable: false - ExternalAudienceTarget202110: - description: Identifies audience targeting for a line item + ExternalKeywordTarget202110: + description: Identifies keyword targeting for a line item example: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + keywords: + key: unknown properties: - scope: - description: Scope of the audience target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - audienceIds: - description: Audience ids that should be targeted - items: - format: long-id + keywords: + additionalProperties: + enum: + - unknown + - negativeExact + - negativeBroad type: string - type: array + x-nullable: false + description: Keywords that targeting specifications exist for + type: object x-nullable: false required: - - audienceIds - - scope + - keywords + type: object + x-nullable: false + ExternalBalanceCampaign202110: + description: Campaigns related to the balance type: object x-nullable: false ExternalPreferredLineItem202110: @@ -11056,112 +11353,6 @@ components: - updatedAt type: object x-nullable: false - ExternalPromotedProduct202110: - description: identifies a promoted product - example: - bidOverride: 0.8008281904610115 - properties: - bidOverride: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - type: object - x-nullable: false - ExternalBalance202110: - description: A Retail Media Balance used to determine the funds available for - any or all campaigns in an account - example: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - properties: - name: - type: string - x-nullable: false - poNumber: - type: string - x-nullable: false - memo: - type: string - x-nullable: false - deposited: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - spent: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - remaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - status: - enum: - - unknown - - scheduled - - active - - ended - type: string - x-nullable: false - createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false - required: - - createdAt - - deposited - - endDate - - memo - - name - - poNumber - - remaining - - spent - - startDate - - status - - updatedAt - type: object - x-nullable: false - ExternalBalanceCampaign202110: - description: Campaigns related to the balance - type: object - x-nullable: false LineItemBidMultipliers: description: Data model representing bid multipliers on a line item example: @@ -11208,76 +11399,133 @@ components: x-nullable: false type: object x-nullable: false - CampaignV202301: - description: A Retail Media Campaign used to represent an advertiser's marketing - objective + ExternalPromotedProduct202110: + description: identifies a promoted product + example: + bidOverride: 0.8008281904610115 + properties: + bidOverride: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + type: object + x-nullable: false + ExternalAddToBasketTarget202110: + description: Identifies add to basket targeting for a line item + example: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown + properties: + scope: + description: Scope of the add to basket target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + productIds: + description: Product ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + categoryIds: + description: Category ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - scope + type: object + x-nullable: false + ExternalAudienceTarget202110: + description: Identifies audience targeting for a line item + example: + scope: unknown + audienceIds: + - audienceIds + - audienceIds + properties: + scope: + description: Scope of the audience target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + audienceIds: + description: Audience ids that should be targeted + items: + format: long-id + type: string + type: array + x-nullable: false + required: + - audienceIds + - scope + type: object + x-nullable: false + ExternalStoreTarget202110: + description: Identifies store targeting for a line item + example: + scope: unknown + storeIds: + - storeIds + - storeIds + properties: + scope: + description: Scope of the store target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + storeIds: + description: Store ids that should be targeted + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - scope + - storeIds + type: object + x-nullable: false + CampaignAttributesV202301: + description: An object that represents the available options to set when creating + a Retail Media Campaign example: - budgetRemaining: 6.027456183070403 clickAttributionWindow: 30D endDate: 2000-01-23T04:56:07.000+00:00 drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds viewAttributionWindow: None name: name isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 + budget: 0.8008281904610115 properties: - accountId: - format: long-id - type: string - x-nullable: false - promotedBrandIds: - items: - format: long-id - type: string - type: array - x-nullable: false - budgetSpent: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - budgetRemaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - status: - enum: - - unknown - - active - - inactive - - scheduled - - ended - type: string - x-nullable: false - createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false type: default: auction enum: @@ -11370,27 +11618,20 @@ components: type: string x-nullable: true required: - - accountId - - budgetRemaining - - budgetSpent - - createdAt - endDate - isAutoDailyPacing - name - - promotedBrandIds - startDate - - updatedAt type: object x-nullable: false - ExternalAuctionLineItemCreateModel: - description: Model to create a retail media auction line item + ExternalAuctionLineItemUpdateModel: + description: Model to update a retail media auction line item example: bidStrategy: conversion endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId + isAutoDailyPacing: true dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 @@ -11414,6 +11655,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -11428,10 +11670,6 @@ components: - noFunds type: string x-nullable: false - targetRetailerId: - format: long-id - type: string - x-nullable: false budget: format: decimal nullable: true @@ -11468,7 +11706,6 @@ components: type: number x-nullable: true isAutoDailyPacing: - default: false type: boolean x-nullable: false bidStrategy: @@ -11481,19 +11718,22 @@ components: type: string x-nullable: false required: + - isAutoDailyPacing - name - startDate - - targetRetailerId + - status + - targetBid type: object x-nullable: false - ExternalAuctionLineItemUpdateModel: - description: Model to update a retail media auction line item + ExternalAuctionLineItemCreateModel: + description: Model to create a retail media auction line item example: bidStrategy: conversion endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true + isAutoDailyPacing: false + targetRetailerId: targetRetailerId dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 @@ -11517,6 +11757,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -11531,6 +11772,10 @@ components: - noFunds type: string x-nullable: false + targetRetailerId: + format: long-id + type: string + x-nullable: false budget: format: decimal nullable: true @@ -11567,6 +11812,7 @@ components: type: number x-nullable: true isAutoDailyPacing: + default: false type: boolean x-nullable: false bidStrategy: @@ -11579,157 +11825,9 @@ components: type: string x-nullable: false required: - - isAutoDailyPacing - - name - - startDate - - status - - targetBid - type: object - x-nullable: false - ExternalStoreIdsUpdateModel202110: - description: Update model for updating store target ids - example: - storeIds: - - storeIds - - storeIds - properties: - storeIds: - description: Store ids that should be targeted - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - storeIds - type: object - x-nullable: false - ExternalAddToBasketIdsUpdateModel202110: - description: Update model for updating add to basket target ids - example: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - properties: - productIds: - description: Product ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - categoryIds: - description: Category ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - type: object - x-nullable: false - ExternalAudienceIdsUpdateModel202110: - description: Update model for updating audience target ids - example: - audienceIds: - - audienceIds - - audienceIds - properties: - audienceIds: - description: Audience ids that should be targeted - items: - format: long-id - type: string - type: array - x-nullable: false - required: - - audienceIds - type: object - x-nullable: false - ExternalPreferredLineItemUpdateModel202110: - description: Model used to update a preferred line item - example: - pacing: accelerated - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - properties: - name: - maxLength: 255 - minLength: 0 - type: string - x-nullable: false - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - status: - enum: - - unknown - - active - - scheduled - - draft - - paused - - budgetHit - - ended - - archived - - noFunds - type: string - x-nullable: false - pacing: - default: accelerated - enum: - - unknown - - standard - - accelerated - type: string - x-nullable: false - capping: - $ref: '#/components/schemas/ExternalLineItemCapping202110' - page: - $ref: '#/components/schemas/ExternalLineItemPage202110' - budget: - format: double - type: number - x-nullable: false - creativeId: - format: long-id - nullable: true - type: string - x-nullable: true - required: - - endDate - name - startDate - - status + - targetRetailerId type: object x-nullable: false ExternalPreferredLineItemCreateModel202110: @@ -11823,60 +11921,22 @@ components: - targetRetailerId type: object x-nullable: false - CampaignAttributesV202301: - description: An object that represents the available options to set when creating + EditableCampaignAttributesV202301: + description: An object that represents the available options to set when editing a Retail Media Campaign example: - clickAttributionWindow: 30D + clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction clickAttributionScope: unknown viewAttributionScope: unknown - viewAttributionWindow: None name: name + viewAttributionWindow: None isAutoDailyPacing: true dailyPacing: 1.4658129805029452 monthlyPacing: 6.027456183070403 startDate: 2000-01-23T04:56:07.000+00:00 budget: 0.8008281904610115 properties: - type: - default: auction - enum: - - unknown - - auction - - preferred - type: string - x-nullable: false - drawableBalanceIds: - items: - format: long-id - type: string - type: array - x-nullable: false - clickAttributionWindow: - default: 30D - enum: - - 7D - - 14D - - 30D - - unknown - type: string - x-nullable: false - viewAttributionWindow: - default: None - enum: - - None - - Unknown - - OneDay - - SevenDays - - FourteenDays - - ThirtyDays - type: string - x-nullable: false name: maxLength: 255 minLength: 0 @@ -11916,6 +11976,24 @@ components: nullable: true type: string x-nullable: true + clickAttributionWindow: + enum: + - 7D + - 14D + - 30D + - unknown + type: string + x-nullable: false + viewAttributionWindow: + enum: + - None + - Unknown + - OneDay + - SevenDays + - FourteenDays + - ThirtyDays + type: string + x-nullable: false clickAttributionScope: enum: - unknown @@ -11935,26 +12013,36 @@ components: type: string x-nullable: true required: + - clickAttributionWindow - endDate - isAutoDailyPacing - name - startDate + - viewAttributionWindow type: object x-nullable: false - EditableCampaignAttributesV202301: - description: An object that represents the available options to set when editing - a Retail Media Campaign + ExternalPreferredLineItemUpdateModel202110: + description: Model used to update a preferred line item example: - clickAttributionWindow: 7D - endDate: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - viewAttributionScope: unknown + pacing: accelerated + endDate: 2000-01-23 name: name - viewAttributionWindow: None - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown budget: 0.8008281904610115 properties: name: @@ -11962,83 +12050,121 @@ components: minLength: 0 type: string x-nullable: false - budget: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - monthlyPacing: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - dailyPacing: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - isAutoDailyPacing: - type: boolean - x-nullable: false startDate: - format: date-time - nullable: true + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" type: string - x-nullable: true endDate: - format: date-time - nullable: true + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" type: string - x-nullable: true - clickAttributionWindow: + status: enum: - - 7D - - 14D - - 30D - unknown + - active + - scheduled + - draft + - paused + - budgetHit + - ended + - archived + - noFunds type: string x-nullable: false - viewAttributionWindow: - enum: - - None - - Unknown - - OneDay - - SevenDays - - FourteenDays - - ThirtyDays - type: string - x-nullable: false - clickAttributionScope: + pacing: + default: accelerated enum: - unknown - - sameSku - - sameSkuCategory - - sameSkuCategoryBrand - nullable: true + - standard + - accelerated type: string - x-nullable: true - viewAttributionScope: - enum: - - unknown - - sameSku - - sameSkuCategory - - sameSkuCategoryBrand + x-nullable: false + capping: + $ref: '#/components/schemas/ExternalLineItemCapping202110' + page: + $ref: '#/components/schemas/ExternalLineItemPage202110' + budget: + format: double + type: number + x-nullable: false + creativeId: + format: long-id nullable: true type: string x-nullable: true required: - - clickAttributionWindow - endDate - - isAutoDailyPacing - name - startDate - - viewAttributionWindow + - status + type: object + x-nullable: false + ExternalAddToBasketIdsUpdateModel202110: + description: Update model for updating add to basket target ids + example: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + properties: + productIds: + description: Product ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + categoryIds: + description: Category ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + type: object + x-nullable: false + ExternalAudienceIdsUpdateModel202110: + description: Update model for updating audience target ids + example: + audienceIds: + - audienceIds + - audienceIds + properties: + audienceIds: + description: Audience ids that should be targeted + items: + format: long-id + type: string + type: array + x-nullable: false + required: + - audienceIds + type: object + x-nullable: false + ExternalStoreIdsUpdateModel202110: + description: Update model for updating store target ids + example: + storeIds: + - storeIds + - storeIds + properties: + storeIds: + description: Store ids that should be targeted + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - storeIds type: object x-nullable: false ExternalLineItemCapping202110: diff --git a/sdks/retailmedia_2023-04/build.gradle b/sdks/retailmedia_2023-04/build.gradle index 1803b27e..4bb51394 100644 --- a/sdks/retailmedia_2023-04/build.gradle +++ b/sdks/retailmedia_2023-04/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2023.04.0.230728' +version = '2023.04.0.230831' repositories { jcenter() @@ -75,7 +75,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '2023.04.0.230728' + version '2023.04.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_2023-04/pom.xml b/sdks/retailmedia_2023-04/pom.xml index aaf83512..f0f4eb05 100644 --- a/sdks/retailmedia_2023-04/pom.xml +++ b/sdks/retailmedia_2023-04/pom.xml @@ -5,7 +5,7 @@ criteo-api-retailmedia-sdk jar criteo-api-retailmedia-sdk - 2023.04.0.230728 + 2023.04.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API retailmedia for 2023_04 version diff --git a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/ApiClient.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/ApiClient.java index bb4def4a..6e90225e 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/ApiClient.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2023.04.0.230728/java"); + setUserAgent("OpenAPI-Generator/2023.04.0.230831/java"); authentications = new HashMap(); } diff --git a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ApplicationSummaryModel.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ApplicationSummaryModel.java index 7bfb20b9..a6166665 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ApplicationSummaryModel.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ApplicationSummaryModelResource.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ApplicationSummaryModelResource.java index b26fd7c3..63bd954e 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ApplicationSummaryModelResource.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ApplicationSummaryModelResponse.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ApplicationSummaryModelResponse.java index b7079276..6b99f867 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ApplicationSummaryModelResponse.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/Asset.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/Asset.java index 1cd4b5a0..45d838ed 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/Asset.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/Asset.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, asset.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(fileExtension, fileLocation, id, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/AssetResource.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/AssetResource.java index 1fc22a5f..dcc71541 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/AssetResource.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/AssetResource.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, assetResource.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/AssetResponse.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/AssetResponse.java index 00c17779..b22cc25b 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/AssetResponse.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/AssetResponse.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, assetResponse.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/BadRequest.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/BadRequest.java index 38cd9b00..4fc7f21d 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/BadRequest.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/BadRequest.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 BadRequest errors(List errors) { public BadRequest addErrorsItem(Error errorsItem) { if (this.errors == null) { - this.errors = new ArrayList<>(); + this.errors = null; } this.errors.add(errorsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, badRequest.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, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CommonProblem.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CommonProblem.java index 44c6f3d7..d09fc689 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CommonProblem.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CommonStatusCodeResponse.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CommonStatusCodeResponse.java index 13bf5bad..34593412 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CommonStatusCodeResponse.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CommonStatusCodeResponse.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; @@ -157,11 +158,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, commonStatusCodeResponse.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateRetailMediaAudienceAttributes.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateRetailMediaAudienceAttributes.java index 3a3fb430..d0175dee 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateRetailMediaAudienceAttributes.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateRetailMediaAudienceAttributes.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; @@ -237,7 +238,7 @@ public CreateRetailMediaAudienceAttributes brandIds(List brandIds) { public CreateRetailMediaAudienceAttributes addBrandIdsItem(Long brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new ArrayList<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -267,7 +268,7 @@ public CreateRetailMediaAudienceAttributes categoryIds(List categoryIds public CreateRetailMediaAudienceAttributes addCategoryIdsItem(Integer categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -396,11 +397,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceAttributes.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(userType, lookbackWindow, brandIds, categoryIds, retailerId, name, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateRetailMediaAudienceResponse.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateRetailMediaAudienceResponse.java index b727e98b..47be9d2a 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateRetailMediaAudienceResponse.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateRetailMediaAudienceResponse.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; @@ -186,11 +187,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceResponse.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateUserBehaviorSegmentV2.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateUserBehaviorSegmentV2.java index fd5ee8cd..ac938c9a 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateUserBehaviorSegmentV2.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/CreateUserBehaviorSegmentV2.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; @@ -249,7 +250,7 @@ public CreateUserBehaviorSegmentV2 categoryIds(List categoryIds) { public CreateUserBehaviorSegmentV2 addCategoryIdsItem(Integer categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -279,7 +280,7 @@ public CreateUserBehaviorSegmentV2 brandIds(List brandIds) { public CreateUserBehaviorSegmentV2 addBrandIdsItem(Long brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new ArrayList<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -390,11 +391,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createUserBehaviorSegmentV2.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(userAction, lookbackWindow, categoryIds, brandIds, minPrice, maxPrice, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/Error.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/Error.java index dd2265d3..8698e754 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/Error.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/Error.java @@ -25,6 +25,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -248,7 +249,7 @@ public Error stackTrace(List stackTrace) { public Error addStackTraceItem(String stackTraceItem) { if (this.stackTrace == null) { - this.stackTrace = new ArrayList<>(); + this.stackTrace = null; } this.stackTrace.add(stackTraceItem); return this; @@ -401,11 +402,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, error.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(code, detail, instance, source, stackTrace, title, traceId, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/GetPageOfAudiencesByAccountIdResponse.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/GetPageOfAudiencesByAccountIdResponse.java index 313980d3..e1993abc 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/GetPageOfAudiencesByAccountIdResponse.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/GetPageOfAudiencesByAccountIdResponse.java @@ -27,6 +27,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; @@ -207,11 +208,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, getPageOfAudiencesByAccountIdResponse.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, metadata, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ProblemDetails.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ProblemDetails.java index 1c0626a1..8e20169c 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ProblemDetails.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ProblemDetails.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; @@ -420,11 +421,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemDetails.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ReportRequestAttributes.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ReportRequestAttributes.java index 9c98de3a..2acee830 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ReportRequestAttributes.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ReportRequestAttributes.java @@ -24,6 +24,7 @@ import java.time.LocalDate; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -83,7 +84,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -142,7 +143,7 @@ public static FormatEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -278,7 +279,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -398,7 +399,7 @@ public ReportRequestAttributes ids(List ids) { public ReportRequestAttributes addIdsItem(String idsItem) { if (this.ids == null) { - this.ids = new ArrayList<>(); + this.ids = null; } this.ids.add(idsItem); return this; @@ -597,11 +598,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportRequestAttributes.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(clickAttributionWindow, endDate, format, id, ids, reportType, revenueType, startDate, timeZone, viewAttributionWindow, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ReportStatusAttributes.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ReportStatusAttributes.java index a8e8f74e..d2b72fcf 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ReportStatusAttributes.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ReportStatusAttributes.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; @@ -349,11 +350,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportStatusAttributes.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(createdAt, expiresAt, fileSizeBytes, md5Checksum, message, rowCount, status, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfAuctionLineItem.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfAuctionLineItem.java index a141616d..e2d8bd0e 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfAuctionLineItem.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfAuctionLineItem.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, resourceOfAuctionLineItem.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfAuctionLineItemUpdateModel.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfAuctionLineItemUpdateModel.java index 1b267d54..517c60e8 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfAuctionLineItemUpdateModel.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfAuctionLineItemUpdateModel.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, resourceOfAuctionLineItemUpdateModel.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfBalance202110.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfBalance202110.java index 31af5616..66ef9e75 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfBalance202110.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfBalance202110.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, resourceOfBalance202110.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfBalanceCampaign202110.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfBalanceCampaign202110.java index d32dcfe7..041fceed 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfBalanceCampaign202110.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfBalanceCampaign202110.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, resourceOfBalanceCampaign202110.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCategory202204.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCategory202204.java index 8aa838fc..eb53825d 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCategory202204.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCategory202204.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, resourceOfCategory202204.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCommonLineItem.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCommonLineItem.java index 7fe62e1a..174d595b 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCommonLineItem.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCommonLineItem.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, resourceOfCommonLineItem.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCreative202110.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCreative202110.java index 8618a0e8..ce9e87f3 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCreative202110.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCreative202110.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, resourceOfCreative202110.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCreative202210.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCreative202210.java index d6184b6c..c4581aef 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCreative202210.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfCreative202210.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, resourceOfCreative202210.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfLineItemBidMultipliers.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfLineItemBidMultipliers.java index a28b1971..a3d352e5 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfLineItemBidMultipliers.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfLineItemBidMultipliers.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, resourceOfLineItemBidMultipliers.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPreferredLineItem202110.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPreferredLineItem202110.java index 972dd4f0..4afb7b51 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPreferredLineItem202110.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPreferredLineItem202110.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, resourceOfPreferredLineItem202110.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPreferredLineItemUpdateModel202110.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPreferredLineItemUpdateModel202110.java index c81c4bcc..ab7b176c 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPreferredLineItemUpdateModel202110.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPreferredLineItemUpdateModel202110.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, resourceOfPreferredLineItemUpdateModel202110.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPromotedProduct202110.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPromotedProduct202110.java index c9ae0f86..01f16954 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPromotedProduct202110.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfPromotedProduct202110.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, resourceOfPromotedProduct202110.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfTemplate.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfTemplate.java index 894d668f..12b5f9aa 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfTemplate.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/ResourceOfTemplate.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, resourceOfTemplate.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaAudienceV2ListResponse.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaAudienceV2ListResponse.java index 82cbceb5..c117dd5d 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaAudienceV2ListResponse.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaAudienceV2ListResponse.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; @@ -206,11 +207,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaAudienceV2ListResponse.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, metadata, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaAudienceV2Response.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaAudienceV2Response.java index 494906b9..5eb7d455 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaAudienceV2Response.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaAudienceV2Response.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, retailMediaAudienceV2Response.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordModel.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordModel.java index ce3a29bc..86f8b547 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordModel.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordModel.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; @@ -84,7 +85,7 @@ public static MatchTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -238,11 +239,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1AddRemoveKeywordModel.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(phrase, matchType, isDeleted, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordsModel.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordsModel.java index 14b24293..a69584b3 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordsModel.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordsModel.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 RetailMediaExternalv1AddRemoveKeywordsModel keywords(List(); + this.keywords = null; } this.keywords.add(keywordsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1AddRemoveKeywordsModel.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(keywords, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.java index 0ed7e7b8..9594e9c6 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.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, retailMediaExternalv1AddRemoveKeywordsModelResource.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1InputKeywordsModel.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1InputKeywordsModel.java index f73fa7d3..4c2b691c 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1InputKeywordsModel.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1InputKeywordsModel.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 RetailMediaExternalv1InputKeywordsModel negativeBroad(List negati public RetailMediaExternalv1InputKeywordsModel addNegativeBroadItem(String negativeBroadItem) { if (this.negativeBroad == null) { - this.negativeBroad = new ArrayList<>(); + this.negativeBroad = null; } this.negativeBroad.add(negativeBroadItem); return this; @@ -103,7 +104,7 @@ public RetailMediaExternalv1InputKeywordsModel negativeExact(List negati public RetailMediaExternalv1InputKeywordsModel addNegativeExactItem(String negativeExactItem) { if (this.negativeExact == null) { - this.negativeExact = new ArrayList<>(); + this.negativeExact = null; } this.negativeExact.add(negativeExactItem); return this; @@ -133,7 +134,7 @@ public RetailMediaExternalv1InputKeywordsModel positiveExact(List positi public RetailMediaExternalv1InputKeywordsModel addPositiveExactItem(String positiveExactItem) { if (this.positiveExact == null) { - this.positiveExact = new ArrayList<>(); + this.positiveExact = null; } this.positiveExact.add(positiveExactItem); return this; @@ -215,11 +216,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1InputKeywordsModel.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(negativeBroad, negativeExact, positiveExact, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordDataModel.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordDataModel.java index a98e168a..cceb1e0a 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordDataModel.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordDataModel.java @@ -23,6 +23,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; @@ -88,7 +89,7 @@ public static ReviewStateEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -141,7 +142,7 @@ public static MatchTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -376,11 +377,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1KeywordDataModel.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(reviewState, matchType, bid, inputKeywords, createdAt, updatedAt, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModel.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModel.java index c1cf69e8..6dfaf2ad 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModel.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModel.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; @@ -92,7 +93,7 @@ public RetailMediaExternalv1KeywordsModel rank(List rank) { public RetailMediaExternalv1KeywordsModel addRankItem(String rankItem) { if (this.rank == null) { - this.rank = new ArrayList<>(); + this.rank = null; } this.rank.add(rankItem); return this; @@ -173,11 +174,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1KeywordsModel.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(keywords, rank, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModelResource.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModelResource.java index 6d4a7dd2..0bb5c9e3 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModelResource.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModelResource.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, retailMediaExternalv1KeywordsModelResource.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModelResponse.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModelResponse.java index abbd2527..adff2a50 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModelResponse.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1KeywordsModelResponse.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, retailMediaExternalv1KeywordsModelResponse.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProblemDetails.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProblemDetails.java index e31b1231..9f6409cb 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProblemDetails.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProblemDetails.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; @@ -141,7 +142,7 @@ public RetailMediaExternalv1ProblemDetails source(Map source) { public RetailMediaExternalv1ProblemDetails putSourceItem(String key, String sourceItem) { if (this.source == null) { - this.source = new HashMap<>(); + this.source = null; } this.source.put(key, sourceItem); return this; @@ -316,11 +317,22 @@ public boolean equals(Object o) { Objects.equals(this.instance, retailMediaExternalv1ProblemDetails.instance); } + 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(traceIdentifier, code, source, stackTrace, type, title, status, detail, instance); } + 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModel.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModel.java index f34d7da8..87496fbc 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModel.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModel.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; @@ -426,11 +427,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1ProposalStatusModel.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(negotiationState, bookingStatus, runnableStatus, comment, createdAt, updatedAt, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModelResource.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModelResource.java index 07cc63b4..d199fd0b 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModelResource.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModelResource.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, retailMediaExternalv1ProposalStatusModelResource.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModelResponse.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModelResponse.java index fca927a4..166b4823 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModelResponse.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ProposalStatusModelResponse.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, retailMediaExternalv1ProposalStatusModelResponse.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ResourceOutcome.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ResourceOutcome.java index 80ef20a3..7b5a93b4 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ResourceOutcome.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1ResourceOutcome.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; @@ -157,11 +158,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1ResourceOutcome.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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidModel.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidModel.java index d674ce39..85b62a55 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidModel.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidModel.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, retailMediaExternalv1SetBidModel.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(phrase, bid, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidsModel.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidsModel.java index 3d841827..496e27c8 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidsModel.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidsModel.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 RetailMediaExternalv1SetBidsModel keywords(List(); + this.keywords = null; } this.keywords.add(keywordsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1SetBidsModel.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(keywords, 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/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidsModelResource.java b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidsModelResource.java index 339d8f00..aab8dbbc 100644 --- a/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidsModelResource.java +++ b/sdks/retailmedia_2023-04/src/main/java/com/criteo/api/retailmedia/v2023_04/model/RetailMediaExternalv1SetBidsModelResource.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, retailMediaExternalv1SetBidsModelResource.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/retailmedia_2023-07/.openapi-generator/FILES b/sdks/retailmedia_2023-07/.openapi-generator/FILES index 0341351a..a277f8e3 100644 --- a/sdks/retailmedia_2023-07/.openapi-generator/FILES +++ b/sdks/retailmedia_2023-07/.openapi-generator/FILES @@ -16,6 +16,12 @@ docs/ApplicationSummaryModelResponse.md docs/Asset.md docs/AssetResource.md docs/AssetResponse.md +docs/AsyncCampaignReport.md +docs/AsyncCampaignReportRequest.md +docs/AsyncCampaignReportResource.md +docs/AsyncLineItemReport.md +docs/AsyncLineItemReportRequest.md +docs/AsyncLineItemReportResource.md docs/AsyncReportResponse.md docs/AuctionLineItemCreateModelRequest.md docs/AuctionLineItemPagedListResponse.md @@ -30,9 +36,6 @@ docs/BalanceCampaign202110ListRequest.md docs/BalanceCampaign202110PagedListResponse.md docs/CampaignApi.md docs/CampaignAttributesV202301.md -docs/CampaignReport.md -docs/CampaignReportRequest.md -docs/CampaignReportResource.md docs/CampaignV202301.md docs/Category202204.md docs/Category202204ListResponse.md @@ -65,8 +68,6 @@ docs/CreativeCreateModel202207.md docs/CreativeUpdateModel202207.md docs/CustomerListDetails.md docs/EditableCampaignAttributesV202301.md -docs/ExportReportColumn.md -docs/ExportReportMetaData.md docs/ExternalAccount.md docs/ExternalAddToBasketIdsUpdateModel202110.md docs/ExternalAddToBasketTarget202110.md @@ -121,9 +122,6 @@ docs/KeywordTarget202110Response.md docs/LineItemBidMultipliers.md docs/LineItemBidMultipliersRequest.md docs/LineItemBidMultipliersResponse.md -docs/LineItemReport.md -docs/LineItemReportRequest.md -docs/LineItemReportResource.md docs/PageMetadata.md docs/PageTypeEnvironment.md docs/PostCampaignV202301.md @@ -135,9 +133,7 @@ docs/ProblemDetails.md docs/PromotedProduct202110ListRequest.md docs/PromotedProduct202110PagedListResponse.md docs/PutCampaignV202301.md -docs/ReportDataResponseResource.md docs/ReportOutcome.md -docs/ReportResponse.md docs/ResourceOfAuctionLineItem.md docs/ResourceOfAuctionLineItemUpdateModel.md docs/ResourceOfBalance202110.md @@ -242,6 +238,12 @@ src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelR src/main/java/com/criteo/api/retailmedia/v2023_07/model/Asset.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResource.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResponse.java +src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReport.java +src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReportRequest.java +src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReportResource.java +src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReport.java +src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReportRequest.java +src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReportResource.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncReportResponse.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemCreateModelRequest.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/AuctionLineItemPagedListResponse.java @@ -254,9 +256,6 @@ src/main/java/com/criteo/api/retailmedia/v2023_07/model/Balance202110PagedListRe src/main/java/com/criteo/api/retailmedia/v2023_07/model/BalanceCampaign202110ListRequest.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/BalanceCampaign202110PagedListResponse.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignAttributesV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReport.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReportRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReportResource.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignV202301.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/Category202204.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/Category202204ListResponse.java @@ -289,8 +288,6 @@ src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreativeCreateModel20220 src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreativeUpdateModel202207.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/CustomerListDetails.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/EditableCampaignAttributesV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExportReportColumn.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExportReportMetaData.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAccount.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAddToBasketIdsUpdateModel202110.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExternalAddToBasketTarget202110.java @@ -344,9 +341,6 @@ src/main/java/com/criteo/api/retailmedia/v2023_07/model/KeywordTarget202110Respo src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliers.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliersRequest.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemBidMultipliersResponse.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReport.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReportRequest.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReportResource.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/PageMetadata.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/PageTypeEnvironment.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/PostCampaignV202301.java @@ -358,9 +352,7 @@ src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProblemDetails.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/PromotedProduct202110ListRequest.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/PromotedProduct202110PagedListResponse.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/PutCampaignV202301.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportDataResponseResource.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportOutcome.java -src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportResponse.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItem.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItemUpdateModel.java src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalance202110.java diff --git a/sdks/retailmedia_2023-07/README.md b/sdks/retailmedia_2023-07/README.md index 504ff4bd..d17d0994 100644 --- a/sdks/retailmedia_2023-07/README.md +++ b/sdks/retailmedia_2023-07/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com Criteo API -- Package version: 2023.07.0.230728 +- Package version: 2023.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-retailmedia-sdk - 2023.07.0.230728 + 2023.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-retailmedia-sdk:2023.07.0.230728" +compile "com.criteo:criteo-api-retailmedia-sdk:2023.07.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-retailmedia-sdk-2023.07.0.230728.jar` +* `target/criteo-api-retailmedia-sdk-2023.07.0.230831.jar` * `target/lib/*.jar` ## Example @@ -80,8 +80,8 @@ All URIs are relative to *https://api.criteo.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AnalyticsApi* | [**generateCampaignReports**](docs/AnalyticsApi.md#generateCampaignReports) | **POST** /2023-07/retail-media/reports/campaigns | -*AnalyticsApi* | [**generateLineItemsReports**](docs/AnalyticsApi.md#generateLineItemsReports) | **POST** /2023-07/retail-media/reports/line-items | +*AnalyticsApi* | [**generateAsyncCampaignReport**](docs/AnalyticsApi.md#generateAsyncCampaignReport) | **POST** /2023-07/retail-media/reports/campaigns | +*AnalyticsApi* | [**generateAsyncLineItemsReport**](docs/AnalyticsApi.md#generateAsyncLineItemsReport) | **POST** /2023-07/retail-media/reports/line-items | *AnalyticsApi* | [**getAsyncExportOutput**](docs/AnalyticsApi.md#getAsyncExportOutput) | **GET** /2023-07/retail-media/reports/{reportId}/output | *AnalyticsApi* | [**getAsyncExportStatus**](docs/AnalyticsApi.md#getAsyncExportStatus) | **GET** /2023-07/retail-media/reports/{reportId}/status | *AudienceApi* | [**createAudience**](docs/AudienceApi.md#createAudience) | **POST** /2023-07/retail-media/accounts/{accountId}/audiences | @@ -164,6 +164,12 @@ Class | Method | HTTP request | Description - [Asset](docs/Asset.md) - [AssetResource](docs/AssetResource.md) - [AssetResponse](docs/AssetResponse.md) + - [AsyncCampaignReport](docs/AsyncCampaignReport.md) + - [AsyncCampaignReportRequest](docs/AsyncCampaignReportRequest.md) + - [AsyncCampaignReportResource](docs/AsyncCampaignReportResource.md) + - [AsyncLineItemReport](docs/AsyncLineItemReport.md) + - [AsyncLineItemReportRequest](docs/AsyncLineItemReportRequest.md) + - [AsyncLineItemReportResource](docs/AsyncLineItemReportResource.md) - [AsyncReportResponse](docs/AsyncReportResponse.md) - [AuctionLineItemCreateModelRequest](docs/AuctionLineItemCreateModelRequest.md) - [AuctionLineItemPagedListResponse](docs/AuctionLineItemPagedListResponse.md) @@ -176,9 +182,6 @@ Class | Method | HTTP request | Description - [BalanceCampaign202110ListRequest](docs/BalanceCampaign202110ListRequest.md) - [BalanceCampaign202110PagedListResponse](docs/BalanceCampaign202110PagedListResponse.md) - [CampaignAttributesV202301](docs/CampaignAttributesV202301.md) - - [CampaignReport](docs/CampaignReport.md) - - [CampaignReportRequest](docs/CampaignReportRequest.md) - - [CampaignReportResource](docs/CampaignReportResource.md) - [CampaignV202301](docs/CampaignV202301.md) - [Category202204](docs/Category202204.md) - [Category202204ListResponse](docs/Category202204ListResponse.md) @@ -211,8 +214,6 @@ Class | Method | HTTP request | Description - [CreativeUpdateModel202207](docs/CreativeUpdateModel202207.md) - [CustomerListDetails](docs/CustomerListDetails.md) - [EditableCampaignAttributesV202301](docs/EditableCampaignAttributesV202301.md) - - [ExportReportColumn](docs/ExportReportColumn.md) - - [ExportReportMetaData](docs/ExportReportMetaData.md) - [ExternalAccount](docs/ExternalAccount.md) - [ExternalAddToBasketIdsUpdateModel202110](docs/ExternalAddToBasketIdsUpdateModel202110.md) - [ExternalAddToBasketTarget202110](docs/ExternalAddToBasketTarget202110.md) @@ -266,9 +267,6 @@ Class | Method | HTTP request | Description - [LineItemBidMultipliers](docs/LineItemBidMultipliers.md) - [LineItemBidMultipliersRequest](docs/LineItemBidMultipliersRequest.md) - [LineItemBidMultipliersResponse](docs/LineItemBidMultipliersResponse.md) - - [LineItemReport](docs/LineItemReport.md) - - [LineItemReportRequest](docs/LineItemReportRequest.md) - - [LineItemReportResource](docs/LineItemReportResource.md) - [PageMetadata](docs/PageMetadata.md) - [PageTypeEnvironment](docs/PageTypeEnvironment.md) - [PostCampaignV202301](docs/PostCampaignV202301.md) @@ -280,9 +278,7 @@ Class | Method | HTTP request | Description - [PromotedProduct202110ListRequest](docs/PromotedProduct202110ListRequest.md) - [PromotedProduct202110PagedListResponse](docs/PromotedProduct202110PagedListResponse.md) - [PutCampaignV202301](docs/PutCampaignV202301.md) - - [ReportDataResponseResource](docs/ReportDataResponseResource.md) - [ReportOutcome](docs/ReportOutcome.md) - - [ReportResponse](docs/ReportResponse.md) - [ResourceOfAuctionLineItem](docs/ResourceOfAuctionLineItem.md) - [ResourceOfAuctionLineItemUpdateModel](docs/ResourceOfAuctionLineItemUpdateModel.md) - [ResourceOfBalance202110](docs/ResourceOfBalance202110.md) diff --git a/sdks/retailmedia_2023-07/api/openapi.yaml b/sdks/retailmedia_2023-07/api/openapi.yaml index 82e7f748..faf8fc32 100644 --- a/sdks/retailmedia_2023-07/api/openapi.yaml +++ b/sdks/retailmedia_2023-07/api/openapi.yaml @@ -74,11 +74,11 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/accounts/{accountId}/retailers: + /2023-07/retail-media/accounts/{accountId}/brands: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId parameters: - description: The given account id explode: false @@ -127,16 +127,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' + $ref: '#/components/schemas/JsonApiPageResponseOfBrand' description: Success tags: - Campaign x-accepts: application/json - /2023-07/retail-media/accounts/{accountId}/brands: + /2023-07/retail-media/accounts/{accountId}/retailers: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId parameters: - description: The given account id explode: false @@ -185,7 +185,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfBrand' + $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' description: Success tags: - Campaign @@ -718,106 +718,118 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/accounts/{accountId}/catalogs: - post: - description: Create a request for a Catalog available to the indicated account. - operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId + /2023-07/retail-media/accounts/{account-id}/creatives: + get: + description: Get account creatives + operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId parameters: - - description: The account to request the catalog for. + - description: External account id to retrieve creatives for explode: false in: path - name: accountId + name: account-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/JsonApiRequestOfCatalogRequest' - x-nullable: false - x-bodyName: request responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request successfully created + $ref: '#/components/schemas/Creative202110ListResponse' + description: Creatives found tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/catalogs/{catalogId}/status: - get: - description: Check the status of a catalog request. - operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId + post: + description: Create a creative for an account + operationId: CreativesApi_PostApi202210ExternalAccountCreativesByAccountId parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id to create a creative for explode: false in: path - name: catalogId + name: account-id required: true schema: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreativeCreateModel202207' + description: The creative to create + x-nullable: false + x-bodyName: creative responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request found. + $ref: '#/components/schemas/Creative202210Response' + description: Creatives created tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/catalogs/{catalogId}/output: - get: - description: "Output the indicated catalog. Catalogs are only available for\ - \ retrieval when their associated status request\r\nis at a Success status.\r\ - \nProduces application/x-json-stream of v2021_07 CatalogProduct json objects." - operationId: CatalogApi_GetApiV1ExternalCatalogOutputByCatalogId + /2023-07/retail-media/accounts/{account-id}/creatives/search: + post: + description: Get account creatives + operationId: CreativesApi_PostApi202210ExternalAccountCreativesSearchByAccountId parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id to retrieve creatives for explode: false in: path - name: catalogId + name: account-id required: true schema: type: string style: simple x-nullable: false + - description: Creatives to filter by + explode: true + in: query + name: creative-ids + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false responses: "200": content: - application/x-json-stream: {} - application/json: {} - description: Catalog download initiated. - "400": - content: - application/x-json-stream: {} - application/json: {} - description: "The indicated catalog is not available for retrieval, wait\ - \ for a success status." + application/json: + schema: + $ref: '#/components/schemas/Creative202210ListResponse' + description: Creatives found tags: - Campaign x-accepts: application/json - /2023-07/retail-media/retailers/{retailerId}/pages: + /2023-07/retail-media/accounts/{account-id}/creatives/{creative-id}: get: - description: Get the page types available for the given retailer - operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId + description: Get the specified creative + operationId: "CreativesApi_GetApi202210ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: The retailers to fetch pages for + - description: External account id to retrieve creatives for explode: false in: path - name: retailerId + name: account-id required: true schema: - format: int32 - type: integer + type: string + style: simple + x-nullable: false + - description: Creative to get + explode: false + in: path + name: creative-id + required: true + schema: + type: string style: simple x-nullable: false responses: @@ -825,17 +837,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExternalRetailerPages202110' - description: Pages fetched successfully + $ref: '#/components/schemas/Creative202210Response' + description: Creatives found tags: - Campaign x-accepts: application/json - /2023-07/retail-media/accounts/{account-id}/creatives: - get: - description: Get account creatives - operationId: CreativesApi_GetApi202110ExternalAccountCreativesByAccountId + put: + description: Update a creative + operationId: "CreativesApi_PutApi202210ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: External account id to retrieve creatives for + - description: External account id containing the creative explode: false in: path name: account-id @@ -844,24 +855,47 @@ paths: type: string style: simple x-nullable: false + - description: Creative to update + explode: false + in: path + name: creative-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreativeUpdateModel202207' + description: The creative to create + x-nullable: false + x-bodyName: creative responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Creative202110ListResponse' - description: Creatives found + $ref: '#/components/schemas/Creative202210Response' + description: Success + "204": + content: + application/json: {} + description: Creative updated tags: - Campaign + x-content-type: application/json x-accepts: application/json + /2023-07/retail-media/accounts/{accountId}/catalogs: post: - description: Create a creative for an account - operationId: CreativesApi_PostApi202210ExternalAccountCreativesByAccountId + description: Create a request for a Catalog available to the indicated account. + operationId: CatalogApi_PostApiV1ExternalAccountCatalogsByAccountId parameters: - - description: External account id to create a creative for + - description: The account to request the catalog for. explode: false in: path - name: account-id + name: accountId required: true schema: type: string @@ -871,21 +905,75 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreativeCreateModel202207' - description: The creative to create + $ref: '#/components/schemas/JsonApiRequestOfCatalogRequest' x-nullable: false - x-bodyName: creative + x-bodyName: request responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/Creative202210Response' - description: Creatives created + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request successfully created tags: - Campaign x-content-type: application/json x-accepts: application/json + /2023-07/retail-media/catalogs/{catalogId}/output: + get: + description: "Output the indicated catalog. Catalogs are only available for\ + \ retrieval when their associated status request\r\nis at a Success status.\r\ + \nProduces application/x-json-stream of v2021_07 CatalogProduct json objects." + operationId: CatalogApi_GetApiV1ExternalCatalogOutputByCatalogId + parameters: + - description: A catalog ID returned from an account catalog request. + explode: false + in: path + name: catalogId + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/x-json-stream: {} + application/json: {} + description: Catalog download initiated. + "400": + content: + application/x-json-stream: {} + application/json: {} + description: "The indicated catalog is not available for retrieval, wait\ + \ for a success status." + tags: + - Campaign + x-accepts: application/json + /2023-07/retail-media/catalogs/{catalogId}/status: + get: + description: Check the status of a catalog request. + operationId: CatalogApi_GetApiV1ExternalCatalogStatusByCatalogId + parameters: + - description: A catalog ID returned from an account catalog request. + explode: false + in: path + name: catalogId + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request found. + tags: + - Campaign + x-accepts: application/json /2023-07/retail-media/categories: get: description: Endpoint to search categories by text and retailer. @@ -1041,134 +1129,49 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/accounts/{account-id}/creatives/{creative-id}: + /2023-07/retail-media/retailers/{retailerId}/pages: get: - description: Get the specified creative - operationId: "CreativesApi_GetApi202210ExternalAccountByAccountId}Creatives{creativeId" + description: Get the page types available for the given retailer + operationId: RetailerApi_GetApi202110ExternalRetailerPagesByRetailerId parameters: - - description: External account id to retrieve creatives for + - description: The retailers to fetch pages for explode: false in: path - name: account-id + name: retailerId required: true schema: - type: string + format: int32 + type: integer style: simple x-nullable: false - - description: Creative to get - explode: false - in: path - name: creative-id - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Creative202210Response' - description: Creatives found - tags: - - Campaign - x-accepts: application/json - put: - description: Update a creative - operationId: "CreativesApi_PutApi202210ExternalAccountByAccountId}Creatives{creativeId" - parameters: - - description: External account id containing the creative - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creative to update - explode: false - in: path - name: creative-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreativeUpdateModel202207' - description: The creative to create - x-nullable: false - x-bodyName: creative - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Creative202210Response' - description: Success - "204": - content: - application/json: {} - description: Creative updated - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-07/retail-media/accounts/{account-id}/creatives/search: - post: - description: Get account creatives - operationId: CreativesApi_PostApi202210ExternalAccountCreativesSearchByAccountId - parameters: - - description: External account id to retrieve creatives for - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creatives to filter by - explode: true - in: query - name: creative-ids - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Creative202210ListResponse' - description: Creatives found + $ref: '#/components/schemas/ExternalRetailerPages202110' + description: Pages fetched successfully tags: - Campaign x-accepts: application/json /2023-07/retail-media/reports/campaigns: post: - description: Return a Campaign Report - operationId: GenerateCampaignReports + description: Return an async Campaign Report + operationId: GenerateAsyncCampaignReport requestBody: content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/AsyncCampaignReportRequest' application/json: schema: - $ref: '#/components/schemas/CampaignReportRequest' + $ref: '#/components/schemas/AsyncCampaignReportRequest' text/json: schema: - $ref: '#/components/schemas/CampaignReportRequest' + $ref: '#/components/schemas/AsyncCampaignReportRequest' application/*+json: schema: - $ref: '#/components/schemas/CampaignReportRequest' + $ref: '#/components/schemas/AsyncCampaignReportRequest' required: true x-bodyName: request responses: @@ -1176,13 +1179,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' application/json: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' text/json: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' description: Success "400": content: @@ -1210,23 +1213,26 @@ paths: description: Forbidden tags: - Analytics - x-content-type: application/json + x-content-type: application/json-patch+json x-accepts: application/json /2023-07/retail-media/reports/line-items: post: - description: Return a Line Item Report - operationId: GenerateLineItemsReports + description: Return an async Line Item Report + operationId: GenerateAsyncLineItemsReport requestBody: content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/AsyncLineItemReportRequest' application/json: schema: - $ref: '#/components/schemas/LineItemReportRequest' + $ref: '#/components/schemas/AsyncLineItemReportRequest' text/json: schema: - $ref: '#/components/schemas/LineItemReportRequest' + $ref: '#/components/schemas/AsyncLineItemReportRequest' application/*+json: schema: - $ref: '#/components/schemas/LineItemReportRequest' + $ref: '#/components/schemas/AsyncLineItemReportRequest' required: true x-bodyName: request responses: @@ -1234,13 +1240,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' application/json: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' text/json: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' description: Success "400": content: @@ -1268,7 +1274,7 @@ paths: description: Forbidden tags: - Analytics - x-content-type: application/json + x-content-type: application/json-patch+json x-accepts: application/json /2023-07/retail-media/reports/{reportId}/output: get: @@ -1376,15 +1382,15 @@ paths: tags: - Analytics x-accepts: application/json - /2023-07/retail-media/campaigns/{campaign-id}/auction-line-items: + /2023-07/retail-media/accounts/{account-id}/balances: get: - description: Gets page of auction line item objects for the given campaign id - operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId + description: Gets page of balance objects for the given account id + operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId parameters: - - description: The given campaign id + - description: The account to get balances for explode: false in: path - name: campaign-id + name: account-id required: true schema: type: string @@ -1428,75 +1434,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemPagedListResponse' - description: Bad Request - tags: - - Campaign - x-accepts: application/json - post: - description: Creates new auction line item with the specified settings - operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId - parameters: - - description: The given campaign id - explode: false - in: path - name: campaign-id - required: true - schema: - type: string - style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' - description: The line item settings to create a line item with - x-nullable: false - x-bodyName: lineItem - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}: - get: - description: Gets the line item for the given line item id - operationId: GetApiV2ExternalLineItemByLineItemId - parameters: - - description: The given line item id - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CommonLineItemResponse' + $ref: '#/components/schemas/Balance202110PagedListResponse' description: Success tags: - Campaign @@ -1584,44 +1522,79 @@ paths: tags: - Campaign x-accepts: application/json - /2023-07/retail-media/auction-line-items/{line-item-id}: + /2023-07/retail-media/accounts/{accountId}/campaigns: get: - description: Gets the auction line item for the given line item id - operationId: GetApiV2ExternalAuctionLineItemByLineItemId + description: "Get all the editable and creatable campaign attributes including\ + \ all types of budgets for each campaigns in relation to the account id, limited\ + \ by the campaign ids." + operationId: Campaigns_GetApi202301ExternalAccountCampaignsByAccountId parameters: - - description: The given line item id + - description: The account to request the campaign for. explode: false in: path - name: line-item-id + name: accountId required: true schema: type: string style: simple x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + default: 0 + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + default: 25 + format: int32 + type: integer + style: form + x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemResponse' + $ref: '#/components/schemas/JsonApiPageResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AuctionLineItemResponse' - description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: Updates the auction line item for the given line item id - operationId: PutApiV2ExternalAuctionLineItemByLineItemId + post: + description: Create a campaign and assign budgets for the given account id with + creatable campaign attributes given in request body constrained by business + validation. The validation error includes details and source of errors. Pacing + can be adjusted and affected by the status of the campaign and the days left + on the campaign if auto daily pacing is enabled. + operationId: Campaigns_PostApi202301ExternalAccountCampaignsByAccountId parameters: - - description: The given line item id + - description: The account to request the campaign for. explode: false in: path - name: line-item-id + name: accountId required: true schema: type: string @@ -1631,18 +1604,80 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemUpdateModelRequest' - description: The line item settings to create a line item with + $ref: '#/components/schemas/PostCampaignV202301' + description: Creatable campaign attributes x-nullable: false - x-bodyName: lineItem + x-bodyName: campaign responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AuctionLineItemResponse' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2023-07/retail-media/auction-line-items/{line-item-id}: + get: + description: Gets the auction line item for the given line item id + operationId: GetApiV2ExternalAuctionLineItemByLineItemId + parameters: + - description: The given line item id + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemResponse' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemResponse' + description: Bad Request + tags: + - Campaign + x-accepts: application/json + put: + description: Updates the auction line item for the given line item id + operationId: PutApiV2ExternalAuctionLineItemByLineItemId + parameters: + - description: The given line item id + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemUpdateModelRequest' + description: The line item settings to create a line item with + x-nullable: false + x-bodyName: lineItem + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemResponse' + description: Success + "400": content: application/json: schema: @@ -1762,45 +1797,72 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores: + /2023-07/retail-media/balances/{balance-id}/campaigns: get: - description: This endpoint gets the store target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + description: Gets page of campaigns for the given balanceId + operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId parameters: - - description: The line item to interact with + - description: The balance to get campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string style: simple x-nullable: false + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-accepts: application/json - put: - description: This endpoint sets the scope of the store target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingStoresByLineItemId + /2023-07/retail-media/balances/{balance-id}/campaigns/append: + post: + description: appends one or more campaigns to the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId parameters: - - description: The line item to interact with + - description: The balance to add campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -1810,37 +1872,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Request' - description: The store target to set the scope for + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: storeTarget + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: + /2023-07/retail-media/balances/{balance-id}/campaigns/delete: post: - description: This endpoint appends one or more store ids to targeting on the - specified line item. The resulting state of the store target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId + description: Removes one or more campaigns on the specified balance + operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId parameters: - - description: The line item to interact with + - description: The balance to remove campaigns from explode: false in: path - name: line-item-id + name: balance-id required: true schema: type: string @@ -1850,148 +1905,194 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' - description: Store ids to append to the target + $ref: '#/components/schemas/BalanceCampaign202110ListRequest' + description: The campaigns to append x-nullable: false - x-bodyName: idsToAppend + x-bodyName: campaigns responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/StoreTarget202110Response' - description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: - post: - description: This endpoint removes one or more store ids from targeting on the - specified line item. The resulting state of the store target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId + /2023-07/retail-media/campaigns/{campaign-id}/auction-line-items: + get: + description: Gets page of auction line item objects for the given campaign id + operationId: GetApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' - description: Store ids to remove from the target + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/StoreTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemPagedListResponse' description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: - get: - description: This endpoint gets the add to basket target on the specified line - item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId + post: + description: Creates new auction line item with the specified settings + operationId: PostApiV2ExternalCampaignAuctionLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuctionLineItemCreateModelRequest' + description: The line item settings to create a line item with + x-nullable: false + x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/AuctionLineItemResponse' description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - put: - description: This endpoint sets the scope of the add to basket target on the - specified line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId - parameters: - - description: The line item to interact with - explode: false + /2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items: + get: + description: Gets page of preferred line item objects for the given campaign + id + operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId + parameters: + - description: The given campaign id + explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketTarget202110Request' - description: The add to basket target to set the scope for + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form x-nullable: false - x-bodyName: addToBasketTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: post: - description: This endpoint appends one or more add to basket ids to targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId + description: Creates a new preferred line item with the specified settings + operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId parameters: - - description: The line item to interact with + - description: The given campaign id explode: false in: path - name: line-item-id + name: campaign-id required: true schema: type: string @@ -2001,104 +2102,94 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to append to the target + $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' + description: The line item settings to create a line item with x-nullable: false - x-bodyName: idsToAppend + x-bodyName: lineItem responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/PreferredLineItem202110Response' description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: - post: - description: This endpoint removes one or more add to basket ids from targeting - on the specified line item. The resulting state of the add to basket target - is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId + /2023-07/retail-media/campaigns/{campaignId}: + get: + description: Get all the editable and creatable campaign attributes including + all types of budgets given the campaign id + operationId: Campaigns_GetApi202301ExternalCampaignByCampaignId parameters: - - description: The line item to interact with + - description: Campaign Id of the campaign detail explode: false in: path - name: line-item-id + name: campaignId required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' - description: Ids to remove from the target - x-nullable: false - x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AddToBasketTarget202110Response' - description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: - get: - description: This endpoint gets the audience target on the specified line item. - operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + put: + description: Edit a campaign for the given campaign id with a given editable + attributes. This will return updated creatable and editable attributes of + the campaign as the result of the operation. Pacing can be adjusted and affected + by the status of the campaign and the days left on the campaign if auto daily + pacing is enabled. + operationId: Campaigns_PutApi202301ExternalCampaignByCampaignId parameters: - - description: The line item to interact with + - description: Campaign Id of the updating campaign explode: false in: path - name: line-item-id + name: campaignId required: true schema: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PutCampaignV202301' + description: Editable campaign attributes + x-nullable: false + x-bodyName: campaign responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - put: - description: This endpoint sets the scope of the audience target on the specified - line item. - operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId + /2023-07/retail-media/line-items/{line-item-id}: + get: + description: Gets the line item for the given line item id + operationId: GetApiV2ExternalLineItemByLineItemId parameters: - - description: The line item to interact with + - description: The given line item id explode: false in: path name: line-item-id @@ -2107,38 +2198,22 @@ paths: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Request' - description: The audience target to set the scope for - x-nullable: false - x-bodyName: audienceTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' + $ref: '#/components/schemas/CommonLineItemResponse' description: Success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: - post: - description: This endpoint appends one or more audiences ids to targeting on - the specified line item. The resulting state of the audience target is returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId + /2023-07/retail-media/line-items/{line-item-id}/bid-multipliers: + get: + description: Get bid multipliers by line item + operationId: LineItems_GetApi202301ExternalLineItemBidMultipliersByLineItemId parameters: - - description: The line item to interact with + - description: Long external id of the associated line item explode: false in: path name: line-item-id @@ -2146,40 +2221,27 @@ paths: schema: type: string style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' - description: Audience ids to append to the target - x-nullable: false - x-bodyName: idsToAppend responses: "200": content: - application/json: + text/plain: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Success - "400": - content: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + text/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + description: Success tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: - post: - description: This endpoint removes one or more audiences ids from targeting - on the specified line item. The resulting state of the audience target is - returned. - operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId + put: + description: Replace bid multipliers on a line item + operationId: LineItems_PutApi202301ExternalLineItemBidMultipliersByLineItemId parameters: - - description: The line item to interact with + - description: Long external id of the associated line item explode: false in: path name: line-item-id @@ -2187,39 +2249,37 @@ paths: schema: type: string style: simple - x-nullable: false requestBody: content: application/json: schema: - $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' - description: Audience ids to remove from the target + $ref: '#/components/schemas/LineItemBidMultipliersRequest' x-nullable: false - x-bodyName: idsToRemove + x-bodyName: request responses: "200": content: - application/json: + text/plain: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Success - "400": - content: + $ref: '#/components/schemas/LineItemBidMultipliersResponse' application/json: schema: - $ref: '#/components/schemas/AudienceTarget202110Response' - description: Bad Request + $ref: '#/components/schemas/LineItemBidMultipliersResponse' + text/json: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersResponse' + description: Success tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/products/pause: - post: - description: This endpoint pauses one or more promoted products on a specified - line item. - operationId: PromotedProducts_PostApi202110ExternalLineItemProductsPauseByLineItemId + /2023-07/retail-media/line-items/{line-item-id}/products: + get: + description: This endpoint gets the promoted products on the specified line + item. + operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId parameters: - - description: The line item to interact with. + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2228,16 +2288,142 @@ paths: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: The products from which their IDs will be used to pause. - x-nullable: false - x-bodyName: promotedProductsToPause - responses: - "200": + - description: The ids that you would like to limit your result set to + explode: true + in: query + name: limitToId + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false + - description: The 0 indexed page index you would like to receive given the + page size + explode: true + in: query + name: pageIndex + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + - description: The maximum number of items you would like to receive in this + request + explode: true + in: query + name: pageSize + required: false + schema: + format: int32 + type: integer + style: form + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + description: Success + tags: + - Campaign + x-accepts: application/json + /2023-07/retail-media/line-items/{line-item-id}/products/append: + post: + description: This endpoint appends one or more products to promote on the specified + line item. The resulting state of the line item is returned. + operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsAppendByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: the products to append to this line item + x-nullable: false + x-bodyName: promotedProductsToAppend + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + description: Success + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2023-07/retail-media/line-items/{line-item-id}/products/delete: + post: + description: This endpoint removes one or more products from promotion on the + specified line item. The resulting state of the line item is returned. + operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsDeleteByLineItemId + parameters: + - description: The line item to interact with + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: "" + x-nullable: false + x-bodyName: promotedProductsToRemove + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + description: Success + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /2023-07/retail-media/line-items/{line-item-id}/products/pause: + post: + description: This endpoint pauses one or more promoted products on a specified + line item. + operationId: PromotedProducts_PostApi202110ExternalLineItemProductsPauseByLineItemId + parameters: + - description: The line item to interact with. + explode: false + in: path + name: line-item-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromotedProduct202110ListRequest' + description: The products from which their IDs will be used to pause. + x-nullable: false + x-bodyName: promotedProductsToPause + responses: + "200": description: Success tags: - Campaign @@ -2341,11 +2527,11 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/products: + /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket: get: - description: This endpoint gets the promoted products on the specified line + description: This endpoint gets the add to basket target on the specified line item. - operationId: PromotedProductsApi_GetApi202110ExternalLineItemProductsByLineItemId + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId parameters: - description: The line item to interact with explode: false @@ -2356,54 +2542,26 @@ paths: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/products/append: - post: - description: This endpoint appends one or more products to promote on the specified - line item. The resulting state of the line item is returned. - operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsAppendByLineItemId + put: + description: This endpoint sets the scope of the add to basket target on the + specified line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAddToBasketByLineItemId parameters: - description: The line item to interact with explode: false @@ -2418,26 +2576,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: the products to append to this line item + $ref: '#/components/schemas/AddToBasketTarget202110Request' + description: The add to basket target to set the scope for x-nullable: false - x-bodyName: promotedProductsToAppend + x-bodyName: addToBasketTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/products/delete: + /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append: post: - description: This endpoint removes one or more products from promotion on the - specified line item. The resulting state of the line item is returned. - operationId: PromotedProductsApi_PostApi202110ExternalLineItemProductsDeleteByLineItemId + description: This endpoint appends one or more add to basket ids to targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketAppendByLineItemId parameters: - description: The line item to interact with explode: false @@ -2452,246 +2617,147 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110ListRequest' - description: "" + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to append to the target x-nullable: false - x-bodyName: promotedProductsToRemove + x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PromotedProduct202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items: - get: - description: Gets page of preferred line item objects for the given campaign - id - operationId: LineItemsApi_GetApi202110ExternalCampaignPreferredLineItemsByCampaignId + /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete: + post: + description: This endpoint removes one or more add to basket ids from targeting + on the specified line item. The resulting state of the add to basket target + is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAddToBasketDeleteByLineItemId parameters: - - description: The given campaign id + - description: The line item to interact with explode: false in: path - name: campaign-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddToBasketIdsUpdateModel202110Request' + description: Ids to remove from the target x-nullable: false + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110PagedListResponse' + $ref: '#/components/schemas/AddToBasketTarget202110Response' description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - post: - description: Creates a new preferred line item with the specified settings - operationId: LineItemsApi_PostApi202110ExternalCampaignPreferredLineItemsByCampaignId + /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences: + get: + description: This endpoint gets the audience target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId parameters: - - description: The given campaign id + - description: The line item to interact with explode: false in: path - name: campaign-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PreferredLineItemCreateModel202110Request' - description: The line item settings to create a line item with - x-nullable: false - x-bodyName: lineItem responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success "400": content: application/json: schema: - $ref: '#/components/schemas/PreferredLineItem202110Response' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Bad Request tags: - Campaign - x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/accounts/{account-id}/balances: - get: - description: Gets page of balance objects for the given account id - operationId: BalancesApi_GetApi202110ExternalAccountBalancesByAccountId + put: + description: This endpoint sets the scope of the audience target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingAudiencesByLineItemId parameters: - - description: The account to get balances for + - description: The line item to interact with explode: false in: path - name: account-id + name: line-item-id required: true schema: type: string style: simple x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Request' + description: The audience target to set the scope for x-nullable: false + x-bodyName: audienceTarget responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Balance202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success - tags: - - Campaign - x-accepts: application/json - /2023-07/retail-media/balances/{balance-id}/campaigns: - get: - description: Gets page of campaigns for the given balanceId - operationId: BalancesApi_GetApi202110ExternalBalanceCampaignsByBalanceId - parameters: - - description: The balance to get campaigns from - explode: false - in: path - name: balance-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - format: int32 - type: integer - style: form - x-nullable: false - responses: - "200": + "400": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' - description: Success + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/balances/{balance-id}/campaigns/append: + /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append: post: - description: appends one or more campaigns to the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsAppendByBalanceId + description: This endpoint appends one or more audiences ids to targeting on + the specified line item. The resulting state of the audience target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesAppendByLineItemId parameters: - - description: The balance to add campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string @@ -2701,30 +2767,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + description: Audience ids to append to the target x-nullable: false - x-bodyName: campaigns + x-bodyName: idsToAppend responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/balances/{balance-id}/campaigns/delete: + /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete: post: - description: Removes one or more campaigns on the specified balance - operationId: BalancesApi_PostApi202110ExternalBalanceCampaignsDeleteByBalanceId + description: This endpoint removes one or more audiences ids from targeting + on the specified line item. The resulting state of the audience target is + returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingAudiencesDeleteByLineItemId parameters: - - description: The balance to remove campaigns from + - description: The line item to interact with explode: false in: path - name: balance-id + name: line-item-id required: true schema: type: string @@ -2734,27 +2808,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110ListRequest' - description: The campaigns to append + $ref: '#/components/schemas/AudienceIdsUpdateModel202110Request' + description: Audience ids to remove from the target x-nullable: false - x-bodyName: campaigns + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/BalanceCampaign202110PagedListResponse' + $ref: '#/components/schemas/AudienceTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/AudienceTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json x-accepts: application/json - /2023-07/retail-media/line-items/{line-item-id}/bid-multipliers: + /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores: get: - description: Get bid multipliers by line item - operationId: LineItems_GetApi202301ExternalLineItemBidMultipliersByLineItemId + description: This endpoint gets the store target on the specified line item. + operationId: TargetingApi_GetApi202110ExternalPreferredLineItemTargetingStoresByLineItemId parameters: - - description: Long external id of the associated line item + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2762,27 +2842,29 @@ paths: schema: type: string style: simple + x-nullable: false responses: "200": content: - text/plain: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' - text/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign x-accepts: application/json put: - description: Replace bid multipliers on a line item - operationId: LineItems_PutApi202301ExternalLineItemBidMultipliersByLineItemId + description: This endpoint sets the scope of the store target on the specified + line item. + operationId: TargetingApi_PutApi202110ExternalPreferredLineItemTargetingStoresByLineItemId parameters: - - description: Long external id of the associated line item + - description: The line item to interact with explode: false in: path name: line-item-id @@ -2790,103 +2872,42 @@ paths: schema: type: string style: simple + x-nullable: false requestBody: content: application/json: schema: - $ref: '#/components/schemas/LineItemBidMultipliersRequest' + $ref: '#/components/schemas/StoreTarget202110Request' + description: The store target to set the scope for x-nullable: false - x-bodyName: request + x-bodyName: storeTarget responses: "200": content: - text/plain: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' application/json: schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' - text/json: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-07/retail-media/accounts/{accountId}/campaigns: - get: - description: "Get all the editable and creatable campaign attributes including\ - \ all types of budgets for each campaigns in relation to the account id, limited\ - \ by the campaign ids." - operationId: Campaigns_GetApi202301ExternalAccountCampaignsByAccountId - parameters: - - description: The account to request the campaign for. - explode: false - in: path - name: accountId - required: true - schema: - type: string - style: simple - x-nullable: false - - description: The ids that you would like to limit your result set to - explode: true - in: query - name: limitToId - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - - description: The 0 indexed page index you would like to receive given the - page size - explode: true - in: query - name: pageIndex - required: false - schema: - default: 0 - format: int32 - type: integer - style: form - x-nullable: false - - description: The maximum number of items you would like to receive in this - request - explode: true - in: query - name: pageSize - required: false - schema: - default: 25 - format: int32 - type: integer - style: form - x-nullable: false - responses: - "200": + "400": content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfCampaignV202301' - description: Success + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json + /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append: post: - description: Create a campaign and assign budgets for the given account id with - creatable campaign attributes given in request body constrained by business - validation. The validation error includes details and source of errors. Pacing - can be adjusted and affected by the status of the campaign and the days left - on the campaign if auto daily pacing is enabled. - operationId: Campaigns_PostApi202301ExternalAccountCampaignsByAccountId + description: This endpoint appends one or more store ids to targeting on the + specified line item. The resulting state of the store target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresAppendByLineItemId parameters: - - description: The account to request the campaign for. + - description: The line item to interact with explode: false in: path - name: accountId + name: line-item-id required: true schema: type: string @@ -2896,58 +2917,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PostCampaignV202301' - description: Creatable campaign attributes + $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' + description: Store ids to append to the target x-nullable: false - x-bodyName: campaign + x-bodyName: idsToAppend responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /2023-07/retail-media/campaigns/{campaignId}: - get: - description: Get all the editable and creatable campaign attributes including - all types of budgets given the campaign id - operationId: Campaigns_GetApi202301ExternalCampaignByCampaignId - parameters: - - description: Campaign Id of the campaign detail - explode: false - in: path - name: campaignId - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": + "400": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' - description: Success + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign + x-content-type: application/json x-accepts: application/json - put: - description: Edit a campaign for the given campaign id with a given editable - attributes. This will return updated creatable and editable attributes of - the campaign as the result of the operation. Pacing can be adjusted and affected - by the status of the campaign and the days left on the campaign if auto daily - pacing is enabled. - operationId: Campaigns_PutApi202301ExternalCampaignByCampaignId + /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete: + post: + description: This endpoint removes one or more store ids from targeting on the + specified line item. The resulting state of the store target is returned. + operationId: TargetingApi_PostApi202110ExternalPreferredLineItemTargetingStoresDeleteByLineItemId parameters: - - description: Campaign Id of the updating campaign + - description: The line item to interact with explode: false in: path - name: campaignId + name: line-item-id required: true schema: type: string @@ -2957,17 +2957,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PutCampaignV202301' - description: Editable campaign attributes + $ref: '#/components/schemas/StoreIdsUpdateModel202110Request' + description: Store ids to remove from the target x-nullable: false - x-bodyName: campaign + x-bodyName: idsToRemove responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCampaignV202301' + $ref: '#/components/schemas/StoreTarget202110Response' description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/StoreTarget202110Response' + description: Bad Request tags: - Campaign x-content-type: application/json @@ -3033,12 +3039,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 @@ -3055,6 +3063,7 @@ components: type: type properties: type: + nullable: true type: string attributes: $ref: '#/components/schemas/ApplicationSummaryModel' @@ -3075,10 +3084,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. @@ -3091,27 +3102,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: @@ -3125,15 +3143,20 @@ 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 JsonApiPageResponseOfAccount: @@ -3232,7 +3255,7 @@ components: - data type: object x-nullable: false - JsonApiPageResponseOfRetailer: + JsonApiPageResponseOfBrand: description: A wrapper class to return a single page of with metadata example: @@ -3246,16 +3269,10 @@ components: data: - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type warnings: @@ -3311,14 +3328,14 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' type: array x-nullable: false required: - data type: object x-nullable: false - JsonApiPageResponseOfBrand: + JsonApiPageResponseOfRetailer: description: A wrapper class to return a single page of with metadata example: @@ -3332,10 +3349,16 @@ components: data: - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type warnings: @@ -3391,7 +3414,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' type: array x-nullable: false required: @@ -3600,15 +3623,12 @@ components: - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: + JsonApiBodyWithIdOfInt64AndBrandAndBrand: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type properties: @@ -3620,18 +3640,21 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalRetailer' + $ref: '#/components/schemas/ExternalBrand' required: - id - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndBrandAndBrand: + JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type properties: @@ -3643,7 +3666,7 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalBrand' + $ref: '#/components/schemas/ExternalRetailer' required: - id - type @@ -3708,6 +3731,21 @@ components: - type type: object x-nullable: false + ExternalBrand: + description: A Retail Media Brand used to represent a collection of products + sold under the same umbrella name + example: + name: name + properties: + name: + maxLength: 120 + minLength: 0 + type: string + x-nullable: false + required: + - name + type: object + x-nullable: false ExternalRetailer: description: A Retail Media Retailer used to represent a selection of products from multiple brands @@ -3735,21 +3773,6 @@ components: - name type: object x-nullable: false - ExternalBrand: - description: A Retail Media Brand used to represent a collection of products - sold under the same umbrella name - example: - name: name - properties: - name: - maxLength: 120 - minLength: 0 - type: string - x-nullable: false - required: - - name - type: object - x-nullable: false AssetResponse: description: A class implementing the response of the Criteo API as described in API Guild Guidelines with a single entity as body @@ -3809,12 +3832,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 @@ -3832,8 +3857,10 @@ components: attributes: $ref: '#/components/schemas/Asset' id: + nullable: true type: string type: + nullable: true type: string type: object Asset: @@ -3850,8 +3877,10 @@ components: type: string fileLocation: description: A url pointing towards the static file the asset represents. + nullable: true type: string id: + nullable: true type: string required: - fileExtension @@ -3946,12 +3975,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array metadata: @@ -4022,12 +4053,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array type: object @@ -4156,12 +4189,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array metadata: @@ -4177,12 +4212,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object @@ -4267,12 +4304,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object @@ -4648,12 +4687,14 @@ components: items: format: int64 type: integer + nullable: true type: array categoryIds: description: The categories to target items: format: int32 type: integer + nullable: true type: array retailerId: description: ID of the retailer associated with this audience @@ -4898,21 +4939,25 @@ components: items: format: int32 type: integer + nullable: true type: array brandIds: description: The brands to target items: format: int64 type: integer + nullable: true type: array minPrice: description: The min price of targeted skus. format: double + nullable: true readOnly: true type: number maxPrice: description: The max price of targeted skus. format: double + nullable: true readOnly: true type: number required: @@ -4993,12 +5038,14 @@ components: errors: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false warnings: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false @@ -5052,12 +5099,14 @@ components: errors: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false warnings: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false @@ -5123,12 +5172,14 @@ components: errors: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false warnings: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false @@ -5194,6 +5245,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -5219,25 +5271,34 @@ components: status: 6 properties: traceIdentifier: + nullable: true type: string code: + nullable: true type: string source: additionalProperties: type: string + nullable: true type: object stackTrace: + nullable: true type: string type: + nullable: true type: string title: + nullable: true type: string status: format: int32 + nullable: true type: integer detail: + nullable: true type: string instance: + nullable: true type: string type: object RetailMediaExternalv1ProposalStatusModelResource: @@ -5254,6 +5315,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -5277,6 +5339,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -5298,6 +5361,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -5334,6 +5398,7 @@ components: rank: items: type: string + nullable: true type: array uniqueItems: false type: object @@ -5372,12 +5437,15 @@ components: - Approved type: string comment: + nullable: true type: string createdAt: format: date-time + nullable: true type: string updatedAt: format: date-time + nullable: true type: string required: - bookingStatus @@ -5399,6 +5467,7 @@ components: keywords: items: $ref: '#/components/schemas/RetailMediaExternalv1AddRemoveKeywordModel' + nullable: true type: array uniqueItems: false type: object @@ -5415,6 +5484,7 @@ components: keywords: items: $ref: '#/components/schemas/RetailMediaExternalv1SetBidModel' + nullable: true type: array uniqueItems: false type: object @@ -5445,23 +5515,28 @@ components: - AutoApproved - Rejected - AutoRejected + nullable: true type: string matchType: enum: - PositiveExactMatch - NegativeExactMatch - NegativeBroadMatch + nullable: true type: string bid: format: double + nullable: true type: number inputKeywords: $ref: '#/components/schemas/RetailMediaExternalv1InputKeywordsModel' createdAt: format: date-time + nullable: true type: string updatedAt: format: date-time + nullable: true type: string type: object RetailMediaExternalv1AddRemoveKeywordModel: @@ -5474,14 +5549,17 @@ components: phrase: maxLength: 255 minLength: 0 + nullable: true type: string matchType: enum: - PositiveExactMatch - NegativeExactMatch - NegativeBroadMatch + nullable: true type: string isDeleted: + nullable: true type: boolean type: object RetailMediaExternalv1SetBidModel: @@ -5493,9 +5571,11 @@ components: phrase: maxLength: 255 minLength: 0 + nullable: true type: string bid: format: double + nullable: true type: number type: object RetailMediaExternalv1InputKeywordsModel: @@ -5514,105 +5594,22 @@ components: negativeBroad: items: type: string + nullable: true type: array uniqueItems: false negativeExact: items: type: string + nullable: true type: array uniqueItems: false positiveExact: items: type: string + nullable: true type: array uniqueItems: false type: object - JsonApiSingleResponseOfCatalogStatus: - description: A JSON:API wrapper class to add one JSON:API within a data property - example: - data: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown - id: id - type: type - warnings: - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus' - errors: - items: - $ref: '#/components/schemas/CommonError' - type: array - x-nullable: false - warnings: - items: - $ref: '#/components/schemas/CommonWarning' - type: array - x-nullable: false - required: - - data - type: object - x-nullable: false - ExternalRetailerPages202110: - description: Wraps a list of valid pages for a retailer - example: - pageTypes: - - pageTypes - - pageTypes - properties: - pageTypes: - description: List of valid pages for a retailer - items: - type: string - x-nullable: false - type: array - x-nullable: false - type: object - x-nullable: false Creative202110ListResponse: description: Data model for a list of response resources example: @@ -5819,20 +5816,118 @@ components: x-nullable: false type: object x-nullable: false - Category202204ListResponse: + Creative202210ListResponse: description: Data model for a list of response resources example: data: - attributes: + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Search + environments: + - Web + - Web + - pageType: Search + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown name: name - text: text - parentId: parentId + retailerId: 6 + templateId: 1 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - attributes: + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Search + environments: + - Web + - Web + - pageType: Search + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown name: name - text: text - parentId: parentId + retailerId: 6 + templateId: 1 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type warnings: @@ -5880,7 +5975,7 @@ components: properties: data: items: - $ref: '#/components/schemas/ResourceOfCategory202204' + $ref: '#/components/schemas/ResourceOfCreative202210' type: array x-nullable: false warnings: @@ -5897,27 +5992,175 @@ components: x-nullable: false type: object x-nullable: false - Category202204: - description: "List of retailer's categories, including the full hierarchy of\ - \ categories and their parent category ID" + JsonApiSingleResponseOfCatalogStatus: + description: A JSON:API wrapper class to add one JSON:API within a data property example: - name: name - text: text - parentId: parentId - properties: - text: - description: Category Text - type: string - x-nullable: false - name: - description: Category Name - type: string - x-nullable: false - parentId: - description: Category ParentId - type: string - x-nullable: false - required: + data: + attributes: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + id: id + type: type + warnings: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus' + errors: + items: + $ref: '#/components/schemas/CommonError' + type: array + x-nullable: false + warnings: + items: + $ref: '#/components/schemas/CommonWarning' + type: array + x-nullable: false + required: + - data + type: object + x-nullable: false + Category202204ListResponse: + description: Data model for a list of response resources + example: + data: + - attributes: + name: name + text: text + parentId: parentId + id: id + type: type + - attributes: + name: name + text: text + parentId: parentId + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + items: + $ref: '#/components/schemas/ResourceOfCategory202204' + type: array + x-nullable: false + warnings: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + type: object + x-nullable: false + Category202204: + description: "List of retailer's categories, including the full hierarchy of\ + \ categories and their parent category ID" + example: + name: name + text: text + parentId: parentId + properties: + text: + description: Category Text + type: string + x-nullable: false + name: + description: Category Name + type: string + x-nullable: false + parentId: + description: Category ParentId + type: string + x-nullable: false + required: - name - parentId - text @@ -6397,216 +6640,40 @@ components: x-nullable: false type: object x-nullable: false - Creative202210ListResponse: - description: Data model for a list of response resources + ExternalRetailerPages202110: + description: Wraps a list of valid pages for a retailer example: - data: - - attributes: - formatId: 5 - templateVariableValues: - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - templateName: templateName - associatedLineItemIds: - - associatedLineItemIds - - associatedLineItemIds - environments: - - pageType: Search - environments: - - Web - - Web - - pageType: Search - environments: - - Web - - Web - brandId: 0 - creativeFormatType: Unknown - name: name - retailerId: 6 - templateId: 1 - status: Ready - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - formatId: 5 - templateVariableValues: - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - templateName: templateName - associatedLineItemIds: - - associatedLineItemIds - - associatedLineItemIds - environments: - - pageType: Search - environments: - - Web - - Web - - pageType: Search - environments: - - Web - - Web - brandId: 0 - creativeFormatType: Unknown - name: name - retailerId: 6 - templateId: 1 - status: Ready - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - items: - $ref: '#/components/schemas/ResourceOfCreative202210' - type: array - x-nullable: false - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - type: object - x-nullable: false - JsonApiRequestOfCatalogRequest: - description: "A JSON:API wrapper class to format a with Type, and Attributes properties" - example: - data: - attributes: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - type: type - properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest' - type: object - x-nullable: false - CreativeCreateModel202207: - description: Create model of a creative - example: - templateVariableValues: - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url + pageTypes: + - pageTypes + - pageTypes + properties: + pageTypes: + description: List of valid pages for a retailer + items: + type: string + x-nullable: false + type: array + x-nullable: false + type: object + x-nullable: false + CreativeCreateModel202207: + description: Create model of a creative + example: + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url id: id - colorVariableValue: color: color @@ -6731,33 +6798,20 @@ components: - templateVariableValues type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + JsonApiRequestOfCatalogRequest: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + \ /> with Type, and Attributes properties" example: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown - id: id - type: type + data: + attributes: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + type: type properties: - id: - format: long-id - type: string - x-nullable: false - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogStatus' - required: - - id - - type + data: + $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest' type: object x-nullable: false ResourceOfCreative202110: @@ -6777,9 +6831,11 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/Creative202110' @@ -6801,10 +6857,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. @@ -6913,12 +6971,43 @@ components: $ref: '#/components/schemas/Creative202210' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false + JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + example: + attributes: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + id: id + type: type + properties: + id: + format: long-id + type: string + x-nullable: false + type: + type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalCatalogStatus' + required: + - id + - type + type: object + x-nullable: false ResourceOfCategory202204: description: Data model for a Resource example: @@ -6933,9 +7022,11 @@ components: $ref: '#/components/schemas/Category202204' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -7062,32 +7153,14 @@ components: $ref: '#/components/schemas/Template' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest: - description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" - example: - attributes: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - type: type - properties: - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogRequest' - required: - - type - type: object - x-nullable: false TemplateVariableValue: description: A value for a variable in a creative template. example: @@ -7125,72 +7198,24 @@ components: - id type: object x-nullable: false - ExternalCatalogStatus: - description: The status of an asynchronous request to generate a catalog + JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest: + description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" example: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown + attributes: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + type: type properties: - status: - description: An enumeration of the status of the catalog. - enum: - - unknown - - pending - - success - - failure - - expired - type: string - x-nullable: false - currency: - description: An ISO4217 representation of the currency products are listed - under in this catalog. - type: string - x-nullable: false - rowCount: - description: "An indication of the number of products contained in this\ - \ catalog. Available when\r\nthis catalog reaches a success status." - format: int32 - nullable: true - type: integer - x-nullable: true - fileSizeBytes: - description: The size of this catalog in bytes. Available when this catalog - reaches a success status. - format: int32 - nullable: true - type: integer - x-nullable: true - md5Checksum: - description: "An MD5 checksum of the catalog for use in confirming complete\ - \ and uncorrupted retrieval.\r\nAvailable when this catalog reaches a\ - \ success status." - nullable: true - type: string - x-nullable: true - createdAt: - description: The time this catalog was created. Represented as a UTC ISO8601 - string. - format: date-time + type: type: string x-nullable: false - message: - description: An optional information message intended for developer consumption. - nullable: true - type: string - x-nullable: true + attributes: + $ref: '#/components/schemas/ExternalCatalogRequest' required: - - createdAt - - currency - - fileSizeBytes - - md5Checksum - - message - - rowCount - - status + - type type: object x-nullable: false Creative202110: @@ -7386,6 +7411,74 @@ components: - templateVariableValues type: object x-nullable: false + ExternalCatalogStatus: + description: The status of an asynchronous request to generate a catalog + example: + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown + properties: + status: + description: An enumeration of the status of the catalog. + enum: + - unknown + - pending + - success + - failure + - expired + type: string + x-nullable: false + currency: + description: An ISO4217 representation of the currency products are listed + under in this catalog. + type: string + x-nullable: false + rowCount: + description: "An indication of the number of products contained in this\ + \ catalog. Available when\r\nthis catalog reaches a success status." + format: int32 + nullable: true + type: integer + x-nullable: true + fileSizeBytes: + description: The size of this catalog in bytes. Available when this catalog + reaches a success status. + format: int32 + nullable: true + type: integer + x-nullable: true + md5Checksum: + description: "An MD5 checksum of the catalog for use in confirming complete\ + \ and uncorrupted retrieval.\r\nAvailable when this catalog reaches a\ + \ success status." + nullable: true + type: string + x-nullable: true + createdAt: + description: The time this catalog was created. Represented as a UTC ISO8601 + string. + format: date-time + type: string + x-nullable: false + message: + description: An optional information message intended for developer consumption. + nullable: true + type: string + x-nullable: true + required: + - createdAt + - currency + - fileSizeBytes + - md5Checksum + - message + - rowCount + - status + type: object + x-nullable: false Template: description: A template for creating creatives. example: @@ -7585,29 +7678,6 @@ components: - updatedAt type: object x-nullable: false - ExternalCatalogRequest: - description: A request for a catalog under the specified format. Currently "json-newline" - is supported. - example: - brandIdFilter: - - brandIdFilter - - brandIdFilter - format: json-newline - properties: - format: - default: json-newline - enum: - - json-newline - type: string - x-nullable: false - brandIdFilter: - items: - format: long-id - type: string - type: array - x-nullable: false - type: object - x-nullable: false TextVariableValue: description: A value of a template text variable example: @@ -7687,6 +7757,29 @@ components: - url type: object x-nullable: false + ExternalCatalogRequest: + description: A request for a catalog under the specified format. Currently "json-newline" + is supported. + example: + brandIdFilter: + - brandIdFilter + - brandIdFilter + format: json-newline + properties: + format: + default: json-newline + enum: + - json-newline + type: string + x-nullable: false + brandIdFilter: + items: + format: long-id + type: string + type: array + x-nullable: false + type: object + x-nullable: false PageTypeEnvironment: description: The PageType-Environment Tuples for creatives example: @@ -7970,37 +8063,21 @@ components: - id type: object x-nullable: false - ReportResponse: - description: Report response format + AsyncReportResponse: + description: Async Report response format example: data: attributes: - - - "{}" - - "{}" - - - "{}" - - "{}" + fileSizeBytes: 6 + md5CheckSum: md5CheckSum + createdAt: createdAt + rowCount: 0 + id: id + message: message + expiresAt: expiresAt + status: pending + id: id type: type - meta: - columns: - - duration: duration - role: Dimension - timezone: timezone - deprecated: true - name: name - description: description - currency: currency - title: title - type: Boolean - - duration: duration - role: Dimension - timezone: timezone - deprecated: true - name: name - description: description - currency: currency - title: title - type: Boolean - rows: 0 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8044,18 +8121,18 @@ components: type: unknown title: title properties: - meta: - $ref: '#/components/schemas/ExportReportMetaData' data: - $ref: '#/components/schemas/ReportDataResponseResource' + $ref: '#/components/schemas/StatusResponseResource' warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object @@ -8065,115 +8142,47 @@ components: warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AsyncReportResponse: - description: Async Report response format + AsyncCampaignReportRequest: + description: A top-level object that encapsulates a Criteo API request for a + single value example: data: attributes: - fileSizeBytes: 6 - md5CheckSum: md5CheckSum - createdAt: createdAt - rowCount: 0 + clickAttributionWindow: 7D + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: timezone + format: json + salesChannel: offline + reportType: summary + viewAttributionWindow: 1D + ids: + - ids + - ids + metrics: + - impressions + - impressions id: id - message: message - expiresAt: expiresAt - status: pending - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/StatusResponseResource' - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - errors: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - type: object - CampaignReportRequest: - description: A top-level object that encapsulates a Criteo API request for a - single value - example: - data: - attributes: - reportType: summary - accountId: accountId - clickAttributionWindow: 7D - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: UTC - viewAttributionWindow: none - campaignIds: - - campaignIds - - campaignIds - metrics: - - impressions - - impressions - salesChannel: offline - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date type: type properties: data: - $ref: '#/components/schemas/CampaignReportResource' + $ref: '#/components/schemas/AsyncCampaignReportResource' type: object - LineItemReportRequest: + AsyncLineItemReportRequest: description: A top-level object that encapsulates a Criteo API request for a single value example: @@ -8181,21 +8190,19 @@ components: attributes: clickAttributionWindow: 7D campaignType: sponsoredProducts - lineItemIds: - - lineItemIds - - lineItemIds endDate: 2000-01-23T04:56:07.000+00:00 timezone: timezone + format: json salesChannel: offline reportType: summary - accountId: accountId viewAttributionWindow: 1D - campaignIds: - - campaignIds - - campaignIds + ids: + - ids + - ids metrics: - impressions - impressions + id: id startDate: 2000-01-23T04:56:07.000+00:00 dimensions: - date @@ -8203,60 +8210,7 @@ components: type: type properties: data: - $ref: '#/components/schemas/LineItemReportResource' - type: object - ExportReportMetaData: - description: "Metadata for an async report request: descriptions of the columns\ - \ and number of rows returned" - example: - columns: - - duration: duration - role: Dimension - timezone: timezone - deprecated: true - name: name - description: description - currency: currency - title: title - type: Boolean - - duration: duration - role: Dimension - timezone: timezone - deprecated: true - name: name - description: description - currency: currency - title: title - type: Boolean - rows: 0 - properties: - columns: - items: - $ref: '#/components/schemas/ExportReportColumn' - type: array - rows: - format: int32 - type: integer - type: object - ReportDataResponseResource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - - - "{}" - - "{}" - - - "{}" - - "{}" - type: type - properties: - type: - type: string - attributes: - items: - items: - type: object - type: array - type: array + $ref: '#/components/schemas/AsyncLineItemReportResource' type: object StatusResponseResource: description: A class that represents a domain entity exposed by an API @@ -8276,29 +8230,32 @@ components: attributes: $ref: '#/components/schemas/StatusResponse' id: + nullable: true type: string type: + nullable: true type: string type: object - CampaignReportResource: + AsyncCampaignReportResource: description: A top-level object that encapsulates a Criteo API response for a single value example: attributes: - reportType: summary - accountId: accountId clickAttributionWindow: 7D campaignType: sponsoredProducts endDate: 2000-01-23T04:56:07.000+00:00 - timezone: UTC - viewAttributionWindow: none - campaignIds: - - campaignIds - - campaignIds + timezone: timezone + format: json + salesChannel: offline + reportType: summary + viewAttributionWindow: 1D + ids: + - ids + - ids metrics: - impressions - impressions - salesChannel: offline + id: id startDate: 2000-01-23T04:56:07.000+00:00 dimensions: - date @@ -8306,32 +8263,31 @@ components: type: type properties: type: + nullable: true type: string attributes: - $ref: '#/components/schemas/CampaignReport' + $ref: '#/components/schemas/AsyncCampaignReport' type: object - LineItemReportResource: + AsyncLineItemReportResource: description: A top-level object that encapsulates a Criteo API response for a single value example: attributes: clickAttributionWindow: 7D campaignType: sponsoredProducts - lineItemIds: - - lineItemIds - - lineItemIds endDate: 2000-01-23T04:56:07.000+00:00 timezone: timezone + format: json salesChannel: offline reportType: summary - accountId: accountId viewAttributionWindow: 1D - campaignIds: - - campaignIds - - campaignIds + ids: + - ids + - ids metrics: - impressions - impressions + id: id startDate: 2000-01-23T04:56:07.000+00:00 dimensions: - date @@ -8339,68 +8295,10 @@ components: type: type properties: type: + nullable: true type: string attributes: - $ref: '#/components/schemas/LineItemReport' - type: object - ExportReportColumn: - description: Description of a column from an async report request - example: - duration: duration - role: Dimension - timezone: timezone - deprecated: true - name: name - description: description - currency: currency - title: title - type: Boolean - properties: - name: - description: Name of the exported column - type: string - title: - description: Title of the exported column - type: string - description: - description: Description of the exported column - type: string - type: - description: Type of the column - enum: - - Boolean - - Number - - Money - - String - - Date - - DateTime - - Interval - - Duration - type: string - role: - description: Role of the colummn - enum: - - Dimension - - Property - - Interval - - Metric - type: string - timezone: - description: Timezone of the column - type: string - duration: - description: Duration of the column - type: string - currency: - description: Currency of the column - type: string - deprecated: - description: Flag for deprecated column - type: boolean - required: - - name - - role - - type + $ref: '#/components/schemas/AsyncLineItemReport' type: object StatusResponse: description: Status of an async report request @@ -8420,63 +8318,58 @@ components: - success - failure - expired + nullable: true type: string rowCount: format: int32 + nullable: true type: integer fileSizeBytes: format: int32 + nullable: true type: integer md5CheckSum: + nullable: true type: string createdAt: + nullable: true type: string expiresAt: + nullable: true type: string message: + nullable: true type: string id: + nullable: true type: string type: object x-criteo-canonical: infoType: entity - CampaignReport: + AsyncCampaignReport: description: Campaign report body request example: - reportType: summary - accountId: accountId clickAttributionWindow: 7D campaignType: sponsoredProducts endDate: 2000-01-23T04:56:07.000+00:00 - timezone: UTC - viewAttributionWindow: none - campaignIds: - - campaignIds - - campaignIds + timezone: timezone + format: json + salesChannel: offline + reportType: summary + viewAttributionWindow: 1D + ids: + - ids + - ids metrics: - impressions - impressions - salesChannel: offline + id: id startDate: 2000-01-23T04:56:07.000+00:00 dimensions: - date - date properties: - reportType: - enum: - - summary - - pageType - - keyword - - productCategory - - product - type: string - campaignIds: - description: List of campaign Ids to filter - items: - type: string - type: array metrics: - description: List of Metrics to report on items: enum: - impressions @@ -8493,9 +8386,9 @@ components: - uniqueVisitors - frequency type: string + nullable: true type: array dimensions: - description: List of dimensions to report on items: enum: - date @@ -8511,99 +8404,99 @@ components: - keyword - salesChannel type: string + nullable: true type: array - accountId: - description: Account id to report on - type: string - startDate: - description: Start date - format: date-time - type: string - endDate: - description: End Date - format: date-time - type: string - timezone: - default: UTC - description: "Time zone : see criteo developer portal for supported time\ - \ zones" - type: string clickAttributionWindow: - default: 7D - description: Click Attribution Window enum: - 7D - 14D - 30D + - none + nullable: true type: string viewAttributionWindow: - default: none - description: View Attribution window enum: - 1D - 7D - 14D - 30D - none + nullable: true + type: string + startDate: + format: date-time + type: string + endDate: + format: date-time + type: string + timezone: + nullable: true type: string campaignType: - description: Filter the type of campaign to report on enum: - sponsoredProducts - onSiteDisplays + nullable: true type: string salesChannel: - description: Filter on the channel of sales enum: - offline - online + nullable: true + type: string + format: + enum: + - json + - json-compact + - json-newline + - csv + nullable: true + type: string + reportType: + enum: + - summary + - pageType + - keyword + - productCategory + - product + - attributedTransactions + nullable: true + type: string + ids: + items: + type: string + nullable: true + type: array + id: + nullable: true type: string required: - - accountId - endDate - startDate type: object - LineItemReport: - description: Line item report body request + AsyncLineItemReport: + description: Line Item report body request example: clickAttributionWindow: 7D campaignType: sponsoredProducts - lineItemIds: - - lineItemIds - - lineItemIds endDate: 2000-01-23T04:56:07.000+00:00 timezone: timezone + format: json salesChannel: offline reportType: summary - accountId: accountId viewAttributionWindow: 1D - campaignIds: - - campaignIds - - campaignIds + ids: + - ids + - ids metrics: - impressions - impressions + id: id startDate: 2000-01-23T04:56:07.000+00:00 dimensions: - date - date properties: - reportType: - enum: - - summary - - pageType - - keyword - - productCategory - - product - type: string - lineItemIds: - items: - type: string - type: array - campaignIds: - items: - type: string - type: array metrics: items: enum: @@ -8622,9 +8515,9 @@ components: - uniqueVisitors - frequency type: string + nullable: true type: array dimensions: - description: List of dimensions to report on items: enum: - date @@ -8644,23 +8537,15 @@ components: - pageTypeName - salesChannel type: string + nullable: true type: array - accountId: - type: string - startDate: - format: date-time - type: string - endDate: - format: date-time - type: string - timezone: - type: string clickAttributionWindow: enum: - 7D - 14D - 30D - none + nullable: true type: string viewAttributionWindow: enum: @@ -8669,23 +8554,60 @@ components: - 14D - 30D - none + nullable: true + type: string + startDate: + format: date-time + type: string + endDate: + format: date-time + type: string + timezone: + nullable: true type: string campaignType: enum: - sponsoredProducts - onSiteDisplays + nullable: true type: string salesChannel: enum: - offline - online + nullable: true + type: string + format: + enum: + - json + - json-compact + - json-newline + - csv + nullable: true + type: string + reportType: + enum: + - summary + - pageType + - keyword + - productCategory + - product + - attributedTransactions + nullable: true + type: string + ids: + items: + type: string + nullable: true + type: array + id: + nullable: true type: string required: - - accountId - endDate - startDate type: object - AuctionLineItemPagedListResponse: + Balance202110PagedListResponse: description: Data model for a paged list of response resources example: metadata: @@ -8697,41 +8619,29 @@ components: currentPageIndex: 1 data: - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id @@ -8783,7 +8693,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/ResourceOfAuctionLineItem' + $ref: '#/components/schemas/ResourceOfBalance202110' type: array x-nullable: false warnings: @@ -8800,27 +8710,44 @@ components: x-nullable: false type: object x-nullable: false - AuctionLineItemResponse: - description: Data model for response resource + CommonLineItemPagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 + - attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 endDate: 2000-01-23 campaignId: campaignId - targetBid: 5.637376656633329 + budgetSpent: 6.027456183070403 + name: name + targetRetailerId: targetRetailerId + type: unknown + startDate: 2000-01-23 + status: unknown + budget: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + budgetRemaining: 1.4658129805029452 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + campaignId: campaignId + budgetSpent: 6.027456183070403 name: name - isAutoDailyPacing: false targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + type: unknown startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown + budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -8867,8 +8794,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ResourceOfAuctionLineItem' + items: + $ref: '#/components/schemas/ResourceOfCommonLineItem' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -8883,28 +8815,74 @@ components: x-nullable: false type: object x-nullable: false - CommonLineItemResponse: - description: Data model for response resource + JsonApiPageResponseOfCampaignV202301: + description: A wrapper class to return a single page of with metadata example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - budgetRemaining: 1.4658129805029452 + - attributes: + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 + id: id + type: type + - attributes: + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 status: unknown - budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 id: id type: type warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8914,7 +8892,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8925,7 +8902,6 @@ components: title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8935,7 +8911,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -8945,66 +8920,62 @@ components: type: unknown title: title properties: - data: - $ref: '#/components/schemas/ResourceOfCommonLineItem' + errors: + items: + $ref: '#/components/schemas/CommonError' + type: array + x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonWarning' type: array x-nullable: false - errors: + metadata: + $ref: '#/components/schemas/PageMetadata' + data: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' type: array x-nullable: false + required: + - data + - metadata type: object x-nullable: false - CommonLineItemPagedListResponse: - description: Data model for a paged list of response resources + JsonApiSingleResponseOfCampaignV202301: + description: A JSON:API wrapper class to add one JSON:API within a data property example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - budgetRemaining: 1.4658129805029452 - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 - name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 - status: unknown - budget: 0.8008281904610115 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - budgetRemaining: 1.4658129805029452 + attributes: + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - campaignId: campaignId - budgetSpent: 6.027456183070403 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None name: name - targetRetailerId: targetRetailerId - type: unknown - startDate: 2000-01-23 + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 status: unknown - budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 id: id type: type warnings: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9014,7 +8985,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9025,7 +8995,6 @@ components: title: title errors: - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9035,7 +9004,6 @@ components: type: unknown title: title - traceId: traceId - traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9045,34 +9013,45 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' + errors: items: - $ref: '#/components/schemas/ResourceOfCommonLineItem' + $ref: '#/components/schemas/CommonError' type: array x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true + $ref: '#/components/schemas/CommonWarning' type: array x-nullable: false + required: + - data type: object x-nullable: false - KeywordTarget202110Response: - description: Data model for a value type resource outcome + AuctionLineItemResponse: + description: Data model for response resource example: data: attributes: - keywords: - key: unknown + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -9118,7 +9097,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' + $ref: '#/components/schemas/ResourceOfAuctionLineItem' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9133,15 +9112,13 @@ components: x-nullable: false type: object x-nullable: false - StoreTarget202110Response: + KeywordTarget202110Response: description: Data model for a value type resource outcome example: data: attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + keywords: + key: unknown type: type warnings: - traceId: traceId @@ -9187,7 +9164,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9202,18 +9179,22 @@ components: x-nullable: false type: object x-nullable: false - AddToBasketTarget202110Response: - description: Data model for a value type resource outcome + BalanceCampaign202110PagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + - attributes: "{}" + id: id + type: type + - attributes: "{}" + id: id type: type warnings: - traceId: traceId @@ -9258,8 +9239,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + items: + $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9274,15 +9260,56 @@ components: x-nullable: false type: object x-nullable: false - AudienceTarget202110Response: - description: Data model for a value type resource outcome + AuctionLineItemPagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + - attributes: + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type warnings: - traceId: traceId @@ -9327,8 +9354,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' + items: + $ref: '#/components/schemas/ResourceOfAuctionLineItem' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9343,11 +9375,47 @@ components: x-nullable: false type: object x-nullable: false - PreferredLineItem202110Response: - description: Data model for response resource + PreferredLineItem202110PagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: + - attributes: + budgetRemaining: 5.962133916683182 + endDate: 2000-01-23 + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId + createdAt: 2000-01-23T04:56:07.000+00:00 + pacing: unknown + budgetSpent: 1.4658129805029452 + name: name + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + status: unknown + budget: 6.027456183070403 + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: budgetRemaining: 5.962133916683182 endDate: 2000-01-23 campaignId: campaignId @@ -9419,8 +9487,13 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + items: + $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9435,23 +9508,37 @@ components: x-nullable: false type: object x-nullable: false - PromotedProduct202110PagedListResponse: - description: Data model for a paged list of response resources + PreferredLineItem202110Response: + description: Data model for response resource example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - bidOverride: 0.8008281904610115 - id: id - type: type - - attributes: - bidOverride: 0.8008281904610115 + attributes: + budgetRemaining: 5.962133916683182 + endDate: 2000-01-23 + campaignId: campaignId + capping: + count: 0 + type: unknown + creativeId: creativeId + createdAt: 2000-01-23T04:56:07.000+00:00 + pacing: unknown + budgetSpent: 1.4658129805029452 + name: name + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + status: unknown + budget: 6.027456183070403 + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type warnings: @@ -9497,13 +9584,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfPromotedProduct202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9518,72 +9600,22 @@ components: x-nullable: false type: object x-nullable: false - PreferredLineItem202110PagedListResponse: - description: Data model for a paged list of response resources + CommonLineItemResponse: + description: Data model for response resource example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - budgetRemaining: 5.962133916683182 + attributes: + budgetRemaining: 1.4658129805029452 + createdAt: 2000-01-23T04:56:07.000+00:00 endDate: 2000-01-23 campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId - createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 + budgetSpent: 6.027456183070403 name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - status: unknown - budget: 6.027456183070403 - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - budgetRemaining: 5.962133916683182 - endDate: 2000-01-23 - campaignId: campaignId - capping: - count: 0 - type: unknown - creativeId: creativeId - createdAt: 2000-01-23T04:56:07.000+00:00 - pacing: unknown - budgetSpent: 1.4658129805029452 - name: name - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId targetRetailerId: targetRetailerId + type: unknown startDate: 2000-01-23 status: unknown - budget: 6.027456183070403 + budget: 0.8008281904610115 updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type @@ -9630,13 +9662,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfPreferredLineItem202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfCommonLineItem' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9651,43 +9678,89 @@ components: x-nullable: false type: object x-nullable: false - Balance202110PagedListResponse: - description: Data model for a paged list of response resources + JsonApiSingleResponseOfLineItemBidMultipliers: + description: Data model for the response of a line item bid multiplier example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + attributes: + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + categories: 1.4658129805029452 + confirmation: 5.637376656633329 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + homepage: 6.027456183070403 id: id type: type - - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + warnings: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers' + errors: + items: + $ref: '#/components/schemas/CommonError' + type: array + x-nullable: false + warnings: + items: + $ref: '#/components/schemas/CommonWarning' + type: array + x-nullable: false + required: + - data + type: object + x-nullable: false + LineItemBidMultipliersResponse: + description: Data model for response resource + example: + data: + attributes: + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + categories: 1.4658129805029452 + confirmation: 5.637376656633329 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + homepage: 6.027456183070403 id: id type: type warnings: @@ -9733,13 +9806,8 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfBalance202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9754,7 +9822,7 @@ components: x-nullable: false type: object x-nullable: false - BalanceCampaign202110PagedListResponse: + PromotedProduct202110PagedListResponse: description: Data model for a paged list of response resources example: metadata: @@ -9765,10 +9833,12 @@ components: totalItemsAcrossAllPages: 0 currentPageIndex: 1 data: - - attributes: "{}" + - attributes: + bidOverride: 0.8008281904610115 id: id type: type - - attributes: "{}" + - attributes: + bidOverride: 0.8008281904610115 id: id type: type warnings: @@ -9818,7 +9888,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' + $ref: '#/components/schemas/ResourceOfPromotedProduct202110' type: array x-nullable: false warnings: @@ -9835,23 +9905,22 @@ components: x-nullable: false type: object x-nullable: false - JsonApiSingleResponseOfLineItemBidMultipliers: - description: Data model for the response of a line item bid multiplier + AddToBasketTarget202110Response: + description: Data model for a value type resource outcome example: data: attributes: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 - id: id + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9861,6 +9930,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9871,6 +9941,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9880,6 +9951,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -9890,35 +9962,30 @@ components: title: title properties: data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers' - errors: + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + warnings: items: - $ref: '#/components/schemas/CommonError' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - warnings: + errors: items: - $ref: '#/components/schemas/CommonWarning' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - required: - - data type: object x-nullable: false - LineItemBidMultipliersResponse: - description: Data model for response resource + AudienceTarget202110Response: + description: Data model for a value type resource outcome example: data: attributes: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 - id: id + scope: unknown + audienceIds: + - audienceIds + - audienceIds type: type warnings: - traceId: traceId @@ -9964,7 +10031,7 @@ components: title: title properties: data: - $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' + $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -9979,74 +10046,19 @@ components: x-nullable: false type: object x-nullable: false - JsonApiPageResponseOfCampaignV202301: - description: A wrapper class to return a single page of with metadata + StoreTarget202110Response: + description: Data model for a value type resource outcome example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 data: - - attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 - startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 - id: id - type: type - - attributes: - budgetRemaining: 6.027456183070403 - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 - viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 - startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 - id: id + attributes: + scope: unknown + storeIds: + - storeIds + - storeIds type: type warnings: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -10056,6 +10068,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -10066,6 +10079,7 @@ components: title: title errors: - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -10075,6 +10089,7 @@ components: type: unknown title: title - traceId: traceId + traceIdentifier: traceIdentifier code: code instance: instance detail: detail @@ -10084,136 +10099,47 @@ components: type: unknown title: title properties: - errors: - items: - $ref: '#/components/schemas/CommonError' - type: array - x-nullable: false + data: + $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' warnings: items: - $ref: '#/components/schemas/CommonWarning' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - metadata: - $ref: '#/components/schemas/PageMetadata' - data: + errors: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array x-nullable: false - required: - - data - - metadata type: object x-nullable: false - JsonApiSingleResponseOfCampaignV202301: - description: A JSON:API wrapper class to add one JSON:API within a data property + PostCampaignV202301: + description: An object that represents the available options to set when creating + a Retail Media Campaign example: data: attributes: - budgetRemaining: 6.027456183070403 clickAttributionWindow: 30D endDate: 2000-01-23T04:56:07.000+00:00 drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds viewAttributionWindow: None name: name isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 - id: id - type: type - warnings: - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301' - errors: - items: - $ref: '#/components/schemas/CommonError' - type: array - x-nullable: false - warnings: - items: - $ref: '#/components/schemas/CommonWarning' - type: array - x-nullable: false - required: - - data - type: object - x-nullable: false - AuctionLineItemCreateModelRequest: - description: Data model for a create input resource - example: - data: - attributes: - bidStrategy: conversion - endDate: 2000-01-23 - maxBid: 1.4658129805029452 - name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.637376656633329 - startDate: 2000-01-23 - targetBid: 6.027456183070403 - monthlyPacing: 5.962133916683182 - status: unknown budget: 0.8008281904610115 type: type properties: data: - $ref: '#/components/schemas/InputResourceOfAuctionLineItemCreateModel' + $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301' type: object x-nullable: false AuctionLineItemUpdateModelRequest: @@ -10252,97 +10178,122 @@ components: $ref: '#/components/schemas/ValueTypeResourceOfKeywordTarget202110' type: object x-nullable: false - StoreTarget202110Request: - description: Data model for a value type input resource + BalanceCampaign202110ListRequest: + description: "A class implementing the request of the Criteo API as described\ + \ in API Guild Guidelines with a collection of entities as body\r\nhttps://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines" example: data: - attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + - attributes: "{}" + id: id + type: type + - attributes: "{}" + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' + items: + $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' + type: array + x-nullable: false type: object x-nullable: false - StoreIdsUpdateModel202110Request: - description: Data model for a value type input resource + AuctionLineItemCreateModelRequest: + description: Data model for a create input resource example: data: attributes: - storeIds: - - storeIds - - storeIds + bidStrategy: conversion + endDate: 2000-01-23 + maxBid: 1.4658129805029452 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.637376656633329 + startDate: 2000-01-23 + targetBid: 6.027456183070403 + monthlyPacing: 5.962133916683182 + status: unknown + budget: 0.8008281904610115 type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' + $ref: '#/components/schemas/InputResourceOfAuctionLineItemCreateModel' type: object x-nullable: false - AddToBasketTarget202110Request: - description: Data model for a value type input resource + PreferredLineItemCreateModel202110Request: + description: Data model for a create input resource example: data: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + pacing: unknown + endDate: 2000-01-23 + name: name + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown + budget: 0.8008281904610115 type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' + $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModel202110' type: object x-nullable: false - AddToBasketIdsUpdateModel202110Request: - description: Data model for a value type input resource + PutCampaignV202301: + description: An object that represents the available options to set when editing + a Retail Media Campaign example: data: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - type: type - properties: - data: - $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketIdsUpdateModel202110' - type: object - x-nullable: false - AudienceTarget202110Request: - description: Data model for a value type input resource - example: - data: - attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + clickAttributionWindow: 7D + endDate: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: None + isAutoDailyPacing: true + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + budget: 0.8008281904610115 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' + $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301' type: object x-nullable: false - AudienceIdsUpdateModel202110Request: - description: Data model for a value type input resource + LineItemBidMultipliersRequest: + description: Data model for an input resource example: data: attributes: - audienceIds: - - audienceIds - - audienceIds + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + categories: 1.4658129805029452 + confirmation: 5.637376656633329 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + homepage: 6.027456183070403 + id: id type: type properties: data: - $ref: '#/components/schemas/ValueTypeResourceOfAudienceIdsUpdateModel202110' + $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' type: object x-nullable: false PromotedProduct202110ListRequest: @@ -10397,147 +10348,112 @@ components: $ref: '#/components/schemas/ResourceOfPreferredLineItemUpdateModel202110' type: object x-nullable: false - PreferredLineItemCreateModel202110Request: - description: Data model for a create input resource + AddToBasketTarget202110Request: + description: Data model for a value type input resource example: data: attributes: - pacing: unknown - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type properties: data: - $ref: '#/components/schemas/InputResourceOfPreferredLineItemCreateModel202110' + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketTarget202110' type: object x-nullable: false - BalanceCampaign202110ListRequest: - description: "A class implementing the request of the Criteo API as described\ - \ in API Guild Guidelines with a collection of entities as body\r\nhttps://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines" + AddToBasketIdsUpdateModel202110Request: + description: Data model for a value type input resource example: data: - - attributes: "{}" - id: id + attributes: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds type: type - - attributes: "{}" - id: id + properties: + data: + $ref: '#/components/schemas/ValueTypeResourceOfAddToBasketIdsUpdateModel202110' + type: object + x-nullable: false + AudienceTarget202110Request: + description: Data model for a value type input resource + example: + data: + attributes: + scope: unknown + audienceIds: + - audienceIds + - audienceIds type: type properties: data: - items: - $ref: '#/components/schemas/ResourceOfBalanceCampaign202110' - type: array - x-nullable: false + $ref: '#/components/schemas/ValueTypeResourceOfAudienceTarget202110' type: object x-nullable: false - LineItemBidMultipliersRequest: - description: Data model for an input resource + AudienceIdsUpdateModel202110Request: + description: Data model for a value type input resource example: data: attributes: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 - id: id + audienceIds: + - audienceIds + - audienceIds type: type properties: data: - $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' + $ref: '#/components/schemas/ValueTypeResourceOfAudienceIdsUpdateModel202110' type: object x-nullable: false - PostCampaignV202301: - description: An object that represents the available options to set when creating - a Retail Media Campaign + StoreTarget202110Request: + description: Data model for a value type input resource example: data: attributes: - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - clickAttributionScope: unknown - viewAttributionScope: unknown - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - budget: 0.8008281904610115 + scope: unknown + storeIds: + - storeIds + - storeIds type: type properties: data: - $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301' + $ref: '#/components/schemas/ValueTypeResourceOfStoreTarget202110' type: object x-nullable: false - PutCampaignV202301: - description: An object that represents the available options to set when editing - a Retail Media Campaign + StoreIdsUpdateModel202110Request: + description: Data model for a value type input resource example: data: attributes: - clickAttributionWindow: 7D - endDate: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - viewAttributionScope: unknown - name: name - viewAttributionWindow: None - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - budget: 0.8008281904610115 - id: id + storeIds: + - storeIds + - storeIds type: type properties: data: - $ref: '#/components/schemas/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301' + $ref: '#/components/schemas/ValueTypeResourceOfStoreIdsUpdateModel202110' type: object x-nullable: false - ResourceOfAuctionLineItem: - description: Data model for a Resource + ResourceOfBalance202110: + description: A class that represents an entity in a guild compliant way example: attributes: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 id: id @@ -10545,12 +10461,14 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: - $ref: '#/components/schemas/ExternalAuctionLineItem' + $ref: '#/components/schemas/ExternalBalance202110' type: object x-nullable: false ResourceOfCommonLineItem: @@ -10574,81 +10492,132 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalCommonLineItem' type: object x-nullable: false - ValueTypeResourceOfKeywordTarget202110: - description: Data model for a value type resource + JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: - keywords: - key: unknown + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 + id: id type: type properties: + id: + format: long-id + type: string + x-nullable: false type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalKeywordTarget202110' + $ref: '#/components/schemas/CampaignV202301' + required: + - id + - type type: object x-nullable: false - ValueTypeResourceOfStoreTarget202110: - description: Data model for a value type resource + ResourceOfAuctionLineItem: + description: Data model for a Resource example: attributes: - scope: unknown - storeIds: - - storeIds - - storeIds + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalStoreTarget202110' + $ref: '#/components/schemas/ExternalAuctionLineItem' type: object x-nullable: false - ValueTypeResourceOfAddToBasketTarget202110: + ValueTypeResourceOfKeywordTarget202110: description: Data model for a value type resource example: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + keywords: + key: unknown type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAddToBasketTarget202110' + $ref: '#/components/schemas/ExternalKeywordTarget202110' type: object x-nullable: false - ValueTypeResourceOfAudienceTarget202110: - description: Data model for a value type resource + ResourceOfBalanceCampaign202110: + description: A class that represents an entity in a guild compliant way example: - attributes: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + attributes: "{}" + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAudienceTarget202110' + description: Campaigns related to the balance + type: object + x-nullable: false type: object x-nullable: false ResourceOfPreferredLineItem202110: @@ -10686,180 +10655,178 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalPreferredLineItem202110' type: object x-nullable: false - ResourceOfPromotedProduct202110: - description: Data model for a Resource + JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers: + description: Response object for line item bid multiplier calls example: attributes: - bidOverride: 0.8008281904610115 + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + categories: 1.4658129805029452 + confirmation: 5.637376656633329 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + homepage: 6.027456183070403 id: id type: type properties: id: - description: Id of the entity + format: long-id type: string + x-nullable: false type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalPromotedProduct202110' + $ref: '#/components/schemas/LineItemBidMultipliers' + required: + - id + - type type: object x-nullable: false - ResourceOfBalance202110: - description: A class that represents an entity in a guild compliant way + ResourceOfLineItemBidMultipliers: + description: Data model for a Resource example: attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + categories: 1.4658129805029452 + confirmation: 5.637376656633329 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + homepage: 6.027456183070403 id: id type: type properties: + attributes: + $ref: '#/components/schemas/LineItemBidMultipliers' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string - attributes: - $ref: '#/components/schemas/ExternalBalance202110' type: object x-nullable: false - ResourceOfBalanceCampaign202110: - description: A class that represents an entity in a guild compliant way + ResourceOfPromotedProduct202110: + description: Data model for a Resource example: - attributes: "{}" + attributes: + bidOverride: 0.8008281904610115 id: id type: type properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: - description: Campaigns related to the balance - type: object - x-nullable: false + $ref: '#/components/schemas/ExternalPromotedProduct202110' type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers: - description: Response object for line item bid multiplier calls + ValueTypeResourceOfAddToBasketTarget202110: + description: Data model for a value type resource example: attributes: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 - id: id + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown type: type properties: - id: - format: long-id + type: type: string x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalAddToBasketTarget202110' + type: object + x-nullable: false + ValueTypeResourceOfAudienceTarget202110: + description: Data model for a value type resource + example: + attributes: + scope: unknown + audienceIds: + - audienceIds + - audienceIds + type: type + properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/LineItemBidMultipliers' - required: - - id - - type + $ref: '#/components/schemas/ExternalAudienceTarget202110' type: object x-nullable: false - ResourceOfLineItemBidMultipliers: - description: Data model for a Resource + ValueTypeResourceOfStoreTarget202110: + description: Data model for a value type resource example: attributes: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 - id: id + scope: unknown + storeIds: + - storeIds + - storeIds type: type properties: - attributes: - $ref: '#/components/schemas/LineItemBidMultipliers' - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalStoreTarget202110' type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301: + JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + \ /> with Type, and\r\nAttributes properties" example: attributes: - budgetRemaining: 6.027456183070403 clickAttributionWindow: 30D endDate: 2000-01-23T04:56:07.000+00:00 drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds viewAttributionWindow: None name: name isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 - id: id + budget: 0.8008281904610115 type: type properties: - id: - format: long-id - type: string - x-nullable: false type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/CampaignV202301' + $ref: '#/components/schemas/CampaignAttributesV202301' required: - - id - type type: object x-nullable: false - InputResourceOfAuctionLineItemCreateModel: + ResourceOfAuctionLineItemUpdateModel: description: Data model for a Resource example: attributes: @@ -10867,24 +10834,29 @@ components: endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId + isAutoDailyPacing: true dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 monthlyPacing: 5.962133916683182 status: unknown budget: 0.8008281904610115 + id: id type: type properties: + id: + description: Id of the entity + nullable: true + type: string type: + description: Canonical type name of the entity + nullable: true type: string - x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAuctionLineItemCreateModel' + $ref: '#/components/schemas/ExternalAuctionLineItemUpdateModel' type: object x-nullable: false - ResourceOfAuctionLineItemUpdateModel: + InputResourceOfAuctionLineItemCreateModel: description: Data model for a Resource example: attributes: @@ -10892,75 +10864,88 @@ components: endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true + isAutoDailyPacing: false + targetRetailerId: targetRetailerId dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 monthlyPacing: 5.962133916683182 status: unknown budget: 0.8008281904610115 - id: id type: type properties: - id: - description: Id of the entity - type: string type: - description: Canonical type name of the entity type: string + x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAuctionLineItemUpdateModel' + $ref: '#/components/schemas/ExternalAuctionLineItemCreateModel' type: object x-nullable: false - ValueTypeResourceOfStoreIdsUpdateModel202110: - description: Data model for a value type resource - example: + InputResourceOfPreferredLineItemCreateModel202110: + description: Data model for a Resource + example: attributes: - storeIds: - - storeIds - - storeIds + pacing: unknown + endDate: 2000-01-23 + name: name + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + targetRetailerId: targetRetailerId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown + budget: 0.8008281904610115 type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' + $ref: '#/components/schemas/ExternalPreferredLineItemCreateModel202110' type: object x-nullable: false - ValueTypeResourceOfAddToBasketIdsUpdateModel202110: - description: Data model for a value type resource + JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds + clickAttributionWindow: 7D + endDate: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + viewAttributionScope: unknown + name: name + viewAttributionWindow: None + isAutoDailyPacing: true + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + budget: 0.8008281904610115 + id: id type: type properties: - type: + id: + format: long-id type: string x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalAddToBasketIdsUpdateModel202110' - type: object - x-nullable: false - ValueTypeResourceOfAudienceIdsUpdateModel202110: - description: Data model for a value type resource - example: - attributes: - audienceIds: - - audienceIds - - audienceIds - type: type - properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalAudienceIdsUpdateModel202110' + $ref: '#/components/schemas/EditableCampaignAttributesV202301' + required: + - id + - type type: object x-nullable: false ResourceOfPreferredLineItemUpdateModel202110: @@ -10992,246 +10977,152 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/ExternalPreferredLineItemUpdateModel202110' type: object x-nullable: false - InputResourceOfPreferredLineItemCreateModel202110: - description: Data model for a Resource + ValueTypeResourceOfAddToBasketIdsUpdateModel202110: + description: Data model for a value type resource example: attributes: - pacing: unknown - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - targetRetailerId: targetRetailerId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalPreferredLineItemCreateModel202110' + $ref: '#/components/schemas/ExternalAddToBasketIdsUpdateModel202110' type: object x-nullable: false - JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301: - description: "A JSON:API wrapper class to format a with Type, and\r\nAttributes properties" + ValueTypeResourceOfAudienceIdsUpdateModel202110: + description: Data model for a value type resource example: attributes: - clickAttributionWindow: 30D - endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction - clickAttributionScope: unknown - viewAttributionScope: unknown - viewAttributionWindow: None - name: name - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - budget: 0.8008281904610115 + audienceIds: + - audienceIds + - audienceIds type: type properties: type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/CampaignAttributesV202301' - required: - - type + $ref: '#/components/schemas/ExternalAudienceIdsUpdateModel202110' type: object x-nullable: false - JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301: - description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + ValueTypeResourceOfStoreIdsUpdateModel202110: + description: Data model for a value type resource example: attributes: - clickAttributionWindow: 7D - endDate: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - viewAttributionScope: unknown - name: name - viewAttributionWindow: None - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 - budget: 0.8008281904610115 - id: id + storeIds: + - storeIds + - storeIds type: type properties: - id: - format: long-id - type: string - x-nullable: false type: type: string x-nullable: false attributes: - $ref: '#/components/schemas/EditableCampaignAttributesV202301' - required: - - id - - type + $ref: '#/components/schemas/ExternalStoreIdsUpdateModel202110' type: object x-nullable: false - ExternalAuctionLineItem: - description: A Retail Media Auction Line Item used to hold bid settings for - one or many promoted products on a single retailer + ExternalBalance202110: + description: A Retail Media Balance used to determine the funds available for + any or all campaigns in an account example: - bidStrategy: conversion - budgetRemaining: 7.061401241503109 - endDate: 2000-01-23 - campaignId: campaignId - targetBid: 5.637376656633329 createdAt: 2000-01-23T04:56:07.000+00:00 - budgetSpent: 2.3021358869347655 - maxBid: 0.8008281904610115 + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId - dailyPacing: 5.962133916683182 + memo: memo + poNumber: poNumber + remaining: 1.4658129805029452 startDate: 2000-01-23 - monthlyPacing: 1.4658129805029452 - budget: 6.027456183070403 status: unknown updatedAt: 2000-01-23T04:56:07.000+00:00 properties: name: - maxLength: 255 - minLength: 0 type: string x-nullable: false - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" + poNumber: type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date + x-nullable: false + memo: type: string - maxBid: + x-nullable: false + deposited: format: decimal nullable: true required: - "false" type: number x-nullable: true - budget: + spent: format: decimal nullable: true required: - "false" type: number x-nullable: true - monthlyPacing: + remaining: format: decimal nullable: true required: - "false" type: number x-nullable: true - dailyPacing: - format: decimal - nullable: true + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date required: - - "false" - type: number - x-nullable: true - bidStrategy: - default: conversion - enum: - - unknown - - conversion - - clicks - - revenue + - "true" type: string - x-nullable: false - targetRetailerId: - format: long-id + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date type: string - x-nullable: false status: enum: - unknown - - active - scheduled - - draft - - paused - - budgetHit + - active - ended - - archived - - noFunds type: string x-nullable: false - targetBid: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - isAutoDailyPacing: - default: false - type: boolean - x-nullable: false - campaignId: - format: long-id - type: string - x-nullable: false - budgetSpent: - format: double - type: number - x-nullable: false - budgetRemaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - createdAt: - format: date-time - type: string + createdAt: + format: date-time + type: string x-nullable: false updatedAt: format: date-time type: string x-nullable: false required: - - budgetRemaining - - campaignId - createdAt + - deposited + - endDate + - memo - name + - poNumber + - remaining + - spent - startDate - - targetRetailerId + - status - updatedAt type: object x-nullable: false @@ -11275,6 +11166,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -11334,118 +11226,341 @@ components: - updatedAt type: object x-nullable: false - ExternalKeywordTarget202110: - description: Identifies keyword targeting for a line item + CampaignV202301: + description: A Retail Media Campaign used to represent an advertiser's marketing + objective example: - keywords: - key: unknown + budgetRemaining: 6.027456183070403 + clickAttributionWindow: 30D + endDate: 2000-01-23T04:56:07.000+00:00 + drawableBalanceIds: + - drawableBalanceIds + - drawableBalanceIds + type: auction + accountId: accountId + createdAt: 2000-01-23T04:56:07.000+00:00 + clickAttributionScope: unknown + budgetSpent: 0.8008281904610115 + viewAttributionScope: unknown + promotedBrandIds: + - promotedBrandIds + - promotedBrandIds + viewAttributionWindow: None + name: name + isAutoDailyPacing: true + dailyPacing: 5.637376656633329 + monthlyPacing: 5.962133916683182 + startDate: 2000-01-23T04:56:07.000+00:00 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + budget: 1.4658129805029452 properties: - keywords: - additionalProperties: - enum: - - unknown - - negativeExact - - negativeBroad + accountId: + format: long-id + type: string + x-nullable: false + promotedBrandIds: + items: + format: long-id type: string - x-nullable: false - description: Keywords that targeting specifications exist for - type: object + type: array x-nullable: false - required: - - keywords - type: object - x-nullable: false - ExternalStoreTarget202110: - description: Identifies store targeting for a line item - example: - scope: unknown - storeIds: - - storeIds - - storeIds - properties: - scope: - description: Scope of the store target + budgetSpent: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + budgetRemaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + status: enum: - unknown - - include - - exclude + - active + - inactive + - scheduled + - ended type: string x-nullable: false - storeIds: - description: Store ids that should be targeted + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string + x-nullable: false + type: + default: auction + enum: + - unknown + - auction + - preferred + type: string + x-nullable: false + drawableBalanceIds: items: + format: long-id type: string - x-nullable: false type: array x-nullable: false + clickAttributionWindow: + default: 30D + enum: + - 7D + - 14D + - 30D + - unknown + type: string + x-nullable: false + viewAttributionWindow: + default: None + enum: + - None + - Unknown + - OneDay + - SevenDays + - FourteenDays + - ThirtyDays + type: string + x-nullable: false + name: + maxLength: 255 + minLength: 0 + type: string + x-nullable: false + budget: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + monthlyPacing: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + dailyPacing: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + isAutoDailyPacing: + type: boolean + x-nullable: false + startDate: + format: date-time + nullable: true + type: string + x-nullable: true + endDate: + format: date-time + nullable: true + type: string + x-nullable: true + clickAttributionScope: + enum: + - unknown + - sameSku + - sameSkuCategory + - sameSkuCategoryBrand + nullable: true + type: string + x-nullable: true + viewAttributionScope: + enum: + - unknown + - sameSku + - sameSkuCategory + - sameSkuCategoryBrand + nullable: true + type: string + x-nullable: true required: - - scope - - storeIds + - accountId + - budgetRemaining + - budgetSpent + - createdAt + - endDate + - isAutoDailyPacing + - name + - promotedBrandIds + - startDate + - updatedAt type: object x-nullable: false - ExternalAddToBasketTarget202110: - description: Identifies add to basket targeting for a line item + ExternalAuctionLineItem: + description: A Retail Media Auction Line Item used to hold bid settings for + one or many promoted products on a single retailer example: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - scope: unknown + bidStrategy: conversion + budgetRemaining: 7.061401241503109 + endDate: 2000-01-23 + campaignId: campaignId + targetBid: 5.637376656633329 + createdAt: 2000-01-23T04:56:07.000+00:00 + budgetSpent: 2.3021358869347655 + maxBid: 0.8008281904610115 + name: name + isAutoDailyPacing: false + targetRetailerId: targetRetailerId + dailyPacing: 5.962133916683182 + startDate: 2000-01-23 + monthlyPacing: 1.4658129805029452 + budget: 6.027456183070403 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - scope: - description: Scope of the add to basket target + name: + maxLength: 255 + minLength: 0 + type: string + x-nullable: false + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" + type: string + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + nullable: true + type: string + maxBid: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + budget: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + monthlyPacing: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + dailyPacing: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + bidStrategy: + default: conversion enum: - unknown - - include - - exclude + - conversion + - clicks + - revenue type: string x-nullable: false - productIds: - description: Product ids that add to basket should target - items: - type: string - x-nullable: false - type: array + targetRetailerId: + format: long-id + type: string x-nullable: false - categoryIds: - description: Category ids that add to basket should target - items: - type: string - x-nullable: false - type: array + status: + enum: + - unknown + - active + - scheduled + - draft + - paused + - budgetHit + - ended + - archived + - noFunds + type: string + x-nullable: false + targetBid: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + isAutoDailyPacing: + default: false + type: boolean + x-nullable: false + campaignId: + format: long-id + type: string + x-nullable: false + budgetSpent: + format: double + type: number + x-nullable: false + budgetRemaining: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + createdAt: + format: date-time + type: string + x-nullable: false + updatedAt: + format: date-time + type: string x-nullable: false required: - - scope + - budgetRemaining + - campaignId + - createdAt + - name + - startDate + - targetRetailerId + - updatedAt type: object x-nullable: false - ExternalAudienceTarget202110: - description: Identifies audience targeting for a line item + ExternalKeywordTarget202110: + description: Identifies keyword targeting for a line item example: - scope: unknown - audienceIds: - - audienceIds - - audienceIds + keywords: + key: unknown properties: - scope: - description: Scope of the audience target - enum: - - unknown - - include - - exclude - type: string - x-nullable: false - audienceIds: - description: Audience ids that should be targeted - items: - format: long-id + keywords: + additionalProperties: + enum: + - unknown + - negativeExact + - negativeBroad type: string - type: array + x-nullable: false + description: Keywords that targeting specifications exist for + type: object x-nullable: false required: - - audienceIds - - scope + - keywords + type: object + x-nullable: false + ExternalBalanceCampaign202110: + description: Campaigns related to the balance type: object x-nullable: false ExternalPreferredLineItem202110: @@ -11569,112 +11684,6 @@ components: - updatedAt type: object x-nullable: false - ExternalPromotedProduct202110: - description: identifies a promoted product - example: - bidOverride: 0.8008281904610115 - properties: - bidOverride: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - type: object - x-nullable: false - ExternalBalance202110: - description: A Retail Media Balance used to determine the funds available for - any or all campaigns in an account - example: - createdAt: 2000-01-23T04:56:07.000+00:00 - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - name: name - memo: memo - poNumber: poNumber - remaining: 1.4658129805029452 - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - properties: - name: - type: string - x-nullable: false - poNumber: - type: string - x-nullable: false - memo: - type: string - x-nullable: false - deposited: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - spent: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - remaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - status: - enum: - - unknown - - scheduled - - active - - ended - type: string - x-nullable: false - createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false - required: - - createdAt - - deposited - - endDate - - memo - - name - - poNumber - - remaining - - spent - - startDate - - status - - updatedAt - type: object - x-nullable: false - ExternalBalanceCampaign202110: - description: Campaigns related to the balance - type: object - x-nullable: false LineItemBidMultipliers: description: Data model representing bid multipliers on a line item example: @@ -11721,76 +11730,133 @@ components: x-nullable: false type: object x-nullable: false - CampaignV202301: - description: A Retail Media Campaign used to represent an advertiser's marketing - objective + ExternalPromotedProduct202110: + description: identifies a promoted product + example: + bidOverride: 0.8008281904610115 + properties: + bidOverride: + format: decimal + nullable: true + required: + - "false" + type: number + x-nullable: true + type: object + x-nullable: false + ExternalAddToBasketTarget202110: + description: Identifies add to basket targeting for a line item + example: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + scope: unknown + properties: + scope: + description: Scope of the add to basket target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + productIds: + description: Product ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + categoryIds: + description: Category ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - scope + type: object + x-nullable: false + ExternalAudienceTarget202110: + description: Identifies audience targeting for a line item + example: + scope: unknown + audienceIds: + - audienceIds + - audienceIds + properties: + scope: + description: Scope of the audience target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + audienceIds: + description: Audience ids that should be targeted + items: + format: long-id + type: string + type: array + x-nullable: false + required: + - audienceIds + - scope + type: object + x-nullable: false + ExternalStoreTarget202110: + description: Identifies store targeting for a line item + example: + scope: unknown + storeIds: + - storeIds + - storeIds + properties: + scope: + description: Scope of the store target + enum: + - unknown + - include + - exclude + type: string + x-nullable: false + storeIds: + description: Store ids that should be targeted + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - scope + - storeIds + type: object + x-nullable: false + CampaignAttributesV202301: + description: An object that represents the available options to set when creating + a Retail Media Campaign example: - budgetRemaining: 6.027456183070403 clickAttributionWindow: 30D endDate: 2000-01-23T04:56:07.000+00:00 drawableBalanceIds: - drawableBalanceIds - drawableBalanceIds type: auction - accountId: accountId - createdAt: 2000-01-23T04:56:07.000+00:00 clickAttributionScope: unknown - budgetSpent: 0.8008281904610115 viewAttributionScope: unknown - promotedBrandIds: - - promotedBrandIds - - promotedBrandIds viewAttributionWindow: None name: name isAutoDailyPacing: true - dailyPacing: 5.637376656633329 - monthlyPacing: 5.962133916683182 + dailyPacing: 1.4658129805029452 + monthlyPacing: 6.027456183070403 startDate: 2000-01-23T04:56:07.000+00:00 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - budget: 1.4658129805029452 + budget: 0.8008281904610115 properties: - accountId: - format: long-id - type: string - x-nullable: false - promotedBrandIds: - items: - format: long-id - type: string - type: array - x-nullable: false - budgetSpent: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - budgetRemaining: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - status: - enum: - - unknown - - active - - inactive - - scheduled - - ended - type: string - x-nullable: false - createdAt: - format: date-time - type: string - x-nullable: false - updatedAt: - format: date-time - type: string - x-nullable: false type: default: auction enum: @@ -11883,27 +11949,20 @@ components: type: string x-nullable: true required: - - accountId - - budgetRemaining - - budgetSpent - - createdAt - endDate - isAutoDailyPacing - name - - promotedBrandIds - startDate - - updatedAt type: object x-nullable: false - ExternalAuctionLineItemCreateModel: - description: Model to create a retail media auction line item + ExternalAuctionLineItemUpdateModel: + description: Model to update a retail media auction line item example: bidStrategy: conversion endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: false - targetRetailerId: targetRetailerId + isAutoDailyPacing: true dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 @@ -11927,6 +11986,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -11941,10 +12001,6 @@ components: - noFunds type: string x-nullable: false - targetRetailerId: - format: long-id - type: string - x-nullable: false budget: format: decimal nullable: true @@ -11981,7 +12037,6 @@ components: type: number x-nullable: true isAutoDailyPacing: - default: false type: boolean x-nullable: false bidStrategy: @@ -11994,19 +12049,22 @@ components: type: string x-nullable: false required: + - isAutoDailyPacing - name - startDate - - targetRetailerId + - status + - targetBid type: object x-nullable: false - ExternalAuctionLineItemUpdateModel: - description: Model to update a retail media auction line item + ExternalAuctionLineItemCreateModel: + description: Model to create a retail media auction line item example: bidStrategy: conversion endDate: 2000-01-23 maxBid: 1.4658129805029452 name: name - isAutoDailyPacing: true + isAutoDailyPacing: false + targetRetailerId: targetRetailerId dailyPacing: 5.637376656633329 startDate: 2000-01-23 targetBid: 6.027456183070403 @@ -12030,6 +12088,7 @@ components: description: "Represents the Date as a year, month, and day in the format\ \ YYYY-MM-DD" format: date + nullable: true type: string status: enum: @@ -12044,6 +12103,10 @@ components: - noFunds type: string x-nullable: false + targetRetailerId: + format: long-id + type: string + x-nullable: false budget: format: decimal nullable: true @@ -12080,6 +12143,7 @@ components: type: number x-nullable: true isAutoDailyPacing: + default: false type: boolean x-nullable: false bidStrategy: @@ -12092,157 +12156,9 @@ components: type: string x-nullable: false required: - - isAutoDailyPacing - - name - - startDate - - status - - targetBid - type: object - x-nullable: false - ExternalStoreIdsUpdateModel202110: - description: Update model for updating store target ids - example: - storeIds: - - storeIds - - storeIds - properties: - storeIds: - description: Store ids that should be targeted - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - storeIds - type: object - x-nullable: false - ExternalAddToBasketIdsUpdateModel202110: - description: Update model for updating add to basket target ids - example: - categoryIds: - - categoryIds - - categoryIds - productIds: - - productIds - - productIds - properties: - productIds: - description: Product ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - categoryIds: - description: Category ids that add to basket should target - items: - type: string - x-nullable: false - type: array - x-nullable: false - type: object - x-nullable: false - ExternalAudienceIdsUpdateModel202110: - description: Update model for updating audience target ids - example: - audienceIds: - - audienceIds - - audienceIds - properties: - audienceIds: - description: Audience ids that should be targeted - items: - format: long-id - type: string - type: array - x-nullable: false - required: - - audienceIds - type: object - x-nullable: false - ExternalPreferredLineItemUpdateModel202110: - description: Model used to update a preferred line item - example: - pacing: accelerated - endDate: 2000-01-23 - name: name - capping: - count: 0 - type: unknown - page: - pageType: search - searchKeywords: - - searchKeywords - - searchKeywords - categories: - - includeChildren: true - categoryId: categoryId - - includeChildren: true - categoryId: categoryId - startDate: 2000-01-23 - creativeId: creativeId - status: unknown - budget: 0.8008281904610115 - properties: - name: - maxLength: 255 - minLength: 0 - type: string - x-nullable: false - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - required: - - "true" - type: string - status: - enum: - - unknown - - active - - scheduled - - draft - - paused - - budgetHit - - ended - - archived - - noFunds - type: string - x-nullable: false - pacing: - default: accelerated - enum: - - unknown - - standard - - accelerated - type: string - x-nullable: false - capping: - $ref: '#/components/schemas/ExternalLineItemCapping202110' - page: - $ref: '#/components/schemas/ExternalLineItemPage202110' - budget: - format: double - type: number - x-nullable: false - creativeId: - format: long-id - nullable: true - type: string - x-nullable: true - required: - - endDate - name - startDate - - status + - targetRetailerId type: object x-nullable: false ExternalPreferredLineItemCreateModel202110: @@ -12336,60 +12252,22 @@ components: - targetRetailerId type: object x-nullable: false - CampaignAttributesV202301: - description: An object that represents the available options to set when creating + EditableCampaignAttributesV202301: + description: An object that represents the available options to set when editing a Retail Media Campaign example: - clickAttributionWindow: 30D + clickAttributionWindow: 7D endDate: 2000-01-23T04:56:07.000+00:00 - drawableBalanceIds: - - drawableBalanceIds - - drawableBalanceIds - type: auction clickAttributionScope: unknown viewAttributionScope: unknown - viewAttributionWindow: None name: name + viewAttributionWindow: None isAutoDailyPacing: true dailyPacing: 1.4658129805029452 monthlyPacing: 6.027456183070403 startDate: 2000-01-23T04:56:07.000+00:00 budget: 0.8008281904610115 properties: - type: - default: auction - enum: - - unknown - - auction - - preferred - type: string - x-nullable: false - drawableBalanceIds: - items: - format: long-id - type: string - type: array - x-nullable: false - clickAttributionWindow: - default: 30D - enum: - - 7D - - 14D - - 30D - - unknown - type: string - x-nullable: false - viewAttributionWindow: - default: None - enum: - - None - - Unknown - - OneDay - - SevenDays - - FourteenDays - - ThirtyDays - type: string - x-nullable: false name: maxLength: 255 minLength: 0 @@ -12429,6 +12307,24 @@ components: nullable: true type: string x-nullable: true + clickAttributionWindow: + enum: + - 7D + - 14D + - 30D + - unknown + type: string + x-nullable: false + viewAttributionWindow: + enum: + - None + - Unknown + - OneDay + - SevenDays + - FourteenDays + - ThirtyDays + type: string + x-nullable: false clickAttributionScope: enum: - unknown @@ -12448,26 +12344,36 @@ components: type: string x-nullable: true required: + - clickAttributionWindow - endDate - isAutoDailyPacing - name - startDate + - viewAttributionWindow type: object x-nullable: false - EditableCampaignAttributesV202301: - description: An object that represents the available options to set when editing - a Retail Media Campaign + ExternalPreferredLineItemUpdateModel202110: + description: Model used to update a preferred line item example: - clickAttributionWindow: 7D - endDate: 2000-01-23T04:56:07.000+00:00 - clickAttributionScope: unknown - viewAttributionScope: unknown + pacing: accelerated + endDate: 2000-01-23 name: name - viewAttributionWindow: None - isAutoDailyPacing: true - dailyPacing: 1.4658129805029452 - monthlyPacing: 6.027456183070403 - startDate: 2000-01-23T04:56:07.000+00:00 + capping: + count: 0 + type: unknown + page: + pageType: search + searchKeywords: + - searchKeywords + - searchKeywords + categories: + - includeChildren: true + categoryId: categoryId + - includeChildren: true + categoryId: categoryId + startDate: 2000-01-23 + creativeId: creativeId + status: unknown budget: 0.8008281904610115 properties: name: @@ -12475,83 +12381,121 @@ components: minLength: 0 type: string x-nullable: false - budget: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - monthlyPacing: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - dailyPacing: - format: decimal - nullable: true - required: - - "false" - type: number - x-nullable: true - isAutoDailyPacing: - type: boolean - x-nullable: false startDate: - format: date-time - nullable: true + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" type: string - x-nullable: true endDate: - format: date-time - nullable: true + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + required: + - "true" type: string - x-nullable: true - clickAttributionWindow: + status: enum: - - 7D - - 14D - - 30D - unknown + - active + - scheduled + - draft + - paused + - budgetHit + - ended + - archived + - noFunds type: string x-nullable: false - viewAttributionWindow: - enum: - - None - - Unknown - - OneDay - - SevenDays - - FourteenDays - - ThirtyDays - type: string - x-nullable: false - clickAttributionScope: + pacing: + default: accelerated enum: - unknown - - sameSku - - sameSkuCategory - - sameSkuCategoryBrand - nullable: true + - standard + - accelerated type: string - x-nullable: true - viewAttributionScope: - enum: - - unknown - - sameSku - - sameSkuCategory - - sameSkuCategoryBrand + x-nullable: false + capping: + $ref: '#/components/schemas/ExternalLineItemCapping202110' + page: + $ref: '#/components/schemas/ExternalLineItemPage202110' + budget: + format: double + type: number + x-nullable: false + creativeId: + format: long-id nullable: true type: string x-nullable: true required: - - clickAttributionWindow - endDate - - isAutoDailyPacing - name - startDate - - viewAttributionWindow + - status + type: object + x-nullable: false + ExternalAddToBasketIdsUpdateModel202110: + description: Update model for updating add to basket target ids + example: + categoryIds: + - categoryIds + - categoryIds + productIds: + - productIds + - productIds + properties: + productIds: + description: Product ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + categoryIds: + description: Category ids that add to basket should target + items: + type: string + x-nullable: false + type: array + x-nullable: false + type: object + x-nullable: false + ExternalAudienceIdsUpdateModel202110: + description: Update model for updating audience target ids + example: + audienceIds: + - audienceIds + - audienceIds + properties: + audienceIds: + description: Audience ids that should be targeted + items: + format: long-id + type: string + type: array + x-nullable: false + required: + - audienceIds + type: object + x-nullable: false + ExternalStoreIdsUpdateModel202110: + description: Update model for updating store target ids + example: + storeIds: + - storeIds + - storeIds + properties: + storeIds: + description: Store ids that should be targeted + items: + type: string + x-nullable: false + type: array + x-nullable: false + required: + - storeIds type: object x-nullable: false ExternalLineItemCapping202110: diff --git a/sdks/retailmedia_2023-07/build.gradle b/sdks/retailmedia_2023-07/build.gradle index ecb73307..8af0e9a5 100644 --- a/sdks/retailmedia_2023-07/build.gradle +++ b/sdks/retailmedia_2023-07/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '2023.07.0.230728' +version = '2023.07.0.230831' repositories { jcenter() @@ -75,7 +75,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '2023.07.0.230728' + version '2023.07.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_2023-07/docs/AnalyticsApi.md b/sdks/retailmedia_2023-07/docs/AnalyticsApi.md index 830fe12b..fbbecdfc 100644 --- a/sdks/retailmedia_2023-07/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2023-07/docs/AnalyticsApi.md @@ -4,20 +4,20 @@ All URIs are relative to *https://api.criteo.com* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**generateCampaignReports**](AnalyticsApi.md#generateCampaignReports) | **POST** /2023-07/retail-media/reports/campaigns | | -| [**generateLineItemsReports**](AnalyticsApi.md#generateLineItemsReports) | **POST** /2023-07/retail-media/reports/line-items | | +| [**generateAsyncCampaignReport**](AnalyticsApi.md#generateAsyncCampaignReport) | **POST** /2023-07/retail-media/reports/campaigns | | +| [**generateAsyncLineItemsReport**](AnalyticsApi.md#generateAsyncLineItemsReport) | **POST** /2023-07/retail-media/reports/line-items | | | [**getAsyncExportOutput**](AnalyticsApi.md#getAsyncExportOutput) | **GET** /2023-07/retail-media/reports/{reportId}/output | | | [**getAsyncExportStatus**](AnalyticsApi.md#getAsyncExportStatus) | **GET** /2023-07/retail-media/reports/{reportId}/status | | -## generateCampaignReports +## generateAsyncCampaignReport -> ReportResponse generateCampaignReports(campaignReportRequest) +> AsyncReportResponse generateAsyncCampaignReport(asyncCampaignReportRequest) -Return a Campaign Report +Return an async Campaign Report ### Example @@ -58,12 +58,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); - CampaignReportRequest campaignReportRequest = new CampaignReportRequest(); // CampaignReportRequest | + AsyncCampaignReportRequest asyncCampaignReportRequest = new AsyncCampaignReportRequest(); // AsyncCampaignReportRequest | try { - ReportResponse result = apiInstance.generateCampaignReports(campaignReportRequest); + AsyncReportResponse result = apiInstance.generateAsyncCampaignReport(asyncCampaignReportRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AnalyticsApi#generateCampaignReports"); + System.err.println("Exception when calling AnalyticsApi#generateAsyncCampaignReport"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -78,11 +78,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **campaignReportRequest** | [**CampaignReportRequest**](CampaignReportRequest.md)| | | +| **asyncCampaignReportRequest** | [**AsyncCampaignReportRequest**](AsyncCampaignReportRequest.md)| | | ### Return type -[**ReportResponse**](ReportResponse.md) +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -90,7 +90,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json, text/json, application/*+json +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json @@ -102,13 +102,13 @@ public class Example { | **403** | Forbidden | - | -## generateLineItemsReports +## generateAsyncLineItemsReport -> ReportResponse generateLineItemsReports(lineItemReportRequest) +> AsyncReportResponse generateAsyncLineItemsReport(asyncLineItemReportRequest) -Return a Line Item Report +Return an async Line Item Report ### Example @@ -149,12 +149,12 @@ public class Example { // oauth.setAccessToken("YOUR ACCESS TOKEN"); AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); - LineItemReportRequest lineItemReportRequest = new LineItemReportRequest(); // LineItemReportRequest | + AsyncLineItemReportRequest asyncLineItemReportRequest = new AsyncLineItemReportRequest(); // AsyncLineItemReportRequest | try { - ReportResponse result = apiInstance.generateLineItemsReports(lineItemReportRequest); + AsyncReportResponse result = apiInstance.generateAsyncLineItemsReport(asyncLineItemReportRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AnalyticsApi#generateLineItemsReports"); + System.err.println("Exception when calling AnalyticsApi#generateAsyncLineItemsReport"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -169,11 +169,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **lineItemReportRequest** | [**LineItemReportRequest**](LineItemReportRequest.md)| | | +| **asyncLineItemReportRequest** | [**AsyncLineItemReportRequest**](AsyncLineItemReportRequest.md)| | | ### Return type -[**ReportResponse**](ReportResponse.md) +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -181,7 +181,7 @@ public class Example { ### HTTP request headers -- **Content-Type**: application/json, text/json, application/*+json +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - **Accept**: text/plain, application/json, text/json diff --git a/sdks/retailmedia_2023-07/docs/CampaignReport.md b/sdks/retailmedia_2023-07/docs/AsyncCampaignReport.md similarity index 76% rename from sdks/retailmedia_2023-07/docs/CampaignReport.md rename to sdks/retailmedia_2023-07/docs/AsyncCampaignReport.md index 91b620a2..75365fd7 100644 --- a/sdks/retailmedia_2023-07/docs/CampaignReport.md +++ b/sdks/retailmedia_2023-07/docs/AsyncCampaignReport.md @@ -1,6 +1,6 @@ -# CampaignReport +# AsyncCampaignReport Campaign report body request @@ -8,30 +8,19 @@ Campaign report body request | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**metrics** | [**List<MetricsEnum>**](#List<MetricsEnum>) | | [optional] | +|**dimensions** | [**List<DimensionsEnum>**](#List<DimensionsEnum>) | | [optional] | +|**clickAttributionWindow** | [**ClickAttributionWindowEnum**](#ClickAttributionWindowEnum) | | [optional] | +|**viewAttributionWindow** | [**ViewAttributionWindowEnum**](#ViewAttributionWindowEnum) | | [optional] | +|**startDate** | **OffsetDateTime** | | | +|**endDate** | **OffsetDateTime** | | | +|**timezone** | **String** | | [optional] | +|**campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | | [optional] | +|**salesChannel** | [**SalesChannelEnum**](#SalesChannelEnum) | | [optional] | +|**format** | [**FormatEnum**](#FormatEnum) | | [optional] | |**reportType** | [**ReportTypeEnum**](#ReportTypeEnum) | | [optional] | -|**campaignIds** | **List<String>** | List of campaign Ids to filter | [optional] | -|**metrics** | [**List<MetricsEnum>**](#List<MetricsEnum>) | List of Metrics to report on | [optional] | -|**dimensions** | [**List<DimensionsEnum>**](#List<DimensionsEnum>) | List of dimensions to report on | [optional] | -|**accountId** | **String** | Account id to report on | | -|**startDate** | **OffsetDateTime** | Start date | | -|**endDate** | **OffsetDateTime** | End Date | | -|**timezone** | **String** | Time zone : see criteo developer portal for supported time zones | [optional] | -|**clickAttributionWindow** | [**ClickAttributionWindowEnum**](#ClickAttributionWindowEnum) | Click Attribution Window | [optional] | -|**viewAttributionWindow** | [**ViewAttributionWindowEnum**](#ViewAttributionWindowEnum) | View Attribution window | [optional] | -|**campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | Filter the type of campaign to report on | [optional] | -|**salesChannel** | [**SalesChannelEnum**](#SalesChannelEnum) | Filter on the channel of sales | [optional] | - - - -## Enum: ReportTypeEnum - -| Name | Value | -|---- | -----| -| SUMMARY | "summary" | -| PAGETYPE | "pageType" | -| KEYWORD | "keyword" | -| PRODUCTCATEGORY | "productCategory" | -| PRODUCT | "product" | +|**ids** | **List<String>** | | [optional] | +|**id** | **String** | | [optional] | @@ -81,6 +70,7 @@ Campaign report body request | _7D | "7D" | | _14D | "14D" | | _30D | "30D" | +| NONE | "none" | @@ -114,3 +104,27 @@ Campaign report body request +## Enum: FormatEnum + +| Name | Value | +|---- | -----| +| JSON | "json" | +| JSON_COMPACT | "json-compact" | +| JSON_NEWLINE | "json-newline" | +| CSV | "csv" | + + + +## Enum: ReportTypeEnum + +| Name | Value | +|---- | -----| +| SUMMARY | "summary" | +| PAGETYPE | "pageType" | +| KEYWORD | "keyword" | +| PRODUCTCATEGORY | "productCategory" | +| PRODUCT | "product" | +| ATTRIBUTEDTRANSACTIONS | "attributedTransactions" | + + + diff --git a/sdks/retailmedia_2023-07/docs/CampaignReportRequest.md b/sdks/retailmedia_2023-07/docs/AsyncCampaignReportRequest.md similarity index 61% rename from sdks/retailmedia_2023-07/docs/CampaignReportRequest.md rename to sdks/retailmedia_2023-07/docs/AsyncCampaignReportRequest.md index a779d9a2..282b070a 100644 --- a/sdks/retailmedia_2023-07/docs/CampaignReportRequest.md +++ b/sdks/retailmedia_2023-07/docs/AsyncCampaignReportRequest.md @@ -1,6 +1,6 @@ -# CampaignReportRequest +# AsyncCampaignReportRequest A top-level object that encapsulates a Criteo API request for a single value @@ -8,7 +8,7 @@ A top-level object that encapsulates a Criteo API request for a single value | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**CampaignReportResource**](CampaignReportResource.md) | | [optional] | +|**data** | [**AsyncCampaignReportResource**](AsyncCampaignReportResource.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/LineItemReportResource.md b/sdks/retailmedia_2023-07/docs/AsyncCampaignReportResource.md similarity index 67% rename from sdks/retailmedia_2023-07/docs/LineItemReportResource.md rename to sdks/retailmedia_2023-07/docs/AsyncCampaignReportResource.md index 2e6a6dfa..89e1569c 100644 --- a/sdks/retailmedia_2023-07/docs/LineItemReportResource.md +++ b/sdks/retailmedia_2023-07/docs/AsyncCampaignReportResource.md @@ -1,6 +1,6 @@ -# LineItemReportResource +# AsyncCampaignReportResource A top-level object that encapsulates a Criteo API response for a single value @@ -9,7 +9,7 @@ A top-level object that encapsulates a Criteo API response for a single value | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**type** | **String** | | [optional] | -|**attributes** | [**LineItemReport**](LineItemReport.md) | | [optional] | +|**attributes** | [**AsyncCampaignReport**](AsyncCampaignReport.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/LineItemReport.md b/sdks/retailmedia_2023-07/docs/AsyncLineItemReport.md similarity index 86% rename from sdks/retailmedia_2023-07/docs/LineItemReport.md rename to sdks/retailmedia_2023-07/docs/AsyncLineItemReport.md index 4c814c60..801392f0 100644 --- a/sdks/retailmedia_2023-07/docs/LineItemReport.md +++ b/sdks/retailmedia_2023-07/docs/AsyncLineItemReport.md @@ -1,38 +1,26 @@ -# LineItemReport +# AsyncLineItemReport -Line item report body request +Line Item report body request ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**reportType** | [**ReportTypeEnum**](#ReportTypeEnum) | | [optional] | -|**lineItemIds** | **List<String>** | | [optional] | -|**campaignIds** | **List<String>** | | [optional] | |**metrics** | [**List<MetricsEnum>**](#List<MetricsEnum>) | | [optional] | -|**dimensions** | [**List<DimensionsEnum>**](#List<DimensionsEnum>) | List of dimensions to report on | [optional] | -|**accountId** | **String** | | | +|**dimensions** | [**List<DimensionsEnum>**](#List<DimensionsEnum>) | | [optional] | +|**clickAttributionWindow** | [**ClickAttributionWindowEnum**](#ClickAttributionWindowEnum) | | [optional] | +|**viewAttributionWindow** | [**ViewAttributionWindowEnum**](#ViewAttributionWindowEnum) | | [optional] | |**startDate** | **OffsetDateTime** | | | |**endDate** | **OffsetDateTime** | | | |**timezone** | **String** | | [optional] | -|**clickAttributionWindow** | [**ClickAttributionWindowEnum**](#ClickAttributionWindowEnum) | | [optional] | -|**viewAttributionWindow** | [**ViewAttributionWindowEnum**](#ViewAttributionWindowEnum) | | [optional] | |**campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | | [optional] | |**salesChannel** | [**SalesChannelEnum**](#SalesChannelEnum) | | [optional] | - - - -## Enum: ReportTypeEnum - -| Name | Value | -|---- | -----| -| SUMMARY | "summary" | -| PAGETYPE | "pageType" | -| KEYWORD | "keyword" | -| PRODUCTCATEGORY | "productCategory" | -| PRODUCT | "product" | +|**format** | [**FormatEnum**](#FormatEnum) | | [optional] | +|**reportType** | [**ReportTypeEnum**](#ReportTypeEnum) | | [optional] | +|**ids** | **List<String>** | | [optional] | +|**id** | **String** | | [optional] | @@ -121,3 +109,27 @@ Line item report body request +## Enum: FormatEnum + +| Name | Value | +|---- | -----| +| JSON | "json" | +| JSON_COMPACT | "json-compact" | +| JSON_NEWLINE | "json-newline" | +| CSV | "csv" | + + + +## Enum: ReportTypeEnum + +| Name | Value | +|---- | -----| +| SUMMARY | "summary" | +| PAGETYPE | "pageType" | +| KEYWORD | "keyword" | +| PRODUCTCATEGORY | "productCategory" | +| PRODUCT | "product" | +| ATTRIBUTEDTRANSACTIONS | "attributedTransactions" | + + + diff --git a/sdks/retailmedia_2023-07/docs/LineItemReportRequest.md b/sdks/retailmedia_2023-07/docs/AsyncLineItemReportRequest.md similarity index 61% rename from sdks/retailmedia_2023-07/docs/LineItemReportRequest.md rename to sdks/retailmedia_2023-07/docs/AsyncLineItemReportRequest.md index f3f9d80b..16925b31 100644 --- a/sdks/retailmedia_2023-07/docs/LineItemReportRequest.md +++ b/sdks/retailmedia_2023-07/docs/AsyncLineItemReportRequest.md @@ -1,6 +1,6 @@ -# LineItemReportRequest +# AsyncLineItemReportRequest A top-level object that encapsulates a Criteo API request for a single value @@ -8,7 +8,7 @@ A top-level object that encapsulates a Criteo API request for a single value | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**data** | [**LineItemReportResource**](LineItemReportResource.md) | | [optional] | +|**data** | [**AsyncLineItemReportResource**](AsyncLineItemReportResource.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/ReportDataResponseResource.md b/sdks/retailmedia_2023-07/docs/AsyncLineItemReportResource.md similarity index 67% rename from sdks/retailmedia_2023-07/docs/ReportDataResponseResource.md rename to sdks/retailmedia_2023-07/docs/AsyncLineItemReportResource.md index d286ede1..25732a81 100644 --- a/sdks/retailmedia_2023-07/docs/ReportDataResponseResource.md +++ b/sdks/retailmedia_2023-07/docs/AsyncLineItemReportResource.md @@ -1,6 +1,6 @@ -# ReportDataResponseResource +# AsyncLineItemReportResource A top-level object that encapsulates a Criteo API response for a single value @@ -9,7 +9,7 @@ A top-level object that encapsulates a Criteo API response for a single value | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**type** | **String** | | [optional] | -|**attributes** | **List<List<Object>>** | | [optional] | +|**attributes** | [**AsyncLineItemReport**](AsyncLineItemReport.md) | | [optional] | diff --git a/sdks/retailmedia_2023-07/docs/ExportReportColumn.md b/sdks/retailmedia_2023-07/docs/ExportReportColumn.md deleted file mode 100644 index 2ce35d0b..00000000 --- a/sdks/retailmedia_2023-07/docs/ExportReportColumn.md +++ /dev/null @@ -1,48 +0,0 @@ - - -# ExportReportColumn - -Description of a column from an async report request - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name of the exported column | | -|**title** | **String** | Title of the exported column | [optional] | -|**description** | **String** | Description of the exported column | [optional] | -|**type** | [**TypeEnum**](#TypeEnum) | Type of the column | | -|**role** | [**RoleEnum**](#RoleEnum) | Role of the colummn | | -|**timezone** | **String** | Timezone of the column | [optional] | -|**duration** | **String** | Duration of the column | [optional] | -|**currency** | **String** | Currency of the column | [optional] | -|**deprecated** | **Boolean** | Flag for deprecated column | [optional] | - - - -## Enum: TypeEnum - -| Name | Value | -|---- | -----| -| BOOLEAN | "Boolean" | -| NUMBER | "Number" | -| MONEY | "Money" | -| STRING | "String" | -| DATE | "Date" | -| DATETIME | "DateTime" | -| INTERVAL | "Interval" | -| DURATION | "Duration" | - - - -## Enum: RoleEnum - -| Name | Value | -|---- | -----| -| DIMENSION | "Dimension" | -| PROPERTY | "Property" | -| INTERVAL | "Interval" | -| METRIC | "Metric" | - - - diff --git a/sdks/retailmedia_2023-07/docs/ExportReportMetaData.md b/sdks/retailmedia_2023-07/docs/ExportReportMetaData.md deleted file mode 100644 index 8f864706..00000000 --- a/sdks/retailmedia_2023-07/docs/ExportReportMetaData.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# ExportReportMetaData - -Metadata for an async report request: descriptions of the columns and number of rows returned - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**columns** | [**List<ExportReportColumn>**](ExportReportColumn.md) | | [optional] | -|**rows** | **Integer** | | [optional] | - - - diff --git a/sdks/retailmedia_2023-07/pom.xml b/sdks/retailmedia_2023-07/pom.xml index 347b318f..f6c3a7ec 100644 --- a/sdks/retailmedia_2023-07/pom.xml +++ b/sdks/retailmedia_2023-07/pom.xml @@ -5,7 +5,7 @@ criteo-api-retailmedia-sdk jar criteo-api-retailmedia-sdk - 2023.07.0.230728 + 2023.07.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API retailmedia for 2023_07 version diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClient.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClient.java index 0ef3ae48..4d55cea3 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClient.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/ApiClient.java @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2023.07.0.230728/java"); + setUserAgent("OpenAPI-Generator/2023.07.0.230831/java"); authentications = new HashMap(); } diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/JSON.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/JSON.java index d27e3827..47ce23dc 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/JSON.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/JSON.java @@ -102,6 +102,12 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Asset.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AssetResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AssetResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignReport.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignReportRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignReportResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemReport.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemReportRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemReportResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AsyncReportResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AuctionLineItemCreateModelRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.AuctionLineItemPagedListResponse.CustomTypeAdapterFactory()); @@ -114,9 +120,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.BalanceCampaign202110ListRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.BalanceCampaign202110PagedListResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CampaignAttributesV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CampaignReport.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CampaignReportRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CampaignReportResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CampaignV202301.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Category202204.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.Category202204ListResponse.CustomTypeAdapterFactory()); @@ -149,8 +152,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CreativeUpdateModel202207.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.CustomerListDetails.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.EditableCampaignAttributesV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExportReportColumn.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExportReportMetaData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAccount.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAddToBasketIdsUpdateModel202110.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ExternalAddToBasketTarget202110.CustomTypeAdapterFactory()); @@ -204,9 +205,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.LineItemBidMultipliers.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.LineItemBidMultipliersRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.LineItemBidMultipliersResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.LineItemReport.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.LineItemReportRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.LineItemReportResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PageMetadata.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PageTypeEnvironment.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PostCampaignV202301.CustomTypeAdapterFactory()); @@ -218,9 +216,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PromotedProduct202110ListRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PromotedProduct202110PagedListResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.PutCampaignV202301.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ReportDataResponseResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ReportOutcome.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ReportResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfAuctionLineItem.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfAuctionLineItemUpdateModel.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.v2023_07.model.ResourceOfBalance202110.CustomTypeAdapterFactory()); diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AnalyticsApi.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AnalyticsApi.java index 04865630..c4e81726 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AnalyticsApi.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/api/AnalyticsApi.java @@ -27,11 +27,10 @@ import java.io.IOException; +import com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignReportRequest; +import com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemReportRequest; import com.criteo.api.retailmedia.v2023_07.model.AsyncReportResponse; -import com.criteo.api.retailmedia.v2023_07.model.CampaignReportRequest; -import com.criteo.api.retailmedia.v2023_07.model.LineItemReportRequest; import com.criteo.api.retailmedia.v2023_07.model.ReportOutcome; -import com.criteo.api.retailmedia.v2023_07.model.ReportResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -78,8 +77,8 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for generateCampaignReports - * @param campaignReportRequest (required) + * Build call for generateAsyncCampaignReport + * @param asyncCampaignReportRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -91,7 +90,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 403 Forbidden - */ - public okhttp3.Call generateCampaignReportsCall(CampaignReportRequest campaignReportRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateAsyncCampaignReportCall(AsyncCampaignReportRequest asyncCampaignReportRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -105,7 +104,7 @@ public okhttp3.Call generateCampaignReportsCall(CampaignReportRequest campaignRe basePath = null; } - Object localVarPostBody = campaignReportRequest; + Object localVarPostBody = asyncCampaignReportRequest; // create path and map variables String localVarPath = "/2023-07/retail-media/reports/campaigns"; @@ -127,6 +126,7 @@ public okhttp3.Call generateCampaignReportsCall(CampaignReportRequest campaignRe } final String[] localVarContentTypes = { + "application/json-patch+json", "application/json", "text/json", "application/*+json" @@ -141,21 +141,21 @@ public okhttp3.Call generateCampaignReportsCall(CampaignReportRequest campaignRe } @SuppressWarnings("rawtypes") - private okhttp3.Call generateCampaignReportsValidateBeforeCall(CampaignReportRequest campaignReportRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'campaignReportRequest' is set - if (campaignReportRequest == null) { - throw new ApiException("Missing the required parameter 'campaignReportRequest' when calling generateCampaignReports(Async)"); + private okhttp3.Call generateAsyncCampaignReportValidateBeforeCall(AsyncCampaignReportRequest asyncCampaignReportRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'asyncCampaignReportRequest' is set + if (asyncCampaignReportRequest == null) { + throw new ApiException("Missing the required parameter 'asyncCampaignReportRequest' when calling generateAsyncCampaignReport(Async)"); } - return generateCampaignReportsCall(campaignReportRequest, _callback); + return generateAsyncCampaignReportCall(asyncCampaignReportRequest, _callback); } /** * - * Return a Campaign Report - * @param campaignReportRequest (required) - * @return ReportResponse + * Return an async Campaign Report + * @param asyncCampaignReportRequest (required) + * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -165,16 +165,16 @@ private okhttp3.Call generateCampaignReportsValidateBeforeCall(CampaignReportReq
403 Forbidden -
*/ - public ReportResponse generateCampaignReports(CampaignReportRequest campaignReportRequest) throws ApiException { - ApiResponse localVarResp = generateCampaignReportsWithHttpInfo(campaignReportRequest); + public AsyncReportResponse generateAsyncCampaignReport(AsyncCampaignReportRequest asyncCampaignReportRequest) throws ApiException { + ApiResponse localVarResp = generateAsyncCampaignReportWithHttpInfo(asyncCampaignReportRequest); return localVarResp.getData(); } /** * - * Return a Campaign Report - * @param campaignReportRequest (required) - * @return ApiResponse<ReportResponse> + * Return an async Campaign Report + * @param asyncCampaignReportRequest (required) + * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -184,16 +184,16 @@ public ReportResponse generateCampaignReports(CampaignReportRequest campaignRepo
403 Forbidden -
*/ - public ApiResponse generateCampaignReportsWithHttpInfo(CampaignReportRequest campaignReportRequest) throws ApiException { - okhttp3.Call localVarCall = generateCampaignReportsValidateBeforeCall(campaignReportRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse generateAsyncCampaignReportWithHttpInfo(AsyncCampaignReportRequest asyncCampaignReportRequest) throws ApiException { + okhttp3.Call localVarCall = generateAsyncCampaignReportValidateBeforeCall(asyncCampaignReportRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Return a Campaign Report - * @param campaignReportRequest (required) + * Return an async Campaign Report + * @param asyncCampaignReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -205,16 +205,16 @@ public ApiResponse generateCampaignReportsWithHttpInfo(CampaignR 403 Forbidden - */ - public okhttp3.Call generateCampaignReportsAsync(CampaignReportRequest campaignReportRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateAsyncCampaignReportAsync(AsyncCampaignReportRequest asyncCampaignReportRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = generateCampaignReportsValidateBeforeCall(campaignReportRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = generateAsyncCampaignReportValidateBeforeCall(asyncCampaignReportRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for generateLineItemsReports - * @param lineItemReportRequest (required) + * Build call for generateAsyncLineItemsReport + * @param asyncLineItemReportRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -226,7 +226,7 @@ public okhttp3.Call generateCampaignReportsAsync(CampaignReportRequest campaignR 403 Forbidden - */ - public okhttp3.Call generateLineItemsReportsCall(LineItemReportRequest lineItemReportRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateAsyncLineItemsReportCall(AsyncLineItemReportRequest asyncLineItemReportRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -240,7 +240,7 @@ public okhttp3.Call generateLineItemsReportsCall(LineItemReportRequest lineItemR basePath = null; } - Object localVarPostBody = lineItemReportRequest; + Object localVarPostBody = asyncLineItemReportRequest; // create path and map variables String localVarPath = "/2023-07/retail-media/reports/line-items"; @@ -262,6 +262,7 @@ public okhttp3.Call generateLineItemsReportsCall(LineItemReportRequest lineItemR } final String[] localVarContentTypes = { + "application/json-patch+json", "application/json", "text/json", "application/*+json" @@ -276,21 +277,21 @@ public okhttp3.Call generateLineItemsReportsCall(LineItemReportRequest lineItemR } @SuppressWarnings("rawtypes") - private okhttp3.Call generateLineItemsReportsValidateBeforeCall(LineItemReportRequest lineItemReportRequest, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'lineItemReportRequest' is set - if (lineItemReportRequest == null) { - throw new ApiException("Missing the required parameter 'lineItemReportRequest' when calling generateLineItemsReports(Async)"); + private okhttp3.Call generateAsyncLineItemsReportValidateBeforeCall(AsyncLineItemReportRequest asyncLineItemReportRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'asyncLineItemReportRequest' is set + if (asyncLineItemReportRequest == null) { + throw new ApiException("Missing the required parameter 'asyncLineItemReportRequest' when calling generateAsyncLineItemsReport(Async)"); } - return generateLineItemsReportsCall(lineItemReportRequest, _callback); + return generateAsyncLineItemsReportCall(asyncLineItemReportRequest, _callback); } /** * - * Return a Line Item Report - * @param lineItemReportRequest (required) - * @return ReportResponse + * Return an async Line Item Report + * @param asyncLineItemReportRequest (required) + * @return AsyncReportResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -300,16 +301,16 @@ private okhttp3.Call generateLineItemsReportsValidateBeforeCall(LineItemReportRe
403 Forbidden -
*/ - public ReportResponse generateLineItemsReports(LineItemReportRequest lineItemReportRequest) throws ApiException { - ApiResponse localVarResp = generateLineItemsReportsWithHttpInfo(lineItemReportRequest); + public AsyncReportResponse generateAsyncLineItemsReport(AsyncLineItemReportRequest asyncLineItemReportRequest) throws ApiException { + ApiResponse localVarResp = generateAsyncLineItemsReportWithHttpInfo(asyncLineItemReportRequest); return localVarResp.getData(); } /** * - * Return a Line Item Report - * @param lineItemReportRequest (required) - * @return ApiResponse<ReportResponse> + * Return an async Line Item Report + * @param asyncLineItemReportRequest (required) + * @return ApiResponse<AsyncReportResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -319,16 +320,16 @@ public ReportResponse generateLineItemsReports(LineItemReportRequest lineItemRep
403 Forbidden -
*/ - public ApiResponse generateLineItemsReportsWithHttpInfo(LineItemReportRequest lineItemReportRequest) throws ApiException { - okhttp3.Call localVarCall = generateLineItemsReportsValidateBeforeCall(lineItemReportRequest, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse generateAsyncLineItemsReportWithHttpInfo(AsyncLineItemReportRequest asyncLineItemReportRequest) throws ApiException { + okhttp3.Call localVarCall = generateAsyncLineItemsReportValidateBeforeCall(asyncLineItemReportRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * Return a Line Item Report - * @param lineItemReportRequest (required) + * Return an async Line Item Report + * @param asyncLineItemReportRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -340,10 +341,10 @@ public ApiResponse generateLineItemsReportsWithHttpInfo(LineItem 403 Forbidden - */ - public okhttp3.Call generateLineItemsReportsAsync(LineItemReportRequest lineItemReportRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateAsyncLineItemsReportAsync(AsyncLineItemReportRequest asyncLineItemReportRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = generateLineItemsReportsValidateBeforeCall(lineItemReportRequest, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = generateAsyncLineItemsReportValidateBeforeCall(asyncLineItemReportRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModel.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModel.java index e835cb31..9af3aed7 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModel.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResource.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResource.java index 58e8fb07..7527b54d 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResource.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResponse.java index da6f3806..1fb4f4b5 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ApplicationSummaryModelResponse.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Asset.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Asset.java index d0952cc9..fbe767e0 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Asset.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/Asset.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, asset.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(fileExtension, fileLocation, id, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResource.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResource.java index aa260bee..37075f32 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResource.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResource.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, assetResource.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResponse.java index fa1ae03c..3832533f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResponse.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AssetResponse.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, assetResponse.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReport.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReport.java similarity index 75% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReport.java rename to sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReport.java index 0ca22e07..cbe4f48f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReport.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReport.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; @@ -50,68 +51,7 @@ * Campaign report body request */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CampaignReport { - /** - * Gets or Sets reportType - */ - @JsonAdapter(ReportTypeEnum.Adapter.class) - public enum ReportTypeEnum { - SUMMARY("summary"), - - PAGETYPE("pageType"), - - KEYWORD("keyword"), - - PRODUCTCATEGORY("productCategory"), - - PRODUCT("product"); - - private String value; - - ReportTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static ReportTypeEnum fromValue(String value) { - for (ReportTypeEnum b : ReportTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final ReportTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public ReportTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return ReportTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_REPORT_TYPE = "reportType"; - @SerializedName(SERIALIZED_NAME_REPORT_TYPE) - private ReportTypeEnum reportType; - - public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; - @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = null; - +public class AsyncCampaignReport { /** * Gets or Sets metrics */ @@ -256,24 +196,8 @@ public DimensionsEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_DIMENSIONS) private List dimensions = null; - public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; - @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private String accountId; - - public static final String SERIALIZED_NAME_START_DATE = "startDate"; - @SerializedName(SERIALIZED_NAME_START_DATE) - private OffsetDateTime startDate; - - public static final String SERIALIZED_NAME_END_DATE = "endDate"; - @SerializedName(SERIALIZED_NAME_END_DATE) - private OffsetDateTime endDate; - - public static final String SERIALIZED_NAME_TIMEZONE = "timezone"; - @SerializedName(SERIALIZED_NAME_TIMEZONE) - private String timezone = "UTC"; - /** - * Click Attribution Window + * Gets or Sets clickAttributionWindow */ @JsonAdapter(ClickAttributionWindowEnum.Adapter.class) public enum ClickAttributionWindowEnum { @@ -281,7 +205,9 @@ public enum ClickAttributionWindowEnum { _14D("14D"), - _30D("30D"); + _30D("30D"), + + NONE("none"); private String value; @@ -304,7 +230,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -323,10 +249,10 @@ public ClickAttributionWindowEnum read(final JsonReader jsonReader) throws IOExc public static final String SERIALIZED_NAME_CLICK_ATTRIBUTION_WINDOW = "clickAttributionWindow"; @SerializedName(SERIALIZED_NAME_CLICK_ATTRIBUTION_WINDOW) - private ClickAttributionWindowEnum clickAttributionWindow = ClickAttributionWindowEnum._7D; + private ClickAttributionWindowEnum clickAttributionWindow; /** - * View Attribution window + * Gets or Sets viewAttributionWindow */ @JsonAdapter(ViewAttributionWindowEnum.Adapter.class) public enum ViewAttributionWindowEnum { @@ -361,7 +287,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -380,10 +306,22 @@ public ViewAttributionWindowEnum read(final JsonReader jsonReader) throws IOExce public static final String SERIALIZED_NAME_VIEW_ATTRIBUTION_WINDOW = "viewAttributionWindow"; @SerializedName(SERIALIZED_NAME_VIEW_ATTRIBUTION_WINDOW) - private ViewAttributionWindowEnum viewAttributionWindow = ViewAttributionWindowEnum.NONE; + private ViewAttributionWindowEnum viewAttributionWindow; + + public static final String SERIALIZED_NAME_START_DATE = "startDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private OffsetDateTime startDate; + + public static final String SERIALIZED_NAME_END_DATE = "endDate"; + @SerializedName(SERIALIZED_NAME_END_DATE) + private OffsetDateTime endDate; + + public static final String SERIALIZED_NAME_TIMEZONE = "timezone"; + @SerializedName(SERIALIZED_NAME_TIMEZONE) + private String timezone; /** - * Filter the type of campaign to report on + * Gets or Sets campaignType */ @JsonAdapter(CampaignTypeEnum.Adapter.class) public enum CampaignTypeEnum { @@ -412,7 +350,7 @@ public static CampaignTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -434,7 +372,7 @@ public CampaignTypeEnum read(final JsonReader jsonReader) throws IOException { private CampaignTypeEnum campaignType; /** - * Filter on the channel of sales + * Gets or Sets salesChannel */ @JsonAdapter(SalesChannelEnum.Adapter.class) public enum SalesChannelEnum { @@ -463,7 +401,7 @@ public static SalesChannelEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -484,77 +422,147 @@ public SalesChannelEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_SALES_CHANNEL) private SalesChannelEnum salesChannel; - public CampaignReport() { - } - - public CampaignReport reportType(ReportTypeEnum reportType) { + /** + * Gets or Sets format + */ + @JsonAdapter(FormatEnum.Adapter.class) + public enum FormatEnum { + JSON("json"), - this.reportType = reportType; - return this; - } + JSON_COMPACT("json-compact"), + + JSON_NEWLINE("json-newline"), + + CSV("csv"); - /** - * Get reportType - * @return reportType - **/ - @javax.annotation.Nullable + private String value; - public ReportTypeEnum getReportType() { - return reportType; - } + FormatEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } - public void setReportType(ReportTypeEnum reportType) { - this.reportType = reportType; + @Override + public String toString() { + return String.valueOf(value); + } + + public static FormatEnum fromValue(String value) { + for (FormatEnum b : FormatEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final FormatEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public FormatEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return FormatEnum.fromValue(value); + } + } } + public static final String SERIALIZED_NAME_FORMAT = "format"; + @SerializedName(SERIALIZED_NAME_FORMAT) + private FormatEnum format; - public CampaignReport campaignIds(List campaignIds) { + /** + * Gets or Sets reportType + */ + @JsonAdapter(ReportTypeEnum.Adapter.class) + public enum ReportTypeEnum { + SUMMARY("summary"), - this.campaignIds = campaignIds; - return this; - } + PAGETYPE("pageType"), + + KEYWORD("keyword"), + + PRODUCTCATEGORY("productCategory"), + + PRODUCT("product"), + + ATTRIBUTEDTRANSACTIONS("attributedTransactions"); - public CampaignReport addCampaignIdsItem(String campaignIdsItem) { - if (this.campaignIds == null) { - this.campaignIds = new ArrayList<>(); + private String value; + + ReportTypeEnum(String value) { + this.value = value; } - this.campaignIds.add(campaignIdsItem); - return this; - } - /** - * List of campaign Ids to filter - * @return campaignIds - **/ - @javax.annotation.Nullable + public String getValue() { + return value; + } - public List getCampaignIds() { - return campaignIds; - } + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportTypeEnum fromValue(String value) { + for (ReportTypeEnum b : ReportTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } - public void setCampaignIds(List campaignIds) { - this.campaignIds = campaignIds; + @Override + public ReportTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportTypeEnum.fromValue(value); + } + } } + public static final String SERIALIZED_NAME_REPORT_TYPE = "reportType"; + @SerializedName(SERIALIZED_NAME_REPORT_TYPE) + private ReportTypeEnum reportType; - public CampaignReport metrics(List metrics) { + public static final String SERIALIZED_NAME_IDS = "ids"; + @SerializedName(SERIALIZED_NAME_IDS) + private List ids = null; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public AsyncCampaignReport() { + } + + public AsyncCampaignReport metrics(List metrics) { this.metrics = metrics; return this; } - public CampaignReport addMetricsItem(MetricsEnum metricsItem) { + public AsyncCampaignReport addMetricsItem(MetricsEnum metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList<>(); + this.metrics = null; } this.metrics.add(metricsItem); return this; } /** - * List of Metrics to report on + * Get metrics * @return metrics **/ @javax.annotation.Nullable @@ -569,22 +577,22 @@ public void setMetrics(List metrics) { } - public CampaignReport dimensions(List dimensions) { + public AsyncCampaignReport dimensions(List dimensions) { this.dimensions = dimensions; return this; } - public CampaignReport addDimensionsItem(DimensionsEnum dimensionsItem) { + public AsyncCampaignReport addDimensionsItem(DimensionsEnum dimensionsItem) { if (this.dimensions == null) { - this.dimensions = new ArrayList<>(); + this.dimensions = null; } this.dimensions.add(dimensionsItem); return this; } /** - * List of dimensions to report on + * Get dimensions * @return dimensions **/ @javax.annotation.Nullable @@ -599,36 +607,58 @@ public void setDimensions(List dimensions) { } - public CampaignReport accountId(String accountId) { + public AsyncCampaignReport clickAttributionWindow(ClickAttributionWindowEnum clickAttributionWindow) { - this.accountId = accountId; + this.clickAttributionWindow = clickAttributionWindow; return this; } /** - * Account id to report on - * @return accountId + * Get clickAttributionWindow + * @return clickAttributionWindow **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable + + public ClickAttributionWindowEnum getClickAttributionWindow() { + return clickAttributionWindow; + } + + + public void setClickAttributionWindow(ClickAttributionWindowEnum clickAttributionWindow) { + this.clickAttributionWindow = clickAttributionWindow; + } + + + public AsyncCampaignReport viewAttributionWindow(ViewAttributionWindowEnum viewAttributionWindow) { + + this.viewAttributionWindow = viewAttributionWindow; + return this; + } - public String getAccountId() { - return accountId; + /** + * Get viewAttributionWindow + * @return viewAttributionWindow + **/ + @javax.annotation.Nullable + + public ViewAttributionWindowEnum getViewAttributionWindow() { + return viewAttributionWindow; } - public void setAccountId(String accountId) { - this.accountId = accountId; + public void setViewAttributionWindow(ViewAttributionWindowEnum viewAttributionWindow) { + this.viewAttributionWindow = viewAttributionWindow; } - public CampaignReport startDate(OffsetDateTime startDate) { + public AsyncCampaignReport startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } /** - * Start date + * Get startDate * @return startDate **/ @javax.annotation.Nonnull @@ -643,14 +673,14 @@ public void setStartDate(OffsetDateTime startDate) { } - public CampaignReport endDate(OffsetDateTime endDate) { + public AsyncCampaignReport endDate(OffsetDateTime endDate) { this.endDate = endDate; return this; } /** - * End Date + * Get endDate * @return endDate **/ @javax.annotation.Nonnull @@ -665,14 +695,14 @@ public void setEndDate(OffsetDateTime endDate) { } - public CampaignReport timezone(String timezone) { + public AsyncCampaignReport timezone(String timezone) { this.timezone = timezone; return this; } /** - * Time zone : see criteo developer portal for supported time zones + * Get timezone * @return timezone **/ @javax.annotation.Nullable @@ -687,91 +717,143 @@ public void setTimezone(String timezone) { } - public CampaignReport clickAttributionWindow(ClickAttributionWindowEnum clickAttributionWindow) { + public AsyncCampaignReport campaignType(CampaignTypeEnum campaignType) { - this.clickAttributionWindow = clickAttributionWindow; + this.campaignType = campaignType; return this; } /** - * Click Attribution Window - * @return clickAttributionWindow + * Get campaignType + * @return campaignType **/ @javax.annotation.Nullable - public ClickAttributionWindowEnum getClickAttributionWindow() { - return clickAttributionWindow; + public CampaignTypeEnum getCampaignType() { + return campaignType; } - public void setClickAttributionWindow(ClickAttributionWindowEnum clickAttributionWindow) { - this.clickAttributionWindow = clickAttributionWindow; + public void setCampaignType(CampaignTypeEnum campaignType) { + this.campaignType = campaignType; } - public CampaignReport viewAttributionWindow(ViewAttributionWindowEnum viewAttributionWindow) { + public AsyncCampaignReport salesChannel(SalesChannelEnum salesChannel) { - this.viewAttributionWindow = viewAttributionWindow; + this.salesChannel = salesChannel; return this; } /** - * View Attribution window - * @return viewAttributionWindow + * Get salesChannel + * @return salesChannel **/ @javax.annotation.Nullable - public ViewAttributionWindowEnum getViewAttributionWindow() { - return viewAttributionWindow; + public SalesChannelEnum getSalesChannel() { + return salesChannel; } - public void setViewAttributionWindow(ViewAttributionWindowEnum viewAttributionWindow) { - this.viewAttributionWindow = viewAttributionWindow; + public void setSalesChannel(SalesChannelEnum salesChannel) { + this.salesChannel = salesChannel; } - public CampaignReport campaignType(CampaignTypeEnum campaignType) { + public AsyncCampaignReport format(FormatEnum format) { - this.campaignType = campaignType; + this.format = format; return this; } /** - * Filter the type of campaign to report on - * @return campaignType + * Get format + * @return format **/ @javax.annotation.Nullable - public CampaignTypeEnum getCampaignType() { - return campaignType; + public FormatEnum getFormat() { + return format; } - public void setCampaignType(CampaignTypeEnum campaignType) { - this.campaignType = campaignType; + public void setFormat(FormatEnum format) { + this.format = format; } - public CampaignReport salesChannel(SalesChannelEnum salesChannel) { + public AsyncCampaignReport reportType(ReportTypeEnum reportType) { - this.salesChannel = salesChannel; + this.reportType = reportType; return this; } /** - * Filter on the channel of sales - * @return salesChannel + * Get reportType + * @return reportType **/ @javax.annotation.Nullable - public SalesChannelEnum getSalesChannel() { - return salesChannel; + public ReportTypeEnum getReportType() { + return reportType; } - public void setSalesChannel(SalesChannelEnum salesChannel) { - this.salesChannel = salesChannel; + public void setReportType(ReportTypeEnum reportType) { + this.reportType = reportType; + } + + + public AsyncCampaignReport ids(List ids) { + + this.ids = ids; + return this; + } + + public AsyncCampaignReport addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = null; + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + **/ + @javax.annotation.Nullable + + public List getIds() { + return ids; + } + + + public void setIds(List ids) { + this.ids = ids; + } + + + public AsyncCampaignReport id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; } /** @@ -787,9 +869,9 @@ public void setSalesChannel(SalesChannelEnum salesChannel) { * * @param key name of the property * @param value value of the property - * @return the CampaignReport instance itself + * @return the AsyncCampaignReport instance itself */ - public CampaignReport putAdditionalProperty(String key, Object value) { + public AsyncCampaignReport putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -828,43 +910,56 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CampaignReport campaignReport = (CampaignReport) o; - return Objects.equals(this.reportType, campaignReport.reportType) && - Objects.equals(this.campaignIds, campaignReport.campaignIds) && - Objects.equals(this.metrics, campaignReport.metrics) && - Objects.equals(this.dimensions, campaignReport.dimensions) && - Objects.equals(this.accountId, campaignReport.accountId) && - Objects.equals(this.startDate, campaignReport.startDate) && - Objects.equals(this.endDate, campaignReport.endDate) && - Objects.equals(this.timezone, campaignReport.timezone) && - Objects.equals(this.clickAttributionWindow, campaignReport.clickAttributionWindow) && - Objects.equals(this.viewAttributionWindow, campaignReport.viewAttributionWindow) && - Objects.equals(this.campaignType, campaignReport.campaignType) && - Objects.equals(this.salesChannel, campaignReport.salesChannel)&& - Objects.equals(this.additionalProperties, campaignReport.additionalProperties); + AsyncCampaignReport asyncCampaignReport = (AsyncCampaignReport) o; + return Objects.equals(this.metrics, asyncCampaignReport.metrics) && + Objects.equals(this.dimensions, asyncCampaignReport.dimensions) && + Objects.equals(this.clickAttributionWindow, asyncCampaignReport.clickAttributionWindow) && + Objects.equals(this.viewAttributionWindow, asyncCampaignReport.viewAttributionWindow) && + Objects.equals(this.startDate, asyncCampaignReport.startDate) && + Objects.equals(this.endDate, asyncCampaignReport.endDate) && + Objects.equals(this.timezone, asyncCampaignReport.timezone) && + Objects.equals(this.campaignType, asyncCampaignReport.campaignType) && + Objects.equals(this.salesChannel, asyncCampaignReport.salesChannel) && + Objects.equals(this.format, asyncCampaignReport.format) && + Objects.equals(this.reportType, asyncCampaignReport.reportType) && + Objects.equals(this.ids, asyncCampaignReport.ids) && + Objects.equals(this.id, asyncCampaignReport.id)&& + Objects.equals(this.additionalProperties, asyncCampaignReport.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(reportType, campaignIds, metrics, dimensions, accountId, startDate, endDate, timezone, clickAttributionWindow, viewAttributionWindow, campaignType, salesChannel, additionalProperties); + return Objects.hash(metrics, dimensions, clickAttributionWindow, viewAttributionWindow, startDate, endDate, timezone, campaignType, salesChannel, format, reportType, ids, id, 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(); - sb.append("class CampaignReport {\n"); - sb.append(" reportType: ").append(toIndentedString(reportType)).append("\n"); - sb.append(" campaignIds: ").append(toIndentedString(campaignIds)).append("\n"); + sb.append("class AsyncCampaignReport {\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append(" dimensions: ").append(toIndentedString(dimensions)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" clickAttributionWindow: ").append(toIndentedString(clickAttributionWindow)).append("\n"); + sb.append(" viewAttributionWindow: ").append(toIndentedString(viewAttributionWindow)).append("\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); - sb.append(" clickAttributionWindow: ").append(toIndentedString(clickAttributionWindow)).append("\n"); - sb.append(" viewAttributionWindow: ").append(toIndentedString(viewAttributionWindow)).append("\n"); sb.append(" campaignType: ").append(toIndentedString(campaignType)).append("\n"); sb.append(" salesChannel: ").append(toIndentedString(salesChannel)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" reportType: ").append(toIndentedString(reportType)).append("\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -888,22 +983,22 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("reportType"); - openapiFields.add("campaignIds"); openapiFields.add("metrics"); openapiFields.add("dimensions"); - openapiFields.add("accountId"); + openapiFields.add("clickAttributionWindow"); + openapiFields.add("viewAttributionWindow"); openapiFields.add("startDate"); openapiFields.add("endDate"); openapiFields.add("timezone"); - openapiFields.add("clickAttributionWindow"); - openapiFields.add("viewAttributionWindow"); openapiFields.add("campaignType"); openapiFields.add("salesChannel"); + openapiFields.add("format"); + openapiFields.add("reportType"); + openapiFields.add("ids"); + openapiFields.add("id"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("accountId"); openapiRequiredFields.add("startDate"); openapiRequiredFields.add("endDate"); } @@ -912,28 +1007,21 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CampaignReport + * @throws IOException if the JSON Object is invalid with respect to AsyncCampaignReport */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CampaignReport.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignReport is not found in the empty JSON string", CampaignReport.openapiRequiredFields.toString())); + if (!AsyncCampaignReport.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncCampaignReport is not found in the empty JSON string", AsyncCampaignReport.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : CampaignReport.openapiRequiredFields) { + for (String requiredField : AsyncCampaignReport.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if ((jsonObj.get("reportType") != null && !jsonObj.get("reportType").isJsonNull()) && !jsonObj.get("reportType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `reportType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reportType").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("campaignIds") != null && !jsonObj.get("campaignIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `campaignIds` to be an array in the JSON string but got `%s`", jsonObj.get("campaignIds").toString())); - } // ensure the optional json data is an array if present if (jsonObj.get("metrics") != null && !jsonObj.get("metrics").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `metrics` to be an array in the JSON string but got `%s`", jsonObj.get("metrics").toString())); @@ -942,40 +1030,50 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj.get("dimensions") != null && !jsonObj.get("dimensions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `dimensions` to be an array in the JSON string but got `%s`", jsonObj.get("dimensions").toString())); } - if (!jsonObj.get("accountId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `accountId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountId").toString())); - } - if ((jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonNull()) && !jsonObj.get("timezone").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); - } if ((jsonObj.get("clickAttributionWindow") != null && !jsonObj.get("clickAttributionWindow").isJsonNull()) && !jsonObj.get("clickAttributionWindow").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `clickAttributionWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clickAttributionWindow").toString())); } if ((jsonObj.get("viewAttributionWindow") != null && !jsonObj.get("viewAttributionWindow").isJsonNull()) && !jsonObj.get("viewAttributionWindow").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `viewAttributionWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("viewAttributionWindow").toString())); } + if ((jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonNull()) && !jsonObj.get("timezone").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); + } if ((jsonObj.get("campaignType") != null && !jsonObj.get("campaignType").isJsonNull()) && !jsonObj.get("campaignType").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `campaignType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("campaignType").toString())); } if ((jsonObj.get("salesChannel") != null && !jsonObj.get("salesChannel").isJsonNull()) && !jsonObj.get("salesChannel").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `salesChannel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("salesChannel").toString())); } + if ((jsonObj.get("format") != null && !jsonObj.get("format").isJsonNull()) && !jsonObj.get("format").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `format` to be a primitive type in the JSON string but got `%s`", jsonObj.get("format").toString())); + } + if ((jsonObj.get("reportType") != null && !jsonObj.get("reportType").isJsonNull()) && !jsonObj.get("reportType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reportType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reportType").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("ids") != null && !jsonObj.get("ids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ids` to be an array in the JSON string but got `%s`", jsonObj.get("ids").toString())); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CampaignReport.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CampaignReport' and its subtypes + if (!AsyncCampaignReport.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AsyncCampaignReport' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CampaignReport.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AsyncCampaignReport.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CampaignReport value) throws IOException { + public void write(JsonWriter out, AsyncCampaignReport value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -998,11 +1096,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CampaignReport read(JsonReader in) throws IOException { + public AsyncCampaignReport read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CampaignReport instance = thisAdapter.fromJsonTree(jsonObj); + AsyncCampaignReport instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -1029,18 +1127,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CampaignReport given an JSON string + * Create an instance of AsyncCampaignReport given an JSON string * * @param jsonString JSON string - * @return An instance of CampaignReport - * @throws IOException if the JSON string is invalid with respect to CampaignReport + * @return An instance of AsyncCampaignReport + * @throws IOException if the JSON string is invalid with respect to AsyncCampaignReport */ - public static CampaignReport fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CampaignReport.class); + public static AsyncCampaignReport fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AsyncCampaignReport.class); } /** - * Convert an instance of CampaignReport to an JSON string + * Convert an instance of AsyncCampaignReport to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReportRequest.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReportRequest.java similarity index 77% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReportRequest.java rename to sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReportRequest.java index e279ee3f..6e9e13e1 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReportRequest.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReportRequest.java @@ -15,7 +15,7 @@ import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CampaignReportResource; +import com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignReportResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,15 +48,15 @@ * A top-level object that encapsulates a Criteo API request for a single value */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CampaignReportRequest { +public class AsyncCampaignReportRequest { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private CampaignReportResource data; + private AsyncCampaignReportResource data; - public CampaignReportRequest() { + public AsyncCampaignReportRequest() { } - public CampaignReportRequest data(CampaignReportResource data) { + public AsyncCampaignReportRequest data(AsyncCampaignReportResource data) { this.data = data; return this; @@ -68,12 +68,12 @@ public CampaignReportRequest data(CampaignReportResource data) { **/ @javax.annotation.Nullable - public CampaignReportResource getData() { + public AsyncCampaignReportResource getData() { return data; } - public void setData(CampaignReportResource data) { + public void setData(AsyncCampaignReportResource data) { this.data = data; } @@ -90,9 +90,9 @@ public void setData(CampaignReportResource data) { * * @param key name of the property * @param value value of the property - * @return the CampaignReportRequest instance itself + * @return the AsyncCampaignReportRequest instance itself */ - public CampaignReportRequest putAdditionalProperty(String key, Object value) { + public AsyncCampaignReportRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CampaignReportRequest campaignReportRequest = (CampaignReportRequest) o; - return Objects.equals(this.data, campaignReportRequest.data)&& - Objects.equals(this.additionalProperties, campaignReportRequest.additionalProperties); + AsyncCampaignReportRequest asyncCampaignReportRequest = (AsyncCampaignReportRequest) o; + return Objects.equals(this.data, asyncCampaignReportRequest.data)&& + Objects.equals(this.additionalProperties, asyncCampaignReportRequest.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CampaignReportRequest {\n"); + sb.append("class AsyncCampaignReportRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -179,17 +179,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CampaignReportRequest + * @throws IOException if the JSON Object is invalid with respect to AsyncCampaignReportRequest */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CampaignReportRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignReportRequest is not found in the empty JSON string", CampaignReportRequest.openapiRequiredFields.toString())); + if (!AsyncCampaignReportRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncCampaignReportRequest is not found in the empty JSON string", AsyncCampaignReportRequest.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - CampaignReportResource.validateJsonObject(jsonObj.getAsJsonObject("data")); + AsyncCampaignReportResource.validateJsonObject(jsonObj.getAsJsonObject("data")); } } @@ -197,16 +197,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CampaignReportRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CampaignReportRequest' and its subtypes + if (!AsyncCampaignReportRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AsyncCampaignReportRequest' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CampaignReportRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AsyncCampaignReportRequest.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CampaignReportRequest value) throws IOException { + public void write(JsonWriter out, AsyncCampaignReportRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -229,11 +229,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CampaignReportRequest read(JsonReader in) throws IOException { + public AsyncCampaignReportRequest read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CampaignReportRequest instance = thisAdapter.fromJsonTree(jsonObj); + AsyncCampaignReportRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -260,18 +260,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CampaignReportRequest given an JSON string + * Create an instance of AsyncCampaignReportRequest given an JSON string * * @param jsonString JSON string - * @return An instance of CampaignReportRequest - * @throws IOException if the JSON string is invalid with respect to CampaignReportRequest + * @return An instance of AsyncCampaignReportRequest + * @throws IOException if the JSON string is invalid with respect to AsyncCampaignReportRequest */ - public static CampaignReportRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CampaignReportRequest.class); + public static AsyncCampaignReportRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AsyncCampaignReportRequest.class); } /** - * Convert an instance of CampaignReportRequest to an JSON string + * Convert an instance of AsyncCampaignReportRequest to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReportResource.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReportResource.java similarity index 75% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReportResource.java rename to sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReportResource.java index 0dee4b5b..9cb3dd44 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReportResource.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncCampaignReportResource.java @@ -15,13 +15,14 @@ import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.LineItemReport; +import com.criteo.api.retailmedia.v2023_07.model.AsyncCampaignReport; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; 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; @@ -48,19 +49,19 @@ * A top-level object that encapsulates a Criteo API response for a single value */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class LineItemReportResource { +public class AsyncCampaignReportResource { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private LineItemReport attributes; + private AsyncCampaignReport attributes; - public LineItemReportResource() { + public AsyncCampaignReportResource() { } - public LineItemReportResource type(String type) { + public AsyncCampaignReportResource type(String type) { this.type = type; return this; @@ -82,7 +83,7 @@ public void setType(String type) { } - public LineItemReportResource attributes(LineItemReport attributes) { + public AsyncCampaignReportResource attributes(AsyncCampaignReport attributes) { this.attributes = attributes; return this; @@ -94,12 +95,12 @@ public LineItemReportResource attributes(LineItemReport attributes) { **/ @javax.annotation.Nullable - public LineItemReport getAttributes() { + public AsyncCampaignReport getAttributes() { return attributes; } - public void setAttributes(LineItemReport attributes) { + public void setAttributes(AsyncCampaignReport attributes) { this.attributes = attributes; } @@ -116,9 +117,9 @@ public void setAttributes(LineItemReport attributes) { * * @param key name of the property * @param value value of the property - * @return the LineItemReportResource instance itself + * @return the AsyncCampaignReportResource instance itself */ - public LineItemReportResource putAdditionalProperty(String key, Object value) { + public AsyncCampaignReportResource putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -157,10 +158,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LineItemReportResource lineItemReportResource = (LineItemReportResource) o; - return Objects.equals(this.type, lineItemReportResource.type) && - Objects.equals(this.attributes, lineItemReportResource.attributes)&& - Objects.equals(this.additionalProperties, lineItemReportResource.additionalProperties); + AsyncCampaignReportResource asyncCampaignReportResource = (AsyncCampaignReportResource) o; + return Objects.equals(this.type, asyncCampaignReportResource.type) && + Objects.equals(this.attributes, asyncCampaignReportResource.attributes)&& + Objects.equals(this.additionalProperties, asyncCampaignReportResource.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 @@ -168,10 +173,17 @@ 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(); - sb.append("class LineItemReportResource {\n"); + sb.append("class AsyncCampaignReportResource {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -208,12 +220,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to LineItemReportResource + * @throws IOException if the JSON Object is invalid with respect to AsyncCampaignReportResource */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!LineItemReportResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LineItemReportResource is not found in the empty JSON string", LineItemReportResource.openapiRequiredFields.toString())); + if (!AsyncCampaignReportResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncCampaignReportResource is not found in the empty JSON string", AsyncCampaignReportResource.openapiRequiredFields.toString())); } } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { @@ -221,7 +233,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - LineItemReport.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + AsyncCampaignReport.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } } @@ -229,16 +241,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!LineItemReportResource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LineItemReportResource' and its subtypes + if (!AsyncCampaignReportResource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AsyncCampaignReportResource' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(LineItemReportResource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AsyncCampaignReportResource.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, LineItemReportResource value) throws IOException { + public void write(JsonWriter out, AsyncCampaignReportResource value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -261,11 +273,11 @@ else if (entry.getValue() instanceof Character) } @Override - public LineItemReportResource read(JsonReader in) throws IOException { + public AsyncCampaignReportResource read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - LineItemReportResource instance = thisAdapter.fromJsonTree(jsonObj); + AsyncCampaignReportResource instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -292,18 +304,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of LineItemReportResource given an JSON string + * Create an instance of AsyncCampaignReportResource given an JSON string * * @param jsonString JSON string - * @return An instance of LineItemReportResource - * @throws IOException if the JSON string is invalid with respect to LineItemReportResource + * @return An instance of AsyncCampaignReportResource + * @throws IOException if the JSON string is invalid with respect to AsyncCampaignReportResource */ - public static LineItemReportResource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, LineItemReportResource.class); + public static AsyncCampaignReportResource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AsyncCampaignReportResource.class); } /** - * Convert an instance of LineItemReportResource to an JSON string + * Convert an instance of AsyncCampaignReportResource to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReport.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReport.java similarity index 77% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReport.java rename to sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReport.java index 2636ed82..29f1892c 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReport.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReport.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; @@ -47,75 +48,10 @@ import com.criteo.api.retailmedia.v2023_07.JSON; /** - * Line item report body request + * Line Item report body request */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class LineItemReport { - /** - * Gets or Sets reportType - */ - @JsonAdapter(ReportTypeEnum.Adapter.class) - public enum ReportTypeEnum { - SUMMARY("summary"), - - PAGETYPE("pageType"), - - KEYWORD("keyword"), - - PRODUCTCATEGORY("productCategory"), - - PRODUCT("product"); - - private String value; - - ReportTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static ReportTypeEnum fromValue(String value) { - for (ReportTypeEnum b : ReportTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final ReportTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public ReportTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return ReportTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_REPORT_TYPE = "reportType"; - @SerializedName(SERIALIZED_NAME_REPORT_TYPE) - private ReportTypeEnum reportType; - - public static final String SERIALIZED_NAME_LINE_ITEM_IDS = "lineItemIds"; - @SerializedName(SERIALIZED_NAME_LINE_ITEM_IDS) - private List lineItemIds = null; - - public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; - @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = null; - +public class AsyncLineItemReport { /** * Gets or Sets metrics */ @@ -270,22 +206,6 @@ public DimensionsEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_DIMENSIONS) private List dimensions = null; - public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; - @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private String accountId; - - public static final String SERIALIZED_NAME_START_DATE = "startDate"; - @SerializedName(SERIALIZED_NAME_START_DATE) - private OffsetDateTime startDate; - - public static final String SERIALIZED_NAME_END_DATE = "endDate"; - @SerializedName(SERIALIZED_NAME_END_DATE) - private OffsetDateTime endDate; - - public static final String SERIALIZED_NAME_TIMEZONE = "timezone"; - @SerializedName(SERIALIZED_NAME_TIMEZONE) - private String timezone; - /** * Gets or Sets clickAttributionWindow */ @@ -320,7 +240,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -377,7 +297,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -398,6 +318,18 @@ public ViewAttributionWindowEnum read(final JsonReader jsonReader) throws IOExce @SerializedName(SERIALIZED_NAME_VIEW_ATTRIBUTION_WINDOW) private ViewAttributionWindowEnum viewAttributionWindow; + public static final String SERIALIZED_NAME_START_DATE = "startDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private OffsetDateTime startDate; + + public static final String SERIALIZED_NAME_END_DATE = "endDate"; + @SerializedName(SERIALIZED_NAME_END_DATE) + private OffsetDateTime endDate; + + public static final String SERIALIZED_NAME_TIMEZONE = "timezone"; + @SerializedName(SERIALIZED_NAME_TIMEZONE) + private String timezone; + /** * Gets or Sets campaignType */ @@ -428,7 +360,7 @@ public static CampaignTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -479,7 +411,7 @@ public static SalesChannelEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -500,100 +432,140 @@ public SalesChannelEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_SALES_CHANNEL) private SalesChannelEnum salesChannel; - public LineItemReport() { - } - - public LineItemReport reportType(ReportTypeEnum reportType) { + /** + * Gets or Sets format + */ + @JsonAdapter(FormatEnum.Adapter.class) + public enum FormatEnum { + JSON("json"), - this.reportType = reportType; - return this; - } + JSON_COMPACT("json-compact"), + + JSON_NEWLINE("json-newline"), + + CSV("csv"); - /** - * Get reportType - * @return reportType - **/ - @javax.annotation.Nullable + private String value; - public ReportTypeEnum getReportType() { - return reportType; - } + FormatEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } - public void setReportType(ReportTypeEnum reportType) { - this.reportType = reportType; - } + @Override + public String toString() { + return String.valueOf(value); + } + public static FormatEnum fromValue(String value) { + for (FormatEnum b : FormatEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } - public LineItemReport lineItemIds(List lineItemIds) { - - this.lineItemIds = lineItemIds; - return this; - } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final FormatEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } - public LineItemReport addLineItemIdsItem(String lineItemIdsItem) { - if (this.lineItemIds == null) { - this.lineItemIds = new ArrayList<>(); + @Override + public FormatEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return FormatEnum.fromValue(value); + } } - this.lineItemIds.add(lineItemIdsItem); - return this; } - /** - * Get lineItemIds - * @return lineItemIds - **/ - @javax.annotation.Nullable + public static final String SERIALIZED_NAME_FORMAT = "format"; + @SerializedName(SERIALIZED_NAME_FORMAT) + private FormatEnum format; - public List getLineItemIds() { - return lineItemIds; - } + /** + * Gets or Sets reportType + */ + @JsonAdapter(ReportTypeEnum.Adapter.class) + public enum ReportTypeEnum { + SUMMARY("summary"), + + PAGETYPE("pageType"), + + KEYWORD("keyword"), + + PRODUCTCATEGORY("productCategory"), + + PRODUCT("product"), + + ATTRIBUTEDTRANSACTIONS("attributedTransactions"); + private String value; - public void setLineItemIds(List lineItemIds) { - this.lineItemIds = lineItemIds; - } + ReportTypeEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } - public LineItemReport campaignIds(List campaignIds) { - - this.campaignIds = campaignIds; - return this; - } + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReportTypeEnum fromValue(String value) { + for (ReportTypeEnum b : ReportTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } - public LineItemReport addCampaignIdsItem(String campaignIdsItem) { - if (this.campaignIds == null) { - this.campaignIds = new ArrayList<>(); + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReportTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReportTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReportTypeEnum.fromValue(value); + } } - this.campaignIds.add(campaignIdsItem); - return this; } - /** - * Get campaignIds - * @return campaignIds - **/ - @javax.annotation.Nullable + public static final String SERIALIZED_NAME_REPORT_TYPE = "reportType"; + @SerializedName(SERIALIZED_NAME_REPORT_TYPE) + private ReportTypeEnum reportType; - public List getCampaignIds() { - return campaignIds; - } + public static final String SERIALIZED_NAME_IDS = "ids"; + @SerializedName(SERIALIZED_NAME_IDS) + private List ids = null; + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; - public void setCampaignIds(List campaignIds) { - this.campaignIds = campaignIds; + public AsyncLineItemReport() { } - - public LineItemReport metrics(List metrics) { + public AsyncLineItemReport metrics(List metrics) { this.metrics = metrics; return this; } - public LineItemReport addMetricsItem(MetricsEnum metricsItem) { + public AsyncLineItemReport addMetricsItem(MetricsEnum metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList<>(); + this.metrics = null; } this.metrics.add(metricsItem); return this; @@ -615,22 +587,22 @@ public void setMetrics(List metrics) { } - public LineItemReport dimensions(List dimensions) { + public AsyncLineItemReport dimensions(List dimensions) { this.dimensions = dimensions; return this; } - public LineItemReport addDimensionsItem(DimensionsEnum dimensionsItem) { + public AsyncLineItemReport addDimensionsItem(DimensionsEnum dimensionsItem) { if (this.dimensions == null) { - this.dimensions = new ArrayList<>(); + this.dimensions = null; } this.dimensions.add(dimensionsItem); return this; } /** - * List of dimensions to report on + * Get dimensions * @return dimensions **/ @javax.annotation.Nullable @@ -645,29 +617,51 @@ public void setDimensions(List dimensions) { } - public LineItemReport accountId(String accountId) { + public AsyncLineItemReport clickAttributionWindow(ClickAttributionWindowEnum clickAttributionWindow) { - this.accountId = accountId; + this.clickAttributionWindow = clickAttributionWindow; return this; } /** - * Get accountId - * @return accountId + * Get clickAttributionWindow + * @return clickAttributionWindow **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable + + public ClickAttributionWindowEnum getClickAttributionWindow() { + return clickAttributionWindow; + } + + + public void setClickAttributionWindow(ClickAttributionWindowEnum clickAttributionWindow) { + this.clickAttributionWindow = clickAttributionWindow; + } + + + public AsyncLineItemReport viewAttributionWindow(ViewAttributionWindowEnum viewAttributionWindow) { + + this.viewAttributionWindow = viewAttributionWindow; + return this; + } + + /** + * Get viewAttributionWindow + * @return viewAttributionWindow + **/ + @javax.annotation.Nullable - public String getAccountId() { - return accountId; + public ViewAttributionWindowEnum getViewAttributionWindow() { + return viewAttributionWindow; } - public void setAccountId(String accountId) { - this.accountId = accountId; + public void setViewAttributionWindow(ViewAttributionWindowEnum viewAttributionWindow) { + this.viewAttributionWindow = viewAttributionWindow; } - public LineItemReport startDate(OffsetDateTime startDate) { + public AsyncLineItemReport startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; @@ -689,7 +683,7 @@ public void setStartDate(OffsetDateTime startDate) { } - public LineItemReport endDate(OffsetDateTime endDate) { + public AsyncLineItemReport endDate(OffsetDateTime endDate) { this.endDate = endDate; return this; @@ -711,7 +705,7 @@ public void setEndDate(OffsetDateTime endDate) { } - public LineItemReport timezone(String timezone) { + public AsyncLineItemReport timezone(String timezone) { this.timezone = timezone; return this; @@ -733,91 +727,143 @@ public void setTimezone(String timezone) { } - public LineItemReport clickAttributionWindow(ClickAttributionWindowEnum clickAttributionWindow) { + public AsyncLineItemReport campaignType(CampaignTypeEnum campaignType) { - this.clickAttributionWindow = clickAttributionWindow; + this.campaignType = campaignType; return this; } /** - * Get clickAttributionWindow - * @return clickAttributionWindow + * Get campaignType + * @return campaignType **/ @javax.annotation.Nullable - public ClickAttributionWindowEnum getClickAttributionWindow() { - return clickAttributionWindow; + public CampaignTypeEnum getCampaignType() { + return campaignType; } - public void setClickAttributionWindow(ClickAttributionWindowEnum clickAttributionWindow) { - this.clickAttributionWindow = clickAttributionWindow; + public void setCampaignType(CampaignTypeEnum campaignType) { + this.campaignType = campaignType; } - public LineItemReport viewAttributionWindow(ViewAttributionWindowEnum viewAttributionWindow) { + public AsyncLineItemReport salesChannel(SalesChannelEnum salesChannel) { - this.viewAttributionWindow = viewAttributionWindow; + this.salesChannel = salesChannel; return this; } /** - * Get viewAttributionWindow - * @return viewAttributionWindow + * Get salesChannel + * @return salesChannel **/ @javax.annotation.Nullable - public ViewAttributionWindowEnum getViewAttributionWindow() { - return viewAttributionWindow; + public SalesChannelEnum getSalesChannel() { + return salesChannel; } - public void setViewAttributionWindow(ViewAttributionWindowEnum viewAttributionWindow) { - this.viewAttributionWindow = viewAttributionWindow; + public void setSalesChannel(SalesChannelEnum salesChannel) { + this.salesChannel = salesChannel; } - public LineItemReport campaignType(CampaignTypeEnum campaignType) { + public AsyncLineItemReport format(FormatEnum format) { - this.campaignType = campaignType; + this.format = format; return this; } /** - * Get campaignType - * @return campaignType + * Get format + * @return format **/ @javax.annotation.Nullable - public CampaignTypeEnum getCampaignType() { - return campaignType; + public FormatEnum getFormat() { + return format; } - public void setCampaignType(CampaignTypeEnum campaignType) { - this.campaignType = campaignType; + public void setFormat(FormatEnum format) { + this.format = format; } - public LineItemReport salesChannel(SalesChannelEnum salesChannel) { + public AsyncLineItemReport reportType(ReportTypeEnum reportType) { - this.salesChannel = salesChannel; + this.reportType = reportType; return this; } /** - * Get salesChannel - * @return salesChannel + * Get reportType + * @return reportType **/ @javax.annotation.Nullable - public SalesChannelEnum getSalesChannel() { - return salesChannel; + public ReportTypeEnum getReportType() { + return reportType; } - public void setSalesChannel(SalesChannelEnum salesChannel) { - this.salesChannel = salesChannel; + public void setReportType(ReportTypeEnum reportType) { + this.reportType = reportType; + } + + + public AsyncLineItemReport ids(List ids) { + + this.ids = ids; + return this; + } + + public AsyncLineItemReport addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = null; + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + **/ + @javax.annotation.Nullable + + public List getIds() { + return ids; + } + + + public void setIds(List ids) { + this.ids = ids; + } + + + public AsyncLineItemReport id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; } /** @@ -833,9 +879,9 @@ public void setSalesChannel(SalesChannelEnum salesChannel) { * * @param key name of the property * @param value value of the property - * @return the LineItemReport instance itself + * @return the AsyncLineItemReport instance itself */ - public LineItemReport putAdditionalProperty(String key, Object value) { + public AsyncLineItemReport putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -874,45 +920,56 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LineItemReport lineItemReport = (LineItemReport) o; - return Objects.equals(this.reportType, lineItemReport.reportType) && - Objects.equals(this.lineItemIds, lineItemReport.lineItemIds) && - Objects.equals(this.campaignIds, lineItemReport.campaignIds) && - Objects.equals(this.metrics, lineItemReport.metrics) && - Objects.equals(this.dimensions, lineItemReport.dimensions) && - Objects.equals(this.accountId, lineItemReport.accountId) && - Objects.equals(this.startDate, lineItemReport.startDate) && - Objects.equals(this.endDate, lineItemReport.endDate) && - Objects.equals(this.timezone, lineItemReport.timezone) && - Objects.equals(this.clickAttributionWindow, lineItemReport.clickAttributionWindow) && - Objects.equals(this.viewAttributionWindow, lineItemReport.viewAttributionWindow) && - Objects.equals(this.campaignType, lineItemReport.campaignType) && - Objects.equals(this.salesChannel, lineItemReport.salesChannel)&& - Objects.equals(this.additionalProperties, lineItemReport.additionalProperties); + AsyncLineItemReport asyncLineItemReport = (AsyncLineItemReport) o; + return Objects.equals(this.metrics, asyncLineItemReport.metrics) && + Objects.equals(this.dimensions, asyncLineItemReport.dimensions) && + Objects.equals(this.clickAttributionWindow, asyncLineItemReport.clickAttributionWindow) && + Objects.equals(this.viewAttributionWindow, asyncLineItemReport.viewAttributionWindow) && + Objects.equals(this.startDate, asyncLineItemReport.startDate) && + Objects.equals(this.endDate, asyncLineItemReport.endDate) && + Objects.equals(this.timezone, asyncLineItemReport.timezone) && + Objects.equals(this.campaignType, asyncLineItemReport.campaignType) && + Objects.equals(this.salesChannel, asyncLineItemReport.salesChannel) && + Objects.equals(this.format, asyncLineItemReport.format) && + Objects.equals(this.reportType, asyncLineItemReport.reportType) && + Objects.equals(this.ids, asyncLineItemReport.ids) && + Objects.equals(this.id, asyncLineItemReport.id)&& + Objects.equals(this.additionalProperties, asyncLineItemReport.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(reportType, lineItemIds, campaignIds, metrics, dimensions, accountId, startDate, endDate, timezone, clickAttributionWindow, viewAttributionWindow, campaignType, salesChannel, additionalProperties); + return Objects.hash(metrics, dimensions, clickAttributionWindow, viewAttributionWindow, startDate, endDate, timezone, campaignType, salesChannel, format, reportType, ids, id, 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(); - sb.append("class LineItemReport {\n"); - sb.append(" reportType: ").append(toIndentedString(reportType)).append("\n"); - sb.append(" lineItemIds: ").append(toIndentedString(lineItemIds)).append("\n"); - sb.append(" campaignIds: ").append(toIndentedString(campaignIds)).append("\n"); + sb.append("class AsyncLineItemReport {\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append(" dimensions: ").append(toIndentedString(dimensions)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" clickAttributionWindow: ").append(toIndentedString(clickAttributionWindow)).append("\n"); + sb.append(" viewAttributionWindow: ").append(toIndentedString(viewAttributionWindow)).append("\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); - sb.append(" clickAttributionWindow: ").append(toIndentedString(clickAttributionWindow)).append("\n"); - sb.append(" viewAttributionWindow: ").append(toIndentedString(viewAttributionWindow)).append("\n"); sb.append(" campaignType: ").append(toIndentedString(campaignType)).append("\n"); sb.append(" salesChannel: ").append(toIndentedString(salesChannel)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" reportType: ").append(toIndentedString(reportType)).append("\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -936,23 +993,22 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("reportType"); - openapiFields.add("lineItemIds"); - openapiFields.add("campaignIds"); openapiFields.add("metrics"); openapiFields.add("dimensions"); - openapiFields.add("accountId"); + openapiFields.add("clickAttributionWindow"); + openapiFields.add("viewAttributionWindow"); openapiFields.add("startDate"); openapiFields.add("endDate"); openapiFields.add("timezone"); - openapiFields.add("clickAttributionWindow"); - openapiFields.add("viewAttributionWindow"); openapiFields.add("campaignType"); openapiFields.add("salesChannel"); + openapiFields.add("format"); + openapiFields.add("reportType"); + openapiFields.add("ids"); + openapiFields.add("id"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("accountId"); openapiRequiredFields.add("startDate"); openapiRequiredFields.add("endDate"); } @@ -961,32 +1017,21 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to LineItemReport + * @throws IOException if the JSON Object is invalid with respect to AsyncLineItemReport */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!LineItemReport.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LineItemReport is not found in the empty JSON string", LineItemReport.openapiRequiredFields.toString())); + if (!AsyncLineItemReport.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncLineItemReport is not found in the empty JSON string", AsyncLineItemReport.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : LineItemReport.openapiRequiredFields) { + for (String requiredField : AsyncLineItemReport.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if ((jsonObj.get("reportType") != null && !jsonObj.get("reportType").isJsonNull()) && !jsonObj.get("reportType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `reportType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reportType").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("lineItemIds") != null && !jsonObj.get("lineItemIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `lineItemIds` to be an array in the JSON string but got `%s`", jsonObj.get("lineItemIds").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("campaignIds") != null && !jsonObj.get("campaignIds").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `campaignIds` to be an array in the JSON string but got `%s`", jsonObj.get("campaignIds").toString())); - } // ensure the optional json data is an array if present if (jsonObj.get("metrics") != null && !jsonObj.get("metrics").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `metrics` to be an array in the JSON string but got `%s`", jsonObj.get("metrics").toString())); @@ -995,40 +1040,50 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj.get("dimensions") != null && !jsonObj.get("dimensions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `dimensions` to be an array in the JSON string but got `%s`", jsonObj.get("dimensions").toString())); } - if (!jsonObj.get("accountId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `accountId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountId").toString())); - } - if ((jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonNull()) && !jsonObj.get("timezone").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); - } if ((jsonObj.get("clickAttributionWindow") != null && !jsonObj.get("clickAttributionWindow").isJsonNull()) && !jsonObj.get("clickAttributionWindow").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `clickAttributionWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("clickAttributionWindow").toString())); } if ((jsonObj.get("viewAttributionWindow") != null && !jsonObj.get("viewAttributionWindow").isJsonNull()) && !jsonObj.get("viewAttributionWindow").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `viewAttributionWindow` to be a primitive type in the JSON string but got `%s`", jsonObj.get("viewAttributionWindow").toString())); } + if ((jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonNull()) && !jsonObj.get("timezone").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); + } if ((jsonObj.get("campaignType") != null && !jsonObj.get("campaignType").isJsonNull()) && !jsonObj.get("campaignType").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `campaignType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("campaignType").toString())); } if ((jsonObj.get("salesChannel") != null && !jsonObj.get("salesChannel").isJsonNull()) && !jsonObj.get("salesChannel").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `salesChannel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("salesChannel").toString())); } + if ((jsonObj.get("format") != null && !jsonObj.get("format").isJsonNull()) && !jsonObj.get("format").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `format` to be a primitive type in the JSON string but got `%s`", jsonObj.get("format").toString())); + } + if ((jsonObj.get("reportType") != null && !jsonObj.get("reportType").isJsonNull()) && !jsonObj.get("reportType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reportType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reportType").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("ids") != null && !jsonObj.get("ids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ids` to be an array in the JSON string but got `%s`", jsonObj.get("ids").toString())); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!LineItemReport.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LineItemReport' and its subtypes + if (!AsyncLineItemReport.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AsyncLineItemReport' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(LineItemReport.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AsyncLineItemReport.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, LineItemReport value) throws IOException { + public void write(JsonWriter out, AsyncLineItemReport value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -1051,11 +1106,11 @@ else if (entry.getValue() instanceof Character) } @Override - public LineItemReport read(JsonReader in) throws IOException { + public AsyncLineItemReport read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - LineItemReport instance = thisAdapter.fromJsonTree(jsonObj); + AsyncLineItemReport instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -1082,18 +1137,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of LineItemReport given an JSON string + * Create an instance of AsyncLineItemReport given an JSON string * * @param jsonString JSON string - * @return An instance of LineItemReport - * @throws IOException if the JSON string is invalid with respect to LineItemReport + * @return An instance of AsyncLineItemReport + * @throws IOException if the JSON string is invalid with respect to AsyncLineItemReport */ - public static LineItemReport fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, LineItemReport.class); + public static AsyncLineItemReport fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AsyncLineItemReport.class); } /** - * Convert an instance of LineItemReport to an JSON string + * Convert an instance of AsyncLineItemReport to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReportRequest.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReportRequest.java similarity index 77% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReportRequest.java rename to sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReportRequest.java index 93b45261..2a312b89 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/LineItemReportRequest.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReportRequest.java @@ -15,7 +15,7 @@ import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.LineItemReportResource; +import com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemReportResource; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,15 +48,15 @@ * A top-level object that encapsulates a Criteo API request for a single value */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class LineItemReportRequest { +public class AsyncLineItemReportRequest { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private LineItemReportResource data; + private AsyncLineItemReportResource data; - public LineItemReportRequest() { + public AsyncLineItemReportRequest() { } - public LineItemReportRequest data(LineItemReportResource data) { + public AsyncLineItemReportRequest data(AsyncLineItemReportResource data) { this.data = data; return this; @@ -68,12 +68,12 @@ public LineItemReportRequest data(LineItemReportResource data) { **/ @javax.annotation.Nullable - public LineItemReportResource getData() { + public AsyncLineItemReportResource getData() { return data; } - public void setData(LineItemReportResource data) { + public void setData(AsyncLineItemReportResource data) { this.data = data; } @@ -90,9 +90,9 @@ public void setData(LineItemReportResource data) { * * @param key name of the property * @param value value of the property - * @return the LineItemReportRequest instance itself + * @return the AsyncLineItemReportRequest instance itself */ - public LineItemReportRequest putAdditionalProperty(String key, Object value) { + public AsyncLineItemReportRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -131,9 +131,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LineItemReportRequest lineItemReportRequest = (LineItemReportRequest) o; - return Objects.equals(this.data, lineItemReportRequest.data)&& - Objects.equals(this.additionalProperties, lineItemReportRequest.additionalProperties); + AsyncLineItemReportRequest asyncLineItemReportRequest = (AsyncLineItemReportRequest) o; + return Objects.equals(this.data, asyncLineItemReportRequest.data)&& + Objects.equals(this.additionalProperties, asyncLineItemReportRequest.additionalProperties); } @Override @@ -144,7 +144,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LineItemReportRequest {\n"); + sb.append("class AsyncLineItemReportRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -179,17 +179,17 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to LineItemReportRequest + * @throws IOException if the JSON Object is invalid with respect to AsyncLineItemReportRequest */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!LineItemReportRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in LineItemReportRequest is not found in the empty JSON string", LineItemReportRequest.openapiRequiredFields.toString())); + if (!AsyncLineItemReportRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncLineItemReportRequest is not found in the empty JSON string", AsyncLineItemReportRequest.openapiRequiredFields.toString())); } } // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - LineItemReportResource.validateJsonObject(jsonObj.getAsJsonObject("data")); + AsyncLineItemReportResource.validateJsonObject(jsonObj.getAsJsonObject("data")); } } @@ -197,16 +197,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!LineItemReportRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'LineItemReportRequest' and its subtypes + if (!AsyncLineItemReportRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AsyncLineItemReportRequest' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(LineItemReportRequest.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AsyncLineItemReportRequest.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, LineItemReportRequest value) throws IOException { + public void write(JsonWriter out, AsyncLineItemReportRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -229,11 +229,11 @@ else if (entry.getValue() instanceof Character) } @Override - public LineItemReportRequest read(JsonReader in) throws IOException { + public AsyncLineItemReportRequest read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - LineItemReportRequest instance = thisAdapter.fromJsonTree(jsonObj); + AsyncLineItemReportRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -260,18 +260,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of LineItemReportRequest given an JSON string + * Create an instance of AsyncLineItemReportRequest given an JSON string * * @param jsonString JSON string - * @return An instance of LineItemReportRequest - * @throws IOException if the JSON string is invalid with respect to LineItemReportRequest + * @return An instance of AsyncLineItemReportRequest + * @throws IOException if the JSON string is invalid with respect to AsyncLineItemReportRequest */ - public static LineItemReportRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, LineItemReportRequest.class); + public static AsyncLineItemReportRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AsyncLineItemReportRequest.class); } /** - * Convert an instance of LineItemReportRequest to an JSON string + * Convert an instance of AsyncLineItemReportRequest to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReportResource.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReportResource.java similarity index 75% rename from sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReportResource.java rename to sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReportResource.java index 7c0783f8..20eee58b 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CampaignReportResource.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncLineItemReportResource.java @@ -15,13 +15,14 @@ import java.util.Objects; import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CampaignReport; +import com.criteo.api.retailmedia.v2023_07.model.AsyncLineItemReport; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; 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; @@ -48,19 +49,19 @@ * A top-level object that encapsulates a Criteo API response for a single value */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class CampaignReportResource { +public class AsyncLineItemReportResource { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private CampaignReport attributes; + private AsyncLineItemReport attributes; - public CampaignReportResource() { + public AsyncLineItemReportResource() { } - public CampaignReportResource type(String type) { + public AsyncLineItemReportResource type(String type) { this.type = type; return this; @@ -82,7 +83,7 @@ public void setType(String type) { } - public CampaignReportResource attributes(CampaignReport attributes) { + public AsyncLineItemReportResource attributes(AsyncLineItemReport attributes) { this.attributes = attributes; return this; @@ -94,12 +95,12 @@ public CampaignReportResource attributes(CampaignReport attributes) { **/ @javax.annotation.Nullable - public CampaignReport getAttributes() { + public AsyncLineItemReport getAttributes() { return attributes; } - public void setAttributes(CampaignReport attributes) { + public void setAttributes(AsyncLineItemReport attributes) { this.attributes = attributes; } @@ -116,9 +117,9 @@ public void setAttributes(CampaignReport attributes) { * * @param key name of the property * @param value value of the property - * @return the CampaignReportResource instance itself + * @return the AsyncLineItemReportResource instance itself */ - public CampaignReportResource putAdditionalProperty(String key, Object value) { + public AsyncLineItemReportResource putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -157,10 +158,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CampaignReportResource campaignReportResource = (CampaignReportResource) o; - return Objects.equals(this.type, campaignReportResource.type) && - Objects.equals(this.attributes, campaignReportResource.attributes)&& - Objects.equals(this.additionalProperties, campaignReportResource.additionalProperties); + AsyncLineItemReportResource asyncLineItemReportResource = (AsyncLineItemReportResource) o; + return Objects.equals(this.type, asyncLineItemReportResource.type) && + Objects.equals(this.attributes, asyncLineItemReportResource.attributes)&& + Objects.equals(this.additionalProperties, asyncLineItemReportResource.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 @@ -168,10 +173,17 @@ 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(); - sb.append("class CampaignReportResource {\n"); + sb.append("class AsyncLineItemReportResource {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -208,12 +220,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to CampaignReportResource + * @throws IOException if the JSON Object is invalid with respect to AsyncLineItemReportResource */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!CampaignReportResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignReportResource is not found in the empty JSON string", CampaignReportResource.openapiRequiredFields.toString())); + if (!AsyncLineItemReportResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AsyncLineItemReportResource is not found in the empty JSON string", AsyncLineItemReportResource.openapiRequiredFields.toString())); } } if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { @@ -221,7 +233,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `attributes` if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { - CampaignReport.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + AsyncLineItemReport.validateJsonObject(jsonObj.getAsJsonObject("attributes")); } } @@ -229,16 +241,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!CampaignReportResource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CampaignReportResource' and its subtypes + if (!AsyncLineItemReportResource.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AsyncLineItemReportResource' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(CampaignReportResource.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AsyncLineItemReportResource.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, CampaignReportResource value) throws IOException { + public void write(JsonWriter out, AsyncLineItemReportResource value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additional properties @@ -261,11 +273,11 @@ else if (entry.getValue() instanceof Character) } @Override - public CampaignReportResource read(JsonReader in) throws IOException { + public AsyncLineItemReportResource read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - CampaignReportResource instance = thisAdapter.fromJsonTree(jsonObj); + AsyncLineItemReportResource instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -292,18 +304,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of CampaignReportResource given an JSON string + * Create an instance of AsyncLineItemReportResource given an JSON string * * @param jsonString JSON string - * @return An instance of CampaignReportResource - * @throws IOException if the JSON string is invalid with respect to CampaignReportResource + * @return An instance of AsyncLineItemReportResource + * @throws IOException if the JSON string is invalid with respect to AsyncLineItemReportResource */ - public static CampaignReportResource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CampaignReportResource.class); + public static AsyncLineItemReportResource fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AsyncLineItemReportResource.class); } /** - * Convert an instance of CampaignReportResource to an JSON string + * Convert an instance of AsyncLineItemReportResource to an JSON string * * @return JSON string */ diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncReportResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncReportResponse.java index a9cec9af..5cc816a3 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncReportResponse.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/AsyncReportResponse.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, asyncReportResponse.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonProblem.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonProblem.java index b8e53088..1f36c4b6 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonProblem.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonStatusCodeResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonStatusCodeResponse.java index a0a65043..2669f4fb 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonStatusCodeResponse.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CommonStatusCodeResponse.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; @@ -157,11 +158,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, commonStatusCodeResponse.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateRetailMediaAudienceAttributes.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateRetailMediaAudienceAttributes.java index 23aa8afe..d421cdef 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateRetailMediaAudienceAttributes.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateRetailMediaAudienceAttributes.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; @@ -237,7 +238,7 @@ public CreateRetailMediaAudienceAttributes brandIds(List brandIds) { public CreateRetailMediaAudienceAttributes addBrandIdsItem(Long brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new ArrayList<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -267,7 +268,7 @@ public CreateRetailMediaAudienceAttributes categoryIds(List categoryIds public CreateRetailMediaAudienceAttributes addCategoryIdsItem(Integer categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -396,11 +397,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceAttributes.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(userType, lookbackWindow, brandIds, categoryIds, retailerId, name, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateRetailMediaAudienceResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateRetailMediaAudienceResponse.java index 79061c24..60a8c2c5 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateRetailMediaAudienceResponse.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateRetailMediaAudienceResponse.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; @@ -186,11 +187,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceResponse.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateUserBehaviorSegmentV2.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateUserBehaviorSegmentV2.java index d3666049..f39e91b2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateUserBehaviorSegmentV2.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/CreateUserBehaviorSegmentV2.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; @@ -249,7 +250,7 @@ public CreateUserBehaviorSegmentV2 categoryIds(List categoryIds) { public CreateUserBehaviorSegmentV2 addCategoryIdsItem(Integer categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -279,7 +280,7 @@ public CreateUserBehaviorSegmentV2 brandIds(List brandIds) { public CreateUserBehaviorSegmentV2 addBrandIdsItem(Long brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new ArrayList<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -390,11 +391,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createUserBehaviorSegmentV2.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(userAction, lookbackWindow, categoryIds, brandIds, minPrice, maxPrice, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExportReportColumn.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExportReportColumn.java deleted file mode 100644 index 0bd25b21..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExportReportColumn.java +++ /dev/null @@ -1,653 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Description of a column from an async report request - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ExportReportColumn { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_TITLE = "title"; - @SerializedName(SERIALIZED_NAME_TITLE) - private String title; - - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - /** - * Type of the column - */ - @JsonAdapter(TypeEnum.Adapter.class) - public enum TypeEnum { - BOOLEAN("Boolean"), - - NUMBER("Number"), - - MONEY("Money"), - - STRING("String"), - - DATE("Date"), - - DATETIME("DateTime"), - - INTERVAL("Interval"), - - DURATION("Duration"); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public TypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return TypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private TypeEnum type; - - /** - * Role of the colummn - */ - @JsonAdapter(RoleEnum.Adapter.class) - public enum RoleEnum { - DIMENSION("Dimension"), - - PROPERTY("Property"), - - INTERVAL("Interval"), - - METRIC("Metric"); - - private String value; - - RoleEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static RoleEnum fromValue(String value) { - for (RoleEnum b : RoleEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final RoleEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public RoleEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return RoleEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_ROLE = "role"; - @SerializedName(SERIALIZED_NAME_ROLE) - private RoleEnum role; - - public static final String SERIALIZED_NAME_TIMEZONE = "timezone"; - @SerializedName(SERIALIZED_NAME_TIMEZONE) - private String timezone; - - public static final String SERIALIZED_NAME_DURATION = "duration"; - @SerializedName(SERIALIZED_NAME_DURATION) - private String duration; - - public static final String SERIALIZED_NAME_CURRENCY = "currency"; - @SerializedName(SERIALIZED_NAME_CURRENCY) - private String currency; - - public static final String SERIALIZED_NAME_DEPRECATED = "deprecated"; - @SerializedName(SERIALIZED_NAME_DEPRECATED) - private Boolean deprecated; - - public ExportReportColumn() { - } - - public ExportReportColumn name(String name) { - - this.name = name; - return this; - } - - /** - * Name of the exported column - * @return name - **/ - @javax.annotation.Nonnull - - public String getName() { - return name; - } - - - public void setName(String name) { - this.name = name; - } - - - public ExportReportColumn title(String title) { - - this.title = title; - return this; - } - - /** - * Title of the exported column - * @return title - **/ - @javax.annotation.Nullable - - public String getTitle() { - return title; - } - - - public void setTitle(String title) { - this.title = title; - } - - - public ExportReportColumn description(String description) { - - this.description = description; - return this; - } - - /** - * Description of the exported column - * @return description - **/ - @javax.annotation.Nullable - - public String getDescription() { - return description; - } - - - public void setDescription(String description) { - this.description = description; - } - - - public ExportReportColumn type(TypeEnum type) { - - this.type = type; - return this; - } - - /** - * Type of the column - * @return type - **/ - @javax.annotation.Nonnull - - public TypeEnum getType() { - return type; - } - - - public void setType(TypeEnum type) { - this.type = type; - } - - - public ExportReportColumn role(RoleEnum role) { - - this.role = role; - return this; - } - - /** - * Role of the colummn - * @return role - **/ - @javax.annotation.Nonnull - - public RoleEnum getRole() { - return role; - } - - - public void setRole(RoleEnum role) { - this.role = role; - } - - - public ExportReportColumn timezone(String timezone) { - - this.timezone = timezone; - return this; - } - - /** - * Timezone of the column - * @return timezone - **/ - @javax.annotation.Nullable - - public String getTimezone() { - return timezone; - } - - - public void setTimezone(String timezone) { - this.timezone = timezone; - } - - - public ExportReportColumn duration(String duration) { - - this.duration = duration; - return this; - } - - /** - * Duration of the column - * @return duration - **/ - @javax.annotation.Nullable - - public String getDuration() { - return duration; - } - - - public void setDuration(String duration) { - this.duration = duration; - } - - - public ExportReportColumn currency(String currency) { - - this.currency = currency; - return this; - } - - /** - * Currency of the column - * @return currency - **/ - @javax.annotation.Nullable - - public String getCurrency() { - return currency; - } - - - public void setCurrency(String currency) { - this.currency = currency; - } - - - public ExportReportColumn deprecated(Boolean deprecated) { - - this.deprecated = deprecated; - return this; - } - - /** - * Flag for deprecated column - * @return deprecated - **/ - @javax.annotation.Nullable - - public Boolean getDeprecated() { - return deprecated; - } - - - public void setDeprecated(Boolean deprecated) { - this.deprecated = deprecated; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ExportReportColumn instance itself - */ - public ExportReportColumn putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExportReportColumn exportReportColumn = (ExportReportColumn) o; - return Objects.equals(this.name, exportReportColumn.name) && - Objects.equals(this.title, exportReportColumn.title) && - Objects.equals(this.description, exportReportColumn.description) && - Objects.equals(this.type, exportReportColumn.type) && - Objects.equals(this.role, exportReportColumn.role) && - Objects.equals(this.timezone, exportReportColumn.timezone) && - Objects.equals(this.duration, exportReportColumn.duration) && - Objects.equals(this.currency, exportReportColumn.currency) && - Objects.equals(this.deprecated, exportReportColumn.deprecated)&& - Objects.equals(this.additionalProperties, exportReportColumn.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, title, description, type, role, timezone, duration, currency, deprecated, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExportReportColumn {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" title: ").append(toIndentedString(title)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" role: ").append(toIndentedString(role)).append("\n"); - sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); - sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); - sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append(" deprecated: ").append(toIndentedString(deprecated)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("title"); - openapiFields.add("description"); - openapiFields.add("type"); - openapiFields.add("role"); - openapiFields.add("timezone"); - openapiFields.add("duration"); - openapiFields.add("currency"); - openapiFields.add("deprecated"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("role"); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ExportReportColumn - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ExportReportColumn.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ExportReportColumn is not found in the empty JSON string", ExportReportColumn.openapiRequiredFields.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : ExportReportColumn.openapiRequiredFields) { - if (jsonObj.get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); - } - } - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if ((jsonObj.get("title") != null && !jsonObj.get("title").isJsonNull()) && !jsonObj.get("title").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `title` to be a primitive type in the JSON string but got `%s`", jsonObj.get("title").toString())); - } - if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); - } - if (!jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - if (!jsonObj.get("role").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); - } - if ((jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonNull()) && !jsonObj.get("timezone").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); - } - if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); - } - if ((jsonObj.get("currency") != null && !jsonObj.get("currency").isJsonNull()) && !jsonObj.get("currency").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `currency` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currency").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ExportReportColumn.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ExportReportColumn' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ExportReportColumn.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ExportReportColumn value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ExportReportColumn read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ExportReportColumn instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ExportReportColumn given an JSON string - * - * @param jsonString JSON string - * @return An instance of ExportReportColumn - * @throws IOException if the JSON string is invalid with respect to ExportReportColumn - */ - public static ExportReportColumn fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ExportReportColumn.class); - } - - /** - * Convert an instance of ExportReportColumn to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExportReportMetaData.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExportReportMetaData.java deleted file mode 100644 index 8cb9907c..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ExportReportMetaData.java +++ /dev/null @@ -1,331 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.ExportReportColumn; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Metadata for an async report request: descriptions of the columns and number of rows returned - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ExportReportMetaData { - public static final String SERIALIZED_NAME_COLUMNS = "columns"; - @SerializedName(SERIALIZED_NAME_COLUMNS) - private List columns = null; - - public static final String SERIALIZED_NAME_ROWS = "rows"; - @SerializedName(SERIALIZED_NAME_ROWS) - private Integer rows; - - public ExportReportMetaData() { - } - - public ExportReportMetaData columns(List columns) { - - this.columns = columns; - return this; - } - - public ExportReportMetaData addColumnsItem(ExportReportColumn columnsItem) { - if (this.columns == null) { - this.columns = new ArrayList<>(); - } - this.columns.add(columnsItem); - return this; - } - - /** - * Get columns - * @return columns - **/ - @javax.annotation.Nullable - - public List getColumns() { - return columns; - } - - - public void setColumns(List columns) { - this.columns = columns; - } - - - public ExportReportMetaData rows(Integer rows) { - - this.rows = rows; - return this; - } - - /** - * Get rows - * @return rows - **/ - @javax.annotation.Nullable - - public Integer getRows() { - return rows; - } - - - public void setRows(Integer rows) { - this.rows = rows; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ExportReportMetaData instance itself - */ - public ExportReportMetaData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExportReportMetaData exportReportMetaData = (ExportReportMetaData) o; - return Objects.equals(this.columns, exportReportMetaData.columns) && - Objects.equals(this.rows, exportReportMetaData.rows)&& - Objects.equals(this.additionalProperties, exportReportMetaData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(columns, rows, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExportReportMetaData {\n"); - sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); - sb.append(" rows: ").append(toIndentedString(rows)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("columns"); - openapiFields.add("rows"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ExportReportMetaData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ExportReportMetaData.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ExportReportMetaData is not found in the empty JSON string", ExportReportMetaData.openapiRequiredFields.toString())); - } - } - if (jsonObj.get("columns") != null && !jsonObj.get("columns").isJsonNull()) { - JsonArray jsonArraycolumns = jsonObj.getAsJsonArray("columns"); - if (jsonArraycolumns != null) { - // ensure the json data is an array - if (!jsonObj.get("columns").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `columns` to be an array in the JSON string but got `%s`", jsonObj.get("columns").toString())); - } - - // validate the optional field `columns` (array) - for (int i = 0; i < jsonArraycolumns.size(); i++) { - ExportReportColumn.validateJsonObject(jsonArraycolumns.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ExportReportMetaData.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ExportReportMetaData' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ExportReportMetaData.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ExportReportMetaData value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ExportReportMetaData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ExportReportMetaData instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ExportReportMetaData given an JSON string - * - * @param jsonString JSON string - * @return An instance of ExportReportMetaData - * @throws IOException if the JSON string is invalid with respect to ExportReportMetaData - */ - public static ExportReportMetaData fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ExportReportMetaData.class); - } - - /** - * Convert an instance of ExportReportMetaData to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/GetPageOfAudiencesByAccountIdResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/GetPageOfAudiencesByAccountIdResponse.java index 2ecb6492..22fe1ea2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/GetPageOfAudiencesByAccountIdResponse.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/GetPageOfAudiencesByAccountIdResponse.java @@ -27,6 +27,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; @@ -207,11 +208,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, getPageOfAudiencesByAccountIdResponse.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, metadata, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProblemDetails.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProblemDetails.java index 7b973d3b..40c0153d 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProblemDetails.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ProblemDetails.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; @@ -420,11 +421,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemDetails.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportDataResponseResource.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportDataResponseResource.java deleted file mode 100644 index ac3b6518..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportDataResponseResource.java +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * A top-level object that encapsulates a Criteo API response for a single value - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ReportDataResponseResource { - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; - @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private List> attributes = null; - - public ReportDataResponseResource() { - } - - public ReportDataResponseResource type(String type) { - - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @javax.annotation.Nullable - - public String getType() { - return type; - } - - - public void setType(String type) { - this.type = type; - } - - - public ReportDataResponseResource attributes(List> attributes) { - - this.attributes = attributes; - return this; - } - - public ReportDataResponseResource addAttributesItem(List attributesItem) { - if (this.attributes == null) { - this.attributes = new ArrayList<>(); - } - this.attributes.add(attributesItem); - return this; - } - - /** - * Get attributes - * @return attributes - **/ - @javax.annotation.Nullable - - public List> getAttributes() { - return attributes; - } - - - public void setAttributes(List> attributes) { - this.attributes = attributes; - } - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ReportDataResponseResource instance itself - */ - public ReportDataResponseResource putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReportDataResponseResource reportDataResponseResource = (ReportDataResponseResource) o; - return Objects.equals(this.type, reportDataResponseResource.type) && - Objects.equals(this.attributes, reportDataResponseResource.attributes)&& - Objects.equals(this.additionalProperties, reportDataResponseResource.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(type, attributes, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReportDataResponseResource {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); - openapiFields.add("attributes"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReportDataResponseResource - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ReportDataResponseResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReportDataResponseResource is not found in the empty JSON string", ReportDataResponseResource.openapiRequiredFields.toString())); - } - } - if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - // ensure the optional json data is an array if present - if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReportDataResponseResource.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReportDataResponseResource' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReportDataResponseResource.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ReportDataResponseResource value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ReportDataResponseResource read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ReportDataResponseResource instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ReportDataResponseResource given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReportDataResponseResource - * @throws IOException if the JSON string is invalid with respect to ReportDataResponseResource - */ - public static ReportDataResponseResource fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReportDataResponseResource.class); - } - - /** - * Convert an instance of ReportDataResponseResource to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportOutcome.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportOutcome.java index a4a7fd44..f06f1ace 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportOutcome.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportOutcome.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; @@ -157,11 +158,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportOutcome.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(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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportResponse.java deleted file mode 100644 index 21669c4f..00000000 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ReportResponse.java +++ /dev/null @@ -1,397 +0,0 @@ -/* - * Criteo API - * Criteo API - RetailMedia - * - * The version of the OpenAPI document: 2023-07 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.criteo.api.retailmedia.v2023_07.model; - -import java.util.Objects; -import java.util.Arrays; -import com.criteo.api.retailmedia.v2023_07.model.CommonProblem; -import com.criteo.api.retailmedia.v2023_07.model.ExportReportMetaData; -import com.criteo.api.retailmedia.v2023_07.model.ReportDataResponseResource; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.criteo.api.retailmedia.v2023_07.JSON; - -/** - * Report response format - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ReportResponse { - public static final String SERIALIZED_NAME_META = "meta"; - @SerializedName(SERIALIZED_NAME_META) - private ExportReportMetaData meta; - - public static final String SERIALIZED_NAME_DATA = "data"; - @SerializedName(SERIALIZED_NAME_DATA) - private ReportDataResponseResource data; - - public static final String SERIALIZED_NAME_WARNINGS = "warnings"; - @SerializedName(SERIALIZED_NAME_WARNINGS) - private List warnings = null; - - public static final String SERIALIZED_NAME_ERRORS = "errors"; - @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = null; - - public ReportResponse() { - } - - - public ReportResponse( - List warnings, - List errors - ) { - this(); - this.warnings = warnings; - this.errors = errors; - } - - public ReportResponse meta(ExportReportMetaData meta) { - - this.meta = meta; - return this; - } - - /** - * Get meta - * @return meta - **/ - @javax.annotation.Nullable - - public ExportReportMetaData getMeta() { - return meta; - } - - - public void setMeta(ExportReportMetaData meta) { - this.meta = meta; - } - - - public ReportResponse data(ReportDataResponseResource data) { - - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @javax.annotation.Nullable - - public ReportDataResponseResource getData() { - return data; - } - - - public void setData(ReportDataResponseResource data) { - this.data = data; - } - - - /** - * Get warnings - * @return warnings - **/ - @javax.annotation.Nullable - - public List getWarnings() { - return warnings; - } - - - - - /** - * Get errors - * @return errors - **/ - @javax.annotation.Nullable - - public List getErrors() { - return errors; - } - - - - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. - * If the property does not already exist, create it otherwise replace it. - * - * @param key name of the property - * @param value value of the property - * @return the ReportResponse instance itself - */ - public ReportResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return a map of objects - */ - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key name of the property - * @return an object - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReportResponse reportResponse = (ReportResponse) o; - return Objects.equals(this.meta, reportResponse.meta) && - Objects.equals(this.data, reportResponse.data) && - Objects.equals(this.warnings, reportResponse.warnings) && - Objects.equals(this.errors, reportResponse.errors)&& - Objects.equals(this.additionalProperties, reportResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(meta, data, warnings, errors, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ReportResponse {\n"); - sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("meta"); - openapiFields.add("data"); - openapiFields.add("warnings"); - openapiFields.add("errors"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - } - - /** - * Validates the JSON Object and throws an exception if issues found - * - * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to ReportResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (!ReportResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ReportResponse is not found in the empty JSON string", ReportResponse.openapiRequiredFields.toString())); - } - } - // validate the optional field `meta` - if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { - ExportReportMetaData.validateJsonObject(jsonObj.getAsJsonObject("meta")); - } - // validate the optional field `data` - if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - ReportDataResponseResource.validateJsonObject(jsonObj.getAsJsonObject("data")); - } - if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { - JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); - if (jsonArraywarnings != null) { - // ensure the json data is an array - if (!jsonObj.get("warnings").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); - } - - // validate the optional field `warnings` (array) - for (int i = 0; i < jsonArraywarnings.size(); i++) { - CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); - }; - } - } - if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { - JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); - if (jsonArrayerrors != null) { - // ensure the json data is an array - if (!jsonObj.get("errors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); - } - - // validate the optional field `errors` (array) - for (int i = 0; i < jsonArrayerrors.size(); i++) { - CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); - }; - } - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!ReportResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ReportResponse' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ReportResponse.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ReportResponse value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - obj.remove("additionalProperties"); - // serialize additional properties - if (value.getAdditionalProperties() != null) { - for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { - if (entry.getValue() instanceof String) - obj.addProperty(entry.getKey(), (String) entry.getValue()); - else if (entry.getValue() instanceof Number) - obj.addProperty(entry.getKey(), (Number) entry.getValue()); - else if (entry.getValue() instanceof Boolean) - obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); - else if (entry.getValue() instanceof Character) - obj.addProperty(entry.getKey(), (Character) entry.getValue()); - else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); - } - } - } - elementAdapter.write(out, obj); - } - - @Override - public ReportResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - // store additional fields in the deserialized instance - ReportResponse instance = thisAdapter.fromJsonTree(jsonObj); - for (Map.Entry entry : jsonObj.entrySet()) { - if (!openapiFields.contains(entry.getKey())) { - if (entry.getValue().isJsonPrimitive()) { // primitive type - if (entry.getValue().getAsJsonPrimitive().isString()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); - else if (entry.getValue().getAsJsonPrimitive().isNumber()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); - else if (entry.getValue().getAsJsonPrimitive().isBoolean()) - instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); - else - throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); - } else if (entry.getValue().isJsonArray()) { - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); - } else { // JSON object - instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); - } - } - } - return instance; - } - - }.nullSafe(); - } - } - - /** - * Create an instance of ReportResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReportResponse - * @throws IOException if the JSON string is invalid with respect to ReportResponse - */ - public static ReportResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, ReportResponse.class); - } - - /** - * Convert an instance of ReportResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} - diff --git a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItem.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItem.java index 27bd2aa0..533207b0 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItem.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItem.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, resourceOfAuctionLineItem.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItemUpdateModel.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItemUpdateModel.java index bb1d86cd..c1119f59 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItemUpdateModel.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfAuctionLineItemUpdateModel.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, resourceOfAuctionLineItemUpdateModel.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalance202110.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalance202110.java index 37481f9c..856862b2 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalance202110.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalance202110.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, resourceOfBalance202110.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalanceCampaign202110.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalanceCampaign202110.java index 0b5061ae..51cf15c4 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalanceCampaign202110.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfBalanceCampaign202110.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, resourceOfBalanceCampaign202110.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCategory202204.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCategory202204.java index f3c8f1e5..704921b5 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCategory202204.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCategory202204.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, resourceOfCategory202204.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCommonLineItem.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCommonLineItem.java index 6c688fda..c40d955a 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCommonLineItem.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCommonLineItem.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, resourceOfCommonLineItem.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202110.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202110.java index 6dbeb114..f261c230 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202110.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202110.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, resourceOfCreative202110.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202210.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202210.java index 5dfdb467..f9ea553f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202210.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfCreative202210.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, resourceOfCreative202210.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfLineItemBidMultipliers.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfLineItemBidMultipliers.java index 15297d27..b7ee8d1d 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfLineItemBidMultipliers.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfLineItemBidMultipliers.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, resourceOfLineItemBidMultipliers.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItem202110.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItem202110.java index cb974568..55909a14 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItem202110.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItem202110.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, resourceOfPreferredLineItem202110.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItemUpdateModel202110.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItemUpdateModel202110.java index 4623357f..cd5206e6 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItemUpdateModel202110.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPreferredLineItemUpdateModel202110.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, resourceOfPreferredLineItemUpdateModel202110.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPromotedProduct202110.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPromotedProduct202110.java index d06b3ce2..e469dec0 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPromotedProduct202110.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfPromotedProduct202110.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, resourceOfPromotedProduct202110.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfTemplate.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfTemplate.java index 47982d71..d6f80fc9 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfTemplate.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/ResourceOfTemplate.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, resourceOfTemplate.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaAudienceV2ListResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaAudienceV2ListResponse.java index 2ee1b9cf..6412d9c1 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaAudienceV2ListResponse.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaAudienceV2ListResponse.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; @@ -206,11 +207,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaAudienceV2ListResponse.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, metadata, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaAudienceV2Response.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaAudienceV2Response.java index 96abe084..c54a4d44 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaAudienceV2Response.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaAudienceV2Response.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, retailMediaAudienceV2Response.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordModel.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordModel.java index 325d0582..c0809c4e 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordModel.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordModel.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; @@ -84,7 +85,7 @@ public static MatchTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -238,11 +239,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1AddRemoveKeywordModel.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(phrase, matchType, isDeleted, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordsModel.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordsModel.java index 458840ba..fdbd3c65 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordsModel.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordsModel.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 RetailMediaExternalv1AddRemoveKeywordsModel keywords(List(); + this.keywords = null; } this.keywords.add(keywordsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1AddRemoveKeywordsModel.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(keywords, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.java index 4cc48746..07eaf2f0 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.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, retailMediaExternalv1AddRemoveKeywordsModelResource.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1InputKeywordsModel.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1InputKeywordsModel.java index d48fb250..badf2098 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1InputKeywordsModel.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1InputKeywordsModel.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 RetailMediaExternalv1InputKeywordsModel negativeBroad(List negati public RetailMediaExternalv1InputKeywordsModel addNegativeBroadItem(String negativeBroadItem) { if (this.negativeBroad == null) { - this.negativeBroad = new ArrayList<>(); + this.negativeBroad = null; } this.negativeBroad.add(negativeBroadItem); return this; @@ -103,7 +104,7 @@ public RetailMediaExternalv1InputKeywordsModel negativeExact(List negati public RetailMediaExternalv1InputKeywordsModel addNegativeExactItem(String negativeExactItem) { if (this.negativeExact == null) { - this.negativeExact = new ArrayList<>(); + this.negativeExact = null; } this.negativeExact.add(negativeExactItem); return this; @@ -133,7 +134,7 @@ public RetailMediaExternalv1InputKeywordsModel positiveExact(List positi public RetailMediaExternalv1InputKeywordsModel addPositiveExactItem(String positiveExactItem) { if (this.positiveExact == null) { - this.positiveExact = new ArrayList<>(); + this.positiveExact = null; } this.positiveExact.add(positiveExactItem); return this; @@ -215,11 +216,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1InputKeywordsModel.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(negativeBroad, negativeExact, positiveExact, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordDataModel.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordDataModel.java index 884907c8..dc8365f0 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordDataModel.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordDataModel.java @@ -23,6 +23,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; @@ -88,7 +89,7 @@ public static ReviewStateEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -141,7 +142,7 @@ public static MatchTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -376,11 +377,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1KeywordDataModel.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(reviewState, matchType, bid, inputKeywords, createdAt, updatedAt, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModel.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModel.java index fd092579..98a25a42 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModel.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModel.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; @@ -92,7 +93,7 @@ public RetailMediaExternalv1KeywordsModel rank(List rank) { public RetailMediaExternalv1KeywordsModel addRankItem(String rankItem) { if (this.rank == null) { - this.rank = new ArrayList<>(); + this.rank = null; } this.rank.add(rankItem); return this; @@ -173,11 +174,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1KeywordsModel.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(keywords, rank, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModelResource.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModelResource.java index 4f823bc3..9cf83586 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModelResource.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModelResource.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, retailMediaExternalv1KeywordsModelResource.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModelResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModelResponse.java index d667954b..d9ff6434 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModelResponse.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1KeywordsModelResponse.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, retailMediaExternalv1KeywordsModelResponse.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProblemDetails.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProblemDetails.java index 3d1d1d7f..eb1da915 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProblemDetails.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProblemDetails.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; @@ -141,7 +142,7 @@ public RetailMediaExternalv1ProblemDetails source(Map source) { public RetailMediaExternalv1ProblemDetails putSourceItem(String key, String sourceItem) { if (this.source == null) { - this.source = new HashMap<>(); + this.source = null; } this.source.put(key, sourceItem); return this; @@ -316,11 +317,22 @@ public boolean equals(Object o) { Objects.equals(this.instance, retailMediaExternalv1ProblemDetails.instance); } + 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(traceIdentifier, code, source, stackTrace, type, title, status, detail, instance); } + 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModel.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModel.java index 47ff28e3..76ac9297 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModel.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModel.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; @@ -426,11 +427,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1ProposalStatusModel.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(negotiationState, bookingStatus, runnableStatus, comment, createdAt, updatedAt, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModelResource.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModelResource.java index 2c6c83db..c3c8b14b 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModelResource.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModelResource.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, retailMediaExternalv1ProposalStatusModelResource.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModelResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModelResponse.java index 9ac6bec6..68d78bbd 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModelResponse.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ProposalStatusModelResponse.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, retailMediaExternalv1ProposalStatusModelResponse.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ResourceOutcome.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ResourceOutcome.java index a890c5a7..f2c13aec 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ResourceOutcome.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1ResourceOutcome.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; @@ -157,11 +158,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1ResourceOutcome.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidModel.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidModel.java index 2e726c4c..99dad9ab 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidModel.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidModel.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, retailMediaExternalv1SetBidModel.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(phrase, bid, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidsModel.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidsModel.java index dd7fe26c..bb59214f 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidsModel.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidsModel.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 RetailMediaExternalv1SetBidsModel keywords(List(); + this.keywords = null; } this.keywords.add(keywordsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1SetBidsModel.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(keywords, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidsModelResource.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidsModelResource.java index a480c7dc..eb688929 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidsModelResource.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/RetailMediaExternalv1SetBidsModelResource.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, retailMediaExternalv1SetBidsModelResource.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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponse.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponse.java index bbc3bbb6..2ae45431 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponse.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponse.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 StatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -375,11 +376,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, statusResponse.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(status, rowCount, fileSizeBytes, md5CheckSum, createdAt, expiresAt, message, id, 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/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponseResource.java b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponseResource.java index 8314cec0..354f8c01 100644 --- a/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponseResource.java +++ b/sdks/retailmedia_2023-07/src/main/java/com/criteo/api/retailmedia/v2023_07/model/StatusResponseResource.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, statusResponseResource.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/retailmedia_preview/.openapi-generator/FILES b/sdks/retailmedia_preview/.openapi-generator/FILES index 10c0a560..cdbba010 100644 --- a/sdks/retailmedia_preview/.openapi-generator/FILES +++ b/sdks/retailmedia_preview/.openapi-generator/FILES @@ -31,6 +31,9 @@ docs/Brand.md docs/BrandPreview.md docs/BrandPreviewListResponse.md docs/CampaignApi.md +docs/CampaignBudgetOverrides.md +docs/CampaignDailyBudgetOverride.md +docs/CampaignMonthlyBudgetOverride.md docs/CampaignReport.md docs/CampaignReportRequest.md docs/CampaignReportResource.md @@ -83,6 +86,7 @@ docs/FilesVariablesSpecification.md docs/GatewayApi.md docs/GetPageOfAudiencesByAccountIdResponse.md docs/HyperlinkVariableValue.md +docs/InputKeywords.md docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md @@ -95,6 +99,7 @@ docs/JsonApiPageResponseOfRetailer.md docs/JsonApiRequestOfCatalogRequestPreview.md docs/JsonApiSingleResponseOfCatalogStatus.md docs/JsonApiSingleResponseOfLineItemBidMultipliers.md +docs/Keywords.md docs/LineItemBidMultipliers.md docs/LineItemBidMultipliersRequest.md docs/LineItemBidMultipliersResponse.md @@ -113,6 +118,7 @@ docs/ProductButtonResponse.md docs/ReportDataResponseResource.md docs/ReportOutcome.md docs/ReportResponse.md +docs/ResourceCollectionOutcomeOfSkuSearchResult.md docs/ResourceOfAddFundsToBalance.md docs/ResourceOfBalanceResponse.md docs/ResourceOfBrandPreview.md @@ -129,6 +135,7 @@ docs/ResourceOfSkuDataPreview.md docs/ResourceOfSkuSearchRequestPreview.md docs/ResourceOfSkuSearchRequestSlimPreview.md docs/ResourceOfSkuSearchRequestSlimV2Preview.md +docs/ResourceOfSkuSearchResult.md docs/ResourceOfSkuSlimDataPreview.md docs/ResourceOfSkuSlimDataV2.md docs/ResourceOfTemplate.md @@ -162,18 +169,22 @@ docs/SellerPreview.md docs/SellerPreviewResponse.md docs/SkuDataPreview.md docs/SkuDataPreviewListResponse.md +docs/SkuSearchRequest.md +docs/SkuSearchRequestBody.md docs/SkuSearchRequestPreview.md docs/SkuSearchRequestPreviewRequest.md docs/SkuSearchRequestSlimPreview.md docs/SkuSearchRequestSlimPreviewRequest.md docs/SkuSearchRequestSlimV2Preview.md docs/SkuSearchRequestSlimV2PreviewRequest.md +docs/SkuSearchResult.md docs/SkuSlimDataPreview.md docs/SkuSlimDataPreviewListResponse.md docs/SkuSlimDataV2.md docs/SkuSlimDataV2ListResponse.md docs/StatusResponse.md docs/StatusResponseResource.md +docs/SuggestedKeywordsResult.md docs/Template.md docs/TemplateListResponse.md docs/TemplateResponse.md @@ -184,6 +195,10 @@ docs/TextVariableValue.md docs/UpdateBalanceModelRequest.md docs/UserBehaviorDetails.md docs/UserBehaviorDetailsV2.md +docs/ValueResourceOfCampaignBudgetOverrides.md +docs/ValueResourceOfSuggestedKeywordsResult.md +docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md +docs/ValueResourceOutcomeOfSuggestedKeywordsResult.md git_push.sh gradle.properties gradle/wrapper/gradle-wrapper.jar @@ -242,6 +257,9 @@ src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponsePagedListR src/main/java/com/criteo/api/retailmedia/preview/model/Brand.java src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreviewListResponse.java +src/main/java/com/criteo/api/retailmedia/preview/model/CampaignBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/preview/model/CampaignDailyBudgetOverride.java +src/main/java/com/criteo/api/retailmedia/preview/model/CampaignMonthlyBudgetOverride.java src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReport.java src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReportRequest.java src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReportResource.java @@ -293,6 +311,7 @@ src/main/java/com/criteo/api/retailmedia/preview/model/FilesVariableValue.java src/main/java/com/criteo/api/retailmedia/preview/model/FilesVariablesSpecification.java src/main/java/com/criteo/api/retailmedia/preview/model/GetPageOfAudiencesByAccountIdResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/HyperlinkVariableValue.java +src/main/java/com/criteo/api/retailmedia/preview/model/InputKeywords.java src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java @@ -305,6 +324,7 @@ src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfReta src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiRequestOfCatalogRequestPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiSingleResponseOfCatalogStatus.java src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiSingleResponseOfLineItemBidMultipliers.java +src/main/java/com/criteo/api/retailmedia/preview/model/Keywords.java src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliers.java src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersRequest.java src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersResponse.java @@ -323,6 +343,7 @@ src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonResponse.jav src/main/java/com/criteo/api/retailmedia/preview/model/ReportDataResponseResource.java src/main/java/com/criteo/api/retailmedia/preview/model/ReportOutcome.java src/main/java/com/criteo/api/retailmedia/preview/model/ReportResponse.java +src/main/java/com/criteo/api/retailmedia/preview/model/ResourceCollectionOutcomeOfSkuSearchResult.java src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfAddFundsToBalance.java src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfBalanceResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfBrandPreview.java @@ -339,6 +360,7 @@ src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuDataPreview. src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestSlimPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestSlimV2Preview.java +src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchResult.java src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSlimDataPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSlimDataV2.java src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfTemplate.java @@ -372,18 +394,22 @@ src/main/java/com/criteo/api/retailmedia/preview/model/SellerPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/SellerPreviewResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuDataPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuDataPreviewListResponse.java +src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequest.java +src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestBody.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestPreviewRequest.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimPreviewRequest.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimV2Preview.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimV2PreviewRequest.java +src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchResult.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataPreview.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataPreviewListResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataV2.java src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataV2ListResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/StatusResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/StatusResponseResource.java +src/main/java/com/criteo/api/retailmedia/preview/model/SuggestedKeywordsResult.java src/main/java/com/criteo/api/retailmedia/preview/model/Template.java src/main/java/com/criteo/api/retailmedia/preview/model/TemplateListResponse.java src/main/java/com/criteo/api/retailmedia/preview/model/TemplateResponse.java @@ -394,5 +420,9 @@ src/main/java/com/criteo/api/retailmedia/preview/model/TextVariableValue.java src/main/java/com/criteo/api/retailmedia/preview/model/UpdateBalanceModelRequest.java src/main/java/com/criteo/api/retailmedia/preview/model/UserBehaviorDetails.java src/main/java/com/criteo/api/retailmedia/preview/model/UserBehaviorDetailsV2.java +src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfCampaignBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfSuggestedKeywordsResult.java +src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java +src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfSuggestedKeywordsResult.java src/test/java/com/criteo/api/retailmedia/preview/ExampleApplication.java src/test/java/com/criteo/api/retailmedia/preview/GatewayApiTest.java diff --git a/sdks/retailmedia_preview/README.md b/sdks/retailmedia_preview/README.md index 6c21b625..8cea8fe2 100644 --- a/sdks/retailmedia_preview/README.md +++ b/sdks/retailmedia_preview/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com Criteo API -- Package version: 0.0.230728 +- Package version: 0.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-retailmedia-sdk - 0.0.230728 + 0.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-retailmedia-sdk:0.0.230728" +compile "com.criteo:criteo-api-retailmedia-sdk:0.0.230831" ``` ### Others @@ -67,7 +67,7 @@ mvn clean package Then manually install the following JARs: -* `target/criteo-api-retailmedia-sdk-0.0.230728.jar` +* `target/criteo-api-retailmedia-sdk-0.0.230831.jar` * `target/lib/*.jar` ## Example @@ -88,6 +88,7 @@ Class | Method | HTTP request | Description *AnalyticsApi* | [**generateLineItemsReports**](docs/AnalyticsApi.md#generateLineItemsReports) | **POST** /preview/retail-media/reports/sync/line-items | *AnalyticsApi* | [**getAsyncExportOutput**](docs/AnalyticsApi.md#getAsyncExportOutput) | **GET** /preview/retail-media/reports/{reportId}/output | *AnalyticsApi* | [**getAsyncExportStatus**](docs/AnalyticsApi.md#getAsyncExportStatus) | **GET** /preview/retail-media/reports/{reportId}/status | +*AnalyticsApi* | [**getSkuByProductId**](docs/AnalyticsApi.md#getSkuByProductId) | **POST** /preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id | *AudienceApi* | [**createAudience**](docs/AudienceApi.md#createAudience) | **POST** /preview/retail-media/accounts/{accountId}/audiences | *AudienceApi* | [**createRetailMediaAudienceV2**](docs/AudienceApi.md#createRetailMediaAudienceV2) | **POST** /preview/retail-media/v2/accounts/{accountId}/audiences | *AudienceApi* | [**getAudiencesByAccountId**](docs/AudienceApi.md#getAudiencesByAccountId) | **GET** /preview/retail-media/accounts/{accountId}/audiences | @@ -113,6 +114,8 @@ Class | Method | HTTP request | Description *CampaignApi* | [**getApiV1ExternalRetailerByRetailerIdSellerBySeller**](docs/CampaignApi.md#getApiV1ExternalRetailerByRetailerIdSellerBySeller) | **GET** /preview/retail-media/retailers/{retailerId}/sellers/{seller} | *CampaignApi* | [**getApiV1ExternalRetailerCategoryCpcRatesByRetailerId**](docs/CampaignApi.md#getApiV1ExternalRetailerCategoryCpcRatesByRetailerId) | **GET** /preview/retail-media/retailers/{retailer-id}/cpc-rates | *CampaignApi* | [**getApiV1ExternalRetailerPlacementsByRetailerId**](docs/CampaignApi.md#getApiV1ExternalRetailerPlacementsByRetailerId) | **GET** /preview/retail-media/retailers/{retailer-id}/placements | +*CampaignApi* | [**getCampaignBudgetOverrides**](docs/CampaignApi.md#getCampaignBudgetOverrides) | **GET** /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides | +*CampaignApi* | [**getSuggestedKeywords**](docs/CampaignApi.md#getSuggestedKeywords) | **GET** /preview/retail-media/line-items/{externalLineItemId}/keywords/recommended | *CampaignApi* | [**patchApiV1ExternalAccountByAccountIdAndBalanceId**](docs/CampaignApi.md#patchApiV1ExternalAccountByAccountIdAndBalanceId) | **PATCH** /preview/retail-media/accounts/{accountId}/balances/{balanceId} | *CampaignApi* | [**postApi202210ExternalAccountCreativesByAccountId**](docs/CampaignApi.md#postApi202210ExternalAccountCreativesByAccountId) | **POST** /preview/retail-media/accounts/{account-id}/creatives | *CampaignApi* | [**postApi202210ExternalAccountCreativesSearchByAccountId**](docs/CampaignApi.md#postApi202210ExternalAccountCreativesSearchByAccountId) | **POST** /preview/retail-media/accounts/{account-id}/creatives/search | @@ -157,6 +160,9 @@ Class | Method | HTTP request | Description - [Brand](docs/Brand.md) - [BrandPreview](docs/BrandPreview.md) - [BrandPreviewListResponse](docs/BrandPreviewListResponse.md) + - [CampaignBudgetOverrides](docs/CampaignBudgetOverrides.md) + - [CampaignDailyBudgetOverride](docs/CampaignDailyBudgetOverride.md) + - [CampaignMonthlyBudgetOverride](docs/CampaignMonthlyBudgetOverride.md) - [CampaignReport](docs/CampaignReport.md) - [CampaignReportRequest](docs/CampaignReportRequest.md) - [CampaignReportResource](docs/CampaignReportResource.md) @@ -208,6 +214,7 @@ Class | Method | HTTP request | Description - [FilesVariablesSpecification](docs/FilesVariablesSpecification.md) - [GetPageOfAudiencesByAccountIdResponse](docs/GetPageOfAudiencesByAccountIdResponse.md) - [HyperlinkVariableValue](docs/HyperlinkVariableValue.md) + - [InputKeywords](docs/InputKeywords.md) - [JsonApiBodyWithIdOfInt64AndAccountAndAccount](docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md) - [JsonApiBodyWithIdOfInt64AndBrandAndBrand](docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md) - [JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus](docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md) @@ -220,6 +227,7 @@ Class | Method | HTTP request | Description - [JsonApiRequestOfCatalogRequestPreview](docs/JsonApiRequestOfCatalogRequestPreview.md) - [JsonApiSingleResponseOfCatalogStatus](docs/JsonApiSingleResponseOfCatalogStatus.md) - [JsonApiSingleResponseOfLineItemBidMultipliers](docs/JsonApiSingleResponseOfLineItemBidMultipliers.md) + - [Keywords](docs/Keywords.md) - [LineItemBidMultipliers](docs/LineItemBidMultipliers.md) - [LineItemBidMultipliersRequest](docs/LineItemBidMultipliersRequest.md) - [LineItemBidMultipliersResponse](docs/LineItemBidMultipliersResponse.md) @@ -238,6 +246,7 @@ Class | Method | HTTP request | Description - [ReportDataResponseResource](docs/ReportDataResponseResource.md) - [ReportOutcome](docs/ReportOutcome.md) - [ReportResponse](docs/ReportResponse.md) + - [ResourceCollectionOutcomeOfSkuSearchResult](docs/ResourceCollectionOutcomeOfSkuSearchResult.md) - [ResourceOfAddFundsToBalance](docs/ResourceOfAddFundsToBalance.md) - [ResourceOfBalanceResponse](docs/ResourceOfBalanceResponse.md) - [ResourceOfBrandPreview](docs/ResourceOfBrandPreview.md) @@ -254,6 +263,7 @@ Class | Method | HTTP request | Description - [ResourceOfSkuSearchRequestPreview](docs/ResourceOfSkuSearchRequestPreview.md) - [ResourceOfSkuSearchRequestSlimPreview](docs/ResourceOfSkuSearchRequestSlimPreview.md) - [ResourceOfSkuSearchRequestSlimV2Preview](docs/ResourceOfSkuSearchRequestSlimV2Preview.md) + - [ResourceOfSkuSearchResult](docs/ResourceOfSkuSearchResult.md) - [ResourceOfSkuSlimDataPreview](docs/ResourceOfSkuSlimDataPreview.md) - [ResourceOfSkuSlimDataV2](docs/ResourceOfSkuSlimDataV2.md) - [ResourceOfTemplate](docs/ResourceOfTemplate.md) @@ -287,18 +297,22 @@ Class | Method | HTTP request | Description - [SellerPreviewResponse](docs/SellerPreviewResponse.md) - [SkuDataPreview](docs/SkuDataPreview.md) - [SkuDataPreviewListResponse](docs/SkuDataPreviewListResponse.md) + - [SkuSearchRequest](docs/SkuSearchRequest.md) + - [SkuSearchRequestBody](docs/SkuSearchRequestBody.md) - [SkuSearchRequestPreview](docs/SkuSearchRequestPreview.md) - [SkuSearchRequestPreviewRequest](docs/SkuSearchRequestPreviewRequest.md) - [SkuSearchRequestSlimPreview](docs/SkuSearchRequestSlimPreview.md) - [SkuSearchRequestSlimPreviewRequest](docs/SkuSearchRequestSlimPreviewRequest.md) - [SkuSearchRequestSlimV2Preview](docs/SkuSearchRequestSlimV2Preview.md) - [SkuSearchRequestSlimV2PreviewRequest](docs/SkuSearchRequestSlimV2PreviewRequest.md) + - [SkuSearchResult](docs/SkuSearchResult.md) - [SkuSlimDataPreview](docs/SkuSlimDataPreview.md) - [SkuSlimDataPreviewListResponse](docs/SkuSlimDataPreviewListResponse.md) - [SkuSlimDataV2](docs/SkuSlimDataV2.md) - [SkuSlimDataV2ListResponse](docs/SkuSlimDataV2ListResponse.md) - [StatusResponse](docs/StatusResponse.md) - [StatusResponseResource](docs/StatusResponseResource.md) + - [SuggestedKeywordsResult](docs/SuggestedKeywordsResult.md) - [Template](docs/Template.md) - [TemplateListResponse](docs/TemplateListResponse.md) - [TemplateResponse](docs/TemplateResponse.md) @@ -309,6 +323,10 @@ Class | Method | HTTP request | Description - [UpdateBalanceModelRequest](docs/UpdateBalanceModelRequest.md) - [UserBehaviorDetails](docs/UserBehaviorDetails.md) - [UserBehaviorDetailsV2](docs/UserBehaviorDetailsV2.md) + - [ValueResourceOfCampaignBudgetOverrides](docs/ValueResourceOfCampaignBudgetOverrides.md) + - [ValueResourceOfSuggestedKeywordsResult](docs/ValueResourceOfSuggestedKeywordsResult.md) + - [ValueResourceOutcomeOfCampaignBudgetOverrides](docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md) + - [ValueResourceOutcomeOfSuggestedKeywordsResult](docs/ValueResourceOutcomeOfSuggestedKeywordsResult.md) ## Recommendation diff --git a/sdks/retailmedia_preview/api/openapi.yaml b/sdks/retailmedia_preview/api/openapi.yaml index d9c5cd75..bb890b89 100644 --- a/sdks/retailmedia_preview/api/openapi.yaml +++ b/sdks/retailmedia_preview/api/openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.1 info: description: Criteo API - RetailMedia title: Criteo API - version: Preview + version: preview servers: - url: https://api.criteo.com security: @@ -74,11 +74,11 @@ paths: tags: - Campaign x-accepts: application/json - /preview/retail-media/accounts/{accountId}/retailers: + /preview/retail-media/accounts/{accountId}/brands: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId parameters: - description: The given account id explode: false @@ -127,16 +127,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' + $ref: '#/components/schemas/JsonApiPageResponseOfBrand' description: Success tags: - Campaign x-accepts: application/json - /preview/retail-media/accounts/{accountId}/brands: + /preview/retail-media/accounts/{accountId}/retailers: get: description: Gets page of retailer objects that are associated with the given account - operationId: AccountsApi_GetApiV1ExternalAccountBrandsByAccountId + operationId: AccountsApi_GetApiV1ExternalAccountRetailersByAccountId parameters: - description: The given account id explode: false @@ -185,7 +185,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiPageResponseOfBrand' + $ref: '#/components/schemas/JsonApiPageResponseOfRetailer' description: Success tags: - Campaign @@ -692,15 +692,15 @@ paths: tags: - Campaign x-accepts: application/json - /preview/retail-media/accounts/{accountId}/catalogs: + /preview/retail-media/accounts/{account-id}/creatives: post: - description: Create a request for a Catalog available to the indicated account. - operationId: CatalogApi_PostApiV0ExternalAccountCatalogsByAccountId + description: Create a creative for an account + operationId: CreativesApi_PostApi202210ExternalAccountCreativesByAccountId parameters: - - description: The account to request the catalog for. + - description: External account id to create a creative for explode: false in: path - name: accountId + name: account-id required: true schema: type: string @@ -710,55 +710,74 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JsonApiRequestOfCatalogRequestPreview' + $ref: '#/components/schemas/CreativeCreateModel202207' + description: The creative to create x-nullable: false - x-bodyName: request + x-bodyName: creative responses: - "200": + "201": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request successfully created + $ref: '#/components/schemas/Creative202210Response' + description: Creatives created tags: - Campaign x-content-type: application/json x-accepts: application/json - /preview/retail-media/catalogs/{catalogId}/status: - get: - description: Check the status of a catalog request. - operationId: CatalogApi_GetApiV0ExternalCatalogStatusByCatalogId + /preview/retail-media/accounts/{account-id}/creatives/search: + post: + description: Get account creatives + operationId: CreativesApi_PostApi202210ExternalAccountCreativesSearchByAccountId parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id to retrieve creatives for explode: false in: path - name: catalogId + name: account-id required: true schema: type: string style: simple x-nullable: false + - description: Creatives to filter by + explode: true + in: query + name: creative-ids + required: false + schema: + items: + type: string + type: array + style: form + x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' - description: Catalog request found. + $ref: '#/components/schemas/Creative202210ListResponse' + description: Creatives found tags: - Campaign x-accepts: application/json - /preview/retail-media/catalogs/{catalogId}/output: + /preview/retail-media/accounts/{account-id}/creatives/{creative-id}: get: - description: "Output the indicated catalog. Catalogs are only available for\ - \ retrieval when their associated status request\r\nis at a Success status.\r\ - \nProduces application/x-json-stream of CatalogProduct json objects." - operationId: CatalogApi_GetApiV0ExternalCatalogOutputByCatalogId + description: Get the specified creative + operationId: "CreativesApi_GetApi202210ExternalAccountByAccountId}Creatives{creativeId" parameters: - - description: A catalog ID returned from an account catalog request. + - description: External account id to retrieve creatives for explode: false in: path - name: catalogId + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: Creative to get + explode: false + in: path + name: creative-id required: true schema: type: string @@ -767,17 +786,146 @@ paths: responses: "200": content: - application/x-json-stream: {} - application/json: {} - description: Catalog download initiated. - "400": + application/json: + schema: + $ref: '#/components/schemas/Creative202210Response' + description: Creatives found + tags: + - Campaign + x-accepts: application/json + put: + description: Update a creative + operationId: "CreativesApi_PutApi202210ExternalAccountByAccountId}Creatives{creativeId" + parameters: + - description: External account id containing the creative + explode: false + in: path + name: account-id + required: true + schema: + type: string + style: simple + x-nullable: false + - description: Creative to update + explode: false + in: path + name: creative-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreativeUpdateModel202207' + description: The creative to create + x-nullable: false + x-bodyName: creative + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Creative202210Response' + description: Success + "204": content: - application/x-json-stream: {} application/json: {} - description: "The indicated catalog is not available for retrieval, wait\ - \ for a success status." + description: Creative updated + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /preview/retail-media/accounts/{accountId}/catalogs: + post: + description: Create a request for a Catalog available to the indicated account. + operationId: CatalogApi_PostApiV0ExternalAccountCatalogsByAccountId + parameters: + - description: The account to request the catalog for. + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiRequestOfCatalogRequestPreview' + x-nullable: false + x-bodyName: request + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request successfully created + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /preview/retail-media/catalogs/sku-retrieval: + post: + description: "Endpoint to search skus by text, retailer and sellers/brands." + operationId: SkuRetrievalApi_PostApiV1ExternalCatalogsSkuRetrieval + parameters: + - description: The start position in the overall list of matches. Must be zero + or greater. + explode: true + in: query + name: pageIndex + required: false + schema: + default: 0 + format: int32 + maximum: 500.0 + minimum: 0.0 + type: integer + style: form + x-nullable: false + - description: The maximum number of results to return with each call. Must + be greater than zero. + explode: true + in: query + name: pageSize + required: false + schema: + default: 100 + format: int32 + maximum: 1000.0 + minimum: 1.0 + type: integer + style: form + x-nullable: false + requestBody: + content: + application/json: + schema: + items: + type: string + x-nullable: false + type: array + uniqueItems: false + x-nullable: false + description: The list of SKU keys to retrieve sku information + x-nullable: false + x-bodyName: skuKeys + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SkuDataPreviewListResponse' + description: Skus found. tags: - Campaign + x-content-type: application/json x-accepts: application/json /preview/retail-media/catalogs/sku-search: post: @@ -970,82 +1118,46 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /preview/retail-media/catalogs/sku-retrieval: - post: - description: "Endpoint to search skus by text, retailer and sellers/brands." - operationId: SkuRetrievalApi_PostApiV1ExternalCatalogsSkuRetrieval + /preview/retail-media/catalogs/{catalogId}/output: + get: + description: "Output the indicated catalog. Catalogs are only available for\ + \ retrieval when their associated status request\r\nis at a Success status.\r\ + \nProduces application/x-json-stream of CatalogProduct json objects." + operationId: CatalogApi_GetApiV0ExternalCatalogOutputByCatalogId parameters: - - description: The start position in the overall list of matches. Must be zero - or greater. - explode: true - in: query - name: pageIndex - required: false + - description: A catalog ID returned from an account catalog request. + explode: false + in: path + name: catalogId + required: true schema: - default: 0 - format: int32 - maximum: 500.0 - minimum: 0.0 - type: integer - style: form + type: string + style: simple x-nullable: false - - description: The maximum number of results to return with each call. Must - be greater than zero. - explode: true - in: query - name: pageSize - required: false - schema: - default: 100 - format: int32 - maximum: 1000.0 - minimum: 1.0 - type: integer - style: form - x-nullable: false - requestBody: - content: - application/json: - schema: - items: - type: string - x-nullable: false - type: array - uniqueItems: false - x-nullable: false - description: The list of SKU keys to retrieve sku information - x-nullable: false - x-bodyName: skuKeys responses: "200": content: - application/json: - schema: - $ref: '#/components/schemas/SkuDataPreviewListResponse' - description: Skus found. + application/x-json-stream: {} + application/json: {} + description: Catalog download initiated. + "400": + content: + application/x-json-stream: {} + application/json: {} + description: "The indicated catalog is not available for retrieval, wait\ + \ for a success status." tags: - Campaign - x-content-type: application/json x-accepts: application/json - /preview/retail-media/retailers/{retailerId}/sellers/{seller}: + /preview/retail-media/catalogs/{catalogId}/status: get: - description: Endpoint to get market place seller id and name - operationId: SellerApi_GetApiV1ExternalRetailerByRetailerIdSellerBySeller + description: Check the status of a catalog request. + operationId: CatalogApi_GetApiV0ExternalCatalogStatusByCatalogId parameters: - - description: The retailer id for which seller should be fetched. - explode: false - in: path - name: retailerId - required: true - schema: - format: int32 - type: integer - style: simple - x-nullable: false - - description: The seller id or seller name which should be validated. + - description: A catalog ID returned from an account catalog request. explode: false in: path - name: seller + name: catalogId required: true schema: type: string @@ -1056,52 +1168,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SellerPreviewResponse' - description: Seller found. + $ref: '#/components/schemas/JsonApiSingleResponseOfCatalogStatus' + description: Catalog request found. tags: - Campaign x-accepts: application/json - /preview/retail-media/retailers/{retailerId}/brands: + /preview/retail-media/retailers/{retailer-id}/cpc-rates: get: - description: Gets the brands for the given retailer - operationId: RetailerApi_GetApiV1ExternalRetailerBrandsByRetailerId + description: "Gets the minimum cpc bid for the retailer, and optionally the\ + \ categories under the retailer" + operationId: RetailerApi_GetApiV1ExternalRetailerCategoryCpcRatesByRetailerId parameters: - - description: The retailer id for which brands should be fetched. + - description: The retailer id explode: false in: path - name: retailerId + name: retailer-id required: true schema: - format: int32 - type: integer - style: simple - x-nullable: false - - description: "Filter to narrow down brands [first-party|third-party|first-and-third-party].\ - \ Defaults to first-and-third-party" - explode: true - in: query - name: sku-stock-type-filter - required: false - schema: - enum: - - first-party - - third-party - - first-and-third-party type: string - style: form + style: simple x-nullable: false - - description: " Filter to narrow down brands [all|uc|retailer]. Defaults to\ - \ uc" + - description: The fields in the response that is to be included explode: true in: query - name: brand-type + name: fields required: false schema: - enum: - - all - - uc - - retailer - type: string + items: + type: string + type: array style: form x-nullable: false responses: @@ -1109,8 +1204,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BrandPreviewListResponse' - description: Brands found. + $ref: '#/components/schemas/CpcRateCardPreviewResponse' + description: bids found + "403": + content: + application/json: {} + description: forbidden tags: - Campaign x-accepts: application/json @@ -1142,46 +1241,6 @@ paths: tags: - Campaign x-accepts: application/json - /preview/retail-media/retailers/{retailer-id}/cpc-rates: - get: - description: "Gets the minimum cpc bid for the retailer, and optionally the\ - \ categories under the retailer" - operationId: RetailerApi_GetApiV1ExternalRetailerCategoryCpcRatesByRetailerId - parameters: - - description: The retailer id - explode: false - in: path - name: retailer-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: The fields in the response that is to be included - explode: true - in: query - name: fields - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CpcRateCardPreviewResponse' - description: bids found - "403": - content: - application/json: {} - description: forbidden - tags: - - Campaign - x-accepts: application/json /preview/retail-media/retailers/{retailer-id}/templates: get: description: Get retailer creative templates @@ -1242,57 +1301,78 @@ paths: tags: - Campaign x-accepts: application/json - /preview/retail-media/accounts/{account-id}/creatives: - post: - description: Create a creative for an account - operationId: CreativesApi_PostApi202210ExternalAccountCreativesByAccountId + /preview/retail-media/retailers/{retailerId}/brands: + get: + description: Gets the brands for the given retailer + operationId: RetailerApi_GetApiV1ExternalRetailerBrandsByRetailerId parameters: - - description: External account id to create a creative for + - description: The retailer id for which brands should be fetched. explode: false in: path - name: account-id + name: retailerId required: true schema: - type: string + format: int32 + type: integer style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreativeCreateModel202207' - description: The creative to create + - description: "Filter to narrow down brands [first-party|third-party|first-and-third-party].\ + \ Defaults to first-and-third-party" + explode: true + in: query + name: sku-stock-type-filter + required: false + schema: + enum: + - first-party + - third-party + - first-and-third-party + type: string + style: form + x-nullable: false + - description: " Filter to narrow down brands [all|uc|retailer]. Defaults to\ + \ uc" + explode: true + in: query + name: brand-type + required: false + schema: + enum: + - all + - uc + - retailer + type: string + style: form x-nullable: false - x-bodyName: creative responses: - "201": + "200": content: application/json: schema: - $ref: '#/components/schemas/Creative202210Response' - description: Creatives created + $ref: '#/components/schemas/BrandPreviewListResponse' + description: Brands found. tags: - Campaign - x-content-type: application/json x-accepts: application/json - /preview/retail-media/accounts/{account-id}/creatives/{creative-id}: + /preview/retail-media/retailers/{retailerId}/sellers/{seller}: get: - description: Get the specified creative - operationId: "CreativesApi_GetApi202210ExternalAccountByAccountId}Creatives{creativeId" + description: Endpoint to get market place seller id and name + operationId: SellerApi_GetApiV1ExternalRetailerByRetailerIdSellerBySeller parameters: - - description: External account id to retrieve creatives for + - description: The retailer id for which seller should be fetched. explode: false in: path - name: account-id + name: retailerId required: true schema: - type: string + format: int32 + type: integer style: simple x-nullable: false - - description: Creative to get + - description: The seller id or seller name which should be validated. explode: false in: path - name: creative-id + name: seller required: true schema: type: string @@ -1303,106 +1383,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Creative202210Response' - description: Creatives found + $ref: '#/components/schemas/SellerPreviewResponse' + description: Seller found. tags: - Campaign x-accepts: application/json - put: - description: Update a creative - operationId: "CreativesApi_PutApi202210ExternalAccountByAccountId}Creatives{creativeId" - parameters: - - description: External account id containing the creative - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creative to update - explode: false - in: path - name: creative-id - required: true - schema: - type: string - style: simple - x-nullable: false + /preview/retail-media/reports/campaigns: + post: + description: Return an async Campaign Report + operationId: GenerateAsyncCampaignReport requestBody: content: - application/json: + application/json-patch+json: schema: - $ref: '#/components/schemas/CreativeUpdateModel202207' - description: The creative to create - x-nullable: false - x-bodyName: creative - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Creative202210Response' - description: Success - "204": - content: - application/json: {} - description: Creative updated - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /preview/retail-media/accounts/{account-id}/creatives/search: - post: - description: Get account creatives - operationId: CreativesApi_PostApi202210ExternalAccountCreativesSearchByAccountId - parameters: - - description: External account id to retrieve creatives for - explode: false - in: path - name: account-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Creatives to filter by - explode: true - in: query - name: creative-ids - required: false - schema: - items: - type: string - type: array - style: form - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Creative202210ListResponse' - description: Creatives found - tags: - - Campaign - x-accepts: application/json - /preview/retail-media/reports/sync/campaigns: - post: - description: Return a Campaign Report - operationId: GenerateCampaignReports - requestBody: - content: + $ref: '#/components/schemas/AsyncCampaignReportRequest' application/json: schema: - $ref: '#/components/schemas/CampaignReportRequest' + $ref: '#/components/schemas/AsyncCampaignReportRequest' text/json: schema: - $ref: '#/components/schemas/CampaignReportRequest' + $ref: '#/components/schemas/AsyncCampaignReportRequest' application/*+json: schema: - $ref: '#/components/schemas/CampaignReportRequest' + $ref: '#/components/schemas/AsyncCampaignReportRequest' required: true x-bodyName: request responses: @@ -1410,13 +1413,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' application/json: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' text/json: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' description: Success "400": content: @@ -1444,23 +1447,26 @@ paths: description: Forbidden tags: - Analytics - x-content-type: application/json + x-content-type: application/json-patch+json x-accepts: application/json - /preview/retail-media/reports/sync/line-items: + /preview/retail-media/reports/line-items: post: - description: Return a Line Item Report - operationId: GenerateLineItemsReports + description: Return an async Line Item Report + operationId: GenerateAsyncLineItemsReport requestBody: content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/AsyncLineItemReportRequest' application/json: schema: - $ref: '#/components/schemas/LineItemReportRequest' + $ref: '#/components/schemas/AsyncLineItemReportRequest' text/json: schema: - $ref: '#/components/schemas/LineItemReportRequest' + $ref: '#/components/schemas/AsyncLineItemReportRequest' application/*+json: schema: - $ref: '#/components/schemas/LineItemReportRequest' + $ref: '#/components/schemas/AsyncLineItemReportRequest' required: true x-bodyName: request responses: @@ -1468,13 +1474,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' application/json: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' text/json: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' description: Success "400": content: @@ -1502,23 +1508,26 @@ paths: description: Forbidden tags: - Analytics - x-content-type: application/json + x-content-type: application/json-patch+json x-accepts: application/json - /preview/retail-media/reports/sync/attributed-transactions: + /preview/retail-media/reports/revenue: post: - description: Return an Attributed Transactions Report - operationId: GenerateAttributedTransactionsReport + description: Return an async Revenue Report + operationId: GenerateAsyncRevenueReport requestBody: content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/AsyncRevenueReportRequest' application/json: schema: - $ref: '#/components/schemas/AttributedTransactionReportRequest' + $ref: '#/components/schemas/AsyncRevenueReportRequest' text/json: schema: - $ref: '#/components/schemas/AttributedTransactionReportRequest' + $ref: '#/components/schemas/AsyncRevenueReportRequest' application/*+json: schema: - $ref: '#/components/schemas/AttributedTransactionReportRequest' + $ref: '#/components/schemas/AsyncRevenueReportRequest' required: true x-bodyName: request responses: @@ -1526,13 +1535,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' application/json: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' text/json: schema: - $ref: '#/components/schemas/ReportResponse' + $ref: '#/components/schemas/AsyncReportResponse' description: Success "400": content: @@ -1560,26 +1569,23 @@ paths: description: Forbidden tags: - Analytics - x-content-type: application/json + x-content-type: application/json-patch+json x-accepts: application/json - /preview/retail-media/reports/campaigns: + /preview/retail-media/reports/sync/attributed-transactions: post: - description: Return an async Campaign Report - operationId: GenerateAsyncCampaignReport + description: Return an Attributed Transactions Report + operationId: GenerateAttributedTransactionsReport requestBody: content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/AsyncCampaignReportRequest' application/json: schema: - $ref: '#/components/schemas/AsyncCampaignReportRequest' + $ref: '#/components/schemas/AttributedTransactionReportRequest' text/json: schema: - $ref: '#/components/schemas/AsyncCampaignReportRequest' + $ref: '#/components/schemas/AttributedTransactionReportRequest' application/*+json: schema: - $ref: '#/components/schemas/AsyncCampaignReportRequest' + $ref: '#/components/schemas/AttributedTransactionReportRequest' required: true x-bodyName: request responses: @@ -1587,13 +1593,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AsyncReportResponse' + $ref: '#/components/schemas/ReportResponse' application/json: schema: - $ref: '#/components/schemas/AsyncReportResponse' + $ref: '#/components/schemas/ReportResponse' text/json: schema: - $ref: '#/components/schemas/AsyncReportResponse' + $ref: '#/components/schemas/ReportResponse' description: Success "400": content: @@ -1621,26 +1627,23 @@ paths: description: Forbidden tags: - Analytics - x-content-type: application/json-patch+json + x-content-type: application/json x-accepts: application/json - /preview/retail-media/reports/line-items: + /preview/retail-media/reports/sync/campaigns: post: - description: Return an async Line Item Report - operationId: GenerateAsyncLineItemsReport + description: Return a Campaign Report + operationId: GenerateCampaignReports requestBody: content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/AsyncLineItemReportRequest' application/json: schema: - $ref: '#/components/schemas/AsyncLineItemReportRequest' + $ref: '#/components/schemas/CampaignReportRequest' text/json: schema: - $ref: '#/components/schemas/AsyncLineItemReportRequest' + $ref: '#/components/schemas/CampaignReportRequest' application/*+json: schema: - $ref: '#/components/schemas/AsyncLineItemReportRequest' + $ref: '#/components/schemas/CampaignReportRequest' required: true x-bodyName: request responses: @@ -1648,13 +1651,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AsyncReportResponse' + $ref: '#/components/schemas/ReportResponse' application/json: schema: - $ref: '#/components/schemas/AsyncReportResponse' + $ref: '#/components/schemas/ReportResponse' text/json: schema: - $ref: '#/components/schemas/AsyncReportResponse' + $ref: '#/components/schemas/ReportResponse' description: Success "400": content: @@ -1682,26 +1685,23 @@ paths: description: Forbidden tags: - Analytics - x-content-type: application/json-patch+json + x-content-type: application/json x-accepts: application/json - /preview/retail-media/reports/revenue: + /preview/retail-media/reports/sync/line-items: post: - description: Return an async Revenue Report - operationId: GenerateAsyncRevenueReport + description: Return a Line Item Report + operationId: GenerateLineItemsReports requestBody: content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/AsyncRevenueReportRequest' application/json: schema: - $ref: '#/components/schemas/AsyncRevenueReportRequest' + $ref: '#/components/schemas/LineItemReportRequest' text/json: schema: - $ref: '#/components/schemas/AsyncRevenueReportRequest' + $ref: '#/components/schemas/LineItemReportRequest' application/*+json: schema: - $ref: '#/components/schemas/AsyncRevenueReportRequest' + $ref: '#/components/schemas/LineItemReportRequest' required: true x-bodyName: request responses: @@ -1709,13 +1709,13 @@ paths: content: text/plain: schema: - $ref: '#/components/schemas/AsyncReportResponse' + $ref: '#/components/schemas/ReportResponse' application/json: schema: - $ref: '#/components/schemas/AsyncReportResponse' + $ref: '#/components/schemas/ReportResponse' text/json: schema: - $ref: '#/components/schemas/AsyncReportResponse' + $ref: '#/components/schemas/ReportResponse' description: Success "400": content: @@ -1743,7 +1743,7 @@ paths: description: Forbidden tags: - Analytics - x-content-type: application/json-patch+json + x-content-type: application/json x-accepts: application/json /preview/retail-media/reports/{reportId}/output: get: @@ -1851,229 +1851,122 @@ paths: tags: - Analytics x-accepts: application/json - /preview/retail-media/line-items/{line-item-id}/product-buttons/{product-button-id}: - delete: - description: Delete a product button - operationId: ProductButtons_DeleteApi202210ExternalLineItemProductButtonsByLineItemIdProductButtonId - parameters: - - description: Long external id of the associated line item - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Sequential id of the product button - explode: false - in: path - name: product-button-id - required: true - schema: - type: string - style: simple - x-nullable: false - responses: - "200": - description: Success - tags: - - Campaign - x-accepts: application/json + /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides: get: - description: Get a single product button - operationId: ProductButtons_GetApi202210ExternalLineItemProductButtonsByLineItemIdProductButtonId + description: Get current campaign budget overrides by given external campaign + id. + operationId: GetCampaignBudgetOverrides parameters: - - description: Long external id of the associated line item - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - x-nullable: false - - description: Sequential id of the product button + - description: External campaign id. explode: false in: path - name: product-button-id + name: campaignId required: true schema: - type: string + format: int64 + type: integer style: simple - x-nullable: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ProductButtonResponse' + $ref: '#/components/schemas/ValueResourceOutcomeOfCampaignBudgetOverrides' description: Success tags: - Campaign x-accepts: application/json - put: - description: Update a product button - operationId: ProductButtons_PutApi202210ExternalLineItemProductButtonsByLineItemIdProductButtonId + /preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id: + post: + description: Gets a list of SKUs based on a privided list of Product Ids + operationId: GetSkuByProductId parameters: - - description: Long external id of the associated line item + - description: account id explode: false in: path - name: line-item-id + name: accountId required: true schema: type: string style: simple - x-nullable: false - - description: Sequential id of the product button + - description: retailer id explode: false in: path - name: product-button-id + name: retailerId required: true schema: - type: string + format: int32 + type: integer style: simple - x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProductButtonRequest' - description: Details of the updated product button - x-nullable: false - x-bodyName: productButton - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ProductButtonResponse' - description: Success - tags: - - Campaign - x-content-type: application/json - x-accepts: application/json - /preview/retail-media/line-items/{line-item-id}/product-buttons: - get: - description: Get all the product buttons associated with a line item - operationId: ProductButtons_GetApi202210ExternalLineItemProductButtonsByLineItemId - parameters: - - description: Long external id of the associated line item - explode: false - in: path - name: line-item-id - required: true + - description: "skip a number of matches before retrning results, used with\ + \ limit" + explode: true + in: query + name: offset + required: false schema: - type: string - style: simple - x-nullable: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ProductButtonListResponse' - description: Success - tags: - - Campaign - x-accepts: application/json - /preview/retail-media/line-items/{line-item-id}/product-buttons/create: - post: - description: Append new product buttons to a line item - operationId: ProductButtons_PostApi202210ExternalLineItemProductButtonsCreateByLineItemId - parameters: - - description: Long external id of the associated line item - explode: false - in: path - name: line-item-id - required: true + default: 0 + format: int32 + type: integer + style: form + - description: max number of results to return + explode: true + in: query + name: limit + required: false schema: - type: string - style: simple - x-nullable: false + default: 100 + format: int32 + type: integer + style: form requestBody: content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/SkuSearchRequest' application/json: schema: - $ref: '#/components/schemas/ProductButtonListRequest' - description: List of product buttons to append to the specified line item - x-nullable: false - x-bodyName: productButtons + $ref: '#/components/schemas/SkuSearchRequest' + text/json: + schema: + $ref: '#/components/schemas/SkuSearchRequest' + application/*+json: + schema: + $ref: '#/components/schemas/SkuSearchRequest' + description: "" responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ProductButtonListResponse' + $ref: '#/components/schemas/ResourceCollectionOutcomeOfSkuSearchResult' description: Success tags: - - Campaign - x-content-type: application/json + - Analytics + x-content-type: application/json-patch+json x-accepts: application/json - /preview/retail-media/line-items/{line-item-id}/bid-multipliers: + /preview/retail-media/line-items/{externalLineItemId}/keywords/recommended: get: - description: Get bid multipliers by line item - operationId: LineItems_GetApi202301ExternalLineItemBidMultipliersByLineItemId - parameters: - - description: Long external id of the associated line item - explode: false - in: path - name: line-item-id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - text/plain: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' - application/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' - text/json: - schema: - $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' - description: Success - tags: - - Campaign - x-accepts: application/json - put: - description: Replace bid multipliers on a line item - operationId: LineItems_PutApi202301ExternalLineItemBidMultipliersByLineItemId + description: Retrieves a collection of recommended keywords for a line item + operationId: GetSuggestedKeywords parameters: - - description: Long external id of the associated line item + - description: The external line item identifier explode: false in: path - name: line-item-id + name: externalLineItemId required: true schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersRequest' - x-nullable: false - x-bodyName: request responses: "200": content: - text/plain: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' application/json: schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' - text/json: - schema: - $ref: '#/components/schemas/LineItemBidMultipliersResponse' + $ref: '#/components/schemas/ValueResourceOutcomeOfSuggestedKeywordsResult' description: Success tags: - Campaign - x-content-type: application/json x-accepts: application/json /preview/retail-media/accounts/{accountId}/balances: get: @@ -2165,10 +2058,10 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /preview/retail-media/accounts/{accountId}/balances/{balanceId}/add-funds: - post: - description: Add funds to a balance for the given account id - operationId: Balances_PostApiV1ExternalAccountAddFundsByAccountIdAndBalanceId + /preview/retail-media/accounts/{accountId}/balances/{balanceId}: + get: + description: Get a balance for the given account id and balance id + operationId: Balances_GetApiV1ExternalAccountByAccountIdAndBalanceId parameters: - description: The account of the balance explode: false @@ -2179,7 +2072,7 @@ paths: type: string style: simple x-nullable: false - - description: The balance to add funds to + - description: The balance id explode: false in: path name: balanceId @@ -2188,13 +2081,6 @@ paths: type: string style: simple x-nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddFundsToBalanceRequest' - x-nullable: false - x-bodyName: addFundsToBalance responses: "200": content: @@ -2204,12 +2090,10 @@ paths: description: Success tags: - Campaign - x-content-type: application/json x-accepts: application/json - /preview/retail-media/accounts/{accountId}/balances/{balanceId}/change-dates: - post: - description: Change dates of a balance for the given account id - operationId: Balances_PostApiV1ExternalAccountChangeDatesByAccountIdAndBalanceId + patch: + description: Modify a balance for the given account id + operationId: Balances_PatchApiV1ExternalAccountByAccountIdAndBalanceId parameters: - description: The account of the balance explode: false @@ -2233,9 +2117,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ChangeDatesOfBalanceRequest' + $ref: '#/components/schemas/UpdateBalanceModelRequest' x-nullable: false - x-bodyName: changeDatesOfBalance + x-bodyName: updateBalanceModel responses: "200": content: @@ -2247,10 +2131,10 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json - /preview/retail-media/accounts/{accountId}/balances/{balanceId}: - get: - description: Get a balance for the given account id and balance id - operationId: Balances_GetApiV1ExternalAccountByAccountIdAndBalanceId + /preview/retail-media/accounts/{accountId}/balances/{balanceId}/add-funds: + post: + description: Add funds to a balance for the given account id + operationId: Balances_PostApiV1ExternalAccountAddFundsByAccountIdAndBalanceId parameters: - description: The account of the balance explode: false @@ -2261,7 +2145,7 @@ paths: type: string style: simple x-nullable: false - - description: The balance id + - description: The balance to add funds to explode: false in: path name: balanceId @@ -2270,6 +2154,13 @@ paths: type: string style: simple x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddFundsToBalanceRequest' + x-nullable: false + x-bodyName: addFundsToBalance responses: "200": content: @@ -2279,10 +2170,12 @@ paths: description: Success tags: - Campaign + x-content-type: application/json x-accepts: application/json - patch: - description: Modify a balance for the given account id - operationId: Balances_PatchApiV1ExternalAccountByAccountIdAndBalanceId + /preview/retail-media/accounts/{accountId}/balances/{balanceId}/change-dates: + post: + description: Change dates of a balance for the given account id + operationId: Balances_PostApiV1ExternalAccountChangeDatesByAccountIdAndBalanceId parameters: - description: The account of the balance explode: false @@ -2306,9 +2199,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateBalanceModelRequest' + $ref: '#/components/schemas/ChangeDatesOfBalanceRequest' x-nullable: false - x-bodyName: updateBalanceModel + x-bodyName: changeDatesOfBalance responses: "200": content: @@ -2320,168 +2213,409 @@ paths: - Campaign x-content-type: application/json x-accepts: application/json -components: - schemas: - ApplicationSummaryModelResponse: - description: Response of ApplicationSummaryModel - example: - data: - attributes: - organizationId: 6 - name: name - description: description - criteoService: criteoService - applicationId: 0 - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/ApplicationSummaryModelResource' - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - uniqueItems: false - errors: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - uniqueItems: false - type: object - ApplicationSummaryModelResource: - description: A class that represents a ValueType in a guild compliant way - example: - attributes: - organizationId: 6 - name: name - description: description - criteoService: criteoService - applicationId: 0 - type: type - properties: - type: + /preview/retail-media/line-items/{line-item-id}/bid-multipliers: + get: + description: Get bid multipliers by line item + operationId: LineItems_GetApi202301ExternalLineItemBidMultipliersByLineItemId + parameters: + - description: Long external id of the associated line item + explode: false + in: path + name: line-item-id + required: true + schema: type: string - attributes: - $ref: '#/components/schemas/ApplicationSummaryModel' - type: object - CommonProblem: - description: Common problem object. Can be specialized as needed. - example: - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - traceId: - description: The request correlation ID this problem comes from. + style: simple + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + application/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + text/json: + schema: + $ref: '#/components/schemas/JsonApiSingleResponseOfLineItemBidMultipliers' + description: Success + tags: + - Campaign + x-accepts: application/json + put: + description: Replace bid multipliers on a line item + operationId: LineItems_PutApi202301ExternalLineItemBidMultipliersByLineItemId + parameters: + - description: Long external id of the associated line item + explode: false + in: path + name: line-item-id + required: true + schema: type: string - traceIdentifier: - description: "The request correlation ID this problem comes from. (deprecated,\ - \ use traceId instead)" + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersRequest' + x-nullable: false + x-bodyName: request + responses: + "200": + content: + text/plain: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersResponse' + application/json: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersResponse' + text/json: + schema: + $ref: '#/components/schemas/LineItemBidMultipliersResponse' + description: Success + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /preview/retail-media/line-items/{line-item-id}/product-buttons: + get: + description: Get all the product buttons associated with a line item + operationId: ProductButtons_GetApi202210ExternalLineItemProductButtonsByLineItemId + parameters: + - description: Long external id of the associated line item + explode: false + in: path + name: line-item-id + required: true + schema: type: string - type: - description: The problem's category. - enum: - - unknown - - access-control - - authentication - - authorization - - availability - - deprecation - - quota - - validation + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductButtonListResponse' + description: Success + tags: + - Campaign + x-accepts: application/json + /preview/retail-media/line-items/{line-item-id}/product-buttons/create: + post: + description: Append new product buttons to a line item + operationId: ProductButtons_PostApi202210ExternalLineItemProductButtonsCreateByLineItemId + parameters: + - description: Long external id of the associated line item + explode: false + in: path + name: line-item-id + required: true + schema: type: string - code: - description: "A machine-readable error code, expressed as a string value." + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProductButtonListRequest' + description: List of product buttons to append to the specified line item + x-nullable: false + x-bodyName: productButtons + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductButtonListResponse' + description: Success + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json + /preview/retail-media/line-items/{line-item-id}/product-buttons/{product-button-id}: + delete: + description: Delete a product button + operationId: ProductButtons_DeleteApi202210ExternalLineItemProductButtonsByLineItemIdProductButtonId + parameters: + - description: Long external id of the associated line item + explode: false + in: path + name: line-item-id + required: true + schema: type: string - instance: - description: A URI that identifies the specific occurrence of the problem. + style: simple + x-nullable: false + - description: Sequential id of the product button + explode: false + in: path + name: product-button-id + required: true + schema: type: string - title: - description: A short human-readable description of the problem type + style: simple + x-nullable: false + responses: + "200": + description: Success + tags: + - Campaign + x-accepts: application/json + get: + description: Get a single product button + operationId: ProductButtons_GetApi202210ExternalLineItemProductButtonsByLineItemIdProductButtonId + parameters: + - description: Long external id of the associated line item + explode: false + in: path + name: line-item-id + required: true + schema: type: string - detail: - description: A human-readable explanation specific to this occurrence of - the problem + style: simple + x-nullable: false + - description: Sequential id of the product button + explode: false + in: path + name: product-button-id + required: true + schema: type: string - source: - additionalProperties: - type: string - description: A machine-readable structure to reference to the exact location(s) - causing the error(s) - type: object - stackTrace: + style: simple + x-nullable: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductButtonResponse' + description: Success + tags: + - Campaign + x-accepts: application/json + put: + description: Update a product button + operationId: ProductButtons_PutApi202210ExternalLineItemProductButtonsByLineItemIdProductButtonId + parameters: + - description: Long external id of the associated line item + explode: false + in: path + name: line-item-id + required: true + schema: type: string - type: object - ApplicationSummaryModel: - description: Model of ApplicationSummary - example: - organizationId: 6 - name: name + style: simple + x-nullable: false + - description: Sequential id of the product button + explode: false + in: path + name: product-button-id + required: true + schema: + type: string + style: simple + x-nullable: false + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProductButtonRequest' + description: Details of the updated product button + x-nullable: false + x-bodyName: productButton + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProductButtonResponse' + description: Success + tags: + - Campaign + x-content-type: application/json + x-accepts: application/json +components: + schemas: + ApplicationSummaryModelResponse: + description: Response of ApplicationSummaryModel + example: + data: + attributes: + organizationId: 6 + name: name + description: description + criteoService: criteoService + applicationId: 0 + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ApplicationSummaryModelResource' + 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 + type: object + ApplicationSummaryModelResource: + description: A class that represents a ValueType in a guild compliant way + example: + attributes: + organizationId: 6 + name: name + description: description + criteoService: criteoService + applicationId: 0 + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/ApplicationSummaryModel' + type: object + CommonProblem: + description: Common problem object. Can be specialized as needed. + example: + traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + 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. + enum: + - unknown + - access-control + - authentication + - authorization + - availability + - 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: + description: Model of ApplicationSummary + example: + organizationId: 6 + name: name description: description criteoService: criteoService applicationId: 0 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 JsonApiPageResponseOfAccount: @@ -2580,7 +2714,7 @@ components: - data type: object x-nullable: false - JsonApiPageResponseOfRetailer: + JsonApiPageResponseOfBrand: description: A wrapper class to return a single page of with metadata example: @@ -2594,16 +2728,10 @@ components: data: - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type - attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type warnings: @@ -2659,14 +2787,14 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' type: array x-nullable: false required: - data type: object x-nullable: false - JsonApiPageResponseOfBrand: + JsonApiPageResponseOfRetailer: description: A wrapper class to return a single page of with metadata example: @@ -2680,10 +2808,16 @@ components: data: - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type - attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type warnings: @@ -2739,7 +2873,7 @@ components: $ref: '#/components/schemas/PageMetadata' data: items: - $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndBrandAndBrand' + $ref: '#/components/schemas/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer' type: array x-nullable: false required: @@ -2948,15 +3082,12 @@ components: - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: + JsonApiBodyWithIdOfInt64AndBrandAndBrand: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name - campaignEligibilities: - - unknown - - unknown id: id type: type properties: @@ -2968,18 +3099,21 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalRetailer' + $ref: '#/components/schemas/ExternalBrand' required: - id - type type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndBrandAndBrand: + JsonApiBodyWithIdOfInt64AndRetailerAndRetailer: description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: name: name + campaignEligibilities: + - unknown + - unknown id: id type: type properties: @@ -2991,7 +3125,7 @@ components: type: string x-nullable: false attributes: - $ref: '#/components/schemas/ExternalBrand' + $ref: '#/components/schemas/ExternalRetailer' required: - id - type @@ -3056,6 +3190,21 @@ components: - type type: object x-nullable: false + ExternalBrand: + description: A Retail Media Brand used to represent a collection of products + sold under the same umbrella name + example: + name: name + properties: + name: + maxLength: 120 + minLength: 0 + type: string + x-nullable: false + required: + - name + type: object + x-nullable: false ExternalRetailer: description: A Retail Media Retailer used to represent a selection of products from multiple brands @@ -3083,23 +3232,8 @@ components: - name type: object x-nullable: false - ExternalBrand: - description: A Retail Media Brand used to represent a collection of products - sold under the same umbrella name - example: - name: name - properties: - name: - maxLength: 120 - minLength: 0 - type: string - x-nullable: false - required: - - name - type: object - x-nullable: false - GetPageOfAudiencesByAccountIdResponse: - description: Response for page of audiences by given account + GetPageOfAudiencesByAccountIdResponse: + description: Response for page of audiences by given account example: metadata: currentPageSize: 6 @@ -3188,12 +3322,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array metadata: @@ -3264,12 +3400,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonError' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonWarning' + nullable: true readOnly: true type: array type: object @@ -3398,12 +3536,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array metadata: @@ -3419,12 +3559,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object @@ -3509,12 +3651,14 @@ components: description: errors items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array warnings: description: warnings items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object @@ -3890,12 +4034,14 @@ components: items: format: int64 type: integer + nullable: true type: array categoryIds: description: The categories to target items: format: int32 type: integer + nullable: true type: array retailerId: description: ID of the retailer associated with this audience @@ -4140,21 +4286,25 @@ components: items: format: int32 type: integer + nullable: true type: array brandIds: description: The brands to target items: format: int64 type: integer + nullable: true type: array minPrice: description: The min price of targeted skus. format: double + nullable: true readOnly: true type: number maxPrice: description: The max price of targeted skus. format: double + nullable: true readOnly: true type: number required: @@ -4235,12 +4385,14 @@ components: errors: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false warnings: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false @@ -4294,12 +4446,14 @@ components: errors: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false warnings: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false @@ -4365,12 +4519,14 @@ components: errors: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false warnings: items: $ref: '#/components/schemas/RetailMediaExternalv1ProblemDetails' + nullable: true readOnly: true type: array uniqueItems: false @@ -4436,6 +4592,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -4461,25 +4618,34 @@ components: status: 6 properties: traceIdentifier: + nullable: true type: string code: + nullable: true type: string source: additionalProperties: type: string + nullable: true type: object stackTrace: + nullable: true type: string type: + nullable: true type: string title: + nullable: true type: string status: format: int32 + nullable: true type: integer detail: + nullable: true type: string instance: + nullable: true type: string type: object RetailMediaExternalv1ProposalStatusModelResource: @@ -4496,6 +4662,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -4519,6 +4686,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -4540,6 +4708,7 @@ components: type: type properties: id: + nullable: true type: string type: type: string @@ -4576,6 +4745,7 @@ components: rank: items: type: string + nullable: true type: array uniqueItems: false type: object @@ -4614,12 +4784,15 @@ components: - Approved type: string comment: + nullable: true type: string createdAt: format: date-time + nullable: true type: string updatedAt: format: date-time + nullable: true type: string required: - bookingStatus @@ -4641,6 +4814,7 @@ components: keywords: items: $ref: '#/components/schemas/RetailMediaExternalv1AddRemoveKeywordModel' + nullable: true type: array uniqueItems: false type: object @@ -4657,6 +4831,7 @@ components: keywords: items: $ref: '#/components/schemas/RetailMediaExternalv1SetBidModel' + nullable: true type: array uniqueItems: false type: object @@ -4687,23 +4862,28 @@ components: - AutoApproved - Rejected - AutoRejected + nullable: true type: string matchType: enum: - PositiveExactMatch - NegativeExactMatch - NegativeBroadMatch + nullable: true type: string bid: format: double + nullable: true type: number inputKeywords: $ref: '#/components/schemas/RetailMediaExternalv1InputKeywordsModel' createdAt: format: date-time + nullable: true type: string updatedAt: format: date-time + nullable: true type: string type: object RetailMediaExternalv1AddRemoveKeywordModel: @@ -4716,14 +4896,17 @@ components: phrase: maxLength: 255 minLength: 0 + nullable: true type: string matchType: enum: - PositiveExactMatch - NegativeExactMatch - NegativeBroadMatch + nullable: true type: string isDeleted: + nullable: true type: boolean type: object RetailMediaExternalv1SetBidModel: @@ -4735,9 +4918,11 @@ components: phrase: maxLength: 255 minLength: 0 + nullable: true type: string bid: format: double + nullable: true type: number type: object RetailMediaExternalv1InputKeywordsModel: @@ -4753,22 +4938,319 @@ components: - negativeExact - negativeExact properties: - negativeBroad: + negativeBroad: + items: + type: string + nullable: true + type: array + uniqueItems: false + negativeExact: + items: + type: string + nullable: true + type: array + uniqueItems: false + positiveExact: + items: + type: string + nullable: true + type: array + uniqueItems: false + type: object + Creative202210Response: + description: Data model for response resource + example: + data: + attributes: + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Search + environments: + - Web + - Web + - pageType: Search + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown + name: name + retailerId: 6 + templateId: 1 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ResourceOfCreative202210' + warnings: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + type: object + x-nullable: false + Creative202210ListResponse: + description: Data model for a list of response resources + example: + data: + - attributes: + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Search + environments: + - Web + - Web + - pageType: Search + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown + name: name + retailerId: 6 + templateId: 1 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Search + environments: + - Web + - Web + - pageType: Search + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown + name: name + retailerId: 6 + templateId: 1 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: items: - type: string + $ref: '#/components/schemas/ResourceOfCreative202210' type: array - uniqueItems: false - negativeExact: + x-nullable: false + warnings: items: - type: string + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array - uniqueItems: false - positiveExact: + x-nullable: false + errors: items: - type: string + $ref: '#/components/schemas/ProblemDetails' + readOnly: true type: array - uniqueItems: false + x-nullable: false type: object + x-nullable: false JsonApiSingleResponseOfCatalogStatus: description: A JSON:API wrapper class to add one JSON:API within a data property @@ -5151,83 +5633,19 @@ components: x-nullable: false type: object x-nullable: false - SellerPreviewResponse: + CpcRateCardPreviewResponse: description: Data model for response resource example: data: attributes: - name: name - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/ResourceOfSellerPreview' - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - type: object - x-nullable: false - BrandPreviewListResponse: - description: Data model for a list of response resources - example: - data: - - attributes: - name: name - id: id - type: type - - attributes: - name: name + retailerMinimumCpcBid: 0.8008281904610115 + categories: + key: + name: name + text: text + parentId: parentId + categoryMinimumCpcBids: + key: 6.027456183070403 id: id type: type warnings: @@ -5274,10 +5692,7 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/ResourceOfBrandPreview' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfCpcRateCardPreview' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -5372,80 +5787,6 @@ components: x-nullable: false type: object x-nullable: false - CpcRateCardPreviewResponse: - description: Data model for response resource - example: - data: - attributes: - retailerMinimumCpcBid: 0.8008281904610115 - categories: - key: - name: name - text: text - parentId: parentId - categoryMinimumCpcBids: - key: 6.027456183070403 - id: id - type: type - warnings: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - errors: - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - - traceId: traceId - traceIdentifier: traceIdentifier - code: code - instance: instance - detail: detail - source: - key: source - stackTrace: stackTrace - type: unknown - title: title - properties: - data: - $ref: '#/components/schemas/ResourceOfCpcRateCardPreview' - warnings: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - errors: - items: - $ref: '#/components/schemas/ProblemDetails' - readOnly: true - type: array - x-nullable: false - type: object - x-nullable: false TemplateListResponse: description: Data model for a list of response resources example: @@ -5920,63 +6261,16 @@ components: x-nullable: false type: object x-nullable: false - Creative202210Response: - description: Data model for response resource - example: - data: - attributes: - formatId: 5 - templateVariableValues: - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - templateName: templateName - associatedLineItemIds: - - associatedLineItemIds - - associatedLineItemIds - environments: - - pageType: Search - environments: - - Web - - Web - - pageType: Search - environments: - - Web - - Web - brandId: 0 - creativeFormatType: Unknown + BrandPreviewListResponse: + description: Data model for a list of response resources + example: + data: + - attributes: + name: name + id: id + type: type + - attributes: name: name - retailerId: 6 - templateId: 1 - status: Ready - updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type warnings: @@ -6023,7 +6317,10 @@ components: title: title properties: data: - $ref: '#/components/schemas/ResourceOfCreative202210' + items: + $ref: '#/components/schemas/ResourceOfBrandPreview' + type: array + x-nullable: false warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -6038,118 +6335,12 @@ components: x-nullable: false type: object x-nullable: false - Creative202210ListResponse: - description: Data model for a list of response resources + SellerPreviewResponse: + description: Data model for response resource example: data: - - attributes: - formatId: 5 - templateVariableValues: - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - templateName: templateName - associatedLineItemIds: - - associatedLineItemIds - - associatedLineItemIds - environments: - - pageType: Search - environments: - - Web - - Web - - pageType: Search - environments: - - Web - - Web - brandId: 0 - creativeFormatType: Unknown - name: name - retailerId: 6 - templateId: 1 - status: Ready - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - formatId: 5 - templateVariableValues: - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - templateName: templateName - associatedLineItemIds: - - associatedLineItemIds - - associatedLineItemIds - environments: - - pageType: Search - environments: - - Web - - Web - - pageType: Search - environments: - - Web - - Web - brandId: 0 - creativeFormatType: Unknown + attributes: name: name - retailerId: 6 - templateId: 1 - status: Ready - updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type warnings: @@ -6196,10 +6387,7 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/ResourceOfCreative202210' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfSellerPreview' warnings: items: $ref: '#/components/schemas/ProblemDetails' @@ -6214,76 +6402,6 @@ components: x-nullable: false type: object x-nullable: false - JsonApiRequestOfCatalogRequestPreview: - description: "A JSON:API wrapper class to format a with Type, and Attributes properties" - example: - data: - attributes: - format: json-newline - type: type - properties: - data: - $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview' - type: object - x-nullable: false - SkuSearchRequestPreviewRequest: - description: Data model for an input resource - example: - data: - attributes: - productIdType: skuKey - productIds: - - productIds - - productIds - queryString: queryString - retailerId: retailerId - skuType: brand - brandIds: - - brandIds - - brandIds - sellers: - - sellers - - sellers - id: id - type: type - properties: - data: - $ref: '#/components/schemas/ResourceOfSkuSearchRequestPreview' - type: object - x-nullable: false - SkuSearchRequestSlimPreviewRequest: - description: Data model for an input resource - example: - data: - attributes: - searchString: searchString - limitResultsToSkusWithBrandIds: - - limitResultsToSkusWithBrandIds - - limitResultsToSkusWithBrandIds - id: id - type: type - properties: - data: - $ref: '#/components/schemas/ResourceOfSkuSearchRequestSlimPreview' - type: object - x-nullable: false - SkuSearchRequestSlimV2PreviewRequest: - description: Data model for an input resource - example: - data: - attributes: - searchString: searchString - brandId: - - brandId - - brandId - id: id - type: type - properties: - data: - $ref: '#/components/schemas/ResourceOfSkuSearchRequestSlimV2Preview' - type: object - x-nullable: false CreativeCreateModel202207: description: Create model of a creative example: @@ -6426,72 +6544,145 @@ components: - templateVariableValues type: object x-nullable: false - JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: - description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" + JsonApiRequestOfCatalogRequestPreview: + description: "A JSON:API wrapper class to format a with Type, and Attributes properties" + example: + data: + attributes: + format: json-newline + type: type + properties: + data: + $ref: '#/components/schemas/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview' + type: object + x-nullable: false + SkuSearchRequestPreviewRequest: + description: Data model for an input resource + example: + data: + attributes: + productIdType: skuKey + productIds: + - productIds + - productIds + queryString: queryString + retailerId: retailerId + skuType: brand + brandIds: + - brandIds + - brandIds + sellers: + - sellers + - sellers + id: id + type: type + properties: + data: + $ref: '#/components/schemas/ResourceOfSkuSearchRequestPreview' + type: object + x-nullable: false + SkuSearchRequestSlimPreviewRequest: + description: Data model for an input resource + example: + data: + attributes: + searchString: searchString + limitResultsToSkusWithBrandIds: + - limitResultsToSkusWithBrandIds + - limitResultsToSkusWithBrandIds + id: id + type: type + properties: + data: + $ref: '#/components/schemas/ResourceOfSkuSearchRequestSlimPreview' + type: object + x-nullable: false + SkuSearchRequestSlimV2PreviewRequest: + description: Data model for an input resource example: - attributes: - fileSizeBytes: 6 - md5Checksum: md5Checksum - createdAt: 2000-01-23T04:56:07.000+00:00 - currency: currency - rowCount: 0 - message: message - status: unknown - id: id - type: type + data: + attributes: + searchString: searchString + brandId: + - brandId + - brandId + id: id + type: type properties: - id: - format: long-id - type: string - x-nullable: false - type: - type: string - x-nullable: false - attributes: - $ref: '#/components/schemas/ExternalCatalogStatus' - required: - - id - - type + data: + $ref: '#/components/schemas/ResourceOfSkuSearchRequestSlimV2Preview' type: object x-nullable: false - ResourceOfSkuDataPreview: + ResourceOfCreative202210: description: Data model for a Resource example: attributes: - brandName: brandName - gtin: gtin - sellerName: sellerName - description: description - mpn: mpn - productPage: productPage - retailerId: retailerId - parentId: parentId - sellerId: sellerId - skuKey: skuKey - isSellerSku: true - price: 0.8008281904610115 - brandId: brandId - retailerName: retailerName - imageUrl: imageUrl + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Search + environments: + - Web + - Web + - pageType: Search + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown name: name - modelNumber: modelNumber - isInStock: true - category: category - categoryId: categoryId - isBuybox: true + retailerId: 6 + templateId: 1 + status: Ready updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type properties: + attributes: + $ref: '#/components/schemas/Creative202210' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string - attributes: - $ref: '#/components/schemas/SkuDataPreview' type: object x-nullable: false ProblemDetails: @@ -6510,10 +6701,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. @@ -6559,120 +6752,137 @@ components: x-nullable: false type: object x-nullable: false - ResourceOfSkuSlimDataPreview: - description: Data model for a Resource + JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus: + description: "A JSON:API wrapper class to format a with external Id, Type, and\r\nAttributes properties" example: attributes: - globalBrandName: globalBrandName - gtin: gtin - globalCategoryId: globalCategoryId - retailerBrandName: retailerBrandName - mpn: mpn - retailerBrandId: retailerBrandId - globalBrandId: globalBrandId - price: 0.8008281904610115 - imageUrl: imageUrl - name: name - isInStock: true - category: category - categoryId: categoryId - updatedAt: 2000-01-23T04:56:07.000+00:00 + fileSizeBytes: 6 + md5Checksum: md5Checksum + createdAt: 2000-01-23T04:56:07.000+00:00 + currency: currency + rowCount: 0 + message: message + status: unknown id: id type: type properties: - attributes: - $ref: '#/components/schemas/SkuSlimDataPreview' id: - description: Id of the entity + format: long-id type: string + x-nullable: false type: - description: Canonical type name of the entity type: string + x-nullable: false + attributes: + $ref: '#/components/schemas/ExternalCatalogStatus' + required: + - id + - type type: object x-nullable: false - ResourceOfSkuSlimDataV2: + ResourceOfSkuDataPreview: description: Data model for a Resource example: attributes: + brandName: brandName gtin: gtin + sellerName: sellerName + description: description + mpn: mpn + productPage: productPage + retailerId: retailerId + parentId: parentId + sellerId: sellerId + skuKey: skuKey + isSellerSku: true price: 0.8008281904610115 + brandId: brandId + retailerName: retailerName imageUrl: imageUrl name: name - description: description - mpn: mpn + modelNumber: modelNumber isInStock: true - category: - text: text - brand: - name: name + category: category + categoryId: categoryId + isBuybox: true updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type - properties: - attributes: - $ref: '#/components/schemas/SkuSlimDataV2' - id: - description: Id of the entity - type: string - type: - description: Canonical type name of the entity - type: string - type: object - x-nullable: false - ResourceOfSellerPreview: - description: Data model for a Resource - example: - attributes: - name: name - id: id - type: type properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: - $ref: '#/components/schemas/SellerPreview' + $ref: '#/components/schemas/SkuDataPreview' type: object x-nullable: false - ResourceOfBrandPreview: + ResourceOfSkuSlimDataPreview: description: Data model for a Resource example: attributes: + globalBrandName: globalBrandName + gtin: gtin + globalCategoryId: globalCategoryId + retailerBrandName: retailerBrandName + mpn: mpn + retailerBrandId: retailerBrandId + globalBrandId: globalBrandId + price: 0.8008281904610115 + imageUrl: imageUrl name: name + isInStock: true + category: category + categoryId: categoryId + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type properties: attributes: - $ref: '#/components/schemas/BrandPreview' + $ref: '#/components/schemas/SkuSlimDataPreview' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - ResourceOfPlacementPreview: + ResourceOfSkuSlimDataV2: description: Data model for a Resource example: attributes: - pageType: Unknown + gtin: gtin + price: 0.8008281904610115 + imageUrl: imageUrl name: name - pageEnvironmentType: Unknown - retailerId: retailerId + description: description + mpn: mpn + isInStock: true + category: + text: text + brand: + name: name + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type properties: attributes: - $ref: '#/components/schemas/PlacementPreview' + $ref: '#/components/schemas/SkuSlimDataV2' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -6692,12 +6902,37 @@ components: type: type properties: attributes: - $ref: '#/components/schemas/CpcRateCardPreview' + $ref: '#/components/schemas/CpcRateCardPreview' + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + type: object + x-nullable: false + ResourceOfPlacementPreview: + description: Data model for a Resource + example: + attributes: + pageType: Unknown + name: name + pageEnvironmentType: Unknown + retailerId: retailerId + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/PlacementPreview' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -6824,79 +7059,89 @@ components: $ref: '#/components/schemas/Template' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - ResourceOfCreative202210: + ResourceOfBrandPreview: description: Data model for a Resource example: attributes: - formatId: 5 - templateVariableValues: - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - templateName: templateName - associatedLineItemIds: - - associatedLineItemIds - - associatedLineItemIds - environments: - - pageType: Search - environments: - - Web - - Web - - pageType: Search - environments: - - Web - - Web - brandId: 0 - creativeFormatType: Unknown name: name - retailerId: 6 - templateId: 1 - status: Ready - updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type properties: attributes: - $ref: '#/components/schemas/Creative202210' + $ref: '#/components/schemas/BrandPreview' + id: + description: Id of the entity + nullable: true + type: string + type: + description: Canonical type name of the entity + nullable: true + type: string + type: object + x-nullable: false + ResourceOfSellerPreview: + description: Data model for a Resource + example: + attributes: + name: name + id: id + type: type + properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true + type: string + attributes: + $ref: '#/components/schemas/SellerPreview' + type: object + x-nullable: false + TemplateVariableValue: + description: A value for a variable in a creative template. + example: + colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + properties: + id: + description: The id of the template variable the value is applied to type: string + x-nullable: false + textVariableValue: + $ref: '#/components/schemas/TextVariableValue' + choiceVariableValue: + $ref: '#/components/schemas/ChoiceVariableValue' + colorVariableValue: + $ref: '#/components/schemas/ColorVariableValue' + filesVariableValue: + $ref: '#/components/schemas/FilesVariableValue' + hyperlinkVariableValue: + $ref: '#/components/schemas/HyperlinkVariableValue' + required: + - id type: object x-nullable: false JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview: @@ -6938,9 +7183,11 @@ components: properties: id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string attributes: $ref: '#/components/schemas/SkuSearchRequestPreview' @@ -6961,9 +7208,11 @@ components: $ref: '#/components/schemas/SkuSearchRequestSlimPreview' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -6982,47 +7231,157 @@ components: $ref: '#/components/schemas/SkuSearchRequestSlimV2Preview' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - TemplateVariableValue: - description: A value for a variable in a creative template. + Creative202210: + description: A creative entity example: - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id + formatId: 5 + templateVariableValues: + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + - colorVariableValue: + color: color + textVariableValue: + text: text + filesVariableValue: + assetIds: + - assetIds + - assetIds + choiceVariableValue: + chosenOptions: + - chosenOptions + - chosenOptions + hyperlinkVariableValue: + url: url + id: id + templateName: templateName + associatedLineItemIds: + - associatedLineItemIds + - associatedLineItemIds + environments: + - pageType: Search + environments: + - Web + - Web + - pageType: Search + environments: + - Web + - Web + brandId: 0 + creativeFormatType: Unknown + name: name + retailerId: 6 + templateId: 1 + status: Ready + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - id: - description: The id of the template variable the value is applied to + name: + description: Name + type: string + x-nullable: false + status: + description: Creative Status + enum: + - Ready + - In_Use + - Archived + - Deleted + type: string + x-nullable: false + brandId: + description: Brand Id + format: int64 + nullable: true + type: integer + x-nullable: true + retailerId: + description: Retailer Id + format: int32 + type: integer + x-nullable: false + templateId: + description: Template Id + format: int32 + type: integer + x-nullable: false + templateName: + description: Template Name + type: string + x-nullable: false + formatId: + description: Format Id + format: int32 + type: integer + x-nullable: false + associatedLineItemIds: + description: Associated Line Item Ids + items: + type: string + x-nullable: false + type: array + x-nullable: false + updatedAt: + description: Updated at time + format: date-time type: string x-nullable: false - textVariableValue: - $ref: '#/components/schemas/TextVariableValue' - choiceVariableValue: - $ref: '#/components/schemas/ChoiceVariableValue' - colorVariableValue: - $ref: '#/components/schemas/ColorVariableValue' - filesVariableValue: - $ref: '#/components/schemas/FilesVariableValue' - hyperlinkVariableValue: - $ref: '#/components/schemas/HyperlinkVariableValue' + creativeFormatType: + description: Creative format type + enum: + - Unknown + - FlagShip + - Showcase + - SponsoredProducts + - Butterfly + - BundleBoost + - IAB + - CUSTOM + - DisplayPanel + - DigitalShelfTalker + type: string + x-nullable: false + environments: + description: "Environment type (e.g. mobile, web, app)" + items: + $ref: '#/components/schemas/PageTypeEnvironment' + type: array + x-nullable: false + templateVariableValues: + description: The template chosen values + items: + $ref: '#/components/schemas/TemplateVariableValue' + type: array + x-nullable: false required: - - id + - creativeFormatType + - environments + - formatId + - name + - retailerId + - status + - templateId + - templateName + - templateVariableValues type: object x-nullable: false ExternalCatalogStatus: @@ -7400,28 +7759,39 @@ components: - updatedAt type: object x-nullable: false - SellerPreview: - description: Retail media Seller Id and Name + CpcRateCardPreview: + description: Represents all minimum cpc rates for a retailer and category id example: - name: name + retailerMinimumCpcBid: 0.8008281904610115 + categories: + key: + name: name + text: text + parentId: parentId + categoryMinimumCpcBids: + key: 6.027456183070403 properties: - name: - description: Seller Name - type: string + retailerMinimumCpcBid: + description: retailer minimum cpc bid + format: double + type: number x-nullable: false - type: object - x-nullable: false - BrandPreview: - description: Retail media brands - example: - name: name - properties: - name: - description: Brand Name - type: string + categoryMinimumCpcBids: + additionalProperties: + format: double + type: number + x-nullable: false + description: map of category id to minimum cpc bids + type: object + x-nullable: false + categories: + additionalProperties: + $ref: '#/components/schemas/Category202204' + description: map of category id to category values + type: object x-nullable: false required: - - name + - retailerMinimumCpcBid type: object x-nullable: false PlacementPreview: @@ -7471,41 +7841,6 @@ components: - retailerId type: object x-nullable: false - CpcRateCardPreview: - description: Represents all minimum cpc rates for a retailer and category id - example: - retailerMinimumCpcBid: 0.8008281904610115 - categories: - key: - name: name - text: text - parentId: parentId - categoryMinimumCpcBids: - key: 6.027456183070403 - properties: - retailerMinimumCpcBid: - description: retailer minimum cpc bid - format: double - type: number - x-nullable: false - categoryMinimumCpcBids: - additionalProperties: - format: double - type: number - x-nullable: false - description: map of category id to minimum cpc bids - type: object - x-nullable: false - categories: - additionalProperties: - $ref: '#/components/schemas/Category202204' - description: map of category id to category values - type: object - x-nullable: false - required: - - retailerMinimumCpcBid - type: object - x-nullable: false Template: description: A template for creating creatives. example: @@ -7646,208 +7981,166 @@ components: format: int32 type: integer x-nullable: false - skuCollectionMin: - description: "TODO: what is it ?" - format: int32 - type: integer - x-nullable: false - skuCollectionMax: - description: "TODO: what is it ?" - format: int32 - nullable: true - type: integer - x-nullable: true - skuPerCollectionMin: - description: "TODO: what is it ?" - format: int32 - type: integer - x-nullable: false - skuPerCollectionMax: - description: "TODO: what is it ?" - format: int32 - nullable: true - type: integer - x-nullable: true - displayableSkusMax: - description: "TODO: what is it ?" - format: int32 - nullable: true - type: integer - x-nullable: true - allCollectionsMandatory: - description: "TODO: what is it ?" - type: boolean - x-nullable: false - createdAt: - description: The time at which the template was created - format: date-time - type: string - x-nullable: false - updatedAt: - description: The time at which the template was updated - format: date-time - type: string - x-nullable: false - sections: - description: The sections holding various template variables - items: - $ref: '#/components/schemas/Section' - type: array - x-nullable: false - required: - - allCollectionsMandatory - - createdAt - - creativeFormat - - name - - sections - - skuCollectionMin - - skuPerCollectionMin - - updatedAt - type: object - x-nullable: false - Creative202210: - description: A creative entity - example: - formatId: 5 - templateVariableValues: - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - - colorVariableValue: - color: color - textVariableValue: - text: text - filesVariableValue: - assetIds: - - assetIds - - assetIds - choiceVariableValue: - chosenOptions: - - chosenOptions - - chosenOptions - hyperlinkVariableValue: - url: url - id: id - templateName: templateName - associatedLineItemIds: - - associatedLineItemIds - - associatedLineItemIds - environments: - - pageType: Search - environments: - - Web - - Web - - pageType: Search - environments: - - Web - - Web - brandId: 0 - creativeFormatType: Unknown - name: name - retailerId: 6 - templateId: 1 - status: Ready - updatedAt: 2000-01-23T04:56:07.000+00:00 - properties: - name: - description: Name - type: string - x-nullable: false - status: - description: Creative Status - enum: - - Ready - - In_Use - - Archived - - Deleted - type: string - x-nullable: false - brandId: - description: Brand Id - format: int64 + skuCollectionMin: + description: "TODO: what is it ?" + format: int32 + type: integer + x-nullable: false + skuCollectionMax: + description: "TODO: what is it ?" + format: int32 nullable: true type: integer x-nullable: true - retailerId: - description: Retailer Id + skuPerCollectionMin: + description: "TODO: what is it ?" format: int32 type: integer x-nullable: false - templateId: - description: Template Id + skuPerCollectionMax: + description: "TODO: what is it ?" + format: int32 + nullable: true + type: integer + x-nullable: true + displayableSkusMax: + description: "TODO: what is it ?" format: int32 + nullable: true type: integer + x-nullable: true + allCollectionsMandatory: + description: "TODO: what is it ?" + type: boolean x-nullable: false - templateName: - description: Template Name + createdAt: + description: The time at which the template was created + format: date-time type: string x-nullable: false - formatId: - description: Format Id - format: int32 - type: integer + updatedAt: + description: The time at which the template was updated + format: date-time + type: string x-nullable: false - associatedLineItemIds: - description: Associated Line Item Ids + sections: + description: The sections holding various template variables items: - type: string - x-nullable: false + $ref: '#/components/schemas/Section' type: array x-nullable: false - updatedAt: - description: Updated at time - format: date-time + required: + - allCollectionsMandatory + - createdAt + - creativeFormat + - name + - sections + - skuCollectionMin + - skuPerCollectionMin + - updatedAt + type: object + x-nullable: false + BrandPreview: + description: Retail media brands + example: + name: name + properties: + name: + description: Brand Name type: string x-nullable: false - creativeFormatType: - description: Creative format type - enum: - - Unknown - - FlagShip - - Showcase - - SponsoredProducts - - Butterfly - - BundleBoost - - IAB - - CUSTOM - - DisplayPanel - - DigitalShelfTalker + required: + - name + type: object + x-nullable: false + SellerPreview: + description: Retail media Seller Id and Name + example: + name: name + properties: + name: + description: Seller Name type: string x-nullable: false - environments: - description: "Environment type (e.g. mobile, web, app)" + type: object + x-nullable: false + TextVariableValue: + description: A value of a template text variable + example: + text: text + properties: + text: + description: The displayed text + type: string + x-nullable: false + required: + - text + type: object + x-nullable: false + ChoiceVariableValue: + description: A value of a template choice variable (among different accepted + options) + example: + chosenOptions: + - chosenOptions + - chosenOptions + properties: + chosenOptions: + description: The chosen options items: - $ref: '#/components/schemas/PageTypeEnvironment' + type: string + x-nullable: false type: array x-nullable: false - templateVariableValues: - description: The template chosen values + required: + - chosenOptions + type: object + x-nullable: false + ColorVariableValue: + description: A value of a template color variable + example: + color: color + properties: + color: + description: The displayed color (HEX format) + pattern: "^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$" + type: string + x-nullable: false + required: + - color + type: object + x-nullable: false + FilesVariableValue: + description: "A value of a template file variable (one or several files), like\ + \ images in a creative" + example: + assetIds: + - assetIds + - assetIds + properties: + assetIds: + description: The assets representing the images to be displayed items: - $ref: '#/components/schemas/TemplateVariableValue' + type: string + x-nullable: false + minLength: 1 type: array x-nullable: false required: - - creativeFormatType - - environments - - formatId - - name - - retailerId - - status - - templateId - - templateName - - templateVariableValues + - assetIds + type: object + x-nullable: false + HyperlinkVariableValue: + description: A value of a template hyperlink variable + example: + url: url + properties: + url: + description: The url to redirect to + type: string + x-nullable: false + required: + - url type: object x-nullable: false ExternalCatalogRequestPreview: @@ -7989,83 +8282,43 @@ components: - searchString type: object x-nullable: false - TextVariableValue: - description: A value of a template text variable - example: - text: text - properties: - text: - description: The displayed text - type: string - x-nullable: false - required: - - text - type: object - x-nullable: false - ChoiceVariableValue: - description: A value of a template choice variable (among different accepted - options) - example: - chosenOptions: - - chosenOptions - - chosenOptions - properties: - chosenOptions: - description: The chosen options - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - chosenOptions - type: object - x-nullable: false - ColorVariableValue: - description: A value of a template color variable + PageTypeEnvironment: + description: The PageType-Environment Tuples for creatives example: - color: color + pageType: Search + environments: + - Web + - Web properties: - color: - description: The displayed color (HEX format) - pattern: "^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$" + pageType: + description: Creative PageType + enum: + - Search + - Home + - Browse + - Checkout + - Category + - ProductDetail + - Confirmation + - Merchandising + - Deals type: string x-nullable: false - required: - - color - type: object - x-nullable: false - FilesVariableValue: - description: "A value of a template file variable (one or several files), like\ - \ images in a creative" - example: - assetIds: - - assetIds - - assetIds - properties: - assetIds: - description: The assets representing the images to be displayed + environments: + description: List of environments per PageType items: + enum: + - Web + - Mobile + - App + - Lockout + - Mixed + - iOS + - Android type: string x-nullable: false - minLength: 1 type: array x-nullable: false - required: - - assetIds - type: object - x-nullable: false - HyperlinkVariableValue: - description: A value of a template hyperlink variable - example: - url: url - properties: - url: - description: The url to redirect to - type: string - x-nullable: false - required: - - url type: object x-nullable: false Category: @@ -8187,45 +8440,6 @@ components: - title type: object x-nullable: false - PageTypeEnvironment: - description: The PageType-Environment Tuples for creatives - example: - pageType: Search - environments: - - Web - - Web - properties: - pageType: - description: Creative PageType - enum: - - Search - - Home - - Browse - - Checkout - - Category - - ProductDetail - - Confirmation - - Merchandising - - Deals - type: string - x-nullable: false - environments: - description: List of environments per PageType - items: - enum: - - Web - - Mobile - - App - - Lockout - - Mixed - - iOS - - Android - type: string - x-nullable: false - type: array - x-nullable: false - type: object - x-nullable: false TemplateVariable: description: A variable in a creative template example: @@ -8403,37 +8617,21 @@ components: - id type: object x-nullable: false - ReportResponse: - description: Report response format + AsyncReportResponse: + description: Async Report response format example: data: attributes: - - - "{}" - - "{}" - - - "{}" - - "{}" + fileSizeBytes: 6 + md5CheckSum: md5CheckSum + createdAt: createdAt + rowCount: 0 + id: id + message: message + expiresAt: expiresAt + status: pending + id: id type: type - meta: - columns: - - duration: duration - role: Dimension - timezone: timezone - deprecated: true - name: name - description: description - currency: currency - title: title - type: Boolean - - duration: duration - role: Dimension - timezone: timezone - deprecated: true - name: name - description: description - currency: currency - title: title - type: Boolean - rows: 0 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8477,18 +8675,18 @@ components: type: unknown title: title properties: - meta: - $ref: '#/components/schemas/ExportReportMetaData' data: - $ref: '#/components/schemas/ReportDataResponseResource' + $ref: '#/components/schemas/StatusResponseResource' warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object @@ -8498,29 +8696,47 @@ components: warnings: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array errors: items: $ref: '#/components/schemas/CommonProblem' + nullable: true readOnly: true type: array type: object - AsyncReportResponse: - description: Async Report response format + ReportResponse: + description: Report response format example: data: attributes: - fileSizeBytes: 6 - md5CheckSum: md5CheckSum - createdAt: createdAt - rowCount: 0 - id: id - message: message - expiresAt: expiresAt - status: pending - id: id + - - "{}" + - "{}" + - - "{}" + - "{}" type: type + meta: + columns: + - duration: duration + role: Dimension + timezone: timezone + deprecated: true + name: name + description: description + currency: currency + title: title + type: Boolean + - duration: duration + role: Dimension + timezone: timezone + deprecated: true + name: name + description: description + currency: currency + title: title + type: Boolean + rows: 0 warnings: - traceId: traceId traceIdentifier: traceIdentifier @@ -8563,19 +8779,143 @@ components: stackTrace: stackTrace type: unknown title: title + properties: + meta: + $ref: '#/components/schemas/ExportReportMetaData' + data: + $ref: '#/components/schemas/ReportDataResponseResource' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + type: object + AsyncCampaignReportRequest: + description: A top-level object that encapsulates a Criteo API request for a + single value + example: + data: + attributes: + clickAttributionWindow: 7D + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: timezone + format: json + salesChannel: offline + reportType: summary + viewAttributionWindow: 1D + ids: + - ids + - ids + metrics: + - impressions + - impressions + id: id + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + type: type + properties: + data: + $ref: '#/components/schemas/AsyncCampaignReportResource' + type: object + AsyncLineItemReportRequest: + description: A top-level object that encapsulates a Criteo API request for a + single value + example: + data: + attributes: + clickAttributionWindow: 7D + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: timezone + format: json + salesChannel: offline + reportType: summary + viewAttributionWindow: 1D + ids: + - ids + - ids + metrics: + - impressions + - impressions + id: id + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + type: type + properties: + data: + $ref: '#/components/schemas/AsyncLineItemReportResource' + type: object + AsyncRevenueReportRequest: + description: A top-level object that encapsulates a Criteo API request for a + single value + example: + data: + attributes: + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + campaignSubType: auctionAndPreferred + timezone: timezone + soldBy: directSold + revenueType: auction + format: json + salesChannel: offline + reportType: advertiser + ids: + - ids + - ids + id: id + metrics: + - clicks + - clicks + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + type: type + properties: + data: + $ref: '#/components/schemas/AsyncRevenueReportResource' + type: object + AttributedTransactionReportRequest: + description: A top-level object that encapsulates a Criteo API request for a + single value + example: + data: + attributes: + accountId: accountId + clickAttributionWindow: 7D + lineItemIds: + - lineItemIds + - lineItemIds + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: UTC + viewAttributionWindow: none + campaignIds: + - campaignIds + - campaignIds + metrics: + - attributedUnits + - attributedUnits + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - campaignName + - campaignName + type: type properties: data: - $ref: '#/components/schemas/StatusResponseResource' - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - errors: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array + $ref: '#/components/schemas/AttributedTransactionReportResource' type: object CampaignReportRequest: description: A top-level object that encapsulates a Criteo API request for a @@ -8638,485 +8978,897 @@ components: data: $ref: '#/components/schemas/LineItemReportResource' type: object - AttributedTransactionReportRequest: - description: A top-level object that encapsulates a Criteo API request for a - single value + StatusResponseResource: + description: A class that represents a domain entity exposed by an API example: - data: - attributes: - accountId: accountId - clickAttributionWindow: 7D - lineItemIds: - - lineItemIds - - lineItemIds - campaignSubType: auctionAndPreferred - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: UTC - soldBy: directSold - viewAttributionWindow: none - campaignIds: - - campaignIds - - campaignIds - metrics: - - attributedUnits - - attributedUnits - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - campaignName - - campaignName - type: type + attributes: + fileSizeBytes: 6 + md5CheckSum: md5CheckSum + createdAt: createdAt + rowCount: 0 + id: id + message: message + expiresAt: expiresAt + status: pending + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/StatusResponse' + id: + nullable: true + type: string + type: + nullable: true + type: string + type: object + ExportReportMetaData: + description: "Metadata for an async report request: descriptions of the columns\ + \ and number of rows returned" + example: + columns: + - duration: duration + role: Dimension + timezone: timezone + deprecated: true + name: name + description: description + currency: currency + title: title + type: Boolean + - duration: duration + role: Dimension + timezone: timezone + deprecated: true + name: name + description: description + currency: currency + title: title + type: Boolean + rows: 0 + properties: + columns: + items: + $ref: '#/components/schemas/ExportReportColumn' + nullable: true + type: array + rows: + format: int32 + nullable: true + type: integer + type: object + ReportDataResponseResource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + - - "{}" + - "{}" + - - "{}" + - "{}" + type: type + properties: + type: + nullable: true + type: string + attributes: + items: + items: + type: object + type: array + nullable: true + type: array + type: object + AsyncCampaignReportResource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + clickAttributionWindow: 7D + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: timezone + format: json + salesChannel: offline + reportType: summary + viewAttributionWindow: 1D + ids: + - ids + - ids + metrics: + - impressions + - impressions + id: id + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AsyncCampaignReport' + type: object + AsyncLineItemReportResource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + clickAttributionWindow: 7D + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: timezone + format: json + salesChannel: offline + reportType: summary + viewAttributionWindow: 1D + ids: + - ids + - ids + metrics: + - impressions + - impressions + id: id + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AsyncLineItemReport' + type: object + AsyncRevenueReportResource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + campaignSubType: auctionAndPreferred + timezone: timezone + soldBy: directSold + revenueType: auction + format: json + salesChannel: offline + reportType: advertiser + ids: + - ids + - ids + id: id + metrics: + - clicks + - clicks + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + type: type + properties: + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AsyncRevenueReport' + type: object + AttributedTransactionReportResource: + description: A top-level object that encapsulates a Criteo API response for + a single value + example: + attributes: + accountId: accountId + clickAttributionWindow: 7D + lineItemIds: + - lineItemIds + - lineItemIds + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: UTC + viewAttributionWindow: none + campaignIds: + - campaignIds + - campaignIds + metrics: + - attributedUnits + - attributedUnits + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - campaignName + - campaignName + type: type properties: - data: - $ref: '#/components/schemas/AttributedTransactionReportResource' + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/AttributedTransactionsReport' type: object - AsyncCampaignReportRequest: - description: A top-level object that encapsulates a Criteo API request for a - single value + CampaignReportResource: + description: A top-level object that encapsulates a Criteo API response for + a single value example: - data: - attributes: - clickAttributionWindow: 7D - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: timezone - format: json - salesChannel: offline - reportType: summary - viewAttributionWindow: 1D - ids: - - ids - - ids - metrics: - - impressions - - impressions - id: id - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date - type: type + attributes: + reportType: summary + accountId: accountId + clickAttributionWindow: 7D + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: UTC + viewAttributionWindow: none + campaignIds: + - campaignIds + - campaignIds + metrics: + - impressions + - impressions + salesChannel: offline + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + type: type properties: - data: - $ref: '#/components/schemas/AsyncCampaignReportResource' + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/CampaignReport' type: object - AsyncLineItemReportRequest: - description: A top-level object that encapsulates a Criteo API request for a - single value + LineItemReportResource: + description: A top-level object that encapsulates a Criteo API response for + a single value example: - data: - attributes: - clickAttributionWindow: 7D - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: timezone - format: json - salesChannel: offline - reportType: summary - viewAttributionWindow: 1D - ids: - - ids - - ids - metrics: - - impressions - - impressions - id: id - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date - type: type + attributes: + clickAttributionWindow: 7D + campaignType: sponsoredProducts + lineItemIds: + - lineItemIds + - lineItemIds + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: timezone + salesChannel: offline + reportType: summary + accountId: accountId + viewAttributionWindow: 1D + campaignIds: + - campaignIds + - campaignIds + metrics: + - impressions + - impressions + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date + type: type properties: - data: - $ref: '#/components/schemas/AsyncLineItemReportResource' + type: + nullable: true + type: string + attributes: + $ref: '#/components/schemas/LineItemReport' type: object - AsyncRevenueReportRequest: - description: A top-level object that encapsulates a Criteo API request for a - single value + StatusResponse: + description: Status of an async report request example: - data: - attributes: - reportType: advertiser - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: timezone - revenueType: auction - format: json - ids: - - ids - - ids - id: id - metrics: - - clicks - - clicks - salesChannel: offline - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date - type: type + fileSizeBytes: 6 + md5CheckSum: md5CheckSum + createdAt: createdAt + rowCount: 0 + id: id + message: message + expiresAt: expiresAt + status: pending properties: - data: - $ref: '#/components/schemas/AsyncRevenueReportResource' + status: + enum: + - pending + - success + - failure + - expired + nullable: true + type: string + rowCount: + format: int32 + nullable: true + type: integer + fileSizeBytes: + format: int32 + nullable: true + type: integer + md5CheckSum: + nullable: true + type: string + createdAt: + nullable: true + type: string + expiresAt: + nullable: true + type: string + message: + nullable: true + type: string + id: + nullable: true + type: string + type: object + x-criteo-canonical: + infoType: entity + ExportReportColumn: + description: Description of a column from an async report request + example: + duration: duration + role: Dimension + timezone: timezone + deprecated: true + name: name + description: description + currency: currency + title: title + type: Boolean + properties: + name: + description: Name of the exported column + type: string + title: + description: Title of the exported column + nullable: true + type: string + description: + description: Description of the exported column + nullable: true + type: string + type: + description: Type of the column + enum: + - Boolean + - Number + - Money + - String + - Date + - DateTime + - Interval + - Duration + type: string + role: + description: Role of the colummn + enum: + - Dimension + - Property + - Interval + - Metric + type: string + timezone: + description: Timezone of the column + nullable: true + type: string + duration: + description: Duration of the column + nullable: true + type: string + currency: + description: Currency of the column + nullable: true + type: string + deprecated: + description: Flag for deprecated column + nullable: true + type: boolean + required: + - name + - role + - type type: object - ExportReportMetaData: - description: "Metadata for an async report request: descriptions of the columns\ - \ and number of rows returned" + AsyncCampaignReport: + description: Campaign report body request example: - columns: - - duration: duration - role: Dimension - timezone: timezone - deprecated: true - name: name - description: description - currency: currency - title: title - type: Boolean - - duration: duration - role: Dimension - timezone: timezone - deprecated: true - name: name - description: description - currency: currency - title: title - type: Boolean - rows: 0 + clickAttributionWindow: 7D + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: timezone + format: json + salesChannel: offline + reportType: summary + viewAttributionWindow: 1D + ids: + - ids + - ids + metrics: + - impressions + - impressions + id: id + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date properties: - columns: + metrics: items: - $ref: '#/components/schemas/ExportReportColumn' + enum: + - impressions + - clicks + - spend + - attributedSales + - attributedUnits + - attributedOrders + - ctr + - cpc + - cpo + - cpm + - roas + - uniqueVisitors + - frequency + type: string + nullable: true type: array - rows: - format: int32 - type: integer - type: object - ReportDataResponseResource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - - - "{}" - - "{}" - - - "{}" - - "{}" - type: type - properties: - type: + dimensions: + items: + enum: + - date + - campaignId + - campaignName + - campaignTypeName + - advProductCategory + - advProductId + - advProductName + - brandId + - brandName + - pageTypeName + - keyword + - salesChannel + type: string + nullable: true + type: array + clickAttributionWindow: + enum: + - 7D + - 14D + - 30D + - none + nullable: true type: string - attributes: + viewAttributionWindow: + enum: + - 1D + - 7D + - 14D + - 30D + - none + nullable: true + type: string + startDate: + format: date-time + type: string + endDate: + format: date-time + type: string + timezone: + nullable: true + type: string + campaignType: + enum: + - sponsoredProducts + - onSiteDisplays + nullable: true + type: string + salesChannel: + enum: + - offline + - online + nullable: true + type: string + format: + enum: + - json + - json-compact + - json-newline + - csv + nullable: true + type: string + reportType: + enum: + - summary + - pageType + - keyword + - productCategory + - product + - attributedTransactions + nullable: true + type: string + ids: items: - items: - type: object - type: array + type: string + nullable: true type: array + id: + nullable: true + type: string + required: + - endDate + - startDate type: object - StatusResponseResource: - description: A class that represents a domain entity exposed by an API + AsyncLineItemReport: + description: Line Item report body request example: - attributes: - fileSizeBytes: 6 - md5CheckSum: md5CheckSum - createdAt: createdAt - rowCount: 0 - id: id - message: message - expiresAt: expiresAt - status: pending + clickAttributionWindow: 7D + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: timezone + format: json + salesChannel: offline + reportType: summary + viewAttributionWindow: 1D + ids: + - ids + - ids + metrics: + - impressions + - impressions id: id - type: type + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date properties: - attributes: - $ref: '#/components/schemas/StatusResponse' - id: + metrics: + items: + enum: + - impressions + - clicks + - spend + - attributedSales + - attributedUnits + - attributedOrders + - ctr + - cpc + - cpo + - roas + - assistedUnits + - assistedSales + - uniqueVisitors + - frequency + type: string + nullable: true + type: array + dimensions: + items: + enum: + - date + - campaignId + - campaignName + - campaignTypeName + - advProductCategory + - advProductId + - advProductName + - brandId + - brandName + - lineItemId + - lineItemName + - retailerId + - retailerName + - keyword + - pageTypeName + - salesChannel + type: string + nullable: true + type: array + clickAttributionWindow: + enum: + - 7D + - 14D + - 30D + - none + nullable: true + type: string + viewAttributionWindow: + enum: + - 1D + - 7D + - 14D + - 30D + - none + nullable: true type: string - type: + startDate: + format: date-time type: string - type: object - CampaignReportResource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - reportType: summary - accountId: accountId - clickAttributionWindow: 7D - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: UTC - viewAttributionWindow: none - campaignIds: - - campaignIds - - campaignIds - metrics: - - impressions - - impressions - salesChannel: offline - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date - type: type - properties: - type: + endDate: + format: date-time type: string - attributes: - $ref: '#/components/schemas/CampaignReport' - type: object - LineItemReportResource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - clickAttributionWindow: 7D - campaignType: sponsoredProducts - lineItemIds: - - lineItemIds - - lineItemIds - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: timezone - salesChannel: offline - reportType: summary - accountId: accountId - viewAttributionWindow: 1D - campaignIds: - - campaignIds - - campaignIds - metrics: - - impressions - - impressions - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date - type: type - properties: - type: + timezone: + nullable: true type: string - attributes: - $ref: '#/components/schemas/LineItemReport' - type: object - AttributedTransactionReportResource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - accountId: accountId - clickAttributionWindow: 7D - lineItemIds: - - lineItemIds - - lineItemIds - campaignSubType: auctionAndPreferred - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: UTC - soldBy: directSold - viewAttributionWindow: none - campaignIds: - - campaignIds - - campaignIds - metrics: - - attributedUnits - - attributedUnits - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - campaignName - - campaignName - type: type - properties: - type: + campaignType: + enum: + - sponsoredProducts + - onSiteDisplays + nullable: true type: string - attributes: - $ref: '#/components/schemas/AttributedTransactionsReport' - type: object - AsyncCampaignReportResource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - clickAttributionWindow: 7D - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: timezone - format: json - salesChannel: offline - reportType: summary - viewAttributionWindow: 1D - ids: - - ids - - ids - metrics: - - impressions - - impressions - id: id - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date - type: type - properties: - type: + salesChannel: + enum: + - offline + - online + nullable: true type: string - attributes: - $ref: '#/components/schemas/AsyncCampaignReport' - type: object - AsyncLineItemReportResource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - clickAttributionWindow: 7D - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: timezone - format: json - salesChannel: offline - reportType: summary - viewAttributionWindow: 1D - ids: - - ids - - ids - metrics: - - impressions - - impressions - id: id - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date - type: type - properties: - type: + format: + enum: + - json + - json-compact + - json-newline + - csv + nullable: true type: string - attributes: - $ref: '#/components/schemas/AsyncLineItemReport' - type: object - AsyncRevenueReportResource: - description: A top-level object that encapsulates a Criteo API response for - a single value - example: - attributes: - reportType: advertiser - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: timezone - revenueType: auction - format: json - ids: - - ids - - ids - id: id - metrics: - - clicks - - clicks - salesChannel: offline - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date - type: type - properties: - type: + reportType: + enum: + - summary + - pageType + - keyword + - productCategory + - product + - attributedTransactions + nullable: true type: string - attributes: - $ref: '#/components/schemas/AsyncRevenueReport' + ids: + items: + type: string + nullable: true + type: array + id: + nullable: true + type: string + required: + - endDate + - startDate type: object - ExportReportColumn: - description: Description of a column from an async report request + AsyncRevenueReport: + description: Async Revenue report body request example: - duration: duration - role: Dimension + campaignType: sponsoredProducts + endDate: 2000-01-23T04:56:07.000+00:00 + campaignSubType: auctionAndPreferred timezone: timezone - deprecated: true - name: name - description: description - currency: currency - title: title - type: Boolean + soldBy: directSold + revenueType: auction + format: json + salesChannel: offline + reportType: advertiser + ids: + - ids + - ids + id: id + metrics: + - clicks + - clicks + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - date + - date properties: - name: - description: Name of the exported column + reportType: + enum: + - advertiser + - environment + - pageType + - pageCategory + - brand + nullable: true type: string - title: - description: Title of the exported column + revenueType: + enum: + - auction + - preferred + nullable: true type: string - description: - description: Description of the exported column + ids: + items: + type: string + nullable: true + type: array + id: + nullable: true type: string - type: - description: Type of the column + metrics: + items: + enum: + - clicks + - spend + - attributedOrders + - attributedSales + - attributedUnits + - cpc + - cpo + - roas + - openAuctionRevenue + - preferredDealsRevenue + - avgCpc + - avgCpm + type: string + nullable: true + type: array + dimensions: + items: + enum: + - date + - accountId + - accountName + - environment + - advProductCategory + - brandId + - brandName + - pageTypeName + type: string + nullable: true + type: array + format: enum: - - Boolean - - Number - - Money - - String - - Date - - DateTime - - Interval - - Duration + - json + - json-compact + - json-newline + - csv + nullable: true type: string - role: - description: Role of the colummn - enum: - - Dimension - - Property - - Interval - - Metric + startDate: + format: date-time + type: string + endDate: + format: date-time type: string timezone: - description: Timezone of the column + nullable: true type: string - duration: - description: Duration of the column + campaignType: + enum: + - sponsoredProducts + - onSiteDisplays + nullable: true type: string - currency: - description: Currency of the column + salesChannel: + enum: + - offline + - online + nullable: true + type: string + soldBy: + description: Filter on the type of seller + enum: + - directSold + - indirectSold + - privateMarket + nullable: true + type: string + campaignSubType: + description: Filter on the campaign sub type + enum: + - auctionAndPreferred + - lockout + nullable: true type: string - deprecated: - description: Flag for deprecated column - type: boolean required: - - name - - role - - type + - endDate + - startDate type: object - StatusResponse: - description: Status of an async report request + AttributedTransactionsReport: + description: Attributed transactions report body request example: - fileSizeBytes: 6 - md5CheckSum: md5CheckSum - createdAt: createdAt - rowCount: 0 - id: id - message: message - expiresAt: expiresAt - status: pending + accountId: accountId + clickAttributionWindow: 7D + lineItemIds: + - lineItemIds + - lineItemIds + endDate: 2000-01-23T04:56:07.000+00:00 + timezone: UTC + viewAttributionWindow: none + campaignIds: + - campaignIds + - campaignIds + metrics: + - attributedUnits + - attributedUnits + startDate: 2000-01-23T04:56:07.000+00:00 + dimensions: + - campaignName + - campaignName properties: - status: - enum: - - pending - - success - - failure - - expired + campaignIds: + description: Campaign ids to report on + items: + type: string + nullable: true + type: array + lineItemIds: + description: Line item ids to report on + items: + type: string + nullable: true + type: array + dimensions: + description: List of dimensions to report on + items: + enum: + - campaignName + - campaignId + - lineItemId + - purchasedDate + - purchasedHour + - advDate + - advHour + - daysDifference + - lineItemName + - advProductId + - advProductGtin + - advProductMpn + - advProductName + - advProductCategory + - purchasedProductId + - purchasedProductGtin + - purchasedProductMpn + - purchasedProductName + - purchasedProductCategory + - advEngagement + - advToPurchasedProductRelationship + - salesChannel + - pageTypeName + - retailerName + - keyword + - attributionWindow + type: string + nullable: true + type: array + metrics: + description: List of metrics to report on + items: + enum: + - attributedUnits + - attributedSales + type: string + nullable: true + type: array + accountId: + description: Account id to report on type: string - rowCount: - format: int32 - type: integer - fileSizeBytes: - format: int32 - type: integer - md5CheckSum: + startDate: + description: Start date + format: date-time type: string - createdAt: + endDate: + description: End Date + format: date-time type: string - expiresAt: + timezone: + default: UTC + description: "Time zone : see criteo developer portal for supported time\ + \ zones" + nullable: true type: string - message: + clickAttributionWindow: + default: 7D + description: Click Attribution Window + enum: + - 7D + - 14D + - 30D + nullable: true type: string - id: + viewAttributionWindow: + default: none + description: View Attribution window + enum: + - 1D + - 7D + - 14D + - 30D + - none + nullable: true type: string + required: + - accountId + - endDate + - startDate type: object - x-criteo-canonical: - infoType: entity CampaignReport: description: Campaign report body request example: @@ -9146,11 +9898,13 @@ components: - keyword - productCategory - product + nullable: true type: string campaignIds: description: List of campaign Ids to filter items: type: string + nullable: true type: array metrics: description: List of Metrics to report on @@ -9170,6 +9924,7 @@ components: - uniqueVisitors - frequency type: string + nullable: true type: array dimensions: description: List of dimensions to report on @@ -9188,6 +9943,7 @@ components: - keyword - salesChannel type: string + nullable: true type: array accountId: description: Account id to report on @@ -9204,6 +9960,7 @@ components: default: UTC description: "Time zone : see criteo developer portal for supported time\ \ zones" + nullable: true type: string clickAttributionWindow: default: 7D @@ -9212,6 +9969,7 @@ components: - 7D - 14D - 30D + nullable: true type: string viewAttributionWindow: default: none @@ -9222,18 +9980,21 @@ components: - 14D - 30D - none + nullable: true type: string campaignType: description: Filter the type of campaign to report on enum: - sponsoredProducts - onSiteDisplays + nullable: true type: string salesChannel: description: Filter on the channel of sales enum: - offline - online + nullable: true type: string required: - accountId @@ -9265,580 +10026,901 @@ components: - date - date properties: - reportType: - enum: - - summary - - pageType - - keyword - - productCategory - - product - type: string - lineItemIds: - items: - type: string - type: array - campaignIds: + reportType: + enum: + - summary + - pageType + - keyword + - productCategory + - product + nullable: true + type: string + lineItemIds: + items: + type: string + nullable: true + type: array + campaignIds: + items: + type: string + nullable: true + type: array + metrics: + items: + enum: + - impressions + - clicks + - spend + - attributedSales + - attributedUnits + - attributedOrders + - ctr + - cpc + - cpo + - roas + - assistedUnits + - assistedSales + - uniqueVisitors + - frequency + type: string + nullable: true + type: array + dimensions: + description: List of dimensions to report on + items: + enum: + - date + - campaignId + - campaignName + - campaignTypeName + - advProductCategory + - advProductId + - advProductName + - brandId + - brandName + - lineItemId + - lineItemName + - retailerId + - retailerName + - keyword + - pageTypeName + - salesChannel + type: string + nullable: true + type: array + accountId: + type: string + startDate: + format: date-time + type: string + endDate: + format: date-time + type: string + timezone: + nullable: true + type: string + clickAttributionWindow: + enum: + - 7D + - 14D + - 30D + - none + nullable: true + type: string + viewAttributionWindow: + enum: + - 1D + - 7D + - 14D + - 30D + - none + nullable: true + type: string + campaignType: + enum: + - sponsoredProducts + - onSiteDisplays + nullable: true + type: string + salesChannel: + enum: + - offline + - online + nullable: true + type: string + required: + - accountId + - endDate + - startDate + type: object + ValueResourceOutcomeOfCampaignBudgetOverrides: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + data: + attributes: + monthlyBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: + $ref: '#/components/schemas/ValueResourceOfCampaignBudgetOverrides' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + type: object + ResourceCollectionOutcomeOfSkuSearchResult: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + several entities. + example: + data: + - attributes: + globalBrandName: globalBrandName + gtin: gtin + globalCategoryId: globalCategoryId + retailerBrandName: retailerBrandName + mpn: mpn + retailerBrandId: retailerBrandId + globalBrandId: globalBrandId + price: 0.8008281904610115 + imageUrl: imageUrl + name: name + modelNumber: modelNumber + isInStock: true + category: category + categoryId: categoryId + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + globalBrandName: globalBrandName + gtin: gtin + globalCategoryId: globalCategoryId + retailerBrandName: retailerBrandName + mpn: mpn + retailerBrandId: retailerBrandId + globalBrandId: globalBrandId + price: 0.8008281904610115 + imageUrl: imageUrl + name: name + modelNumber: modelNumber + isInStock: true + category: category + categoryId: categoryId + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + properties: + data: items: - type: string + $ref: '#/components/schemas/ResourceOfSkuSearchResult' + nullable: true type: array - metrics: + warnings: items: - enum: - - impressions - - clicks - - spend - - attributedSales - - attributedUnits - - attributedOrders - - ctr - - cpc - - cpo - - roas - - assistedUnits - - assistedSales - - uniqueVisitors - - frequency - type: string + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true type: array - dimensions: - description: List of dimensions to report on + errors: items: - enum: - - date - - campaignId - - campaignName - - campaignTypeName - - advProductCategory - - advProductId - - advProductName - - brandId - - brandName - - lineItemId - - lineItemName - - retailerId - - retailerName - - keyword - - pageTypeName - - salesChannel - type: string + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true type: array - accountId: - type: string - startDate: - format: date-time - type: string - endDate: - format: date-time - type: string - timezone: - type: string - clickAttributionWindow: - enum: - - 7D - - 14D - - 30D - - none - type: string - viewAttributionWindow: - enum: - - 1D - - 7D - - 14D - - 30D - - none - type: string - campaignType: - enum: - - sponsoredProducts - - onSiteDisplays - type: string - salesChannel: - enum: - - offline - - online - type: string - required: - - accountId - - endDate - - startDate type: object - AttributedTransactionsReport: - description: Attributed transactions report body request + ValueResourceOutcomeOfSuggestedKeywordsResult: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. example: - accountId: accountId - clickAttributionWindow: 7D - lineItemIds: - - lineItemIds - - lineItemIds - campaignSubType: auctionAndPreferred - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: UTC - soldBy: directSold - viewAttributionWindow: none - campaignIds: - - campaignIds - - campaignIds - metrics: - - attributedUnits - - attributedUnits - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - campaignName - - campaignName + data: + attributes: + keywords: + key: + createdAt: 2000-01-23T04:56:07.000+00:00 + matchType: PositiveExactMatch + inputKeywords: + negativeBroad: + - negativeBroad + - negativeBroad + positiveExact: + - positiveExact + - positiveExact + negativeExact: + - negativeExact + - negativeExact + reviewState: InReview + bid: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + recommendedKeywords: + - recommendedKeywords + - recommendedKeywords + type: type + warnings: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + errors: + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title + - traceId: traceId + traceIdentifier: traceIdentifier + code: code + instance: instance + detail: detail + source: + key: source + stackTrace: stackTrace + type: unknown + title: title properties: - campaignIds: - description: Campaign ids to report on - items: - type: string - type: array - lineItemIds: - description: Line item ids to report on - items: - type: string - type: array - dimensions: - description: List of dimensions to report on - items: - enum: - - campaignName - - campaignId - - lineItemId - - purchasedDate - - purchasedHour - - advDate - - advHour - - daysDifference - - lineItemName - - advProductId - - advProductGtin - - advProductMpn - - advProductName - - advProductCategory - - purchasedProductId - - purchasedProductGtin - - purchasedProductMpn - - purchasedProductName - - purchasedProductCategory - - advEngagement - - advToPurchasedProductRelationship - - salesChannel - - pageTypeName - - retailerName - - keyword - - attributionWindow - type: string - type: array - metrics: - description: List of metrics to report on - items: - enum: - - attributedUnits - - attributedSales - type: string - type: array - soldBy: - description: Filter on the type of seller - enum: - - directSold - - indirectSold - - privateMarket - type: string - campaignSubType: - description: Filter on the campaign sub type - enum: - - auctionAndPreferred - - lockout - type: string - accountId: - description: Account id to report on - type: string - startDate: - description: Start date - format: date-time + data: + $ref: '#/components/schemas/ValueResourceOfSuggestedKeywordsResult' + warnings: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + errors: + items: + $ref: '#/components/schemas/CommonProblem' + nullable: true + readOnly: true + type: array + type: object + SkuSearchRequest: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API request for a + single entity. + example: + data: + productIdType: SkuKey + queryIds: + - queryIds + - queryIds + properties: + data: + $ref: '#/components/schemas/SkuSearchRequestBody' + required: + - data + type: object + ValueResourceOfCampaignBudgetOverrides: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + attributes: + monthlyBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + type: type + properties: + type: + nullable: true type: string - endDate: - description: End Date - format: date-time + attributes: + $ref: '#/components/schemas/CampaignBudgetOverrides' + type: object + ResourceOfSkuSearchResult: + additionalProperties: false + description: A class that represents a domain entity exposed by an API. + example: + attributes: + globalBrandName: globalBrandName + gtin: gtin + globalCategoryId: globalCategoryId + retailerBrandName: retailerBrandName + mpn: mpn + retailerBrandId: retailerBrandId + globalBrandId: globalBrandId + price: 0.8008281904610115 + imageUrl: imageUrl + name: name + modelNumber: modelNumber + isInStock: true + category: category + categoryId: categoryId + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + properties: + attributes: + $ref: '#/components/schemas/SkuSearchResult' + id: + description: Unique identifier of this resource. + nullable: true type: string - timezone: - default: UTC - description: "Time zone : see criteo developer portal for supported time\ - \ zones" + type: + nullable: true type: string - clickAttributionWindow: - default: 7D - description: Click Attribution Window - enum: - - 7D - - 14D - - 30D + type: object + ValueResourceOfSuggestedKeywordsResult: + additionalProperties: false + description: A top-level object that encapsulates a Criteo API response for + a single value. + example: + attributes: + keywords: + key: + createdAt: 2000-01-23T04:56:07.000+00:00 + matchType: PositiveExactMatch + inputKeywords: + negativeBroad: + - negativeBroad + - negativeBroad + positiveExact: + - positiveExact + - positiveExact + negativeExact: + - negativeExact + - negativeExact + reviewState: InReview + bid: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + recommendedKeywords: + - recommendedKeywords + - recommendedKeywords + type: type + properties: + type: + nullable: true type: string - viewAttributionWindow: - default: none - description: View Attribution window + attributes: + $ref: '#/components/schemas/SuggestedKeywordsResult' + type: object + SkuSearchRequestBody: + additionalProperties: false + description: defines the type product Id to search and list of ids to be searched + for + example: + productIdType: SkuKey + queryIds: + - queryIds + - queryIds + properties: + productIdType: + description: sets which product id the QueryIds will be compared to enum: - - 1D - - 7D - - 14D - - 30D - - none + - SkuKey + - Gtin + - Mpn + - Model + - SkuId + - ParentId type: string + queryIds: + description: list of product ids to search for + items: + type: string + type: array required: - - accountId - - endDate - - startDate + - productIdType + - queryIds type: object - AsyncCampaignReport: - description: Campaign report body request + CampaignBudgetOverrides: + additionalProperties: false + description: Campaign budget overrides including Monthly and Daily budget overrides. example: - clickAttributionWindow: 7D - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: timezone - format: json - salesChannel: offline - reportType: summary - viewAttributionWindow: 1D - ids: - - ids - - ids - metrics: - - impressions - - impressions - id: id - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date + monthlyBudgetOverrides: + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + dailyBudgetOverrides: + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + - duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired properties: - metrics: + monthlyBudgetOverrides: + description: "Campaign budget override monthly part, chronological order\ + \ restricted." items: - enum: - - impressions - - clicks - - spend - - attributedSales - - attributedUnits - - attributedOrders - - ctr - - cpc - - cpo - - cpm - - roas - - uniqueVisitors - - frequency - type: string + $ref: '#/components/schemas/CampaignMonthlyBudgetOverride' type: array - dimensions: + dailyBudgetOverrides: + description: "Campaign budget override daily part, chronological order restricted." items: - enum: - - date - - campaignId - - campaignName - - campaignTypeName - - advProductCategory - - advProductId - - advProductName - - brandId - - brandName - - pageTypeName - - keyword - - salesChannel - type: string + $ref: '#/components/schemas/CampaignDailyBudgetOverride' type: array - clickAttributionWindow: - enum: - - 7D - - 14D - - 30D - - none + required: + - dailyBudgetOverrides + - monthlyBudgetOverrides + type: object + SkuSearchResult: + additionalProperties: false + description: Data model for response resource + example: + globalBrandName: globalBrandName + gtin: gtin + globalCategoryId: globalCategoryId + retailerBrandName: retailerBrandName + mpn: mpn + retailerBrandId: retailerBrandId + globalBrandId: globalBrandId + price: 0.8008281904610115 + imageUrl: imageUrl + name: name + modelNumber: modelNumber + isInStock: true + category: category + categoryId: categoryId + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + name: + description: The product name + nullable: true type: string - viewAttributionWindow: - enum: - - 1D - - 7D - - 14D - - 30D - - none + categoryId: + description: The cateogry Id + nullable: true type: string - startDate: - format: date-time + category: + description: The full retailer category taken from the retailers catalog + nullable: true type: string - endDate: - format: date-time + globalBrandId: + description: The global brand id associated to the product + nullable: true type: string - timezone: + globalBrandName: + description: The name of the global brand + nullable: true type: string - campaignType: - enum: - - sponsoredProducts - - onSiteDisplays + retailerBrandId: + description: The retailer brand id associated to the product + nullable: true type: string - salesChannel: - enum: - - offline - - online + retailerBrandName: + description: The name of the retailer brand + nullable: true type: string - format: - enum: - - json - - json-compact - - json-newline - - csv + globalCategoryId: + description: the Global Category Id + nullable: true + type: string + price: + description: The product price pulled from the retailer's catalog + format: double + nullable: true + type: number + modelNumber: + description: The model number for the product + nullable: true + type: string + isInStock: + description: Indicates if the retailer product is in stock + nullable: true + type: boolean + gtin: + description: "A GTIN identifier for the product if available.\r\nTIt covers\ + \ variations such as EANs and UPCs" + nullable: true type: string - reportType: - enum: - - summary - - pageType - - keyword - - productCategory - - product - - attributedTransactions + mpn: + description: The MPN identifier for the product if available + nullable: true type: string - ids: - items: - type: string - type: array - id: + imageUrl: + description: An http image resource provided by the retailer catalog + nullable: true + type: string + updatedAt: + description: "The last time this product was updated in the Retail Media\ + \ Catalog.\r\nThe date value is represented as an UTC ISO8601 string" + format: date-time + nullable: true type: string - required: - - endDate - - startDate type: object - AsyncLineItemReport: - description: Line Item report body request + SuggestedKeywordsResult: + additionalProperties: false + description: Response model for suggested keywords example: - clickAttributionWindow: 7D - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: timezone - format: json - salesChannel: offline - reportType: summary - viewAttributionWindow: 1D - ids: - - ids - - ids - metrics: - - impressions - - impressions - id: id - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date + keywords: + key: + createdAt: 2000-01-23T04:56:07.000+00:00 + matchType: PositiveExactMatch + inputKeywords: + negativeBroad: + - negativeBroad + - negativeBroad + positiveExact: + - positiveExact + - positiveExact + negativeExact: + - negativeExact + - negativeExact + reviewState: InReview + bid: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 + recommendedKeywords: + - recommendedKeywords + - recommendedKeywords properties: - metrics: - items: - enum: - - impressions - - clicks - - spend - - attributedSales - - attributedUnits - - attributedOrders - - ctr - - cpc - - cpo - - roas - - assistedUnits - - assistedSales - - uniqueVisitors - - frequency - type: string - type: array - dimensions: + keywords: + additionalProperties: + $ref: '#/components/schemas/Keywords' + description: Dictionary of keywords to their keyword models + nullable: true + type: object + recommendedKeywords: + description: Collection of recommended keywords items: - enum: - - date - - campaignId - - campaignName - - campaignTypeName - - advProductCategory - - advProductId - - advProductName - - brandId - - brandName - - lineItemId - - lineItemName - - retailerId - - retailerName - - keyword - - pageTypeName - - salesChannel type: string + nullable: true type: array - clickAttributionWindow: - enum: - - 7D - - 14D - - 30D - - none - type: string - viewAttributionWindow: - enum: - - 1D - - 7D - - 14D - - 30D - - none - type: string - startDate: - format: date-time - type: string - endDate: + type: object + CampaignMonthlyBudgetOverride: + additionalProperties: false + description: Campaign monthly budget override. + example: + duration: duration + maxMonthlySpend: 0.8008281904610115 + startMonth: 2000-01-23T04:56:07.000+00:00 + status: Expired + properties: + startMonth: + description: "Monthly budget override start month, format \"yyyy-MM\". If\ + \ it is null, the StartMonth would be the following month of the last\ + \ item in the override sequence." format: date-time + nullable: true type: string - timezone: + duration: + description: "Monthly budget override duration, e.g. \"1M\". Must be ending\ + \ with \"M\"." type: string - campaignType: + maxMonthlySpend: + description: Monthly budget override maximum monthly spend amount. + format: double + type: number + status: + description: Monthly budget override computed status. enum: - - sponsoredProducts - - onSiteDisplays + - Expired + - Active + - Upcoming + nullable: true type: string - salesChannel: - enum: - - offline - - online + required: + - duration + - maxMonthlySpend + type: object + CampaignDailyBudgetOverride: + additionalProperties: false + description: Campaign daily budget override. + example: + duration: duration + maxDailySpend: 6.027456183070403 + startDate: 2000-01-23T04:56:07.000+00:00 + status: Expired + properties: + startDate: + description: "Daily budget override start date, format \"yyyy-MM-dd\". If\ + \ it is null, the StartDate would be the following date of the last item\ + \ in the override sequence." + format: date-time + nullable: true type: string - format: - enum: - - json - - json-compact - - json-newline - - csv + duration: + description: "Daily budget override duration, e.g. \"1D\". Must be ending\ + \ with D." type: string - reportType: + maxDailySpend: + description: Daily budget override maximum daily spend amount. + format: double + type: number + status: + description: Daily budget override computed status. enum: - - summary - - pageType - - keyword - - productCategory - - product - - attributedTransactions - type: string - ids: - items: - type: string - type: array - id: + - Expired + - Active + - Upcoming + nullable: true type: string required: - - endDate - - startDate + - duration + - maxDailySpend type: object - AsyncRevenueReport: - description: Async Revenue report body request + Keywords: + additionalProperties: false + description: Data associated with a normalized keyword phrase example: - reportType: advertiser - campaignType: sponsoredProducts - endDate: 2000-01-23T04:56:07.000+00:00 - timezone: timezone - revenueType: auction - format: json - ids: - - ids - - ids - id: id - metrics: - - clicks - - clicks - salesChannel: offline - startDate: 2000-01-23T04:56:07.000+00:00 - dimensions: - - date - - date + createdAt: 2000-01-23T04:56:07.000+00:00 + matchType: PositiveExactMatch + inputKeywords: + negativeBroad: + - negativeBroad + - negativeBroad + positiveExact: + - positiveExact + - positiveExact + negativeExact: + - negativeExact + - negativeExact + reviewState: InReview + bid: 0.8008281904610115 + updatedAt: 2000-01-23T04:56:07.000+00:00 properties: - reportType: + reviewState: + description: Review status of the keyword enum: - - advertiser - - environment - - pageType - - pageCategory - - brand + - InReview + - Recommended + - Approved + - AutoApproved + - Rejected + - AutoRejected + - Unkown + nullable: true type: string - revenueType: + matchType: + description: The matching algorthim to be use when comparing this keyword + with the shopper search phrase enum: - - auction - - preferred + - PositiveExactMatch + - NegativeExactMatch + - NegativeBroadMatch + - Unknown + nullable: true type: string - ids: + bid: + description: The bid to use when a positive keyword matches the shopper + search phrase + format: double + nullable: true + type: number + inputKeywords: + $ref: '#/components/schemas/InputKeywords' + createdAt: + description: The time at which this keyword was created in UTC + format: date-time + nullable: true + type: string + updatedAt: + description: The time at which the keyword was last modified in UTC + format: date-time + nullable: true + type: string + type: object + InputKeywords: + additionalProperties: false + description: Keywords submitted by the user binned by type after some cleanup + has been performed + example: + negativeBroad: + - negativeBroad + - negativeBroad + positiveExact: + - positiveExact + - positiveExact + negativeExact: + - negativeExact + - negativeExact + properties: + negativeBroad: + description: The collection of supplied negative broad phrased items: type: string + nullable: true type: array - id: - type: string - metrics: + negativeExact: + description: The collection of supplied negative exact phrase items: - enum: - - clicks - - spend - - attributedOrders - - attributedSales - - attributedUnits - - cpc - - cpo - - roas - - openAuctionRevenue - - preferredDealsRevenue - - avgCpc - - avgCpm type: string + nullable: true type: array - dimensions: + positiveExact: + description: The collection of supplied positive exact phrases items: - enum: - - date - - accountId - - accountName - - environment - - advProductCategory - - brandId - - brandName - - pageTypeName type: string + nullable: true type: array - format: - enum: - - json - - json-compact - - json-newline - - csv - type: string - startDate: - format: date-time - type: string - endDate: - format: date-time - type: string - timezone: - type: string - campaignType: - enum: - - sponsoredProducts - - onSiteDisplays - type: string - salesChannel: - enum: - - offline - - online - type: string - required: - - endDate - - startDate type: object - ProductButtonResponse: - description: Data model for response resource + BalanceResponsePagedListResponse: + description: Data model for a paged list of response resources example: + metadata: + currentPageSize: 6 + previousPage: previousPage + nextPage: nextPage + totalPages: 5 + totalItemsAcrossAllPages: 0 + currentPageIndex: 1 data: - attributes: - skus: - - skus - - skus - backgroundImage: backgroundImage + - attributes: + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + memo: memo + spendType: Onsite + remaining: 1.4658129805029452 + salesForceId: salesForceId + createdAt: 2000-01-23T04:56:07.000+00:00 + balanceType: unknown name: name - rank: 0 - isMandatory: 6 + poNumber: poNumber + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 + id: id + type: type + - attributes: + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + memo: memo + spendType: Onsite + remaining: 1.4658129805029452 + salesForceId: salesForceId + createdAt: 2000-01-23T04:56:07.000+00:00 + balanceType: unknown + name: name + poNumber: poNumber + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type warnings: @@ -9884,44 +10966,46 @@ components: type: unknown title: title properties: + metadata: + $ref: '#/components/schemas/PageMetadata' data: - $ref: '#/components/schemas/ResourceOfProductButtonResponse' + items: + $ref: '#/components/schemas/ResourceOfBalanceResponse' + type: array + x-nullable: false warnings: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' readOnly: true type: array x-nullable: false errors: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' readOnly: true type: array x-nullable: false type: object x-nullable: false - ProductButtonListResponse: - description: Data model for a list of response resources + BalanceResponse: + description: Data model for response resource example: data: - - attributes: - skus: - - skus - - skus - backgroundImage: backgroundImage - name: name - rank: 0 - isMandatory: 6 - id: id - type: type - - attributes: - skus: - - skus - - skus - backgroundImage: backgroundImage + attributes: + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + memo: memo + spendType: Onsite + remaining: 1.4658129805029452 + salesForceId: salesForceId + createdAt: 2000-01-23T04:56:07.000+00:00 + balanceType: unknown name: name - rank: 0 - isMandatory: 6 + poNumber: poNumber + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type warnings: @@ -9968,19 +11052,16 @@ components: title: title properties: data: - items: - $ref: '#/components/schemas/ResourceOfProductButtonResponse' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfBalanceResponse' warnings: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' readOnly: true type: array x-nullable: false errors: items: - $ref: '#/components/schemas/ProblemDetails' + $ref: '#/components/schemas/CommonProblem' readOnly: true type: array x-nullable: false @@ -10130,25 +11211,28 @@ components: x-nullable: false type: object x-nullable: false - BalanceResponse: - description: Data model for response resource + ProductButtonListResponse: + description: Data model for a list of response resources example: data: - attributes: - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - memo: memo - spendType: Onsite - remaining: 1.4658129805029452 - salesForceId: salesForceId - createdAt: 2000-01-23T04:56:07.000+00:00 - balanceType: unknown + - attributes: + skus: + - skus + - skus + backgroundImage: backgroundImage name: name - poNumber: poNumber - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + rank: 0 + isMandatory: 6 + id: id + type: type + - attributes: + skus: + - skus + - skus + backgroundImage: backgroundImage + name: name + rank: 0 + isMandatory: 6 id: id type: type warnings: @@ -10195,64 +11279,36 @@ components: title: title properties: data: - $ref: '#/components/schemas/ResourceOfBalanceResponse' - warnings: - items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true - type: array - x-nullable: false - errors: items: - $ref: '#/components/schemas/CommonProblem' - readOnly: true + $ref: '#/components/schemas/ResourceOfProductButtonResponse' type: array x-nullable: false - type: object - x-nullable: false - BalanceResponsePagedListResponse: - description: Data model for a paged list of response resources - example: - metadata: - currentPageSize: 6 - previousPage: previousPage - nextPage: nextPage - totalPages: 5 - totalItemsAcrossAllPages: 0 - currentPageIndex: 1 - data: - - attributes: - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - memo: memo - spendType: Onsite - remaining: 1.4658129805029452 - salesForceId: salesForceId - createdAt: 2000-01-23T04:56:07.000+00:00 - balanceType: unknown - name: name - poNumber: poNumber - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 - id: id - type: type - - attributes: - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - memo: memo - spendType: Onsite - remaining: 1.4658129805029452 - salesForceId: salesForceId - createdAt: 2000-01-23T04:56:07.000+00:00 - balanceType: unknown + warnings: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + errors: + items: + $ref: '#/components/schemas/ProblemDetails' + readOnly: true + type: array + x-nullable: false + type: object + x-nullable: false + ProductButtonResponse: + description: Data model for response resource + example: + data: + attributes: + skus: + - skus + - skus + backgroundImage: backgroundImage name: name - poNumber: poNumber - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + rank: 0 + isMandatory: 6 id: id type: type warnings: @@ -10298,184 +11354,188 @@ components: type: unknown title: title properties: - metadata: - $ref: '#/components/schemas/PageMetadata' data: - items: - $ref: '#/components/schemas/ResourceOfBalanceResponse' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfProductButtonResponse' warnings: items: - $ref: '#/components/schemas/CommonProblem' + $ref: '#/components/schemas/ProblemDetails' readOnly: true type: array x-nullable: false errors: items: - $ref: '#/components/schemas/CommonProblem' + $ref: '#/components/schemas/ProblemDetails' readOnly: true type: array x-nullable: false type: object x-nullable: false - ProductButtonRequest: + CreateBalanceRequest: description: Data model for an input resource example: data: attributes: - skus: - - skus - - skus - backgroundImage: backgroundImage + salesForceId: salesForceId + endDate: 2000-01-23 + deposited: 0.8008281904610115 name: name - isMandatory: 0 + memo: memo + poNumber: poNumber + spendType: Onsite + startDate: 2000-01-23 id: id type: type properties: data: - $ref: '#/components/schemas/ResourceOfProductButtonRequest' + $ref: '#/components/schemas/ResourceOfCreateBalance' type: object x-nullable: false - ProductButtonListRequest: - description: Data model for a list of input resources + UpdateBalanceModelRequest: + description: Data model for an input resource example: data: - - attributes: - skus: - - skus - - skus - backgroundImage: backgroundImage - name: name - isMandatory: 0 - id: id - type: type - - attributes: - skus: - - skus - - skus - backgroundImage: backgroundImage + attributes: + salesForceId: salesForceId + endDate: 2000-01-23 name: name - isMandatory: 0 + memo: memo + poNumber: poNumber + startDate: 2000-01-23 id: id type: type properties: data: - items: - $ref: '#/components/schemas/ResourceOfProductButtonRequest' - type: array - x-nullable: false + $ref: '#/components/schemas/ResourceOfUpdateBalanceModel' type: object x-nullable: false - LineItemBidMultipliersRequest: + AddFundsToBalanceRequest: description: Data model for an input resource example: data: attributes: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 + deltaAmount: 0.8008281904610115 + memo: memo + poNumber: poNumber id: id type: type properties: data: - $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' + $ref: '#/components/schemas/ResourceOfAddFundsToBalance' type: object x-nullable: false - CreateBalanceRequest: + ChangeDatesOfBalanceRequest: description: Data model for an input resource example: data: attributes: - salesForceId: salesForceId endDate: 2000-01-23 - deposited: 0.8008281904610115 - name: name memo: memo - poNumber: poNumber - spendType: Onsite startDate: 2000-01-23 id: id type: type properties: data: - $ref: '#/components/schemas/ResourceOfCreateBalance' + $ref: '#/components/schemas/ResourceOfChangeDatesOfBalance' type: object x-nullable: false - AddFundsToBalanceRequest: + LineItemBidMultipliersRequest: description: Data model for an input resource example: data: attributes: - deltaAmount: 0.8008281904610115 - memo: memo - poNumber: poNumber + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + categories: 1.4658129805029452 + confirmation: 5.637376656633329 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + homepage: 6.027456183070403 id: id type: type properties: data: - $ref: '#/components/schemas/ResourceOfAddFundsToBalance' + $ref: '#/components/schemas/ResourceOfLineItemBidMultipliers' type: object x-nullable: false - ChangeDatesOfBalanceRequest: - description: Data model for an input resource + ProductButtonListRequest: + description: Data model for a list of input resources example: data: - attributes: - endDate: 2000-01-23 - memo: memo - startDate: 2000-01-23 + - attributes: + skus: + - skus + - skus + backgroundImage: backgroundImage + name: name + isMandatory: 0 + id: id + type: type + - attributes: + skus: + - skus + - skus + backgroundImage: backgroundImage + name: name + isMandatory: 0 id: id type: type properties: data: - $ref: '#/components/schemas/ResourceOfChangeDatesOfBalance' + items: + $ref: '#/components/schemas/ResourceOfProductButtonRequest' + type: array + x-nullable: false type: object x-nullable: false - UpdateBalanceModelRequest: + ProductButtonRequest: description: Data model for an input resource example: data: attributes: - salesForceId: salesForceId - endDate: 2000-01-23 + skus: + - skus + - skus + backgroundImage: backgroundImage name: name - memo: memo - poNumber: poNumber - startDate: 2000-01-23 + isMandatory: 0 id: id type: type properties: data: - $ref: '#/components/schemas/ResourceOfUpdateBalanceModel' + $ref: '#/components/schemas/ResourceOfProductButtonRequest' type: object x-nullable: false - ResourceOfProductButtonResponse: - description: Data model for an output resource + ResourceOfBalanceResponse: + description: Data model for a Resource example: attributes: - skus: - - skus - - skus - backgroundImage: backgroundImage + endDate: 2000-01-23 + deposited: 0.8008281904610115 + spent: 6.027456183070403 + memo: memo + spendType: Onsite + remaining: 1.4658129805029452 + salesForceId: salesForceId + createdAt: 2000-01-23T04:56:07.000+00:00 + balanceType: unknown name: name - rank: 0 - isMandatory: 6 + poNumber: poNumber + startDate: 2000-01-23 + status: unknown + updatedAt: 2000-01-23T04:56:07.000+00:00 id: id type: type properties: attributes: - $ref: '#/components/schemas/ExternalProductButtonResponse' + $ref: '#/components/schemas/ExternalBalanceResponse' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -10527,88 +11587,89 @@ components: $ref: '#/components/schemas/LineItemBidMultipliers' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - ResourceOfBalanceResponse: - description: Data model for a Resource + ResourceOfProductButtonResponse: + description: Data model for an output resource example: attributes: - endDate: 2000-01-23 - deposited: 0.8008281904610115 - spent: 6.027456183070403 - memo: memo - spendType: Onsite - remaining: 1.4658129805029452 - salesForceId: salesForceId - createdAt: 2000-01-23T04:56:07.000+00:00 - balanceType: unknown + skus: + - skus + - skus + backgroundImage: backgroundImage name: name - poNumber: poNumber - startDate: 2000-01-23 - status: unknown - updatedAt: 2000-01-23T04:56:07.000+00:00 + rank: 0 + isMandatory: 6 id: id type: type properties: attributes: - $ref: '#/components/schemas/ExternalBalanceResponse' + $ref: '#/components/schemas/ExternalProductButtonResponse' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - ResourceOfProductButtonRequest: + ResourceOfCreateBalance: description: Data model for a Resource example: attributes: - skus: - - skus - - skus - backgroundImage: backgroundImage + salesForceId: salesForceId + endDate: 2000-01-23 + deposited: 0.8008281904610115 name: name - isMandatory: 0 + memo: memo + poNumber: poNumber + spendType: Onsite + startDate: 2000-01-23 id: id type: type properties: attributes: - $ref: '#/components/schemas/ExternalProductButtonRequest' + $ref: '#/components/schemas/ExternalCreateBalance' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - ResourceOfCreateBalance: + ResourceOfUpdateBalanceModel: description: Data model for a Resource example: attributes: salesForceId: salesForceId endDate: 2000-01-23 - deposited: 0.8008281904610115 name: name memo: memo poNumber: poNumber - spendType: Onsite startDate: 2000-01-23 id: id type: type properties: attributes: - $ref: '#/components/schemas/ExternalCreateBalance' + $ref: '#/components/schemas/ExternalUpdateBalanceModel' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -10626,9 +11687,11 @@ components: $ref: '#/components/schemas/ExternalAddFundsToBalance' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false @@ -10646,125 +11709,39 @@ components: $ref: '#/components/schemas/ExternalChangeDatesOfBalance' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - ResourceOfUpdateBalanceModel: + ResourceOfProductButtonRequest: description: Data model for a Resource example: attributes: - salesForceId: salesForceId - endDate: 2000-01-23 + skus: + - skus + - skus + backgroundImage: backgroundImage name: name - memo: memo - poNumber: poNumber - startDate: 2000-01-23 + isMandatory: 0 id: id type: type properties: attributes: - $ref: '#/components/schemas/ExternalUpdateBalanceModel' + $ref: '#/components/schemas/ExternalProductButtonRequest' id: description: Id of the entity + nullable: true type: string type: description: Canonical type name of the entity + nullable: true type: string type: object x-nullable: false - ExternalProductButtonResponse: - description: The Product Button entity used for output - example: - skus: - - skus - - skus - backgroundImage: backgroundImage - name: name - rank: 0 - isMandatory: 6 - properties: - name: - description: Name of the Product Button - type: string - x-nullable: false - backgroundImage: - description: URL of the background image - type: string - x-nullable: false - rank: - description: Rank of the Product Button - format: int32 - type: integer - x-nullable: false - isMandatory: - description: If the Product Button is Mandatory - format: int32 - type: integer - x-nullable: false - skus: - description: List of skus on the Product Button - items: - type: string - x-nullable: false - type: array - x-nullable: false - required: - - backgroundImage - - isMandatory - - name - - rank - - skus - type: object - x-nullable: false - LineItemBidMultipliers: - description: Data model representing bid multipliers on a line item - example: - search: 0.8008281904610115 - productDetail: 5.962133916683182 - deals: 7.061401241503109 - categories: 1.4658129805029452 - confirmation: 5.637376656633329 - merchandising: 2.3021358869347655 - checkout: 9.301444243932576 - homepage: 6.027456183070403 - properties: - search: - format: double - type: number - x-nullable: false - homepage: - format: double - type: number - x-nullable: false - categories: - format: double - type: number - x-nullable: false - productDetail: - format: double - type: number - x-nullable: false - confirmation: - format: double - type: number - x-nullable: false - merchandising: - format: double - type: number - x-nullable: false - deals: - format: double - type: number - x-nullable: false - checkout: - format: double - type: number - x-nullable: false - type: object - x-nullable: false ExternalBalanceResponse: description: A Retail Media Balance used to determine the funds available for any or all campaigns in an account @@ -10863,6 +11840,7 @@ components: enum: - Onsite - Offsite + - OffsiteAwareness type: string x-nullable: false required: @@ -10882,15 +11860,62 @@ components: - updatedAt type: object x-nullable: false - ExternalProductButtonRequest: - description: The Product Button entity used for input + LineItemBidMultipliers: + description: Data model representing bid multipliers on a line item + example: + search: 0.8008281904610115 + productDetail: 5.962133916683182 + deals: 7.061401241503109 + categories: 1.4658129805029452 + confirmation: 5.637376656633329 + merchandising: 2.3021358869347655 + checkout: 9.301444243932576 + homepage: 6.027456183070403 + properties: + search: + format: double + type: number + x-nullable: false + homepage: + format: double + type: number + x-nullable: false + categories: + format: double + type: number + x-nullable: false + productDetail: + format: double + type: number + x-nullable: false + confirmation: + format: double + type: number + x-nullable: false + merchandising: + format: double + type: number + x-nullable: false + deals: + format: double + type: number + x-nullable: false + checkout: + format: double + type: number + x-nullable: false + type: object + x-nullable: false + ExternalProductButtonResponse: + description: The Product Button entity used for output example: skus: - skus - skus backgroundImage: backgroundImage name: name - isMandatory: 0 + rank: 0 + isMandatory: 6 properties: name: description: Name of the Product Button @@ -10900,6 +11925,11 @@ components: description: URL of the background image type: string x-nullable: false + rank: + description: Rank of the Product Button + format: int32 + type: integer + x-nullable: false isMandatory: description: If the Product Button is Mandatory format: int32 @@ -10916,6 +11946,7 @@ components: - backgroundImage - isMandatory - name + - rank - skus type: object x-nullable: false @@ -10965,6 +11996,7 @@ components: enum: - Onsite - Offsite + - OffsiteAwareness type: string x-nullable: false memo: @@ -10985,6 +12017,47 @@ components: - startDate type: object x-nullable: false + ExternalUpdateBalanceModel: + description: An object that represents the available options to set when updating + a Retail Media Balance + example: + salesForceId: salesForceId + endDate: 2000-01-23 + name: name + memo: memo + poNumber: poNumber + startDate: 2000-01-23 + properties: + name: + description: Name of the balance. + type: string + x-nullable: false + poNumber: + description: Purchase Order number. + type: string + x-nullable: false + salesForceId: + description: SalesForceId the balance is linked to. + type: string + x-nullable: false + startDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + nullable: true + type: string + endDate: + description: "Represents the Date as a year, month, and day in the format\ + \ YYYY-MM-DD" + format: date + nullable: true + type: string + memo: + description: Memo + type: string + x-nullable: false + type: object + x-nullable: false ExternalAddFundsToBalance: description: An object that represents the available options of adding funds to a balance. @@ -11040,43 +12113,41 @@ components: - startDate type: object x-nullable: false - ExternalUpdateBalanceModel: - description: An object that represents the available options to set when updating - a Retail Media Balance + ExternalProductButtonRequest: + description: The Product Button entity used for input example: - salesForceId: salesForceId - endDate: 2000-01-23 + skus: + - skus + - skus + backgroundImage: backgroundImage name: name - memo: memo - poNumber: poNumber - startDate: 2000-01-23 + isMandatory: 0 properties: name: - description: Name of the balance. + description: Name of the Product Button type: string x-nullable: false - poNumber: - description: Purchase Order number. + backgroundImage: + description: URL of the background image type: string x-nullable: false - salesForceId: - description: SalesForceId the balance is linked to. - type: string + isMandatory: + description: If the Product Button is Mandatory + format: int32 + type: integer x-nullable: false - startDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - endDate: - description: "Represents the Date as a year, month, and day in the format\ - \ YYYY-MM-DD" - format: date - type: string - memo: - description: Memo - type: string + skus: + description: List of skus on the Product Button + items: + type: string + x-nullable: false + type: array x-nullable: false + required: + - backgroundImage + - isMandatory + - name + - skus type: object x-nullable: false securitySchemes: diff --git a/sdks/retailmedia_preview/build.gradle b/sdks/retailmedia_preview/build.gradle index cff60b84..5265b097 100644 --- a/sdks/retailmedia_preview/build.gradle +++ b/sdks/retailmedia_preview/build.gradle @@ -23,7 +23,7 @@ if (JavaVersion.current().isJava8Compatible()) { } group = 'com.criteo' -version = '0.0.230728' +version = '0.0.230831' repositories { jcenter() @@ -75,7 +75,7 @@ publishing { mavenJava(MavenPublication) { groupId 'com.criteo' artifactId 'criteo-api-retailmedia-sdk' - version '0.0.230728' + version '0.0.230831' from components.java artifact sourcesJar artifact javadocJar diff --git a/sdks/retailmedia_preview/docs/AnalyticsApi.md b/sdks/retailmedia_preview/docs/AnalyticsApi.md index 8fcf0c7a..13cbc33f 100644 --- a/sdks/retailmedia_preview/docs/AnalyticsApi.md +++ b/sdks/retailmedia_preview/docs/AnalyticsApi.md @@ -12,6 +12,7 @@ All URIs are relative to *https://api.criteo.com* | [**generateLineItemsReports**](AnalyticsApi.md#generateLineItemsReports) | **POST** /preview/retail-media/reports/sync/line-items | | | [**getAsyncExportOutput**](AnalyticsApi.md#getAsyncExportOutput) | **GET** /preview/retail-media/reports/{reportId}/output | | | [**getAsyncExportStatus**](AnalyticsApi.md#getAsyncExportStatus) | **GET** /preview/retail-media/reports/{reportId}/status | | +| [**getSkuByProductId**](AnalyticsApi.md#getSkuByProductId) | **POST** /preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id | | @@ -742,3 +743,100 @@ public class Example { | **400** | Bad Request | - | | **403** | Forbidden | - | + +## getSkuByProductId + +> ResourceCollectionOutcomeOfSkuSearchResult getSkuByProductId(accountId, retailerId, offset, limit, skuSearchRequest) + + + +Gets a list of SKUs based on a privided list of Product Ids + +### Example + +```java +package com.criteo.api.retailmedia.preview; + +import com.criteo.api.retailmedia.preview.ApiClient; +import com.criteo.api.retailmedia.preview.ApiClientBuilder; +import com.criteo.api.retailmedia.preview.ApiException; +import com.criteo.api.retailmedia.preview.Configuration; +import com.criteo.api.retailmedia.preview.auth.*; +import com.criteo.api.retailmedia.preview.model.*; +import com.criteo.api.retailmedia.preview.api.AnalyticsApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + AnalyticsApi apiInstance = new AnalyticsApi(defaultClient); + String accountId = "accountId_example"; // String | account id + Integer retailerId = 56; // Integer | retailer id + Integer offset = 0; // Integer | skip a number of matches before retrning results, used with limit + Integer limit = 100; // Integer | max number of results to return + SkuSearchRequest skuSearchRequest = new SkuSearchRequest(); // SkuSearchRequest | + try { + ResourceCollectionOutcomeOfSkuSearchResult result = apiInstance.getSkuByProductId(accountId, retailerId, offset, limit, skuSearchRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AnalyticsApi#getSkuByProductId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **accountId** | **String**| account id | | +| **retailerId** | **Integer**| retailer id | | +| **offset** | **Integer**| skip a number of matches before retrning results, used with limit | [optional] [default to 0] | +| **limit** | **Integer**| max number of results to return | [optional] [default to 100] | +| **skuSearchRequest** | [**SkuSearchRequest**](SkuSearchRequest.md)| | [optional] | + +### Return type + +[**ResourceCollectionOutcomeOfSkuSearchResult**](ResourceCollectionOutcomeOfSkuSearchResult.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + diff --git a/sdks/retailmedia_preview/docs/AsyncRevenueReport.md b/sdks/retailmedia_preview/docs/AsyncRevenueReport.md index 7026b71d..dec2abd1 100644 --- a/sdks/retailmedia_preview/docs/AsyncRevenueReport.md +++ b/sdks/retailmedia_preview/docs/AsyncRevenueReport.md @@ -20,6 +20,8 @@ Async Revenue report body request |**timezone** | **String** | | [optional] | |**campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | | [optional] | |**salesChannel** | [**SalesChannelEnum**](#SalesChannelEnum) | | [optional] | +|**soldBy** | [**SoldByEnum**](#SoldByEnum) | Filter on the type of seller | [optional] | +|**campaignSubType** | [**CampaignSubTypeEnum**](#CampaignSubTypeEnum) | Filter on the campaign sub type | [optional] | @@ -107,3 +109,22 @@ Async Revenue report body request +## Enum: SoldByEnum + +| Name | Value | +|---- | -----| +| DIRECTSOLD | "directSold" | +| INDIRECTSOLD | "indirectSold" | +| PRIVATEMARKET | "privateMarket" | + + + +## Enum: CampaignSubTypeEnum + +| Name | Value | +|---- | -----| +| AUCTIONANDPREFERRED | "auctionAndPreferred" | +| LOCKOUT | "lockout" | + + + diff --git a/sdks/retailmedia_preview/docs/AttributedTransactionsReport.md b/sdks/retailmedia_preview/docs/AttributedTransactionsReport.md index a77cc60b..44018aec 100644 --- a/sdks/retailmedia_preview/docs/AttributedTransactionsReport.md +++ b/sdks/retailmedia_preview/docs/AttributedTransactionsReport.md @@ -12,8 +12,6 @@ Attributed transactions report body request |**lineItemIds** | **List<String>** | Line item ids to report on | [optional] | |**dimensions** | [**List<DimensionsEnum>**](#List<DimensionsEnum>) | List of dimensions to report on | [optional] | |**metrics** | [**List<MetricsEnum>**](#List<MetricsEnum>) | List of metrics to report on | [optional] | -|**soldBy** | [**SoldByEnum**](#SoldByEnum) | Filter on the type of seller | [optional] | -|**campaignSubType** | [**CampaignSubTypeEnum**](#CampaignSubTypeEnum) | Filter on the campaign sub type | [optional] | |**accountId** | **String** | Account id to report on | | |**startDate** | **OffsetDateTime** | Start date | | |**endDate** | **OffsetDateTime** | End Date | | @@ -65,25 +63,6 @@ Attributed transactions report body request -## Enum: SoldByEnum - -| Name | Value | -|---- | -----| -| DIRECTSOLD | "directSold" | -| INDIRECTSOLD | "indirectSold" | -| PRIVATEMARKET | "privateMarket" | - - - -## Enum: CampaignSubTypeEnum - -| Name | Value | -|---- | -----| -| AUCTIONANDPREFERRED | "auctionAndPreferred" | -| LOCKOUT | "lockout" | - - - ## Enum: ClickAttributionWindowEnum | Name | Value | diff --git a/sdks/retailmedia_preview/docs/CampaignApi.md b/sdks/retailmedia_preview/docs/CampaignApi.md index 3b18b2e1..b2e943dc 100644 --- a/sdks/retailmedia_preview/docs/CampaignApi.md +++ b/sdks/retailmedia_preview/docs/CampaignApi.md @@ -25,6 +25,8 @@ All URIs are relative to *https://api.criteo.com* | [**getApiV1ExternalRetailerByRetailerIdSellerBySeller**](CampaignApi.md#getApiV1ExternalRetailerByRetailerIdSellerBySeller) | **GET** /preview/retail-media/retailers/{retailerId}/sellers/{seller} | | | [**getApiV1ExternalRetailerCategoryCpcRatesByRetailerId**](CampaignApi.md#getApiV1ExternalRetailerCategoryCpcRatesByRetailerId) | **GET** /preview/retail-media/retailers/{retailer-id}/cpc-rates | | | [**getApiV1ExternalRetailerPlacementsByRetailerId**](CampaignApi.md#getApiV1ExternalRetailerPlacementsByRetailerId) | **GET** /preview/retail-media/retailers/{retailer-id}/placements | | +| [**getCampaignBudgetOverrides**](CampaignApi.md#getCampaignBudgetOverrides) | **GET** /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides | | +| [**getSuggestedKeywords**](CampaignApi.md#getSuggestedKeywords) | **GET** /preview/retail-media/line-items/{externalLineItemId}/keywords/recommended | | | [**patchApiV1ExternalAccountByAccountIdAndBalanceId**](CampaignApi.md#patchApiV1ExternalAccountByAccountIdAndBalanceId) | **PATCH** /preview/retail-media/accounts/{accountId}/balances/{balanceId} | | | [**postApi202210ExternalAccountCreativesByAccountId**](CampaignApi.md#postApi202210ExternalAccountCreativesByAccountId) | **POST** /preview/retail-media/accounts/{account-id}/creatives | | | [**postApi202210ExternalAccountCreativesSearchByAccountId**](CampaignApi.md#postApi202210ExternalAccountCreativesSearchByAccountId) | **POST** /preview/retail-media/accounts/{account-id}/creatives/search | | @@ -1962,6 +1964,184 @@ public class Example { | **403** | Forbidden | - | +## getCampaignBudgetOverrides + +> ValueResourceOutcomeOfCampaignBudgetOverrides getCampaignBudgetOverrides(campaignId) + + + +Get current campaign budget overrides by given external campaign id. + +### Example + +```java +package com.criteo.api.retailmedia.preview; + +import com.criteo.api.retailmedia.preview.ApiClient; +import com.criteo.api.retailmedia.preview.ApiClientBuilder; +import com.criteo.api.retailmedia.preview.ApiException; +import com.criteo.api.retailmedia.preview.Configuration; +import com.criteo.api.retailmedia.preview.auth.*; +import com.criteo.api.retailmedia.preview.model.*; +import com.criteo.api.retailmedia.preview.api.CampaignApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + CampaignApi apiInstance = new CampaignApi(defaultClient); + Long campaignId = 56L; // Long | External campaign id. + try { + ValueResourceOutcomeOfCampaignBudgetOverrides result = apiInstance.getCampaignBudgetOverrides(campaignId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CampaignApi#getCampaignBudgetOverrides"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **campaignId** | **Long**| External campaign id. | | + +### Return type + +[**ValueResourceOutcomeOfCampaignBudgetOverrides**](ValueResourceOutcomeOfCampaignBudgetOverrides.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + +## getSuggestedKeywords + +> ValueResourceOutcomeOfSuggestedKeywordsResult getSuggestedKeywords(externalLineItemId) + + + +Retrieves a collection of recommended keywords for a line item + +### Example + +```java +package com.criteo.api.retailmedia.preview; + +import com.criteo.api.retailmedia.preview.ApiClient; +import com.criteo.api.retailmedia.preview.ApiClientBuilder; +import com.criteo.api.retailmedia.preview.ApiException; +import com.criteo.api.retailmedia.preview.Configuration; +import com.criteo.api.retailmedia.preview.auth.*; +import com.criteo.api.retailmedia.preview.model.*; +import com.criteo.api.retailmedia.preview.api.CampaignApi; + +public class Example { + public static void main(String[] args) { + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + // Configure OAuth2, two options: + // 1. Use ApiClientBuilder to create the ApiClient with the credentials you want, refresh token mechanism IS handled for you 💚 + String clientId = "YOUR CLIENT ID"; + String clientSecret = "YOUR CLIENT SECRET"; + ApiClient defaultClient = ApiClientBuilder.ForClientCredentials(clientId, clientSecret); + + // 2. Set your access token manually, refresh token mechanism IS NOT handled by the client + // ApiClient defaultClient = Configuration.getDefaultApiClient(); + // OAuth oauth = (OAuth) defaultClient.getAuthentication("oauth"); + // oauth.setAccessToken("YOUR ACCESS TOKEN"); + + CampaignApi apiInstance = new CampaignApi(defaultClient); + String externalLineItemId = "externalLineItemId_example"; // String | The external line item identifier + try { + ValueResourceOutcomeOfSuggestedKeywordsResult result = apiInstance.getSuggestedKeywords(externalLineItemId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CampaignApi#getSuggestedKeywords"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **externalLineItemId** | **String**| The external line item identifier | | + +### Return type + +[**ValueResourceOutcomeOfSuggestedKeywordsResult**](ValueResourceOutcomeOfSuggestedKeywordsResult.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + + ## patchApiV1ExternalAccountByAccountIdAndBalanceId > BalanceResponse patchApiV1ExternalAccountByAccountIdAndBalanceId(accountId, balanceId, updateBalanceModelRequest) diff --git a/sdks/retailmedia_preview/docs/CampaignBudgetOverrides.md b/sdks/retailmedia_preview/docs/CampaignBudgetOverrides.md new file mode 100644 index 00000000..2ca090b3 --- /dev/null +++ b/sdks/retailmedia_preview/docs/CampaignBudgetOverrides.md @@ -0,0 +1,15 @@ + + +# CampaignBudgetOverrides + +Campaign budget overrides including Monthly and Daily budget overrides. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**monthlyBudgetOverrides** | [**List<CampaignMonthlyBudgetOverride>**](CampaignMonthlyBudgetOverride.md) | Campaign budget override monthly part, chronological order restricted. | | +|**dailyBudgetOverrides** | [**List<CampaignDailyBudgetOverride>**](CampaignDailyBudgetOverride.md) | Campaign budget override daily part, chronological order restricted. | | + + + diff --git a/sdks/retailmedia_preview/docs/CampaignDailyBudgetOverride.md b/sdks/retailmedia_preview/docs/CampaignDailyBudgetOverride.md new file mode 100644 index 00000000..a2db1c30 --- /dev/null +++ b/sdks/retailmedia_preview/docs/CampaignDailyBudgetOverride.md @@ -0,0 +1,27 @@ + + +# CampaignDailyBudgetOverride + +Campaign daily budget override. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startDate** | **OffsetDateTime** | Daily budget override start date, format \"yyyy-MM-dd\". If it is null, the StartDate would be the following date of the last item in the override sequence. | [optional] | +|**duration** | **String** | Daily budget override duration, e.g. \"1D\". Must be ending with D. | | +|**maxDailySpend** | **Double** | Daily budget override maximum daily spend amount. | | +|**status** | [**StatusEnum**](#StatusEnum) | Daily budget override computed status. | [optional] | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| EXPIRED | "Expired" | +| ACTIVE | "Active" | +| UPCOMING | "Upcoming" | + + + diff --git a/sdks/retailmedia_preview/docs/CampaignMonthlyBudgetOverride.md b/sdks/retailmedia_preview/docs/CampaignMonthlyBudgetOverride.md new file mode 100644 index 00000000..3dcc8bb2 --- /dev/null +++ b/sdks/retailmedia_preview/docs/CampaignMonthlyBudgetOverride.md @@ -0,0 +1,27 @@ + + +# CampaignMonthlyBudgetOverride + +Campaign monthly budget override. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startMonth** | **OffsetDateTime** | Monthly budget override start month, format \"yyyy-MM\". If it is null, the StartMonth would be the following month of the last item in the override sequence. | [optional] | +|**duration** | **String** | Monthly budget override duration, e.g. \"1M\". Must be ending with \"M\". | | +|**maxMonthlySpend** | **Double** | Monthly budget override maximum monthly spend amount. | | +|**status** | [**StatusEnum**](#StatusEnum) | Monthly budget override computed status. | [optional] | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| EXPIRED | "Expired" | +| ACTIVE | "Active" | +| UPCOMING | "Upcoming" | + + + diff --git a/sdks/retailmedia_preview/docs/ExternalBalanceResponse.md b/sdks/retailmedia_preview/docs/ExternalBalanceResponse.md index a22562e4..15a6dde1 100644 --- a/sdks/retailmedia_preview/docs/ExternalBalanceResponse.md +++ b/sdks/retailmedia_preview/docs/ExternalBalanceResponse.md @@ -52,6 +52,7 @@ A Retail Media Balance used to determine the funds available for any or all camp |---- | -----| | ONSITE | "Onsite" | | OFFSITE | "Offsite" | +| OFFSITEAWARENESS | "OffsiteAwareness" | diff --git a/sdks/retailmedia_preview/docs/ExternalCreateBalance.md b/sdks/retailmedia_preview/docs/ExternalCreateBalance.md index f754920e..99a65b80 100644 --- a/sdks/retailmedia_preview/docs/ExternalCreateBalance.md +++ b/sdks/retailmedia_preview/docs/ExternalCreateBalance.md @@ -25,6 +25,7 @@ An object that represents the available options to set when creating a Retail Me |---- | -----| | ONSITE | "Onsite" | | OFFSITE | "Offsite" | +| OFFSITEAWARENESS | "OffsiteAwareness" | diff --git a/sdks/retailmedia_preview/docs/InputKeywords.md b/sdks/retailmedia_preview/docs/InputKeywords.md new file mode 100644 index 00000000..32a0962a --- /dev/null +++ b/sdks/retailmedia_preview/docs/InputKeywords.md @@ -0,0 +1,16 @@ + + +# InputKeywords + +Keywords submitted by the user binned by type after some cleanup has been performed + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**negativeBroad** | **List<String>** | The collection of supplied negative broad phrased | [optional] | +|**negativeExact** | **List<String>** | The collection of supplied negative exact phrase | [optional] | +|**positiveExact** | **List<String>** | The collection of supplied positive exact phrases | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/Keywords.md b/sdks/retailmedia_preview/docs/Keywords.md new file mode 100644 index 00000000..bd100901 --- /dev/null +++ b/sdks/retailmedia_preview/docs/Keywords.md @@ -0,0 +1,44 @@ + + +# Keywords + +Data associated with a normalized keyword phrase + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**reviewState** | [**ReviewStateEnum**](#ReviewStateEnum) | Review status of the keyword | [optional] | +|**matchType** | [**MatchTypeEnum**](#MatchTypeEnum) | The matching algorthim to be use when comparing this keyword with the shopper search phrase | [optional] | +|**bid** | **Double** | The bid to use when a positive keyword matches the shopper search phrase | [optional] | +|**inputKeywords** | [**InputKeywords**](InputKeywords.md) | | [optional] | +|**createdAt** | **OffsetDateTime** | The time at which this keyword was created in UTC | [optional] | +|**updatedAt** | **OffsetDateTime** | The time at which the keyword was last modified in UTC | [optional] | + + + +## Enum: ReviewStateEnum + +| Name | Value | +|---- | -----| +| INREVIEW | "InReview" | +| RECOMMENDED | "Recommended" | +| APPROVED | "Approved" | +| AUTOAPPROVED | "AutoApproved" | +| REJECTED | "Rejected" | +| AUTOREJECTED | "AutoRejected" | +| UNKOWN | "Unkown" | + + + +## Enum: MatchTypeEnum + +| Name | Value | +|---- | -----| +| POSITIVEEXACTMATCH | "PositiveExactMatch" | +| NEGATIVEEXACTMATCH | "NegativeExactMatch" | +| NEGATIVEBROADMATCH | "NegativeBroadMatch" | +| UNKNOWN | "Unknown" | + + + diff --git a/sdks/retailmedia_2023-07/docs/ReportResponse.md b/sdks/retailmedia_preview/docs/ResourceCollectionOutcomeOfSkuSearchResult.md similarity index 57% rename from sdks/retailmedia_2023-07/docs/ReportResponse.md rename to sdks/retailmedia_preview/docs/ResourceCollectionOutcomeOfSkuSearchResult.md index 88ffb5bd..df4bcffb 100644 --- a/sdks/retailmedia_2023-07/docs/ReportResponse.md +++ b/sdks/retailmedia_preview/docs/ResourceCollectionOutcomeOfSkuSearchResult.md @@ -1,15 +1,14 @@ -# ReportResponse +# ResourceCollectionOutcomeOfSkuSearchResult -Report response format +A top-level object that encapsulates a Criteo API response for several entities. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**meta** | [**ExportReportMetaData**](ExportReportMetaData.md) | | [optional] | -|**data** | [**ReportDataResponseResource**](ReportDataResponseResource.md) | | [optional] | +|**data** | [**List<ResourceOfSkuSearchResult>**](ResourceOfSkuSearchResult.md) | | [optional] | |**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | |**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | diff --git a/sdks/retailmedia_preview/docs/ResourceOfSkuSearchResult.md b/sdks/retailmedia_preview/docs/ResourceOfSkuSearchResult.md new file mode 100644 index 00000000..9e638394 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ResourceOfSkuSearchResult.md @@ -0,0 +1,16 @@ + + +# ResourceOfSkuSearchResult + +A class that represents a domain entity exposed by an API. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attributes** | [**SkuSearchResult**](SkuSearchResult.md) | | [optional] | +|**id** | **String** | Unique identifier of this resource. | [optional] | +|**type** | **String** | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/SkuSearchRequest.md b/sdks/retailmedia_preview/docs/SkuSearchRequest.md new file mode 100644 index 00000000..e64b68e9 --- /dev/null +++ b/sdks/retailmedia_preview/docs/SkuSearchRequest.md @@ -0,0 +1,14 @@ + + +# SkuSearchRequest + +A top-level object that encapsulates a Criteo API request for a single entity. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SkuSearchRequestBody**](SkuSearchRequestBody.md) | | | + + + diff --git a/sdks/retailmedia_preview/docs/SkuSearchRequestBody.md b/sdks/retailmedia_preview/docs/SkuSearchRequestBody.md new file mode 100644 index 00000000..b6a8e18a --- /dev/null +++ b/sdks/retailmedia_preview/docs/SkuSearchRequestBody.md @@ -0,0 +1,28 @@ + + +# SkuSearchRequestBody + +defines the type product Id to search and list of ids to be searched for + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**productIdType** | [**ProductIdTypeEnum**](#ProductIdTypeEnum) | sets which product id the QueryIds will be compared to | | +|**queryIds** | **List<String>** | list of product ids to search for | | + + + +## Enum: ProductIdTypeEnum + +| Name | Value | +|---- | -----| +| SKUKEY | "SkuKey" | +| GTIN | "Gtin" | +| MPN | "Mpn" | +| MODEL | "Model" | +| SKUID | "SkuId" | +| PARENTID | "ParentId" | + + + diff --git a/sdks/retailmedia_preview/docs/SkuSearchResult.md b/sdks/retailmedia_preview/docs/SkuSearchResult.md new file mode 100644 index 00000000..485ee20f --- /dev/null +++ b/sdks/retailmedia_preview/docs/SkuSearchResult.md @@ -0,0 +1,28 @@ + + +# SkuSearchResult + +Data model for response resource + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | The product name | [optional] | +|**categoryId** | **String** | The cateogry Id | [optional] | +|**category** | **String** | The full retailer category taken from the retailers catalog | [optional] | +|**globalBrandId** | **String** | The global brand id associated to the product | [optional] | +|**globalBrandName** | **String** | The name of the global brand | [optional] | +|**retailerBrandId** | **String** | The retailer brand id associated to the product | [optional] | +|**retailerBrandName** | **String** | The name of the retailer brand | [optional] | +|**globalCategoryId** | **String** | the Global Category Id | [optional] | +|**price** | **Double** | The product price pulled from the retailer's catalog | [optional] | +|**modelNumber** | **String** | The model number for the product | [optional] | +|**isInStock** | **Boolean** | Indicates if the retailer product is in stock | [optional] | +|**gtin** | **String** | A GTIN identifier for the product if available. TIt covers variations such as EANs and UPCs | [optional] | +|**mpn** | **String** | The MPN identifier for the product if available | [optional] | +|**imageUrl** | **String** | An http image resource provided by the retailer catalog | [optional] | +|**updatedAt** | **OffsetDateTime** | The last time this product was updated in the Retail Media Catalog. The date value is represented as an UTC ISO8601 string | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/SuggestedKeywordsResult.md b/sdks/retailmedia_preview/docs/SuggestedKeywordsResult.md new file mode 100644 index 00000000..07264688 --- /dev/null +++ b/sdks/retailmedia_preview/docs/SuggestedKeywordsResult.md @@ -0,0 +1,15 @@ + + +# SuggestedKeywordsResult + +Response model for suggested keywords + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**keywords** | [**Map<String, Keywords>**](Keywords.md) | Dictionary of keywords to their keyword models | [optional] | +|**recommendedKeywords** | **List<String>** | Collection of recommended keywords | [optional] | + + + diff --git a/sdks/retailmedia_2023-07/docs/CampaignReportResource.md b/sdks/retailmedia_preview/docs/ValueResourceOfCampaignBudgetOverrides.md similarity index 60% rename from sdks/retailmedia_2023-07/docs/CampaignReportResource.md rename to sdks/retailmedia_preview/docs/ValueResourceOfCampaignBudgetOverrides.md index e368674e..88f70e17 100644 --- a/sdks/retailmedia_2023-07/docs/CampaignReportResource.md +++ b/sdks/retailmedia_preview/docs/ValueResourceOfCampaignBudgetOverrides.md @@ -1,15 +1,15 @@ -# CampaignReportResource +# ValueResourceOfCampaignBudgetOverrides -A top-level object that encapsulates a Criteo API response for a single value +A top-level object that encapsulates a Criteo API response for a single value. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**type** | **String** | | [optional] | -|**attributes** | [**CampaignReport**](CampaignReport.md) | | [optional] | +|**attributes** | [**CampaignBudgetOverrides**](CampaignBudgetOverrides.md) | | [optional] | diff --git a/sdks/retailmedia_preview/docs/ValueResourceOfSuggestedKeywordsResult.md b/sdks/retailmedia_preview/docs/ValueResourceOfSuggestedKeywordsResult.md new file mode 100644 index 00000000..dcc66fae --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceOfSuggestedKeywordsResult.md @@ -0,0 +1,15 @@ + + +# ValueResourceOfSuggestedKeywordsResult + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**attributes** | [**SuggestedKeywordsResult**](SuggestedKeywordsResult.md) | | [optional] | + + + diff --git a/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md b/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md new file mode 100644 index 00000000..00cce843 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md @@ -0,0 +1,16 @@ + + +# ValueResourceOutcomeOfCampaignBudgetOverrides + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ValueResourceOfCampaignBudgetOverrides**](ValueResourceOfCampaignBudgetOverrides.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfSuggestedKeywordsResult.md b/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfSuggestedKeywordsResult.md new file mode 100644 index 00000000..088226fb --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceOutcomeOfSuggestedKeywordsResult.md @@ -0,0 +1,16 @@ + + +# ValueResourceOutcomeOfSuggestedKeywordsResult + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ValueResourceOfSuggestedKeywordsResult**](ValueResourceOfSuggestedKeywordsResult.md) | | [optional] | +|**warnings** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | +|**errors** | [**List<CommonProblem>**](CommonProblem.md) | | [optional] [readonly] | + + + diff --git a/sdks/retailmedia_preview/pom.xml b/sdks/retailmedia_preview/pom.xml index 41c34cd1..3aadc290 100644 --- a/sdks/retailmedia_preview/pom.xml +++ b/sdks/retailmedia_preview/pom.xml @@ -5,7 +5,7 @@ criteo-api-retailmedia-sdk jar criteo-api-retailmedia-sdk - 0.0.230728 + 0.0.230831 https://github.com/criteo/criteo-api-java-sdk JAVA SDK for Criteo API retailmedia for preview version diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiCallback.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiCallback.java index fadad866..0069dbd2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiCallback.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiCallback.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiClient.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiClient.java index 22aca7db..9e074403 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiClient.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiClient.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -213,7 +213,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/0.0.230728/java"); + setUserAgent("OpenAPI-Generator/0.0.230831/java"); authentications = new HashMap(); } diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiException.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiException.java index bc52d98b..0841f5d1 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiException.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiException.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiResponse.java index 964f8b44..30d4cf38 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ApiResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/Configuration.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/Configuration.java index b0349f43..a06e7da8 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/Configuration.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/Configuration.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/GzipRequestInterceptor.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/GzipRequestInterceptor.java index 19443727..028e07c7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/GzipRequestInterceptor.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/JSON.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/JSON.java index 0aed4538..29f45aac 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/JSON.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/JSON.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -115,6 +115,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.Brand.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.BrandPreview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.BrandPreviewListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CampaignBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CampaignDailyBudgetOverride.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CampaignMonthlyBudgetOverride.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CampaignReport.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CampaignReportRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.CampaignReportResource.CustomTypeAdapterFactory()); @@ -166,6 +169,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.FilesVariablesSpecification.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.GetPageOfAudiencesByAccountIdResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.HyperlinkVariableValue.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.InputKeywords.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.JsonApiBodyWithIdOfInt64AndAccountAndAccount.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.JsonApiBodyWithIdOfInt64AndBrandAndBrand.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.CustomTypeAdapterFactory()); @@ -178,6 +182,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.JsonApiRequestOfCatalogRequestPreview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.JsonApiSingleResponseOfCatalogStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.JsonApiSingleResponseOfLineItemBidMultipliers.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.Keywords.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.LineItemBidMultipliers.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.LineItemBidMultipliersRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.LineItemBidMultipliersResponse.CustomTypeAdapterFactory()); @@ -196,6 +201,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportDataResponseResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportOutcome.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ReportResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceCollectionOutcomeOfSkuSearchResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceOfAddFundsToBalance.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceOfBalanceResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceOfBrandPreview.CustomTypeAdapterFactory()); @@ -212,6 +218,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceOfSkuSearchRequestPreview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceOfSkuSearchRequestSlimPreview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceOfSkuSearchRequestSlimV2Preview.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceOfSkuSearchResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceOfSkuSlimDataPreview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceOfSkuSlimDataV2.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ResourceOfTemplate.CustomTypeAdapterFactory()); @@ -245,18 +252,22 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SellerPreviewResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuDataPreview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuDataPreviewListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSearchRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSearchRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSearchRequestPreview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSearchRequestPreviewRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSearchRequestSlimPreview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSearchRequestSlimPreviewRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSearchRequestSlimV2Preview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSearchRequestSlimV2PreviewRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSearchResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSlimDataPreview.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSlimDataPreviewListResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSlimDataV2.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SkuSlimDataV2ListResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.StatusResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.StatusResponseResource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.SuggestedKeywordsResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.Template.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.TemplateListResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.TemplateResponse.CustomTypeAdapterFactory()); @@ -267,6 +278,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.UpdateBalanceModelRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.UserBehaviorDetails.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.UserBehaviorDetailsV2.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOfCampaignBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOfSuggestedKeywordsResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOutcomeOfCampaignBudgetOverrides.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.criteo.api.retailmedia.preview.model.ValueResourceOutcomeOfSuggestedKeywordsResult.CustomTypeAdapterFactory()); gson = gsonBuilder.create(); } diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/Pair.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/Pair.java index 42d1bdd7..a41a9f20 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/Pair.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/Pair.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ProgressRequestBody.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ProgressRequestBody.java index 65de5ba1..fd310cda 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ProgressRequestBody.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ProgressRequestBody.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ProgressResponseBody.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ProgressResponseBody.java index 965c421d..4aa11bc1 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ProgressResponseBody.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/ProgressResponseBody.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/StringUtil.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/StringUtil.java index 3d5f563c..5de214a4 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/StringUtil.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/StringUtil.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AnalyticsApi.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AnalyticsApi.java index e6271109..5e422a15 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AnalyticsApi.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AnalyticsApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -36,6 +36,8 @@ import com.criteo.api.retailmedia.preview.model.LineItemReportRequest; import com.criteo.api.retailmedia.preview.model.ReportOutcome; import com.criteo.api.retailmedia.preview.model.ReportResponse; +import com.criteo.api.retailmedia.preview.model.ResourceCollectionOutcomeOfSkuSearchResult; +import com.criteo.api.retailmedia.preview.model.SkuSearchRequest; import java.lang.reflect.Type; import java.util.ArrayList; @@ -1160,4 +1162,161 @@ public okhttp3.Call getAsyncExportStatusAsync(String reportId, final ApiCallback localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for getSkuByProductId + * @param accountId account id (required) + * @param retailerId retailer id (required) + * @param offset skip a number of matches before retrning results, used with limit (optional, default to 0) + * @param limit max number of results to return (optional, default to 100) + * @param skuSearchRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getSkuByProductIdCall(String accountId, Integer retailerId, Integer offset, Integer limit, SkuSearchRequest skuSearchRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = skuSearchRequest; + + // create path and map variables + String localVarPath = "/preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id" + .replace("{" + "accountId" + "}", localVarApiClient.escapeString(accountId.toString())) + .replace("{" + "retailerId" + "}", localVarApiClient.escapeString(retailerId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (offset != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSkuByProductIdValidateBeforeCall(String accountId, Integer retailerId, Integer offset, Integer limit, SkuSearchRequest skuSearchRequest, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException("Missing the required parameter 'accountId' when calling getSkuByProductId(Async)"); + } + + // verify the required parameter 'retailerId' is set + if (retailerId == null) { + throw new ApiException("Missing the required parameter 'retailerId' when calling getSkuByProductId(Async)"); + } + + return getSkuByProductIdCall(accountId, retailerId, offset, limit, skuSearchRequest, _callback); + + } + + /** + * + * Gets a list of SKUs based on a privided list of Product Ids + * @param accountId account id (required) + * @param retailerId retailer id (required) + * @param offset skip a number of matches before retrning results, used with limit (optional, default to 0) + * @param limit max number of results to return (optional, default to 100) + * @param skuSearchRequest (optional) + * @return ResourceCollectionOutcomeOfSkuSearchResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ResourceCollectionOutcomeOfSkuSearchResult getSkuByProductId(String accountId, Integer retailerId, Integer offset, Integer limit, SkuSearchRequest skuSearchRequest) throws ApiException { + ApiResponse localVarResp = getSkuByProductIdWithHttpInfo(accountId, retailerId, offset, limit, skuSearchRequest); + return localVarResp.getData(); + } + + /** + * + * Gets a list of SKUs based on a privided list of Product Ids + * @param accountId account id (required) + * @param retailerId retailer id (required) + * @param offset skip a number of matches before retrning results, used with limit (optional, default to 0) + * @param limit max number of results to return (optional, default to 100) + * @param skuSearchRequest (optional) + * @return ApiResponse<ResourceCollectionOutcomeOfSkuSearchResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse getSkuByProductIdWithHttpInfo(String accountId, Integer retailerId, Integer offset, Integer limit, SkuSearchRequest skuSearchRequest) throws ApiException { + okhttp3.Call localVarCall = getSkuByProductIdValidateBeforeCall(accountId, retailerId, offset, limit, skuSearchRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Gets a list of SKUs based on a privided list of Product Ids + * @param accountId account id (required) + * @param retailerId retailer id (required) + * @param offset skip a number of matches before retrning results, used with limit (optional, default to 0) + * @param limit max number of results to return (optional, default to 100) + * @param skuSearchRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getSkuByProductIdAsync(String accountId, Integer retailerId, Integer offset, Integer limit, SkuSearchRequest skuSearchRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSkuByProductIdValidateBeforeCall(accountId, retailerId, offset, limit, skuSearchRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } } diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AudienceApi.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AudienceApi.java index 9c32e35d..eeb1a4a9 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AudienceApi.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/AudienceApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/CampaignApi.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/CampaignApi.java index be1f1359..d7d2b2d6 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/CampaignApi.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/CampaignApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -66,6 +66,8 @@ import com.criteo.api.retailmedia.preview.model.TemplateListResponse; import com.criteo.api.retailmedia.preview.model.TemplateResponse; import com.criteo.api.retailmedia.preview.model.UpdateBalanceModelRequest; +import com.criteo.api.retailmedia.preview.model.ValueResourceOutcomeOfCampaignBudgetOverrides; +import com.criteo.api.retailmedia.preview.model.ValueResourceOutcomeOfSuggestedKeywordsResult; import java.lang.reflect.Type; import java.util.ArrayList; @@ -2901,6 +2903,252 @@ public okhttp3.Call getApiV1ExternalRetailerPlacementsByRetailerIdAsync(String r localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for getCampaignBudgetOverrides + * @param campaignId External campaign id. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getCampaignBudgetOverridesCall(Long campaignId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides" + .replace("{" + "campaignId" + "}", localVarApiClient.escapeString(campaignId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCampaignBudgetOverridesValidateBeforeCall(Long campaignId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling getCampaignBudgetOverrides(Async)"); + } + + return getCampaignBudgetOverridesCall(campaignId, _callback); + + } + + /** + * + * Get current campaign budget overrides by given external campaign id. + * @param campaignId External campaign id. (required) + * @return ValueResourceOutcomeOfCampaignBudgetOverrides + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ValueResourceOutcomeOfCampaignBudgetOverrides getCampaignBudgetOverrides(Long campaignId) throws ApiException { + ApiResponse localVarResp = getCampaignBudgetOverridesWithHttpInfo(campaignId); + return localVarResp.getData(); + } + + /** + * + * Get current campaign budget overrides by given external campaign id. + * @param campaignId External campaign id. (required) + * @return ApiResponse<ValueResourceOutcomeOfCampaignBudgetOverrides> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse getCampaignBudgetOverridesWithHttpInfo(Long campaignId) throws ApiException { + okhttp3.Call localVarCall = getCampaignBudgetOverridesValidateBeforeCall(campaignId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Get current campaign budget overrides by given external campaign id. + * @param campaignId External campaign id. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getCampaignBudgetOverridesAsync(Long campaignId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCampaignBudgetOverridesValidateBeforeCall(campaignId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSuggestedKeywords + * @param externalLineItemId The external line item identifier (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getSuggestedKeywordsCall(String externalLineItemId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/preview/retail-media/line-items/{externalLineItemId}/keywords/recommended" + .replace("{" + "externalLineItemId" + "}", localVarApiClient.escapeString(externalLineItemId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "oauth", "oauth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSuggestedKeywordsValidateBeforeCall(String externalLineItemId, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'externalLineItemId' is set + if (externalLineItemId == null) { + throw new ApiException("Missing the required parameter 'externalLineItemId' when calling getSuggestedKeywords(Async)"); + } + + return getSuggestedKeywordsCall(externalLineItemId, _callback); + + } + + /** + * + * Retrieves a collection of recommended keywords for a line item + * @param externalLineItemId The external line item identifier (required) + * @return ValueResourceOutcomeOfSuggestedKeywordsResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ValueResourceOutcomeOfSuggestedKeywordsResult getSuggestedKeywords(String externalLineItemId) throws ApiException { + ApiResponse localVarResp = getSuggestedKeywordsWithHttpInfo(externalLineItemId); + return localVarResp.getData(); + } + + /** + * + * Retrieves a collection of recommended keywords for a line item + * @param externalLineItemId The external line item identifier (required) + * @return ApiResponse<ValueResourceOutcomeOfSuggestedKeywordsResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public ApiResponse getSuggestedKeywordsWithHttpInfo(String externalLineItemId) throws ApiException { + okhttp3.Call localVarCall = getSuggestedKeywordsValidateBeforeCall(externalLineItemId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Retrieves a collection of recommended keywords for a line item + * @param externalLineItemId The external line item identifier (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 Success -
+ */ + public okhttp3.Call getSuggestedKeywordsAsync(String externalLineItemId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSuggestedKeywordsValidateBeforeCall(externalLineItemId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for patchApiV1ExternalAccountByAccountIdAndBalanceId * @param accountId The account of the balance (required) diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/GatewayApi.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/GatewayApi.java index bac82b87..15797faa 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/GatewayApi.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/api/GatewayApi.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/ApiKeyAuth.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/ApiKeyAuth.java index 156cd76b..cd06ac41 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/ApiKeyAuth.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/Authentication.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/Authentication.java index 369155be..07eddef6 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/Authentication.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/Authentication.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/HttpBasicAuth.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/HttpBasicAuth.java index 0e6f3200..3c0a5a54 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/HttpBasicAuth.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/HttpBearerAuth.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/HttpBearerAuth.java index 8eb94d09..e38b4211 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/HttpBearerAuth.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/HttpBearerAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/OAuth.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/OAuth.java index bad7d692..9417d757 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/OAuth.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/OAuth.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/OAuthFlow.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/OAuthFlow.java index 1704434e..978a1233 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/OAuthFlow.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AbstractOpenApiSchema.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AbstractOpenApiSchema.java index 7722d4fb..56ca1e3e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AbstractOpenApiSchema.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AbstractOpenApiSchema.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AddFundsToBalanceRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AddFundsToBalanceRequest.java index a389f97b..2d7ea89b 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AddFundsToBalanceRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AddFundsToBalanceRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModel.java index 85c85cf9..2a57a6c7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModelResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModelResource.java index 7edd4720..a8597694 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModelResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModelResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModelResponse.java index 114bda63..33008c1e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModelResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ApplicationSummaryModelResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReport.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReport.java index b67ee663..8e98f9b6 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReport.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReport.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -229,7 +230,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -286,7 +287,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -349,7 +350,7 @@ public static CampaignTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -400,7 +401,7 @@ public static SalesChannelEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -455,7 +456,7 @@ public static FormatEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -514,7 +515,7 @@ public static ReportTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -554,7 +555,7 @@ public AsyncCampaignReport metrics(List metrics) { public AsyncCampaignReport addMetricsItem(MetricsEnum metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList<>(); + this.metrics = null; } this.metrics.add(metricsItem); return this; @@ -584,7 +585,7 @@ public AsyncCampaignReport dimensions(List dimensions) { public AsyncCampaignReport addDimensionsItem(DimensionsEnum dimensionsItem) { if (this.dimensions == null) { - this.dimensions = new ArrayList<>(); + this.dimensions = null; } this.dimensions.add(dimensionsItem); return this; @@ -812,7 +813,7 @@ public AsyncCampaignReport ids(List ids) { public AsyncCampaignReport addIdsItem(String idsItem) { if (this.ids == null) { - this.ids = new ArrayList<>(); + this.ids = null; } this.ids.add(idsItem); return this; @@ -926,11 +927,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, asyncCampaignReport.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(metrics, dimensions, clickAttributionWindow, viewAttributionWindow, startDate, endDate, timezone, campaignType, salesChannel, format, reportType, ids, id, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReportRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReportRequest.java index 0d2fcf00..d15fb034 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReportRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReportResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReportResource.java index 43147bc3..69e8d5bd 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReportResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncCampaignReportResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, asyncCampaignReportResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReport.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReport.java index f5e20ec9..7ba841fb 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReport.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReport.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -239,7 +240,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -296,7 +297,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -359,7 +360,7 @@ public static CampaignTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -410,7 +411,7 @@ public static SalesChannelEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -465,7 +466,7 @@ public static FormatEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -524,7 +525,7 @@ public static ReportTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -564,7 +565,7 @@ public AsyncLineItemReport metrics(List metrics) { public AsyncLineItemReport addMetricsItem(MetricsEnum metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList<>(); + this.metrics = null; } this.metrics.add(metricsItem); return this; @@ -594,7 +595,7 @@ public AsyncLineItemReport dimensions(List dimensions) { public AsyncLineItemReport addDimensionsItem(DimensionsEnum dimensionsItem) { if (this.dimensions == null) { - this.dimensions = new ArrayList<>(); + this.dimensions = null; } this.dimensions.add(dimensionsItem); return this; @@ -822,7 +823,7 @@ public AsyncLineItemReport ids(List ids) { public AsyncLineItemReport addIdsItem(String idsItem) { if (this.ids == null) { - this.ids = new ArrayList<>(); + this.ids = null; } this.ids.add(idsItem); return this; @@ -936,11 +937,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, asyncLineItemReport.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(metrics, dimensions, clickAttributionWindow, viewAttributionWindow, startDate, endDate, timezone, campaignType, salesChannel, format, reportType, ids, id, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReportRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReportRequest.java index af8ed724..acc16498 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReportRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReportResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReportResource.java index da1b9d6c..798b60f4 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReportResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncLineItemReportResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, asyncLineItemReportResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncReportResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncReportResponse.java index 0f4c34af..eb2b71b2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncReportResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncReportResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, asyncReportResponse.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReport.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReport.java index 40dca8d0..28a91f97 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReport.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReport.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -87,7 +88,7 @@ public static ReportTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -138,7 +139,7 @@ public static RevenueTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -335,7 +336,7 @@ public static FormatEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -398,7 +399,7 @@ public static CampaignTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -449,7 +450,7 @@ public static SalesChannelEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -470,6 +471,110 @@ public SalesChannelEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_SALES_CHANNEL) private SalesChannelEnum salesChannel; + /** + * Filter on the type of seller + */ + @JsonAdapter(SoldByEnum.Adapter.class) + public enum SoldByEnum { + DIRECTSOLD("directSold"), + + INDIRECTSOLD("indirectSold"), + + PRIVATEMARKET("privateMarket"); + + private String value; + + SoldByEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SoldByEnum fromValue(String value) { + for (SoldByEnum b : SoldByEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SoldByEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SoldByEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SoldByEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SOLD_BY = "soldBy"; + @SerializedName(SERIALIZED_NAME_SOLD_BY) + private SoldByEnum soldBy; + + /** + * Filter on the campaign sub type + */ + @JsonAdapter(CampaignSubTypeEnum.Adapter.class) + public enum CampaignSubTypeEnum { + AUCTIONANDPREFERRED("auctionAndPreferred"), + + LOCKOUT("lockout"); + + private String value; + + CampaignSubTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CampaignSubTypeEnum fromValue(String value) { + for (CampaignSubTypeEnum b : CampaignSubTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CampaignSubTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CampaignSubTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CampaignSubTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CAMPAIGN_SUB_TYPE = "campaignSubType"; + @SerializedName(SERIALIZED_NAME_CAMPAIGN_SUB_TYPE) + private CampaignSubTypeEnum campaignSubType; + public AsyncRevenueReport() { } @@ -525,7 +630,7 @@ public AsyncRevenueReport ids(List ids) { public AsyncRevenueReport addIdsItem(String idsItem) { if (this.ids == null) { - this.ids = new ArrayList<>(); + this.ids = null; } this.ids.add(idsItem); return this; @@ -577,7 +682,7 @@ public AsyncRevenueReport metrics(List metrics) { public AsyncRevenueReport addMetricsItem(MetricsEnum metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList<>(); + this.metrics = null; } this.metrics.add(metricsItem); return this; @@ -607,7 +712,7 @@ public AsyncRevenueReport dimensions(List dimensions) { public AsyncRevenueReport addDimensionsItem(DimensionsEnum dimensionsItem) { if (this.dimensions == null) { - this.dimensions = new ArrayList<>(); + this.dimensions = null; } this.dimensions.add(dimensionsItem); return this; @@ -760,6 +865,50 @@ public void setSalesChannel(SalesChannelEnum salesChannel) { this.salesChannel = salesChannel; } + + public AsyncRevenueReport soldBy(SoldByEnum soldBy) { + + this.soldBy = soldBy; + return this; + } + + /** + * Filter on the type of seller + * @return soldBy + **/ + @javax.annotation.Nullable + + public SoldByEnum getSoldBy() { + return soldBy; + } + + + public void setSoldBy(SoldByEnum soldBy) { + this.soldBy = soldBy; + } + + + public AsyncRevenueReport campaignSubType(CampaignSubTypeEnum campaignSubType) { + + this.campaignSubType = campaignSubType; + return this; + } + + /** + * Filter on the campaign sub type + * @return campaignSubType + **/ + @javax.annotation.Nullable + + public CampaignSubTypeEnum getCampaignSubType() { + return campaignSubType; + } + + + public void setCampaignSubType(CampaignSubTypeEnum campaignSubType) { + this.campaignSubType = campaignSubType; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -826,13 +975,26 @@ public boolean equals(Object o) { Objects.equals(this.endDate, asyncRevenueReport.endDate) && Objects.equals(this.timezone, asyncRevenueReport.timezone) && Objects.equals(this.campaignType, asyncRevenueReport.campaignType) && - Objects.equals(this.salesChannel, asyncRevenueReport.salesChannel)&& + Objects.equals(this.salesChannel, asyncRevenueReport.salesChannel) && + Objects.equals(this.soldBy, asyncRevenueReport.soldBy) && + Objects.equals(this.campaignSubType, asyncRevenueReport.campaignSubType)&& Objects.equals(this.additionalProperties, asyncRevenueReport.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(reportType, revenueType, ids, id, metrics, dimensions, format, startDate, endDate, timezone, campaignType, salesChannel, additionalProperties); + return Objects.hash(reportType, revenueType, ids, id, metrics, dimensions, format, startDate, endDate, timezone, campaignType, salesChannel, soldBy, campaignSubType, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -851,6 +1013,8 @@ public String toString() { sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); sb.append(" campaignType: ").append(toIndentedString(campaignType)).append("\n"); sb.append(" salesChannel: ").append(toIndentedString(salesChannel)).append("\n"); + sb.append(" soldBy: ").append(toIndentedString(soldBy)).append("\n"); + sb.append(" campaignSubType: ").append(toIndentedString(campaignSubType)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -886,6 +1050,8 @@ private String toIndentedString(Object o) { openapiFields.add("timezone"); openapiFields.add("campaignType"); openapiFields.add("salesChannel"); + openapiFields.add("soldBy"); + openapiFields.add("campaignSubType"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -945,6 +1111,12 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("salesChannel") != null && !jsonObj.get("salesChannel").isJsonNull()) && !jsonObj.get("salesChannel").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `salesChannel` to be a primitive type in the JSON string but got `%s`", jsonObj.get("salesChannel").toString())); } + if ((jsonObj.get("soldBy") != null && !jsonObj.get("soldBy").isJsonNull()) && !jsonObj.get("soldBy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `soldBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("soldBy").toString())); + } + if ((jsonObj.get("campaignSubType") != null && !jsonObj.get("campaignSubType").isJsonNull()) && !jsonObj.get("campaignSubType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `campaignSubType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("campaignSubType").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReportRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReportRequest.java index df246cc9..60de89fb 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReportRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReportResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReportResource.java index 7012b4b4..ca96a8d9 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReportResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AsyncRevenueReportResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, asyncRevenueReportResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionReportRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionReportRequest.java index f7feeff3..c775b3f2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionReportRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionReportResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionReportResource.java index de669b29..d1c154a7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionReportResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionReportResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, attributedTransactionReportResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionsReport.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionsReport.java index 2b252e84..31b586e2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionsReport.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/AttributedTransactionsReport.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -209,110 +210,6 @@ public MetricsEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_METRICS) private List metrics = null; - /** - * Filter on the type of seller - */ - @JsonAdapter(SoldByEnum.Adapter.class) - public enum SoldByEnum { - DIRECTSOLD("directSold"), - - INDIRECTSOLD("indirectSold"), - - PRIVATEMARKET("privateMarket"); - - private String value; - - SoldByEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static SoldByEnum fromValue(String value) { - for (SoldByEnum b : SoldByEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final SoldByEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public SoldByEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return SoldByEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_SOLD_BY = "soldBy"; - @SerializedName(SERIALIZED_NAME_SOLD_BY) - private SoldByEnum soldBy; - - /** - * Filter on the campaign sub type - */ - @JsonAdapter(CampaignSubTypeEnum.Adapter.class) - public enum CampaignSubTypeEnum { - AUCTIONANDPREFERRED("auctionAndPreferred"), - - LOCKOUT("lockout"); - - private String value; - - CampaignSubTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static CampaignSubTypeEnum fromValue(String value) { - for (CampaignSubTypeEnum b : CampaignSubTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final CampaignSubTypeEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public CampaignSubTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return CampaignSubTypeEnum.fromValue(value); - } - } - } - - public static final String SERIALIZED_NAME_CAMPAIGN_SUB_TYPE = "campaignSubType"; - @SerializedName(SERIALIZED_NAME_CAMPAIGN_SUB_TYPE) - private CampaignSubTypeEnum campaignSubType; - public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) private String accountId; @@ -361,7 +258,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -418,7 +315,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -450,7 +347,7 @@ public AttributedTransactionsReport campaignIds(List campaignIds) { public AttributedTransactionsReport addCampaignIdsItem(String campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList<>(); + this.campaignIds = null; } this.campaignIds.add(campaignIdsItem); return this; @@ -480,7 +377,7 @@ public AttributedTransactionsReport lineItemIds(List lineItemIds) { public AttributedTransactionsReport addLineItemIdsItem(String lineItemIdsItem) { if (this.lineItemIds == null) { - this.lineItemIds = new ArrayList<>(); + this.lineItemIds = null; } this.lineItemIds.add(lineItemIdsItem); return this; @@ -510,7 +407,7 @@ public AttributedTransactionsReport dimensions(List dimensions) public AttributedTransactionsReport addDimensionsItem(DimensionsEnum dimensionsItem) { if (this.dimensions == null) { - this.dimensions = new ArrayList<>(); + this.dimensions = null; } this.dimensions.add(dimensionsItem); return this; @@ -540,7 +437,7 @@ public AttributedTransactionsReport metrics(List metrics) { public AttributedTransactionsReport addMetricsItem(MetricsEnum metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList<>(); + this.metrics = null; } this.metrics.add(metricsItem); return this; @@ -562,50 +459,6 @@ public void setMetrics(List metrics) { } - public AttributedTransactionsReport soldBy(SoldByEnum soldBy) { - - this.soldBy = soldBy; - return this; - } - - /** - * Filter on the type of seller - * @return soldBy - **/ - @javax.annotation.Nullable - - public SoldByEnum getSoldBy() { - return soldBy; - } - - - public void setSoldBy(SoldByEnum soldBy) { - this.soldBy = soldBy; - } - - - public AttributedTransactionsReport campaignSubType(CampaignSubTypeEnum campaignSubType) { - - this.campaignSubType = campaignSubType; - return this; - } - - /** - * Filter on the campaign sub type - * @return campaignSubType - **/ - @javax.annotation.Nullable - - public CampaignSubTypeEnum getCampaignSubType() { - return campaignSubType; - } - - - public void setCampaignSubType(CampaignSubTypeEnum campaignSubType) { - this.campaignSubType = campaignSubType; - } - - public AttributedTransactionsReport accountId(String accountId) { this.accountId = accountId; @@ -796,8 +649,6 @@ public boolean equals(Object o) { Objects.equals(this.lineItemIds, attributedTransactionsReport.lineItemIds) && Objects.equals(this.dimensions, attributedTransactionsReport.dimensions) && Objects.equals(this.metrics, attributedTransactionsReport.metrics) && - Objects.equals(this.soldBy, attributedTransactionsReport.soldBy) && - Objects.equals(this.campaignSubType, attributedTransactionsReport.campaignSubType) && Objects.equals(this.accountId, attributedTransactionsReport.accountId) && Objects.equals(this.startDate, attributedTransactionsReport.startDate) && Objects.equals(this.endDate, attributedTransactionsReport.endDate) && @@ -807,9 +658,20 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, attributedTransactionsReport.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, lineItemIds, dimensions, metrics, soldBy, campaignSubType, accountId, startDate, endDate, timezone, clickAttributionWindow, viewAttributionWindow, additionalProperties); + return Objects.hash(campaignIds, lineItemIds, dimensions, metrics, accountId, startDate, endDate, timezone, clickAttributionWindow, viewAttributionWindow, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -820,8 +682,6 @@ public String toString() { sb.append(" lineItemIds: ").append(toIndentedString(lineItemIds)).append("\n"); sb.append(" dimensions: ").append(toIndentedString(dimensions)).append("\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); - sb.append(" soldBy: ").append(toIndentedString(soldBy)).append("\n"); - sb.append(" campaignSubType: ").append(toIndentedString(campaignSubType)).append("\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); @@ -855,8 +715,6 @@ private String toIndentedString(Object o) { openapiFields.add("lineItemIds"); openapiFields.add("dimensions"); openapiFields.add("metrics"); - openapiFields.add("soldBy"); - openapiFields.add("campaignSubType"); openapiFields.add("accountId"); openapiFields.add("startDate"); openapiFields.add("endDate"); @@ -906,12 +764,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj.get("metrics") != null && !jsonObj.get("metrics").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `metrics` to be an array in the JSON string but got `%s`", jsonObj.get("metrics").toString())); } - if ((jsonObj.get("soldBy") != null && !jsonObj.get("soldBy").isJsonNull()) && !jsonObj.get("soldBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `soldBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("soldBy").toString())); - } - if ((jsonObj.get("campaignSubType") != null && !jsonObj.get("campaignSubType").isJsonNull()) && !jsonObj.get("campaignSubType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `campaignSubType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("campaignSubType").toString())); - } if (!jsonObj.get("accountId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `accountId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountId").toString())); } diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponse.java index ef857af9..2f1382d2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponsePagedListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponsePagedListResponse.java index 4e06dae4..bbf91f17 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponsePagedListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BalanceResponsePagedListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Brand.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Brand.java index fd2b5bcc..22961685 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Brand.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Brand.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreview.java index 31c01c0f..e319ff7e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreviewListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreviewListResponse.java index c7fd93da..361a2554 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreviewListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/BrandPreviewListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignBudgetOverrides.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignBudgetOverrides.java new file mode 100644 index 00000000..d7db1533 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignBudgetOverrides.java @@ -0,0 +1,274 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.CampaignDailyBudgetOverride; +import com.criteo.api.retailmedia.preview.model.CampaignMonthlyBudgetOverride; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * Campaign budget overrides including Monthly and Daily budget overrides. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CampaignBudgetOverrides { + public static final String SERIALIZED_NAME_MONTHLY_BUDGET_OVERRIDES = "monthlyBudgetOverrides"; + @SerializedName(SERIALIZED_NAME_MONTHLY_BUDGET_OVERRIDES) + private List monthlyBudgetOverrides = new ArrayList<>(); + + public static final String SERIALIZED_NAME_DAILY_BUDGET_OVERRIDES = "dailyBudgetOverrides"; + @SerializedName(SERIALIZED_NAME_DAILY_BUDGET_OVERRIDES) + private List dailyBudgetOverrides = new ArrayList<>(); + + public CampaignBudgetOverrides() { + } + + public CampaignBudgetOverrides monthlyBudgetOverrides(List monthlyBudgetOverrides) { + + this.monthlyBudgetOverrides = monthlyBudgetOverrides; + return this; + } + + public CampaignBudgetOverrides addMonthlyBudgetOverridesItem(CampaignMonthlyBudgetOverride monthlyBudgetOverridesItem) { + this.monthlyBudgetOverrides.add(monthlyBudgetOverridesItem); + return this; + } + + /** + * Campaign budget override monthly part, chronological order restricted. + * @return monthlyBudgetOverrides + **/ + @javax.annotation.Nonnull + + public List getMonthlyBudgetOverrides() { + return monthlyBudgetOverrides; + } + + + public void setMonthlyBudgetOverrides(List monthlyBudgetOverrides) { + this.monthlyBudgetOverrides = monthlyBudgetOverrides; + } + + + public CampaignBudgetOverrides dailyBudgetOverrides(List dailyBudgetOverrides) { + + this.dailyBudgetOverrides = dailyBudgetOverrides; + return this; + } + + public CampaignBudgetOverrides addDailyBudgetOverridesItem(CampaignDailyBudgetOverride dailyBudgetOverridesItem) { + this.dailyBudgetOverrides.add(dailyBudgetOverridesItem); + return this; + } + + /** + * Campaign budget override daily part, chronological order restricted. + * @return dailyBudgetOverrides + **/ + @javax.annotation.Nonnull + + public List getDailyBudgetOverrides() { + return dailyBudgetOverrides; + } + + + public void setDailyBudgetOverrides(List dailyBudgetOverrides) { + this.dailyBudgetOverrides = dailyBudgetOverrides; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignBudgetOverrides campaignBudgetOverrides = (CampaignBudgetOverrides) o; + return Objects.equals(this.monthlyBudgetOverrides, campaignBudgetOverrides.monthlyBudgetOverrides) && + Objects.equals(this.dailyBudgetOverrides, campaignBudgetOverrides.dailyBudgetOverrides); + } + + @Override + public int hashCode() { + return Objects.hash(monthlyBudgetOverrides, dailyBudgetOverrides); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignBudgetOverrides {\n"); + sb.append(" monthlyBudgetOverrides: ").append(toIndentedString(monthlyBudgetOverrides)).append("\n"); + sb.append(" dailyBudgetOverrides: ").append(toIndentedString(dailyBudgetOverrides)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("monthlyBudgetOverrides"); + openapiFields.add("dailyBudgetOverrides"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("monthlyBudgetOverrides"); + openapiRequiredFields.add("dailyBudgetOverrides"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to CampaignBudgetOverrides + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!CampaignBudgetOverrides.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignBudgetOverrides is not found in the empty JSON string", CampaignBudgetOverrides.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!CampaignBudgetOverrides.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CampaignBudgetOverrides` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CampaignBudgetOverrides.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the json data is an array + if (!jsonObj.get("monthlyBudgetOverrides").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `monthlyBudgetOverrides` to be an array in the JSON string but got `%s`", jsonObj.get("monthlyBudgetOverrides").toString())); + } + + JsonArray jsonArraymonthlyBudgetOverrides = jsonObj.getAsJsonArray("monthlyBudgetOverrides"); + // validate the required field `monthlyBudgetOverrides` (array) + for (int i = 0; i < jsonArraymonthlyBudgetOverrides.size(); i++) { + CampaignMonthlyBudgetOverride.validateJsonObject(jsonArraymonthlyBudgetOverrides.get(i).getAsJsonObject()); + }; + // ensure the json data is an array + if (!jsonObj.get("dailyBudgetOverrides").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `dailyBudgetOverrides` to be an array in the JSON string but got `%s`", jsonObj.get("dailyBudgetOverrides").toString())); + } + + JsonArray jsonArraydailyBudgetOverrides = jsonObj.getAsJsonArray("dailyBudgetOverrides"); + // validate the required field `dailyBudgetOverrides` (array) + for (int i = 0; i < jsonArraydailyBudgetOverrides.size(); i++) { + CampaignDailyBudgetOverride.validateJsonObject(jsonArraydailyBudgetOverrides.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CampaignBudgetOverrides.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CampaignBudgetOverrides' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CampaignBudgetOverrides.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CampaignBudgetOverrides value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public CampaignBudgetOverrides read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CampaignBudgetOverrides given an JSON string + * + * @param jsonString JSON string + * @return An instance of CampaignBudgetOverrides + * @throws IOException if the JSON string is invalid with respect to CampaignBudgetOverrides + */ + public static CampaignBudgetOverrides fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CampaignBudgetOverrides.class); + } + + /** + * Convert an instance of CampaignBudgetOverrides to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignDailyBudgetOverride.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignDailyBudgetOverride.java new file mode 100644 index 00000000..244a23b6 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignDailyBudgetOverride.java @@ -0,0 +1,366 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * Campaign daily budget override. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CampaignDailyBudgetOverride { + public static final String SERIALIZED_NAME_START_DATE = "startDate"; + @SerializedName(SERIALIZED_NAME_START_DATE) + private OffsetDateTime startDate; + + public static final String SERIALIZED_NAME_DURATION = "duration"; + @SerializedName(SERIALIZED_NAME_DURATION) + private String duration; + + public static final String SERIALIZED_NAME_MAX_DAILY_SPEND = "maxDailySpend"; + @SerializedName(SERIALIZED_NAME_MAX_DAILY_SPEND) + private Double maxDailySpend; + + /** + * Daily budget override computed status. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + EXPIRED("Expired"), + + ACTIVE("Active"), + + UPCOMING("Upcoming"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private StatusEnum status; + + public CampaignDailyBudgetOverride() { + } + + public CampaignDailyBudgetOverride startDate(OffsetDateTime startDate) { + + this.startDate = startDate; + return this; + } + + /** + * Daily budget override start date, format \"yyyy-MM-dd\". If it is null, the StartDate would be the following date of the last item in the override sequence. + * @return startDate + **/ + @javax.annotation.Nullable + + public OffsetDateTime getStartDate() { + return startDate; + } + + + public void setStartDate(OffsetDateTime startDate) { + this.startDate = startDate; + } + + + public CampaignDailyBudgetOverride duration(String duration) { + + this.duration = duration; + return this; + } + + /** + * Daily budget override duration, e.g. \"1D\". Must be ending with D. + * @return duration + **/ + @javax.annotation.Nonnull + + public String getDuration() { + return duration; + } + + + public void setDuration(String duration) { + this.duration = duration; + } + + + public CampaignDailyBudgetOverride maxDailySpend(Double maxDailySpend) { + + this.maxDailySpend = maxDailySpend; + return this; + } + + /** + * Daily budget override maximum daily spend amount. + * @return maxDailySpend + **/ + @javax.annotation.Nonnull + + public Double getMaxDailySpend() { + return maxDailySpend; + } + + + public void setMaxDailySpend(Double maxDailySpend) { + this.maxDailySpend = maxDailySpend; + } + + + public CampaignDailyBudgetOverride status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * Daily budget override computed status. + * @return status + **/ + @javax.annotation.Nullable + + public StatusEnum getStatus() { + return status; + } + + + public void setStatus(StatusEnum status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignDailyBudgetOverride campaignDailyBudgetOverride = (CampaignDailyBudgetOverride) o; + return Objects.equals(this.startDate, campaignDailyBudgetOverride.startDate) && + Objects.equals(this.duration, campaignDailyBudgetOverride.duration) && + Objects.equals(this.maxDailySpend, campaignDailyBudgetOverride.maxDailySpend) && + Objects.equals(this.status, campaignDailyBudgetOverride.status); + } + + 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(startDate, duration, maxDailySpend, status); + } + + 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(); + sb.append("class CampaignDailyBudgetOverride {\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" maxDailySpend: ").append(toIndentedString(maxDailySpend)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("startDate"); + openapiFields.add("duration"); + openapiFields.add("maxDailySpend"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("duration"); + openapiRequiredFields.add("maxDailySpend"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to CampaignDailyBudgetOverride + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!CampaignDailyBudgetOverride.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignDailyBudgetOverride is not found in the empty JSON string", CampaignDailyBudgetOverride.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!CampaignDailyBudgetOverride.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CampaignDailyBudgetOverride` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CampaignDailyBudgetOverride.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("duration").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); + } + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CampaignDailyBudgetOverride.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CampaignDailyBudgetOverride' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CampaignDailyBudgetOverride.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CampaignDailyBudgetOverride value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public CampaignDailyBudgetOverride read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CampaignDailyBudgetOverride given an JSON string + * + * @param jsonString JSON string + * @return An instance of CampaignDailyBudgetOverride + * @throws IOException if the JSON string is invalid with respect to CampaignDailyBudgetOverride + */ + public static CampaignDailyBudgetOverride fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CampaignDailyBudgetOverride.class); + } + + /** + * Convert an instance of CampaignDailyBudgetOverride to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignMonthlyBudgetOverride.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignMonthlyBudgetOverride.java new file mode 100644 index 00000000..71501fd7 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignMonthlyBudgetOverride.java @@ -0,0 +1,366 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * Campaign monthly budget override. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CampaignMonthlyBudgetOverride { + public static final String SERIALIZED_NAME_START_MONTH = "startMonth"; + @SerializedName(SERIALIZED_NAME_START_MONTH) + private OffsetDateTime startMonth; + + public static final String SERIALIZED_NAME_DURATION = "duration"; + @SerializedName(SERIALIZED_NAME_DURATION) + private String duration; + + public static final String SERIALIZED_NAME_MAX_MONTHLY_SPEND = "maxMonthlySpend"; + @SerializedName(SERIALIZED_NAME_MAX_MONTHLY_SPEND) + private Double maxMonthlySpend; + + /** + * Monthly budget override computed status. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + EXPIRED("Expired"), + + ACTIVE("Active"), + + UPCOMING("Upcoming"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private StatusEnum status; + + public CampaignMonthlyBudgetOverride() { + } + + public CampaignMonthlyBudgetOverride startMonth(OffsetDateTime startMonth) { + + this.startMonth = startMonth; + return this; + } + + /** + * Monthly budget override start month, format \"yyyy-MM\". If it is null, the StartMonth would be the following month of the last item in the override sequence. + * @return startMonth + **/ + @javax.annotation.Nullable + + public OffsetDateTime getStartMonth() { + return startMonth; + } + + + public void setStartMonth(OffsetDateTime startMonth) { + this.startMonth = startMonth; + } + + + public CampaignMonthlyBudgetOverride duration(String duration) { + + this.duration = duration; + return this; + } + + /** + * Monthly budget override duration, e.g. \"1M\". Must be ending with \"M\". + * @return duration + **/ + @javax.annotation.Nonnull + + public String getDuration() { + return duration; + } + + + public void setDuration(String duration) { + this.duration = duration; + } + + + public CampaignMonthlyBudgetOverride maxMonthlySpend(Double maxMonthlySpend) { + + this.maxMonthlySpend = maxMonthlySpend; + return this; + } + + /** + * Monthly budget override maximum monthly spend amount. + * @return maxMonthlySpend + **/ + @javax.annotation.Nonnull + + public Double getMaxMonthlySpend() { + return maxMonthlySpend; + } + + + public void setMaxMonthlySpend(Double maxMonthlySpend) { + this.maxMonthlySpend = maxMonthlySpend; + } + + + public CampaignMonthlyBudgetOverride status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * Monthly budget override computed status. + * @return status + **/ + @javax.annotation.Nullable + + public StatusEnum getStatus() { + return status; + } + + + public void setStatus(StatusEnum status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignMonthlyBudgetOverride campaignMonthlyBudgetOverride = (CampaignMonthlyBudgetOverride) o; + return Objects.equals(this.startMonth, campaignMonthlyBudgetOverride.startMonth) && + Objects.equals(this.duration, campaignMonthlyBudgetOverride.duration) && + Objects.equals(this.maxMonthlySpend, campaignMonthlyBudgetOverride.maxMonthlySpend) && + Objects.equals(this.status, campaignMonthlyBudgetOverride.status); + } + + 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(startMonth, duration, maxMonthlySpend, status); + } + + 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(); + sb.append("class CampaignMonthlyBudgetOverride {\n"); + sb.append(" startMonth: ").append(toIndentedString(startMonth)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" maxMonthlySpend: ").append(toIndentedString(maxMonthlySpend)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("startMonth"); + openapiFields.add("duration"); + openapiFields.add("maxMonthlySpend"); + openapiFields.add("status"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("duration"); + openapiRequiredFields.add("maxMonthlySpend"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to CampaignMonthlyBudgetOverride + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!CampaignMonthlyBudgetOverride.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CampaignMonthlyBudgetOverride is not found in the empty JSON string", CampaignMonthlyBudgetOverride.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!CampaignMonthlyBudgetOverride.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CampaignMonthlyBudgetOverride` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CampaignMonthlyBudgetOverride.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("duration").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); + } + if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CampaignMonthlyBudgetOverride.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CampaignMonthlyBudgetOverride' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CampaignMonthlyBudgetOverride.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CampaignMonthlyBudgetOverride value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public CampaignMonthlyBudgetOverride read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CampaignMonthlyBudgetOverride given an JSON string + * + * @param jsonString JSON string + * @return An instance of CampaignMonthlyBudgetOverride + * @throws IOException if the JSON string is invalid with respect to CampaignMonthlyBudgetOverride + */ + public static CampaignMonthlyBudgetOverride fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CampaignMonthlyBudgetOverride.class); + } + + /** + * Convert an instance of CampaignMonthlyBudgetOverride to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReport.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReport.java index 2621c2dc..4f223a58 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReport.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReport.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -87,7 +88,7 @@ public static ReportTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -304,7 +305,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -361,7 +362,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -412,7 +413,7 @@ public static CampaignTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -463,7 +464,7 @@ public static SalesChannelEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -517,7 +518,7 @@ public CampaignReport campaignIds(List campaignIds) { public CampaignReport addCampaignIdsItem(String campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList<>(); + this.campaignIds = null; } this.campaignIds.add(campaignIdsItem); return this; @@ -547,7 +548,7 @@ public CampaignReport metrics(List metrics) { public CampaignReport addMetricsItem(MetricsEnum metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList<>(); + this.metrics = null; } this.metrics.add(metricsItem); return this; @@ -577,7 +578,7 @@ public CampaignReport dimensions(List dimensions) { public CampaignReport addDimensionsItem(DimensionsEnum dimensionsItem) { if (this.dimensions == null) { - this.dimensions = new ArrayList<>(); + this.dimensions = null; } this.dimensions.add(dimensionsItem); return this; @@ -844,11 +845,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, campaignReport.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(reportType, campaignIds, metrics, dimensions, accountId, startDate, endDate, timezone, clickAttributionWindow, viewAttributionWindow, campaignType, salesChannel, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReportRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReportRequest.java index d8db73ef..1e312710 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReportRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReportResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReportResource.java index 65bd6ff2..adde1c63 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReportResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CampaignReportResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, campaignReportResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Category.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Category.java index 061421c1..b8e399b0 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Category.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Category.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Category202204.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Category202204.java index 1cc7bf1d..81522eea 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Category202204.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Category202204.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChangeDatesOfBalanceRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChangeDatesOfBalanceRequest.java index 8d24dd98..9f47c6b2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChangeDatesOfBalanceRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChangeDatesOfBalanceRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceOption.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceOption.java index 7ee67b2c..d00c1471 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceOption.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceOption.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceVariableSpecification.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceVariableSpecification.java index 369d77b0..ceb10f64 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceVariableSpecification.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceVariableSpecification.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceVariableValue.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceVariableValue.java index f7b74925..89e4372d 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceVariableValue.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ChoiceVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ColorVariableValue.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ColorVariableValue.java index 4f959b8a..7047251f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ColorVariableValue.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ColorVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonError.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonError.java index 0d63caad..23c87083 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonError.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonError.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonProblem.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonProblem.java index 3c3034dd..a9176710 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonProblem.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonProblem.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonStatusCodeResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonStatusCodeResponse.java index 3630f5fa..0baf62f4 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonStatusCodeResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonStatusCodeResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -157,11 +158,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, commonStatusCodeResponse.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonWarning.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonWarning.java index 56c123b0..858a377f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonWarning.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CommonWarning.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CpcRateCardPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CpcRateCardPreview.java index 794648c1..8ef2d101 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CpcRateCardPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CpcRateCardPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CpcRateCardPreviewResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CpcRateCardPreviewResponse.java index 1fb24ae1..6af2c101 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CpcRateCardPreviewResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CpcRateCardPreviewResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateBalanceRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateBalanceRequest.java index 0bc98a7a..56e02c67 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateBalanceRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateBalanceRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudience.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudience.java index 14b7f39a..4d226741 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudience.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudience.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceAttributes.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceAttributes.java index 2349dc6a..469e24a7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceAttributes.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -237,7 +238,7 @@ public CreateRetailMediaAudienceAttributes brandIds(List brandIds) { public CreateRetailMediaAudienceAttributes addBrandIdsItem(Long brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new ArrayList<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -267,7 +268,7 @@ public CreateRetailMediaAudienceAttributes categoryIds(List categoryIds public CreateRetailMediaAudienceAttributes addCategoryIdsItem(Integer categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -396,11 +397,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceAttributes.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(userType, lookbackWindow, brandIds, categoryIds, retailerId, name, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceBody.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceBody.java index 7adc365f..289093e7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceBody.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceBody.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceRequest.java index ea3bd055..dd57132c 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceResponse.java index 26de1a48..8fd4c188 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -186,11 +187,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createRetailMediaAudienceResponse.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2.java index b3b47d37..fbb2d91e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Attributes.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Attributes.java index 05496ed9..3415e0dd 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Attributes.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Attributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Data.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Data.java index 43839440..0ad0063f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Data.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Data.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Request.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Request.java index aa15cdf6..0e85561c 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Request.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateRetailMediaAudienceV2Request.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateUserBehaviorSegmentV2.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateUserBehaviorSegmentV2.java index 8de60fbe..4650c885 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateUserBehaviorSegmentV2.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreateUserBehaviorSegmentV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -249,7 +250,7 @@ public CreateUserBehaviorSegmentV2 categoryIds(List categoryIds) { public CreateUserBehaviorSegmentV2 addCategoryIdsItem(Integer categoryIdsItem) { if (this.categoryIds == null) { - this.categoryIds = new ArrayList<>(); + this.categoryIds = null; } this.categoryIds.add(categoryIdsItem); return this; @@ -279,7 +280,7 @@ public CreateUserBehaviorSegmentV2 brandIds(List brandIds) { public CreateUserBehaviorSegmentV2 addBrandIdsItem(Long brandIdsItem) { if (this.brandIds == null) { - this.brandIds = new ArrayList<>(); + this.brandIds = null; } this.brandIds.add(brandIdsItem); return this; @@ -390,11 +391,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, createUserBehaviorSegmentV2.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(userAction, lookbackWindow, categoryIds, brandIds, minPrice, maxPrice, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210.java index e37daca6..7a2b4a76 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210ListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210ListResponse.java index cc74689c..00845add 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210ListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210Response.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210Response.java index df0237d9..dac3fc3d 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210Response.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Creative202210Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreativeCreateModel202207.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreativeCreateModel202207.java index f76983ce..e224ade9 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreativeCreateModel202207.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreativeCreateModel202207.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreativeUpdateModel202207.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreativeUpdateModel202207.java index c4a68e8c..02f789ec 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreativeUpdateModel202207.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CreativeUpdateModel202207.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CustomerListDetails.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CustomerListDetails.java index 8e200b3b..433f2a57 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CustomerListDetails.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/CustomerListDetails.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExportReportColumn.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExportReportColumn.java index 5cc61ba8..98a3a862 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExportReportColumn.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExportReportColumn.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -461,11 +462,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, exportReportColumn.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, title, description, type, role, timezone, duration, currency, deprecated, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExportReportMetaData.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExportReportMetaData.java index a55d8b75..5aed5812 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExportReportMetaData.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExportReportMetaData.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -70,7 +71,7 @@ public ExportReportMetaData columns(List columns) { public ExportReportMetaData addColumnsItem(ExportReportColumn columnsItem) { if (this.columns == null) { - this.columns = new ArrayList<>(); + this.columns = null; } this.columns.add(columnsItem); return this; @@ -173,11 +174,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, exportReportMetaData.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(columns, rows, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAccount.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAccount.java index 5109b709..61aa2d98 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAccount.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAccount.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAddFundsToBalance.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAddFundsToBalance.java index 8abdd4c2..535b1a1a 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAddFundsToBalance.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalAddFundsToBalance.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalBalanceResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalBalanceResponse.java index aecc615f..28754b27 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalBalanceResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalBalanceResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -210,7 +210,9 @@ public BalanceTypeEnum read(final JsonReader jsonReader) throws IOException { public enum SpendTypeEnum { ONSITE("Onsite"), - OFFSITE("Offsite"); + OFFSITE("Offsite"), + + OFFSITEAWARENESS("OffsiteAwareness"); private String value; diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalBrand.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalBrand.java index 17c4dcea..6126a46e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalBrand.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalBrand.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCatalogRequestPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCatalogRequestPreview.java index 77b98ac8..5ddf2c46 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCatalogRequestPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCatalogRequestPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCatalogStatus.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCatalogStatus.java index 5b902321..b6823c94 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCatalogStatus.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCatalogStatus.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalChangeDatesOfBalance.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalChangeDatesOfBalance.java index 441ea166..82d403ba 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalChangeDatesOfBalance.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalChangeDatesOfBalance.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCreateBalance.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCreateBalance.java index 6877764c..2f8be29b 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCreateBalance.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalCreateBalance.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -77,7 +77,9 @@ public class ExternalCreateBalance { public enum SpendTypeEnum { ONSITE("Onsite"), - OFFSITE("Offsite"); + OFFSITE("Offsite"), + + OFFSITEAWARENESS("OffsiteAwareness"); private String value; diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalProductButtonRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalProductButtonRequest.java index 94ce1a57..ca50dec2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalProductButtonRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalProductButtonRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalProductButtonResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalProductButtonResponse.java index 0fc39fb7..541cb27a 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalProductButtonResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalProductButtonResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalRetailer.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalRetailer.java index b1cd8dae..724853c4 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalRetailer.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalRetailer.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalUpdateBalanceModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalUpdateBalanceModel.java index 85a37b49..a49acbc9 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalUpdateBalanceModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ExternalUpdateBalanceModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.time.LocalDate; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -271,11 +272,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, externalUpdateBalanceModel.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, poNumber, salesForceId, startDate, endDate, memo, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/FilesVariableValue.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/FilesVariableValue.java index 18dc5128..c765cde0 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/FilesVariableValue.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/FilesVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/FilesVariablesSpecification.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/FilesVariablesSpecification.java index ddb26d10..d41816a7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/FilesVariablesSpecification.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/FilesVariablesSpecification.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/GetPageOfAudiencesByAccountIdResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/GetPageOfAudiencesByAccountIdResponse.java index 637f7db2..7c3c12cd 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/GetPageOfAudiencesByAccountIdResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/GetPageOfAudiencesByAccountIdResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,6 +27,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; @@ -207,11 +208,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, getPageOfAudiencesByAccountIdResponse.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, metadata, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/HyperlinkVariableValue.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/HyperlinkVariableValue.java index 704b8370..bc75a08a 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/HyperlinkVariableValue.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/HyperlinkVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InputKeywords.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InputKeywords.java new file mode 100644 index 00000000..73bd7792 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/InputKeywords.java @@ -0,0 +1,310 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * Keywords submitted by the user binned by type after some cleanup has been performed + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InputKeywords { + public static final String SERIALIZED_NAME_NEGATIVE_BROAD = "negativeBroad"; + @SerializedName(SERIALIZED_NAME_NEGATIVE_BROAD) + private List negativeBroad = null; + + public static final String SERIALIZED_NAME_NEGATIVE_EXACT = "negativeExact"; + @SerializedName(SERIALIZED_NAME_NEGATIVE_EXACT) + private List negativeExact = null; + + public static final String SERIALIZED_NAME_POSITIVE_EXACT = "positiveExact"; + @SerializedName(SERIALIZED_NAME_POSITIVE_EXACT) + private List positiveExact = null; + + public InputKeywords() { + } + + public InputKeywords negativeBroad(List negativeBroad) { + + this.negativeBroad = negativeBroad; + return this; + } + + public InputKeywords addNegativeBroadItem(String negativeBroadItem) { + if (this.negativeBroad == null) { + this.negativeBroad = null; + } + this.negativeBroad.add(negativeBroadItem); + return this; + } + + /** + * The collection of supplied negative broad phrased + * @return negativeBroad + **/ + @javax.annotation.Nullable + + public List getNegativeBroad() { + return negativeBroad; + } + + + public void setNegativeBroad(List negativeBroad) { + this.negativeBroad = negativeBroad; + } + + + public InputKeywords negativeExact(List negativeExact) { + + this.negativeExact = negativeExact; + return this; + } + + public InputKeywords addNegativeExactItem(String negativeExactItem) { + if (this.negativeExact == null) { + this.negativeExact = null; + } + this.negativeExact.add(negativeExactItem); + return this; + } + + /** + * The collection of supplied negative exact phrase + * @return negativeExact + **/ + @javax.annotation.Nullable + + public List getNegativeExact() { + return negativeExact; + } + + + public void setNegativeExact(List negativeExact) { + this.negativeExact = negativeExact; + } + + + public InputKeywords positiveExact(List positiveExact) { + + this.positiveExact = positiveExact; + return this; + } + + public InputKeywords addPositiveExactItem(String positiveExactItem) { + if (this.positiveExact == null) { + this.positiveExact = null; + } + this.positiveExact.add(positiveExactItem); + return this; + } + + /** + * The collection of supplied positive exact phrases + * @return positiveExact + **/ + @javax.annotation.Nullable + + public List getPositiveExact() { + return positiveExact; + } + + + public void setPositiveExact(List positiveExact) { + this.positiveExact = positiveExact; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InputKeywords inputKeywords = (InputKeywords) o; + return Objects.equals(this.negativeBroad, inputKeywords.negativeBroad) && + Objects.equals(this.negativeExact, inputKeywords.negativeExact) && + Objects.equals(this.positiveExact, inputKeywords.positiveExact); + } + + 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(negativeBroad, negativeExact, positiveExact); + } + + 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(); + sb.append("class InputKeywords {\n"); + sb.append(" negativeBroad: ").append(toIndentedString(negativeBroad)).append("\n"); + sb.append(" negativeExact: ").append(toIndentedString(negativeExact)).append("\n"); + sb.append(" positiveExact: ").append(toIndentedString(positiveExact)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("negativeBroad"); + openapiFields.add("negativeExact"); + openapiFields.add("positiveExact"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to InputKeywords + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!InputKeywords.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in InputKeywords is not found in the empty JSON string", InputKeywords.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!InputKeywords.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InputKeywords` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("negativeBroad") != null && !jsonObj.get("negativeBroad").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `negativeBroad` to be an array in the JSON string but got `%s`", jsonObj.get("negativeBroad").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("negativeExact") != null && !jsonObj.get("negativeExact").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `negativeExact` to be an array in the JSON string but got `%s`", jsonObj.get("negativeExact").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("positiveExact") != null && !jsonObj.get("positiveExact").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `positiveExact` to be an array in the JSON string but got `%s`", jsonObj.get("positiveExact").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!InputKeywords.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'InputKeywords' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(InputKeywords.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, InputKeywords value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public InputKeywords read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of InputKeywords given an JSON string + * + * @param jsonString JSON string + * @return An instance of InputKeywords + * @throws IOException if the JSON string is invalid with respect to InputKeywords + */ + public static InputKeywords fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, InputKeywords.class); + } + + /** + * Convert an instance of InputKeywords to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java index 270f1e94..48f1127f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndAccountAndAccount.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java index 31153628..213768ab 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndBrandAndBrand.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java index 8f600291..bb1eaa6d 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.java index 82f484cc..96ddbaf7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java index 9882807c..440226ed 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview.java index 1e334e01..32ddf33d 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfAccount.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfAccount.java index 68f036cf..591458dd 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfAccount.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfAccount.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfBrand.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfBrand.java index b587e836..6efc3cb8 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfBrand.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfBrand.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfRetailer.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfRetailer.java index 9ce6722e..0fe0b29a 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfRetailer.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiPageResponseOfRetailer.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiRequestOfCatalogRequestPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiRequestOfCatalogRequestPreview.java index a9968c2a..22e5c1cf 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiRequestOfCatalogRequestPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiRequestOfCatalogRequestPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiSingleResponseOfCatalogStatus.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiSingleResponseOfCatalogStatus.java index 9bfbed22..2fa8eb9f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiSingleResponseOfCatalogStatus.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiSingleResponseOfCatalogStatus.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiSingleResponseOfLineItemBidMultipliers.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiSingleResponseOfLineItemBidMultipliers.java index 3a3f1a5d..9ffc42c2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiSingleResponseOfLineItemBidMultipliers.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/JsonApiSingleResponseOfLineItemBidMultipliers.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Keywords.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Keywords.java new file mode 100644 index 00000000..257e3d3e --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Keywords.java @@ -0,0 +1,479 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.InputKeywords; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * Data associated with a normalized keyword phrase + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Keywords { + /** + * Review status of the keyword + */ + @JsonAdapter(ReviewStateEnum.Adapter.class) + public enum ReviewStateEnum { + INREVIEW("InReview"), + + RECOMMENDED("Recommended"), + + APPROVED("Approved"), + + AUTOAPPROVED("AutoApproved"), + + REJECTED("Rejected"), + + AUTOREJECTED("AutoRejected"), + + UNKOWN("Unkown"); + + private String value; + + ReviewStateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReviewStateEnum fromValue(String value) { + for (ReviewStateEnum b : ReviewStateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReviewStateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReviewStateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReviewStateEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_REVIEW_STATE = "reviewState"; + @SerializedName(SERIALIZED_NAME_REVIEW_STATE) + private ReviewStateEnum reviewState; + + /** + * The matching algorthim to be use when comparing this keyword with the shopper search phrase + */ + @JsonAdapter(MatchTypeEnum.Adapter.class) + public enum MatchTypeEnum { + POSITIVEEXACTMATCH("PositiveExactMatch"), + + NEGATIVEEXACTMATCH("NegativeExactMatch"), + + NEGATIVEBROADMATCH("NegativeBroadMatch"), + + UNKNOWN("Unknown"); + + private String value; + + MatchTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MatchTypeEnum fromValue(String value) { + for (MatchTypeEnum b : MatchTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MatchTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MatchTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MatchTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_MATCH_TYPE = "matchType"; + @SerializedName(SERIALIZED_NAME_MATCH_TYPE) + private MatchTypeEnum matchType; + + public static final String SERIALIZED_NAME_BID = "bid"; + @SerializedName(SERIALIZED_NAME_BID) + private Double bid; + + public static final String SERIALIZED_NAME_INPUT_KEYWORDS = "inputKeywords"; + @SerializedName(SERIALIZED_NAME_INPUT_KEYWORDS) + private InputKeywords inputKeywords; + + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + private OffsetDateTime updatedAt; + + public Keywords() { + } + + public Keywords reviewState(ReviewStateEnum reviewState) { + + this.reviewState = reviewState; + return this; + } + + /** + * Review status of the keyword + * @return reviewState + **/ + @javax.annotation.Nullable + + public ReviewStateEnum getReviewState() { + return reviewState; + } + + + public void setReviewState(ReviewStateEnum reviewState) { + this.reviewState = reviewState; + } + + + public Keywords matchType(MatchTypeEnum matchType) { + + this.matchType = matchType; + return this; + } + + /** + * The matching algorthim to be use when comparing this keyword with the shopper search phrase + * @return matchType + **/ + @javax.annotation.Nullable + + public MatchTypeEnum getMatchType() { + return matchType; + } + + + public void setMatchType(MatchTypeEnum matchType) { + this.matchType = matchType; + } + + + public Keywords bid(Double bid) { + + this.bid = bid; + return this; + } + + /** + * The bid to use when a positive keyword matches the shopper search phrase + * @return bid + **/ + @javax.annotation.Nullable + + public Double getBid() { + return bid; + } + + + public void setBid(Double bid) { + this.bid = bid; + } + + + public Keywords inputKeywords(InputKeywords inputKeywords) { + + this.inputKeywords = inputKeywords; + return this; + } + + /** + * Get inputKeywords + * @return inputKeywords + **/ + @javax.annotation.Nullable + + public InputKeywords getInputKeywords() { + return inputKeywords; + } + + + public void setInputKeywords(InputKeywords inputKeywords) { + this.inputKeywords = inputKeywords; + } + + + public Keywords createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * The time at which this keyword was created in UTC + * @return createdAt + **/ + @javax.annotation.Nullable + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public Keywords updatedAt(OffsetDateTime updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * The time at which the keyword was last modified in UTC + * @return updatedAt + **/ + @javax.annotation.Nullable + + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Keywords keywords = (Keywords) o; + return Objects.equals(this.reviewState, keywords.reviewState) && + Objects.equals(this.matchType, keywords.matchType) && + Objects.equals(this.bid, keywords.bid) && + Objects.equals(this.inputKeywords, keywords.inputKeywords) && + Objects.equals(this.createdAt, keywords.createdAt) && + Objects.equals(this.updatedAt, keywords.updatedAt); + } + + 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(reviewState, matchType, bid, inputKeywords, createdAt, updatedAt); + } + + 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(); + sb.append("class Keywords {\n"); + sb.append(" reviewState: ").append(toIndentedString(reviewState)).append("\n"); + sb.append(" matchType: ").append(toIndentedString(matchType)).append("\n"); + sb.append(" bid: ").append(toIndentedString(bid)).append("\n"); + sb.append(" inputKeywords: ").append(toIndentedString(inputKeywords)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("reviewState"); + openapiFields.add("matchType"); + openapiFields.add("bid"); + openapiFields.add("inputKeywords"); + openapiFields.add("createdAt"); + openapiFields.add("updatedAt"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Keywords + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!Keywords.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in Keywords is not found in the empty JSON string", Keywords.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!Keywords.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Keywords` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("reviewState") != null && !jsonObj.get("reviewState").isJsonNull()) && !jsonObj.get("reviewState").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `reviewState` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reviewState").toString())); + } + if ((jsonObj.get("matchType") != null && !jsonObj.get("matchType").isJsonNull()) && !jsonObj.get("matchType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `matchType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchType").toString())); + } + // validate the optional field `inputKeywords` + if (jsonObj.get("inputKeywords") != null && !jsonObj.get("inputKeywords").isJsonNull()) { + InputKeywords.validateJsonObject(jsonObj.getAsJsonObject("inputKeywords")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Keywords.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Keywords' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Keywords.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Keywords value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Keywords read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Keywords given an JSON string + * + * @param jsonString JSON string + * @return An instance of Keywords + * @throws IOException if the JSON string is invalid with respect to Keywords + */ + public static Keywords fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Keywords.class); + } + + /** + * Convert an instance of Keywords to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliers.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliers.java index d1a0f2c9..5fc7a2a0 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliers.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliers.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersRequest.java index 0de5eea9..d7e3a322 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersResponse.java index e6945c6f..be5361e8 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemBidMultipliersResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReport.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReport.java index fc15f664..fb1aab4e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReport.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReport.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -87,7 +88,7 @@ public static ReportTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -320,7 +321,7 @@ public static ClickAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -377,7 +378,7 @@ public static ViewAttributionWindowEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -428,7 +429,7 @@ public static CampaignTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -479,7 +480,7 @@ public static SalesChannelEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -533,7 +534,7 @@ public LineItemReport lineItemIds(List lineItemIds) { public LineItemReport addLineItemIdsItem(String lineItemIdsItem) { if (this.lineItemIds == null) { - this.lineItemIds = new ArrayList<>(); + this.lineItemIds = null; } this.lineItemIds.add(lineItemIdsItem); return this; @@ -563,7 +564,7 @@ public LineItemReport campaignIds(List campaignIds) { public LineItemReport addCampaignIdsItem(String campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList<>(); + this.campaignIds = null; } this.campaignIds.add(campaignIdsItem); return this; @@ -593,7 +594,7 @@ public LineItemReport metrics(List metrics) { public LineItemReport addMetricsItem(MetricsEnum metricsItem) { if (this.metrics == null) { - this.metrics = new ArrayList<>(); + this.metrics = null; } this.metrics.add(metricsItem); return this; @@ -623,7 +624,7 @@ public LineItemReport dimensions(List dimensions) { public LineItemReport addDimensionsItem(DimensionsEnum dimensionsItem) { if (this.dimensions == null) { - this.dimensions = new ArrayList<>(); + this.dimensions = null; } this.dimensions.add(dimensionsItem); return this; @@ -891,11 +892,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, lineItemReport.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(reportType, lineItemIds, campaignIds, metrics, dimensions, accountId, startDate, endDate, timezone, clickAttributionWindow, viewAttributionWindow, campaignType, salesChannel, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReportRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReportRequest.java index 968e34be..24f846e3 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReportRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReportRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReportResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReportResource.java index 80957c32..48cb62d1 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReportResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/LineItemReportResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, lineItemReportResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PageMetadata.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PageMetadata.java index 1a9c6a13..af0f72e7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PageMetadata.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PageMetadata.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PageTypeEnvironment.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PageTypeEnvironment.java index 10ef765b..d261c69e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PageTypeEnvironment.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PageTypeEnvironment.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PlacementPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PlacementPreview.java index 3234fdb5..0d7e5e62 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PlacementPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PlacementPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PlacementPreviewListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PlacementPreviewListResponse.java index fcbce3e7..c63dd48c 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PlacementPreviewListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/PlacementPreviewListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProblemDetails.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProblemDetails.java index c2bb9a8d..d72b8e9c 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProblemDetails.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProblemDetails.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -420,11 +421,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, problemDetails.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonListRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonListRequest.java index b25ee962..2b9e8f24 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonListRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonListRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonListResponse.java index 859dafa0..3008c4fb 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonRequest.java index 3e5289a0..279a0e8d 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonResponse.java index cb03b7f9..4752ec17 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ProductButtonResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportDataResponseResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportDataResponseResource.java index c2919ac2..75964a53 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportDataResponseResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportDataResponseResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -91,7 +92,7 @@ public ReportDataResponseResource attributes(List> attributes) { public ReportDataResponseResource addAttributesItem(List attributesItem) { if (this.attributes == null) { - this.attributes = new ArrayList<>(); + this.attributes = null; } this.attributes.add(attributesItem); return this; @@ -172,11 +173,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportDataResponseResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportOutcome.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportOutcome.java index 5cc38015..a03c088b 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportOutcome.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportOutcome.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -157,11 +158,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportOutcome.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(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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportResponse.java index e2c1786f..b9330610 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ReportResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -213,11 +214,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, reportResponse.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(meta, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceCollectionOutcomeOfSkuSearchResult.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceCollectionOutcomeOfSkuSearchResult.java new file mode 100644 index 00000000..71532c70 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceCollectionOutcomeOfSkuSearchResult.java @@ -0,0 +1,318 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.CommonProblem; +import com.criteo.api.retailmedia.preview.model.ResourceOfSkuSearchResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for several entities. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ResourceCollectionOutcomeOfSkuSearchResult { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public ResourceCollectionOutcomeOfSkuSearchResult() { + } + + + public ResourceCollectionOutcomeOfSkuSearchResult( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public ResourceCollectionOutcomeOfSkuSearchResult data(List data) { + + this.data = data; + return this; + } + + public ResourceCollectionOutcomeOfSkuSearchResult addDataItem(ResourceOfSkuSearchResult dataItem) { + if (this.data == null) { + this.data = null; + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceCollectionOutcomeOfSkuSearchResult resourceCollectionOutcomeOfSkuSearchResult = (ResourceCollectionOutcomeOfSkuSearchResult) o; + return Objects.equals(this.data, resourceCollectionOutcomeOfSkuSearchResult.data) && + Objects.equals(this.warnings, resourceCollectionOutcomeOfSkuSearchResult.warnings) && + Objects.equals(this.errors, resourceCollectionOutcomeOfSkuSearchResult.errors); + } + + 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); + } + + 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(); + sb.append("class ResourceCollectionOutcomeOfSkuSearchResult {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ResourceCollectionOutcomeOfSkuSearchResult + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ResourceCollectionOutcomeOfSkuSearchResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceCollectionOutcomeOfSkuSearchResult is not found in the empty JSON string", ResourceCollectionOutcomeOfSkuSearchResult.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ResourceCollectionOutcomeOfSkuSearchResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ResourceCollectionOutcomeOfSkuSearchResult` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + ResourceOfSkuSearchResult.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResourceCollectionOutcomeOfSkuSearchResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceCollectionOutcomeOfSkuSearchResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceCollectionOutcomeOfSkuSearchResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResourceCollectionOutcomeOfSkuSearchResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ResourceCollectionOutcomeOfSkuSearchResult read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ResourceCollectionOutcomeOfSkuSearchResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResourceCollectionOutcomeOfSkuSearchResult + * @throws IOException if the JSON string is invalid with respect to ResourceCollectionOutcomeOfSkuSearchResult + */ + public static ResourceCollectionOutcomeOfSkuSearchResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceCollectionOutcomeOfSkuSearchResult.class); + } + + /** + * Convert an instance of ResourceCollectionOutcomeOfSkuSearchResult to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfAddFundsToBalance.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfAddFundsToBalance.java index 9651776d..fb61d494 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfAddFundsToBalance.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfAddFundsToBalance.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfAddFundsToBalance.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfBalanceResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfBalanceResponse.java index 8da10c8f..fc1f854a 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfBalanceResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfBalanceResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfBalanceResponse.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfBrandPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfBrandPreview.java index a2284f91..759471dd 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfBrandPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfBrandPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfBrandPreview.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfChangeDatesOfBalance.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfChangeDatesOfBalance.java index 54af737f..732403f7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfChangeDatesOfBalance.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfChangeDatesOfBalance.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfChangeDatesOfBalance.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCpcRateCardPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCpcRateCardPreview.java index 068107f7..47bd44f6 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCpcRateCardPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCpcRateCardPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfCpcRateCardPreview.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCreateBalance.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCreateBalance.java index 9f76d521..3ba609c9 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCreateBalance.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCreateBalance.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfCreateBalance.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCreative202210.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCreative202210.java index e65406c6..575fd6b5 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCreative202210.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfCreative202210.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfCreative202210.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfLineItemBidMultipliers.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfLineItemBidMultipliers.java index 94e03dc2..4a33f64a 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfLineItemBidMultipliers.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfLineItemBidMultipliers.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfLineItemBidMultipliers.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfPlacementPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfPlacementPreview.java index ebcf009d..52b8194f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfPlacementPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfPlacementPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfPlacementPreview.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfProductButtonRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfProductButtonRequest.java index d5691573..c3e7e13b 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfProductButtonRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfProductButtonRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfProductButtonRequest.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfProductButtonResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfProductButtonResponse.java index 13dcdbab..2252f6d4 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfProductButtonResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfProductButtonResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfProductButtonResponse.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSellerPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSellerPreview.java index a9c010a2..8945c3ee 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSellerPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSellerPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfSellerPreview.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuDataPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuDataPreview.java index ba30d930..581edf57 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuDataPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuDataPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfSkuDataPreview.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestPreview.java index 5a01473f..7148aef1 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfSkuSearchRequestPreview.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestSlimPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestSlimPreview.java index 7daf8913..67dd682f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestSlimPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestSlimPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfSkuSearchRequestSlimPreview.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestSlimV2Preview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestSlimV2Preview.java index 61e7a844..a0993cfa 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestSlimV2Preview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchRequestSlimV2Preview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfSkuSearchRequestSlimV2Preview.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchResult.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchResult.java new file mode 100644 index 00000000..6146b3cb --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSearchResult.java @@ -0,0 +1,283 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.SkuSearchResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A class that represents a domain entity exposed by an API. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ResourceOfSkuSearchResult { + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private SkuSearchResult attributes; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public ResourceOfSkuSearchResult() { + } + + public ResourceOfSkuSearchResult attributes(SkuSearchResult attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public SkuSearchResult getAttributes() { + return attributes; + } + + + public void setAttributes(SkuSearchResult attributes) { + this.attributes = attributes; + } + + + public ResourceOfSkuSearchResult id(String id) { + + this.id = id; + return this; + } + + /** + * Unique identifier of this resource. + * @return id + **/ + @javax.annotation.Nullable + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public ResourceOfSkuSearchResult type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceOfSkuSearchResult resourceOfSkuSearchResult = (ResourceOfSkuSearchResult) o; + return Objects.equals(this.attributes, resourceOfSkuSearchResult.attributes) && + Objects.equals(this.id, resourceOfSkuSearchResult.id) && + Objects.equals(this.type, resourceOfSkuSearchResult.type); + } + + 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); + } + + 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(); + sb.append("class ResourceOfSkuSearchResult {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("attributes"); + openapiFields.add("id"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ResourceOfSkuSearchResult + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ResourceOfSkuSearchResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceOfSkuSearchResult is not found in the empty JSON string", ResourceOfSkuSearchResult.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ResourceOfSkuSearchResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ResourceOfSkuSearchResult` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + SkuSearchResult.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResourceOfSkuSearchResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResourceOfSkuSearchResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResourceOfSkuSearchResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResourceOfSkuSearchResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ResourceOfSkuSearchResult read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ResourceOfSkuSearchResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResourceOfSkuSearchResult + * @throws IOException if the JSON string is invalid with respect to ResourceOfSkuSearchResult + */ + public static ResourceOfSkuSearchResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResourceOfSkuSearchResult.class); + } + + /** + * Convert an instance of ResourceOfSkuSearchResult to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSlimDataPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSlimDataPreview.java index 1fb248c8..a046099a 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSlimDataPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSlimDataPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfSkuSlimDataPreview.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSlimDataV2.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSlimDataV2.java index 21815ea2..a545131f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSlimDataV2.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfSkuSlimDataV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfSkuSlimDataV2.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfTemplate.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfTemplate.java index 2e9c386f..9f201168 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfTemplate.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfTemplate.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfTemplate.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfUpdateBalanceModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfUpdateBalanceModel.java index 357997c8..9cd0c0f9 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfUpdateBalanceModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ResourceOfUpdateBalanceModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, resourceOfUpdateBalanceModel.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudience.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudience.java index 6e0ddb2a..19b744e5 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudience.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudience.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceAttributes.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceAttributes.java index 3c139f8c..e496dc70 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceAttributes.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceAttributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2.java index 42935f6b..357b9612 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2Attributes.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2Attributes.java index 06db461c..c0dc3c3e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2Attributes.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2Attributes.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2ListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2ListResponse.java index 8516ca1f..421cc945 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2ListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -206,11 +207,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaAudienceV2ListResponse.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, metadata, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2Response.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2Response.java index 11b749e4..00899552 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2Response.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaAudienceV2Response.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, retailMediaAudienceV2Response.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordModel.java index 5dd28132..19d722a5 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -84,7 +85,7 @@ public static MatchTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -238,11 +239,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1AddRemoveKeywordModel.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(phrase, matchType, isDeleted, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModel.java index 95890c38..abe6f6d7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 RetailMediaExternalv1AddRemoveKeywordsModel keywords(List(); + this.keywords = null; } this.keywords.add(keywordsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1AddRemoveKeywordsModel.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(keywords, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModelRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModelRequest.java index e886e917..80a6cd99 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModelRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModelRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.java index 2abf96c6..595216f1 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1AddRemoveKeywordsModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, retailMediaExternalv1AddRemoveKeywordsModelResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1InputKeywordsModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1InputKeywordsModel.java index dbdeef5f..6146f545 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1InputKeywordsModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1InputKeywordsModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 RetailMediaExternalv1InputKeywordsModel negativeBroad(List negati public RetailMediaExternalv1InputKeywordsModel addNegativeBroadItem(String negativeBroadItem) { if (this.negativeBroad == null) { - this.negativeBroad = new ArrayList<>(); + this.negativeBroad = null; } this.negativeBroad.add(negativeBroadItem); return this; @@ -103,7 +104,7 @@ public RetailMediaExternalv1InputKeywordsModel negativeExact(List negati public RetailMediaExternalv1InputKeywordsModel addNegativeExactItem(String negativeExactItem) { if (this.negativeExact == null) { - this.negativeExact = new ArrayList<>(); + this.negativeExact = null; } this.negativeExact.add(negativeExactItem); return this; @@ -133,7 +134,7 @@ public RetailMediaExternalv1InputKeywordsModel positiveExact(List positi public RetailMediaExternalv1InputKeywordsModel addPositiveExactItem(String positiveExactItem) { if (this.positiveExact == null) { - this.positiveExact = new ArrayList<>(); + this.positiveExact = null; } this.positiveExact.add(positiveExactItem); return this; @@ -215,11 +216,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1InputKeywordsModel.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(negativeBroad, negativeExact, positiveExact, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordDataModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordDataModel.java index d4a0cc88..00473acd 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordDataModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordDataModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,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; @@ -88,7 +89,7 @@ public static ReviewStateEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -141,7 +142,7 @@ public static MatchTypeEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -376,11 +377,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1KeywordDataModel.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(reviewState, matchType, bid, inputKeywords, createdAt, updatedAt, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModel.java index dc0d5d58..15b24d69 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -92,7 +93,7 @@ public RetailMediaExternalv1KeywordsModel rank(List rank) { public RetailMediaExternalv1KeywordsModel addRankItem(String rankItem) { if (this.rank == null) { - this.rank = new ArrayList<>(); + this.rank = null; } this.rank.add(rankItem); return this; @@ -173,11 +174,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1KeywordsModel.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(keywords, rank, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModelResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModelResource.java index c73c9ccf..c7023d93 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModelResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, retailMediaExternalv1KeywordsModelResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModelResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModelResponse.java index 863918d1..78b06273 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModelResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1KeywordsModelResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, retailMediaExternalv1KeywordsModelResponse.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProblemDetails.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProblemDetails.java index 39e22072..85ca0b73 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProblemDetails.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProblemDetails.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -141,7 +142,7 @@ public RetailMediaExternalv1ProblemDetails source(Map source) { public RetailMediaExternalv1ProblemDetails putSourceItem(String key, String sourceItem) { if (this.source == null) { - this.source = new HashMap<>(); + this.source = null; } this.source.put(key, sourceItem); return this; @@ -316,11 +317,22 @@ public boolean equals(Object o) { Objects.equals(this.instance, retailMediaExternalv1ProblemDetails.instance); } + 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(traceIdentifier, code, source, stackTrace, type, title, status, detail, instance); } + 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModel.java index ab540903..8c3e102c 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -426,11 +427,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1ProposalStatusModel.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(negotiationState, bookingStatus, runnableStatus, comment, createdAt, updatedAt, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModelResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModelResource.java index d1bf95f1..2c4a178d 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModelResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, retailMediaExternalv1ProposalStatusModelResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModelResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModelResponse.java index a092d530..2ca5d6c4 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModelResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ProposalStatusModelResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, retailMediaExternalv1ProposalStatusModelResponse.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ResourceOutcome.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ResourceOutcome.java index 5d98543f..8b9a7ce2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ResourceOutcome.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1ResourceOutcome.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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; @@ -157,11 +158,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1ResourceOutcome.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidModel.java index 1243e213..4f5e2564 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, retailMediaExternalv1SetBidModel.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(phrase, bid, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModel.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModel.java index 20d7d73e..d92a915f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModel.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModel.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 RetailMediaExternalv1SetBidsModel keywords(List(); + this.keywords = null; } this.keywords.add(keywordsItem); return this; @@ -146,11 +147,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, retailMediaExternalv1SetBidsModel.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(keywords, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModelRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModelRequest.java index 81315fb3..9089d1f4 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModelRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModelRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModelResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModelResource.java index 5a7c3d29..a8d1992f 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModelResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/RetailMediaExternalv1SetBidsModelResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, retailMediaExternalv1SetBidsModelResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Section.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Section.java index 6024d26f..b62c48bc 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Section.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Section.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SellerPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SellerPreview.java index 957f347e..bb192c5b 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SellerPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SellerPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SellerPreviewResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SellerPreviewResponse.java index d84b3eaf..f23d78b2 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SellerPreviewResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SellerPreviewResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuDataPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuDataPreview.java index 717ee032..1761e9a0 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuDataPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuDataPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuDataPreviewListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuDataPreviewListResponse.java index b9072615..b33f8b6c 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuDataPreviewListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuDataPreviewListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequest.java new file mode 100644 index 00000000..8342e9bc --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequest.java @@ -0,0 +1,213 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.SkuSearchRequestBody; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A top-level object that encapsulates a Criteo API request for a single entity. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SkuSearchRequest { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private SkuSearchRequestBody data; + + public SkuSearchRequest() { + } + + public SkuSearchRequest data(SkuSearchRequestBody data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nonnull + + public SkuSearchRequestBody getData() { + return data; + } + + + public void setData(SkuSearchRequestBody data) { + this.data = data; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SkuSearchRequest skuSearchRequest = (SkuSearchRequest) o; + return Objects.equals(this.data, skuSearchRequest.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SkuSearchRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("data"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SkuSearchRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!SkuSearchRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in SkuSearchRequest is not found in the empty JSON string", SkuSearchRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!SkuSearchRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SkuSearchRequest` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SkuSearchRequest.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the required field `data` + SkuSearchRequestBody.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SkuSearchRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SkuSearchRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SkuSearchRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SkuSearchRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SkuSearchRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SkuSearchRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of SkuSearchRequest + * @throws IOException if the JSON string is invalid with respect to SkuSearchRequest + */ + public static SkuSearchRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SkuSearchRequest.class); + } + + /** + * Convert an instance of SkuSearchRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestBody.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestBody.java new file mode 100644 index 00000000..cd19345d --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestBody.java @@ -0,0 +1,311 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * defines the type product Id to search and list of ids to be searched for + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SkuSearchRequestBody { + /** + * sets which product id the QueryIds will be compared to + */ + @JsonAdapter(ProductIdTypeEnum.Adapter.class) + public enum ProductIdTypeEnum { + SKUKEY("SkuKey"), + + GTIN("Gtin"), + + MPN("Mpn"), + + MODEL("Model"), + + SKUID("SkuId"), + + PARENTID("ParentId"); + + private String value; + + ProductIdTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ProductIdTypeEnum fromValue(String value) { + for (ProductIdTypeEnum b : ProductIdTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ProductIdTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ProductIdTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ProductIdTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PRODUCT_ID_TYPE = "productIdType"; + @SerializedName(SERIALIZED_NAME_PRODUCT_ID_TYPE) + private ProductIdTypeEnum productIdType; + + public static final String SERIALIZED_NAME_QUERY_IDS = "queryIds"; + @SerializedName(SERIALIZED_NAME_QUERY_IDS) + private List queryIds = new ArrayList<>(); + + public SkuSearchRequestBody() { + } + + public SkuSearchRequestBody productIdType(ProductIdTypeEnum productIdType) { + + this.productIdType = productIdType; + return this; + } + + /** + * sets which product id the QueryIds will be compared to + * @return productIdType + **/ + @javax.annotation.Nonnull + + public ProductIdTypeEnum getProductIdType() { + return productIdType; + } + + + public void setProductIdType(ProductIdTypeEnum productIdType) { + this.productIdType = productIdType; + } + + + public SkuSearchRequestBody queryIds(List queryIds) { + + this.queryIds = queryIds; + return this; + } + + public SkuSearchRequestBody addQueryIdsItem(String queryIdsItem) { + this.queryIds.add(queryIdsItem); + return this; + } + + /** + * list of product ids to search for + * @return queryIds + **/ + @javax.annotation.Nonnull + + public List getQueryIds() { + return queryIds; + } + + + public void setQueryIds(List queryIds) { + this.queryIds = queryIds; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SkuSearchRequestBody skuSearchRequestBody = (SkuSearchRequestBody) o; + return Objects.equals(this.productIdType, skuSearchRequestBody.productIdType) && + Objects.equals(this.queryIds, skuSearchRequestBody.queryIds); + } + + @Override + public int hashCode() { + return Objects.hash(productIdType, queryIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SkuSearchRequestBody {\n"); + sb.append(" productIdType: ").append(toIndentedString(productIdType)).append("\n"); + sb.append(" queryIds: ").append(toIndentedString(queryIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("productIdType"); + openapiFields.add("queryIds"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("productIdType"); + openapiRequiredFields.add("queryIds"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SkuSearchRequestBody + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!SkuSearchRequestBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in SkuSearchRequestBody is not found in the empty JSON string", SkuSearchRequestBody.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!SkuSearchRequestBody.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SkuSearchRequestBody` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : SkuSearchRequestBody.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("productIdType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `productIdType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("productIdType").toString())); + } + // ensure the required json array is present + if (jsonObj.get("queryIds") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("queryIds").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `queryIds` to be an array in the JSON string but got `%s`", jsonObj.get("queryIds").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SkuSearchRequestBody.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SkuSearchRequestBody' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SkuSearchRequestBody.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SkuSearchRequestBody value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SkuSearchRequestBody read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SkuSearchRequestBody given an JSON string + * + * @param jsonString JSON string + * @return An instance of SkuSearchRequestBody + * @throws IOException if the JSON string is invalid with respect to SkuSearchRequestBody + */ + public static SkuSearchRequestBody fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SkuSearchRequestBody.class); + } + + /** + * Convert an instance of SkuSearchRequestBody to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestPreview.java index d9aa85b4..4a88d1dd 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestPreviewRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestPreviewRequest.java index cf5734d6..0185ff75 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestPreviewRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestPreviewRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimPreview.java index fdd8e977..38cc5e89 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimPreviewRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimPreviewRequest.java index fb468d3b..41803c87 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimPreviewRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimPreviewRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimV2Preview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimV2Preview.java index bbfdf124..491ceed7 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimV2Preview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimV2Preview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimV2PreviewRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimV2PreviewRequest.java index 1e876efb..641582aa 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimV2PreviewRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchRequestSlimV2PreviewRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchResult.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchResult.java new file mode 100644 index 00000000..c63f740c --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSearchResult.java @@ -0,0 +1,657 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * Data model for response resource + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SkuSearchResult { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_CATEGORY_ID = "categoryId"; + @SerializedName(SERIALIZED_NAME_CATEGORY_ID) + private String categoryId; + + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) + private String category; + + public static final String SERIALIZED_NAME_GLOBAL_BRAND_ID = "globalBrandId"; + @SerializedName(SERIALIZED_NAME_GLOBAL_BRAND_ID) + private String globalBrandId; + + public static final String SERIALIZED_NAME_GLOBAL_BRAND_NAME = "globalBrandName"; + @SerializedName(SERIALIZED_NAME_GLOBAL_BRAND_NAME) + private String globalBrandName; + + public static final String SERIALIZED_NAME_RETAILER_BRAND_ID = "retailerBrandId"; + @SerializedName(SERIALIZED_NAME_RETAILER_BRAND_ID) + private String retailerBrandId; + + public static final String SERIALIZED_NAME_RETAILER_BRAND_NAME = "retailerBrandName"; + @SerializedName(SERIALIZED_NAME_RETAILER_BRAND_NAME) + private String retailerBrandName; + + public static final String SERIALIZED_NAME_GLOBAL_CATEGORY_ID = "globalCategoryId"; + @SerializedName(SERIALIZED_NAME_GLOBAL_CATEGORY_ID) + private String globalCategoryId; + + public static final String SERIALIZED_NAME_PRICE = "price"; + @SerializedName(SERIALIZED_NAME_PRICE) + private Double price; + + public static final String SERIALIZED_NAME_MODEL_NUMBER = "modelNumber"; + @SerializedName(SERIALIZED_NAME_MODEL_NUMBER) + private String modelNumber; + + public static final String SERIALIZED_NAME_IS_IN_STOCK = "isInStock"; + @SerializedName(SERIALIZED_NAME_IS_IN_STOCK) + private Boolean isInStock; + + public static final String SERIALIZED_NAME_GTIN = "gtin"; + @SerializedName(SERIALIZED_NAME_GTIN) + private String gtin; + + public static final String SERIALIZED_NAME_MPN = "mpn"; + @SerializedName(SERIALIZED_NAME_MPN) + private String mpn; + + public static final String SERIALIZED_NAME_IMAGE_URL = "imageUrl"; + @SerializedName(SERIALIZED_NAME_IMAGE_URL) + private String imageUrl; + + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + private OffsetDateTime updatedAt; + + public SkuSearchResult() { + } + + public SkuSearchResult name(String name) { + + this.name = name; + return this; + } + + /** + * The product name + * @return name + **/ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public SkuSearchResult categoryId(String categoryId) { + + this.categoryId = categoryId; + return this; + } + + /** + * The cateogry Id + * @return categoryId + **/ + @javax.annotation.Nullable + + public String getCategoryId() { + return categoryId; + } + + + public void setCategoryId(String categoryId) { + this.categoryId = categoryId; + } + + + public SkuSearchResult category(String category) { + + this.category = category; + return this; + } + + /** + * The full retailer category taken from the retailers catalog + * @return category + **/ + @javax.annotation.Nullable + + public String getCategory() { + return category; + } + + + public void setCategory(String category) { + this.category = category; + } + + + public SkuSearchResult globalBrandId(String globalBrandId) { + + this.globalBrandId = globalBrandId; + return this; + } + + /** + * The global brand id associated to the product + * @return globalBrandId + **/ + @javax.annotation.Nullable + + public String getGlobalBrandId() { + return globalBrandId; + } + + + public void setGlobalBrandId(String globalBrandId) { + this.globalBrandId = globalBrandId; + } + + + public SkuSearchResult globalBrandName(String globalBrandName) { + + this.globalBrandName = globalBrandName; + return this; + } + + /** + * The name of the global brand + * @return globalBrandName + **/ + @javax.annotation.Nullable + + public String getGlobalBrandName() { + return globalBrandName; + } + + + public void setGlobalBrandName(String globalBrandName) { + this.globalBrandName = globalBrandName; + } + + + public SkuSearchResult retailerBrandId(String retailerBrandId) { + + this.retailerBrandId = retailerBrandId; + return this; + } + + /** + * The retailer brand id associated to the product + * @return retailerBrandId + **/ + @javax.annotation.Nullable + + public String getRetailerBrandId() { + return retailerBrandId; + } + + + public void setRetailerBrandId(String retailerBrandId) { + this.retailerBrandId = retailerBrandId; + } + + + public SkuSearchResult retailerBrandName(String retailerBrandName) { + + this.retailerBrandName = retailerBrandName; + return this; + } + + /** + * The name of the retailer brand + * @return retailerBrandName + **/ + @javax.annotation.Nullable + + public String getRetailerBrandName() { + return retailerBrandName; + } + + + public void setRetailerBrandName(String retailerBrandName) { + this.retailerBrandName = retailerBrandName; + } + + + public SkuSearchResult globalCategoryId(String globalCategoryId) { + + this.globalCategoryId = globalCategoryId; + return this; + } + + /** + * the Global Category Id + * @return globalCategoryId + **/ + @javax.annotation.Nullable + + public String getGlobalCategoryId() { + return globalCategoryId; + } + + + public void setGlobalCategoryId(String globalCategoryId) { + this.globalCategoryId = globalCategoryId; + } + + + public SkuSearchResult price(Double price) { + + this.price = price; + return this; + } + + /** + * The product price pulled from the retailer's catalog + * @return price + **/ + @javax.annotation.Nullable + + public Double getPrice() { + return price; + } + + + public void setPrice(Double price) { + this.price = price; + } + + + public SkuSearchResult modelNumber(String modelNumber) { + + this.modelNumber = modelNumber; + return this; + } + + /** + * The model number for the product + * @return modelNumber + **/ + @javax.annotation.Nullable + + public String getModelNumber() { + return modelNumber; + } + + + public void setModelNumber(String modelNumber) { + this.modelNumber = modelNumber; + } + + + public SkuSearchResult isInStock(Boolean isInStock) { + + this.isInStock = isInStock; + return this; + } + + /** + * Indicates if the retailer product is in stock + * @return isInStock + **/ + @javax.annotation.Nullable + + public Boolean getIsInStock() { + return isInStock; + } + + + public void setIsInStock(Boolean isInStock) { + this.isInStock = isInStock; + } + + + public SkuSearchResult gtin(String gtin) { + + this.gtin = gtin; + return this; + } + + /** + * A GTIN identifier for the product if available. TIt covers variations such as EANs and UPCs + * @return gtin + **/ + @javax.annotation.Nullable + + public String getGtin() { + return gtin; + } + + + public void setGtin(String gtin) { + this.gtin = gtin; + } + + + public SkuSearchResult mpn(String mpn) { + + this.mpn = mpn; + return this; + } + + /** + * The MPN identifier for the product if available + * @return mpn + **/ + @javax.annotation.Nullable + + public String getMpn() { + return mpn; + } + + + public void setMpn(String mpn) { + this.mpn = mpn; + } + + + public SkuSearchResult imageUrl(String imageUrl) { + + this.imageUrl = imageUrl; + return this; + } + + /** + * An http image resource provided by the retailer catalog + * @return imageUrl + **/ + @javax.annotation.Nullable + + public String getImageUrl() { + return imageUrl; + } + + + public void setImageUrl(String imageUrl) { + this.imageUrl = imageUrl; + } + + + public SkuSearchResult updatedAt(OffsetDateTime updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * The last time this product was updated in the Retail Media Catalog. The date value is represented as an UTC ISO8601 string + * @return updatedAt + **/ + @javax.annotation.Nullable + + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SkuSearchResult skuSearchResult = (SkuSearchResult) o; + return Objects.equals(this.name, skuSearchResult.name) && + Objects.equals(this.categoryId, skuSearchResult.categoryId) && + Objects.equals(this.category, skuSearchResult.category) && + Objects.equals(this.globalBrandId, skuSearchResult.globalBrandId) && + Objects.equals(this.globalBrandName, skuSearchResult.globalBrandName) && + Objects.equals(this.retailerBrandId, skuSearchResult.retailerBrandId) && + Objects.equals(this.retailerBrandName, skuSearchResult.retailerBrandName) && + Objects.equals(this.globalCategoryId, skuSearchResult.globalCategoryId) && + Objects.equals(this.price, skuSearchResult.price) && + Objects.equals(this.modelNumber, skuSearchResult.modelNumber) && + Objects.equals(this.isInStock, skuSearchResult.isInStock) && + Objects.equals(this.gtin, skuSearchResult.gtin) && + Objects.equals(this.mpn, skuSearchResult.mpn) && + Objects.equals(this.imageUrl, skuSearchResult.imageUrl) && + Objects.equals(this.updatedAt, skuSearchResult.updatedAt); + } + + 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, categoryId, category, globalBrandId, globalBrandName, retailerBrandId, retailerBrandName, globalCategoryId, price, modelNumber, isInStock, gtin, mpn, imageUrl, updatedAt); + } + + 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(); + sb.append("class SkuSearchResult {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" categoryId: ").append(toIndentedString(categoryId)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" globalBrandId: ").append(toIndentedString(globalBrandId)).append("\n"); + sb.append(" globalBrandName: ").append(toIndentedString(globalBrandName)).append("\n"); + sb.append(" retailerBrandId: ").append(toIndentedString(retailerBrandId)).append("\n"); + sb.append(" retailerBrandName: ").append(toIndentedString(retailerBrandName)).append("\n"); + sb.append(" globalCategoryId: ").append(toIndentedString(globalCategoryId)).append("\n"); + sb.append(" price: ").append(toIndentedString(price)).append("\n"); + sb.append(" modelNumber: ").append(toIndentedString(modelNumber)).append("\n"); + sb.append(" isInStock: ").append(toIndentedString(isInStock)).append("\n"); + sb.append(" gtin: ").append(toIndentedString(gtin)).append("\n"); + sb.append(" mpn: ").append(toIndentedString(mpn)).append("\n"); + sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("categoryId"); + openapiFields.add("category"); + openapiFields.add("globalBrandId"); + openapiFields.add("globalBrandName"); + openapiFields.add("retailerBrandId"); + openapiFields.add("retailerBrandName"); + openapiFields.add("globalCategoryId"); + openapiFields.add("price"); + openapiFields.add("modelNumber"); + openapiFields.add("isInStock"); + openapiFields.add("gtin"); + openapiFields.add("mpn"); + openapiFields.add("imageUrl"); + openapiFields.add("updatedAt"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SkuSearchResult + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!SkuSearchResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in SkuSearchResult is not found in the empty JSON string", SkuSearchResult.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!SkuSearchResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SkuSearchResult` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("categoryId") != null && !jsonObj.get("categoryId").isJsonNull()) && !jsonObj.get("categoryId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `categoryId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("categoryId").toString())); + } + if ((jsonObj.get("category") != null && !jsonObj.get("category").isJsonNull()) && !jsonObj.get("category").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `category` to be a primitive type in the JSON string but got `%s`", jsonObj.get("category").toString())); + } + if ((jsonObj.get("globalBrandId") != null && !jsonObj.get("globalBrandId").isJsonNull()) && !jsonObj.get("globalBrandId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `globalBrandId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalBrandId").toString())); + } + if ((jsonObj.get("globalBrandName") != null && !jsonObj.get("globalBrandName").isJsonNull()) && !jsonObj.get("globalBrandName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `globalBrandName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalBrandName").toString())); + } + if ((jsonObj.get("retailerBrandId") != null && !jsonObj.get("retailerBrandId").isJsonNull()) && !jsonObj.get("retailerBrandId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `retailerBrandId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerBrandId").toString())); + } + if ((jsonObj.get("retailerBrandName") != null && !jsonObj.get("retailerBrandName").isJsonNull()) && !jsonObj.get("retailerBrandName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `retailerBrandName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("retailerBrandName").toString())); + } + if ((jsonObj.get("globalCategoryId") != null && !jsonObj.get("globalCategoryId").isJsonNull()) && !jsonObj.get("globalCategoryId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `globalCategoryId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("globalCategoryId").toString())); + } + if ((jsonObj.get("modelNumber") != null && !jsonObj.get("modelNumber").isJsonNull()) && !jsonObj.get("modelNumber").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `modelNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("modelNumber").toString())); + } + if ((jsonObj.get("gtin") != null && !jsonObj.get("gtin").isJsonNull()) && !jsonObj.get("gtin").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `gtin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("gtin").toString())); + } + if ((jsonObj.get("mpn") != null && !jsonObj.get("mpn").isJsonNull()) && !jsonObj.get("mpn").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `mpn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mpn").toString())); + } + if ((jsonObj.get("imageUrl") != null && !jsonObj.get("imageUrl").isJsonNull()) && !jsonObj.get("imageUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `imageUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("imageUrl").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SkuSearchResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SkuSearchResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SkuSearchResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SkuSearchResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SkuSearchResult read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SkuSearchResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of SkuSearchResult + * @throws IOException if the JSON string is invalid with respect to SkuSearchResult + */ + public static SkuSearchResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SkuSearchResult.class); + } + + /** + * Convert an instance of SkuSearchResult to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataPreview.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataPreview.java index b1d9242d..9af58bab 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataPreview.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataPreview.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataPreviewListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataPreviewListResponse.java index 2df1c5a1..f62279b4 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataPreviewListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataPreviewListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataV2.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataV2.java index 0194c3fd..3fd07e7a 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataV2.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataV2ListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataV2ListResponse.java index 58ae04f4..9e52845b 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataV2ListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SkuSlimDataV2ListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/StatusResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/StatusResponse.java index 17b6a6be..56caae5a 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/StatusResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/StatusResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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 StatusEnum fromValue(String value) { return b; } } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); + return null; } public static class Adapter extends TypeAdapter { @@ -375,11 +376,22 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, statusResponse.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(status, rowCount, fileSizeBytes, md5CheckSum, createdAt, expiresAt, message, id, 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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/StatusResponseResource.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/StatusResponseResource.java index e17e5887..ec9e0841 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/StatusResponseResource.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/StatusResponseResource.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -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, statusResponseResource.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/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SuggestedKeywordsResult.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SuggestedKeywordsResult.java new file mode 100644 index 00000000..bf5d188a --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/SuggestedKeywordsResult.java @@ -0,0 +1,268 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.Keywords; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * Response model for suggested keywords + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SuggestedKeywordsResult { + public static final String SERIALIZED_NAME_KEYWORDS = "keywords"; + @SerializedName(SERIALIZED_NAME_KEYWORDS) + private Map keywords = null; + + public static final String SERIALIZED_NAME_RECOMMENDED_KEYWORDS = "recommendedKeywords"; + @SerializedName(SERIALIZED_NAME_RECOMMENDED_KEYWORDS) + private List recommendedKeywords = null; + + public SuggestedKeywordsResult() { + } + + public SuggestedKeywordsResult keywords(Map keywords) { + + this.keywords = keywords; + return this; + } + + public SuggestedKeywordsResult putKeywordsItem(String key, Keywords keywordsItem) { + if (this.keywords == null) { + this.keywords = null; + } + this.keywords.put(key, keywordsItem); + return this; + } + + /** + * Dictionary of keywords to their keyword models + * @return keywords + **/ + @javax.annotation.Nullable + + public Map getKeywords() { + return keywords; + } + + + public void setKeywords(Map keywords) { + this.keywords = keywords; + } + + + public SuggestedKeywordsResult recommendedKeywords(List recommendedKeywords) { + + this.recommendedKeywords = recommendedKeywords; + return this; + } + + public SuggestedKeywordsResult addRecommendedKeywordsItem(String recommendedKeywordsItem) { + if (this.recommendedKeywords == null) { + this.recommendedKeywords = null; + } + this.recommendedKeywords.add(recommendedKeywordsItem); + return this; + } + + /** + * Collection of recommended keywords + * @return recommendedKeywords + **/ + @javax.annotation.Nullable + + public List getRecommendedKeywords() { + return recommendedKeywords; + } + + + public void setRecommendedKeywords(List recommendedKeywords) { + this.recommendedKeywords = recommendedKeywords; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SuggestedKeywordsResult suggestedKeywordsResult = (SuggestedKeywordsResult) o; + return Objects.equals(this.keywords, suggestedKeywordsResult.keywords) && + Objects.equals(this.recommendedKeywords, suggestedKeywordsResult.recommendedKeywords); + } + + 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(keywords, recommendedKeywords); + } + + 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(); + sb.append("class SuggestedKeywordsResult {\n"); + sb.append(" keywords: ").append(toIndentedString(keywords)).append("\n"); + sb.append(" recommendedKeywords: ").append(toIndentedString(recommendedKeywords)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("keywords"); + openapiFields.add("recommendedKeywords"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SuggestedKeywordsResult + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!SuggestedKeywordsResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in SuggestedKeywordsResult is not found in the empty JSON string", SuggestedKeywordsResult.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!SuggestedKeywordsResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SuggestedKeywordsResult` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // ensure the optional json data is an array if present + if (jsonObj.get("recommendedKeywords") != null && !jsonObj.get("recommendedKeywords").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `recommendedKeywords` to be an array in the JSON string but got `%s`", jsonObj.get("recommendedKeywords").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SuggestedKeywordsResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SuggestedKeywordsResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SuggestedKeywordsResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SuggestedKeywordsResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SuggestedKeywordsResult read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SuggestedKeywordsResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of SuggestedKeywordsResult + * @throws IOException if the JSON string is invalid with respect to SuggestedKeywordsResult + */ + public static SuggestedKeywordsResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SuggestedKeywordsResult.class); + } + + /** + * Convert an instance of SuggestedKeywordsResult to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Template.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Template.java index a530b256..9aa1b39c 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Template.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/Template.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateListResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateListResponse.java index e52f56eb..ed02cb7e 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateListResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateListResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateResponse.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateResponse.java index 58069a1b..079a9f60 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateResponse.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateResponse.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateVariable.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateVariable.java index 2e14f956..00df7ea1 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateVariable.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateVariable.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateVariableValue.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateVariableValue.java index 53c1b3e6..72101c15 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateVariableValue.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TemplateVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TextVariableSpecification.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TextVariableSpecification.java index 4b329e83..976781c6 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TextVariableSpecification.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TextVariableSpecification.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TextVariableValue.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TextVariableValue.java index 3c49074d..a6354fdf 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TextVariableValue.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/TextVariableValue.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UpdateBalanceModelRequest.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UpdateBalanceModelRequest.java index 70b1d6f4..81503063 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UpdateBalanceModelRequest.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UpdateBalanceModelRequest.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UserBehaviorDetails.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UserBehaviorDetails.java index afe16a32..9570576a 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UserBehaviorDetails.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UserBehaviorDetails.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UserBehaviorDetailsV2.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UserBehaviorDetailsV2.java index 8261c22b..c56d0fe1 100644 --- a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UserBehaviorDetailsV2.java +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/UserBehaviorDetailsV2.java @@ -2,7 +2,7 @@ * Criteo API * Criteo API - RetailMedia * - * The version of the OpenAPI document: Preview + * The version of the OpenAPI document: preview * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfCampaignBudgetOverrides.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfCampaignBudgetOverrides.java new file mode 100644 index 00000000..83669e85 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfCampaignBudgetOverrides.java @@ -0,0 +1,251 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.CampaignBudgetOverrides; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceOfCampaignBudgetOverrides { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private CampaignBudgetOverrides attributes; + + public ValueResourceOfCampaignBudgetOverrides() { + } + + public ValueResourceOfCampaignBudgetOverrides type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public ValueResourceOfCampaignBudgetOverrides attributes(CampaignBudgetOverrides attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public CampaignBudgetOverrides getAttributes() { + return attributes; + } + + + public void setAttributes(CampaignBudgetOverrides attributes) { + this.attributes = attributes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceOfCampaignBudgetOverrides valueResourceOfCampaignBudgetOverrides = (ValueResourceOfCampaignBudgetOverrides) o; + return Objects.equals(this.type, valueResourceOfCampaignBudgetOverrides.type) && + Objects.equals(this.attributes, valueResourceOfCampaignBudgetOverrides.attributes); + } + + 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); + } + + 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(); + sb.append("class ValueResourceOfCampaignBudgetOverrides {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceOfCampaignBudgetOverrides + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceOfCampaignBudgetOverrides.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceOfCampaignBudgetOverrides is not found in the empty JSON string", ValueResourceOfCampaignBudgetOverrides.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceOfCampaignBudgetOverrides.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceOfCampaignBudgetOverrides` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + CampaignBudgetOverrides.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceOfCampaignBudgetOverrides.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceOfCampaignBudgetOverrides' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceOfCampaignBudgetOverrides.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceOfCampaignBudgetOverrides value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceOfCampaignBudgetOverrides read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceOfCampaignBudgetOverrides given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceOfCampaignBudgetOverrides + * @throws IOException if the JSON string is invalid with respect to ValueResourceOfCampaignBudgetOverrides + */ + public static ValueResourceOfCampaignBudgetOverrides fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceOfCampaignBudgetOverrides.class); + } + + /** + * Convert an instance of ValueResourceOfCampaignBudgetOverrides to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfSuggestedKeywordsResult.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfSuggestedKeywordsResult.java new file mode 100644 index 00000000..af4bea79 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOfSuggestedKeywordsResult.java @@ -0,0 +1,251 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.SuggestedKeywordsResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceOfSuggestedKeywordsResult { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTES) + private SuggestedKeywordsResult attributes; + + public ValueResourceOfSuggestedKeywordsResult() { + } + + public ValueResourceOfSuggestedKeywordsResult type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public ValueResourceOfSuggestedKeywordsResult attributes(SuggestedKeywordsResult attributes) { + + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + **/ + @javax.annotation.Nullable + + public SuggestedKeywordsResult getAttributes() { + return attributes; + } + + + public void setAttributes(SuggestedKeywordsResult attributes) { + this.attributes = attributes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceOfSuggestedKeywordsResult valueResourceOfSuggestedKeywordsResult = (ValueResourceOfSuggestedKeywordsResult) o; + return Objects.equals(this.type, valueResourceOfSuggestedKeywordsResult.type) && + Objects.equals(this.attributes, valueResourceOfSuggestedKeywordsResult.attributes); + } + + 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); + } + + 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(); + sb.append("class ValueResourceOfSuggestedKeywordsResult {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("type"); + openapiFields.add("attributes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceOfSuggestedKeywordsResult + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceOfSuggestedKeywordsResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceOfSuggestedKeywordsResult is not found in the empty JSON string", ValueResourceOfSuggestedKeywordsResult.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceOfSuggestedKeywordsResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceOfSuggestedKeywordsResult` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + // validate the optional field `attributes` + if (jsonObj.get("attributes") != null && !jsonObj.get("attributes").isJsonNull()) { + SuggestedKeywordsResult.validateJsonObject(jsonObj.getAsJsonObject("attributes")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceOfSuggestedKeywordsResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceOfSuggestedKeywordsResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceOfSuggestedKeywordsResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceOfSuggestedKeywordsResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceOfSuggestedKeywordsResult read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceOfSuggestedKeywordsResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceOfSuggestedKeywordsResult + * @throws IOException if the JSON string is invalid with respect to ValueResourceOfSuggestedKeywordsResult + */ + public static ValueResourceOfSuggestedKeywordsResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceOfSuggestedKeywordsResult.class); + } + + /** + * Convert an instance of ValueResourceOfSuggestedKeywordsResult to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java new file mode 100644 index 00000000..11dcdc94 --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfCampaignBudgetOverrides.java @@ -0,0 +1,300 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.CommonProblem; +import com.criteo.api.retailmedia.preview.model.ValueResourceOfCampaignBudgetOverrides; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceOutcomeOfCampaignBudgetOverrides { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private ValueResourceOfCampaignBudgetOverrides data; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public ValueResourceOutcomeOfCampaignBudgetOverrides() { + } + + + public ValueResourceOutcomeOfCampaignBudgetOverrides( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public ValueResourceOutcomeOfCampaignBudgetOverrides data(ValueResourceOfCampaignBudgetOverrides data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public ValueResourceOfCampaignBudgetOverrides getData() { + return data; + } + + + public void setData(ValueResourceOfCampaignBudgetOverrides data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceOutcomeOfCampaignBudgetOverrides valueResourceOutcomeOfCampaignBudgetOverrides = (ValueResourceOutcomeOfCampaignBudgetOverrides) o; + return Objects.equals(this.data, valueResourceOutcomeOfCampaignBudgetOverrides.data) && + Objects.equals(this.warnings, valueResourceOutcomeOfCampaignBudgetOverrides.warnings) && + Objects.equals(this.errors, valueResourceOutcomeOfCampaignBudgetOverrides.errors); + } + + 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); + } + + 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(); + sb.append("class ValueResourceOutcomeOfCampaignBudgetOverrides {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceOutcomeOfCampaignBudgetOverrides + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceOutcomeOfCampaignBudgetOverrides.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceOutcomeOfCampaignBudgetOverrides is not found in the empty JSON string", ValueResourceOutcomeOfCampaignBudgetOverrides.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceOutcomeOfCampaignBudgetOverrides.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceOutcomeOfCampaignBudgetOverrides` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + ValueResourceOfCampaignBudgetOverrides.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceOutcomeOfCampaignBudgetOverrides.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceOutcomeOfCampaignBudgetOverrides' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceOutcomeOfCampaignBudgetOverrides.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceOutcomeOfCampaignBudgetOverrides value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceOutcomeOfCampaignBudgetOverrides read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceOutcomeOfCampaignBudgetOverrides given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceOutcomeOfCampaignBudgetOverrides + * @throws IOException if the JSON string is invalid with respect to ValueResourceOutcomeOfCampaignBudgetOverrides + */ + public static ValueResourceOutcomeOfCampaignBudgetOverrides fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceOutcomeOfCampaignBudgetOverrides.class); + } + + /** + * Convert an instance of ValueResourceOutcomeOfCampaignBudgetOverrides to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfSuggestedKeywordsResult.java b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfSuggestedKeywordsResult.java new file mode 100644 index 00000000..06c2481e --- /dev/null +++ b/sdks/retailmedia_preview/src/main/java/com/criteo/api/retailmedia/preview/model/ValueResourceOutcomeOfSuggestedKeywordsResult.java @@ -0,0 +1,300 @@ +/* + * Criteo API + * Criteo API - RetailMedia + * + * The version of the OpenAPI document: preview + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.criteo.api.retailmedia.preview.model; + +import java.util.Objects; +import java.util.Arrays; +import com.criteo.api.retailmedia.preview.model.CommonProblem; +import com.criteo.api.retailmedia.preview.model.ValueResourceOfSuggestedKeywordsResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.criteo.api.retailmedia.preview.JSON; + +/** + * A top-level object that encapsulates a Criteo API response for a single value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ValueResourceOutcomeOfSuggestedKeywordsResult { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private ValueResourceOfSuggestedKeywordsResult data; + + public static final String SERIALIZED_NAME_WARNINGS = "warnings"; + @SerializedName(SERIALIZED_NAME_WARNINGS) + private List warnings = null; + + public static final String SERIALIZED_NAME_ERRORS = "errors"; + @SerializedName(SERIALIZED_NAME_ERRORS) + private List errors = null; + + public ValueResourceOutcomeOfSuggestedKeywordsResult() { + } + + + public ValueResourceOutcomeOfSuggestedKeywordsResult( + List warnings, + List errors + ) { + this(); + this.warnings = warnings; + this.errors = errors; + } + + public ValueResourceOutcomeOfSuggestedKeywordsResult data(ValueResourceOfSuggestedKeywordsResult data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + + public ValueResourceOfSuggestedKeywordsResult getData() { + return data; + } + + + public void setData(ValueResourceOfSuggestedKeywordsResult data) { + this.data = data; + } + + + /** + * Get warnings + * @return warnings + **/ + @javax.annotation.Nullable + + public List getWarnings() { + return warnings; + } + + + + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + + public List getErrors() { + return errors; + } + + + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValueResourceOutcomeOfSuggestedKeywordsResult valueResourceOutcomeOfSuggestedKeywordsResult = (ValueResourceOutcomeOfSuggestedKeywordsResult) o; + return Objects.equals(this.data, valueResourceOutcomeOfSuggestedKeywordsResult.data) && + Objects.equals(this.warnings, valueResourceOutcomeOfSuggestedKeywordsResult.warnings) && + Objects.equals(this.errors, valueResourceOutcomeOfSuggestedKeywordsResult.errors); + } + + 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); + } + + 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(); + sb.append("class ValueResourceOutcomeOfSuggestedKeywordsResult {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + openapiFields.add("warnings"); + openapiFields.add("errors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ValueResourceOutcomeOfSuggestedKeywordsResult + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ValueResourceOutcomeOfSuggestedKeywordsResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ValueResourceOutcomeOfSuggestedKeywordsResult is not found in the empty JSON string", ValueResourceOutcomeOfSuggestedKeywordsResult.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!ValueResourceOutcomeOfSuggestedKeywordsResult.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ValueResourceOutcomeOfSuggestedKeywordsResult` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + // validate the optional field `data` + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + ValueResourceOfSuggestedKeywordsResult.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + if (jsonObj.get("warnings") != null && !jsonObj.get("warnings").isJsonNull()) { + JsonArray jsonArraywarnings = jsonObj.getAsJsonArray("warnings"); + if (jsonArraywarnings != null) { + // ensure the json data is an array + if (!jsonObj.get("warnings").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `warnings` to be an array in the JSON string but got `%s`", jsonObj.get("warnings").toString())); + } + + // validate the optional field `warnings` (array) + for (int i = 0; i < jsonArraywarnings.size(); i++) { + CommonProblem.validateJsonObject(jsonArraywarnings.get(i).getAsJsonObject()); + }; + } + } + if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull()) { + JsonArray jsonArrayerrors = jsonObj.getAsJsonArray("errors"); + if (jsonArrayerrors != null) { + // ensure the json data is an array + if (!jsonObj.get("errors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); + } + + // validate the optional field `errors` (array) + for (int i = 0; i < jsonArrayerrors.size(); i++) { + CommonProblem.validateJsonObject(jsonArrayerrors.get(i).getAsJsonObject()); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ValueResourceOutcomeOfSuggestedKeywordsResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ValueResourceOutcomeOfSuggestedKeywordsResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ValueResourceOutcomeOfSuggestedKeywordsResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ValueResourceOutcomeOfSuggestedKeywordsResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ValueResourceOutcomeOfSuggestedKeywordsResult read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ValueResourceOutcomeOfSuggestedKeywordsResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValueResourceOutcomeOfSuggestedKeywordsResult + * @throws IOException if the JSON string is invalid with respect to ValueResourceOutcomeOfSuggestedKeywordsResult + */ + public static ValueResourceOutcomeOfSuggestedKeywordsResult fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ValueResourceOutcomeOfSuggestedKeywordsResult.class); + } + + /** + * Convert an instance of ValueResourceOutcomeOfSuggestedKeywordsResult to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} +