Skip to content

Commit 258bb2a

Browse files
committed
## Java SDK Changes:
* `workflows.campaign.create()`: * `request.advancedInput.frequencyConfigs` **Added** * `workflows.campaign.createCampaignsJob()`: * `request.input.[].advancedInput.frequencyConfigs` **Added**
1 parent a298957 commit 258bb2a

File tree

31 files changed

+2996
-670
lines changed

31 files changed

+2996
-670
lines changed

.speakeasy/gen.lock

Lines changed: 2148 additions & 435 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ generation:
2020
schemas:
2121
allOfMergeStrategy: shallowMerge
2222
requestBodyFieldName: ""
23+
persistentEdits: {}
2324
tests:
2425
generateTests: true
2526
generateNewTests: false
2627
skipResponseBodyAssertions: false
2728
java:
28-
version: 0.12.0
29+
version: 0.13.0
2930
additionalDependencies: []
3031
additionalPlugins: []
3132
artifactID: workflows
@@ -37,10 +38,11 @@ java:
3738
companyURL: https://www.thetradedesk.com/
3839
defaultErrorName: APIException
3940
enableCustomCodeRegions: false
41+
enableSlf4jLogging: false
4042
enableStreamingUploads: false
41-
enhancedUnionMemberResolution: true
4243
envVarPrefix: WORKFLOWS
4344
flattenGlobalSecurity: true
45+
forwardCompatibleEnumsByDefault: false
4446
generateOptionalUnionAccessors: false
4547
generateSpringBootStarter: true
4648
githubURL: github.com/thetradedesk/ttd-workflows-java
@@ -53,6 +55,7 @@ java:
5355
operations: models/operations
5456
shared: models/components
5557
webhooks: models/webhooks
58+
inferUnionDiscriminators: false
5659
inputModelSuffix: input
5760
languageVersion: 11
5861
license:
@@ -61,9 +64,12 @@ java:
6164
url: https://mit-license.org/
6265
maxMethodParams: 999
6366
methodArguments: infer-optional-args
67+
multipartArrayFormat: legacy
6468
nullFriendlyParameters: false
6569
openUnions: true
70+
operationScopedParams: true
6671
outputModelSuffix: output
6772
projectName: ttd-workflows
6873
responseFormat: envelope-http
6974
templateVersion: v2
75+
unionStrategy: populated-fields

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.659.0
1+
speakeasyVersion: 1.680.5
22
sources:
33
Workflows API:
44
sourceNamespace: workflows-api
5-
sourceRevisionDigest: sha256:3aa657c02887fcb0ef2cfab5f5bdb208acba9d6931520130b81c496004dd5c30
6-
sourceBlobDigest: sha256:36e1dc69edd63f499614e073d4730afdb239c8a265f7ef5414f2315276d7653a
5+
sourceRevisionDigest: sha256:3d92e7fa08252c0d4c418e77c5238acbdbba1eda41b46ad85bf5de107f1b51ed
6+
sourceBlobDigest: sha256:58462731fc31964ba7825d807e5afa146153db451021cb5fdcc1970c9649e65a
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1762133040
9+
- speakeasy-sdk-regen-1765243467
1010
- v1
1111
targets:
1212
ttd-workflows:
1313
source: Workflows API
1414
sourceNamespace: workflows-api
15-
sourceRevisionDigest: sha256:3aa657c02887fcb0ef2cfab5f5bdb208acba9d6931520130b81c496004dd5c30
16-
sourceBlobDigest: sha256:36e1dc69edd63f499614e073d4730afdb239c8a265f7ef5414f2315276d7653a
15+
sourceRevisionDigest: sha256:3d92e7fa08252c0d4c418e77c5238acbdbba1eda41b46ad85bf5de107f1b51ed
16+
sourceBlobDigest: sha256:58462731fc31964ba7825d807e5afa146153db451021cb5fdcc1970c9649e65a
1717
codeSamplesNamespace: workflows-api-java-code-samples
18-
codeSamplesRevisionDigest: sha256:3c1de06201eb90df74c8494ac195ce46b3140ce5b07a65202a1a74a0e735cb37
18+
codeSamplesRevisionDigest: sha256:f3d855e29a71f88bbe38ca48cfbef25143e9c1544af4fea68a15c738740003bc
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ The samples below show how a published SDK artifact is used:
5656

5757
Gradle:
5858
```groovy
59-
implementation 'com.thetradedesk:workflows:0.12.0'
59+
implementation 'com.thetradedesk:workflows:0.13.0'
6060
```
6161

6262
Maven:
6363
```xml
6464
<dependency>
6565
<groupId>com.thetradedesk</groupId>
6666
<artifactId>workflows</artifactId>
67-
<version>0.12.0</version>
67+
<version>0.13.0</version>
6868
</dependency>
6969
```
7070

@@ -678,15 +678,15 @@ public class Application {
678678
<details open>
679679
<summary>Available methods</summary>
680680

681-
### [adGroup()](docs/sdks/adgroup/README.md)
681+
### [AdGroup](docs/sdks/adgroup/README.md)
682682

683683
* [createAdGroup](docs/sdks/adgroup/README.md#createadgroup) - Create a new ad group
684684
* [updateAdGroup](docs/sdks/adgroup/README.md#updateadgroup) - Update an ad group
685685
* [archiveAdGroups](docs/sdks/adgroup/README.md#archiveadgroups) - Archive multiple ad groups
686686
* [createAdGroupsJob](docs/sdks/adgroup/README.md#createadgroupsjob) - Submit a job to create multiple new ad groups
687687
* [updateAdGroupsJob](docs/sdks/adgroup/README.md#updateadgroupsjob) - Submit a job to update multiple ad groups
688688

689-
### [campaign()](docs/sdks/campaign/README.md)
689+
### [Campaign](docs/sdks/campaign/README.md)
690690

691691
* [create](docs/sdks/campaign/README.md#create) - Create a new campaign
692692
* [updateCampaign](docs/sdks/campaign/README.md#updatecampaign) - Update a campaign
@@ -695,22 +695,22 @@ public class Application {
695695
* [archiveCampaigns](docs/sdks/campaign/README.md#archivecampaigns) - Archive multiple campaigns
696696
* [getVersion](docs/sdks/campaign/README.md#getversion) - Get a campaign's version
697697

698-
### [dmp()](docs/sdks/dmp/README.md)
698+
### [Dmp](docs/sdks/dmp/README.md)
699699

700700
* [getFirstPartyDataJob](docs/sdks/dmp/README.md#getfirstpartydatajob) - Submit a job for first-party data retrieval for an advertiser
701701
* [getThirdPartyDataJob](docs/sdks/dmp/README.md#getthirdpartydatajob) - Submit a job for third-party data retrieval for a partner
702702

703-
### [graphQLRequest()](docs/sdks/graphqlrequest/README.md)
703+
### [GraphQLRequest](docs/sdks/graphqlrequest/README.md)
704704

705705
* [submitGraphQlRequest](docs/sdks/graphqlrequest/README.md#submitgraphqlrequest) - Submit a valid GraphQL query or mutation
706706
* [submitGraphQlBulkQueryJob](docs/sdks/graphqlrequest/README.md#submitgraphqlbulkqueryjob) - Submit a valid bulk GraphQL query job
707707

708-
### [jobStatus()](docs/sdks/jobstatus/README.md)
708+
### [JobStatus](docs/sdks/jobstatus/README.md)
709709

710710
* [getGraphQlBulkJobStatus](docs/sdks/jobstatus/README.md#getgraphqlbulkjobstatus) - Get the status of a previously submitted GraphQL bulk job
711711
* [getJobStatus](docs/sdks/jobstatus/README.md#getjobstatus) - Get the status of a previously submitted job
712712

713-
### [restRequest()](docs/sdks/restrequest/README.md)
713+
### [RESTRequest](docs/sdks/restrequest/README.md)
714714

715715
* [submitRestRequest](docs/sdks/restrequest/README.md#submitrestrequest) - Submit a valid REST request
716716

@@ -1686,9 +1686,11 @@ public class Application {
16861686
## Debugging
16871687

16881688
### Debug
1689+
16891690
You can setup your SDK to emit debug logs for SDK requests and responses.
16901691

16911692
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
1693+
16921694
```java
16931695
SDK.builder()
16941696
.enableHTTPDebugLogging(true)
@@ -1706,10 +1708,11 @@ Response body:
17061708
"token": "global"
17071709
}
17081710
```
1709-
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
1711+
__WARNING__: This logging should only be used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
17101712

17111713
__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.
17121714

1715+
17131716
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
17141717
<!-- End Debugging [debug] -->
17151718

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,14 @@ Based on:
198198
### Generated
199199
- [java v0.12.0] .
200200
### Releases
201-
- [Maven Central v0.12.0] https://central.sonatype.com/artifact/com.thetradedesk/workflows/0.12.0 - .
201+
- [Maven Central v0.12.0] https://central.sonatype.com/artifact/com.thetradedesk/workflows/0.12.0 - .
202+
203+
## 2025-12-24 01:26:12
204+
### Changes
205+
Based on:
206+
- OpenAPI Doc
207+
- Speakeasy CLI 1.680.5 (2.788.7) https://github.com/speakeasy-api/speakeasy
208+
### Generated
209+
- [java v0.13.0] .
210+
### Releases
211+
- [Maven Central v0.13.0] https://central.sonatype.com/artifact/com.thetradedesk/workflows/0.13.0 - .

docs/models/components/CampaignCreateWorkflowAdvancedInput.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
| `purchaseOrderNumber` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A |
1010
| `includeDefaultsFromAdvertiser` | *Optional\<Boolean>* | :heavy_minus_sign: | N/A |
1111
| `passThroughFeeCard` | [Optional\<CampaignCreateWorkflowPassThroughFeeCardInput>](../../models/components/CampaignCreateWorkflowPassThroughFeeCardInput.md) | :heavy_minus_sign: | N/A |
12-
| `callerSource` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A |
12+
| `callerSource` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A |
13+
| `frequencyConfigs` | List\<[FrequencyConfig](../../models/components/FrequencyConfig.md)> | :heavy_minus_sign: | N/A |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# FrequencyConfig
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------ | ------------------------ | ------------------------ | ------------------------ |
8+
| `counterName` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A |
9+
| `frequencyCap` | *JsonNullable\<Integer>* | :heavy_minus_sign: | N/A |
10+
| `frequencyGoal` | *JsonNullable\<Integer>* | :heavy_minus_sign: | N/A |
11+
| `resetIntervalInMinutes` | *Optional\<Integer>* | :heavy_minus_sign: | N/A |

docs/sdks/adgroup/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# AdGroup
2-
(*adGroup()*)
32

43
## Overview
54

docs/sdks/campaign/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Campaign
2-
(*campaign()*)
32

43
## Overview
54

@@ -178,6 +177,13 @@ public class Application {
178177
.startDateUtc(OffsetDateTime.parse("2023-03-18T04:39:08.387Z"))
179178
.build())
180179
.callerSource("<value>")
180+
.frequencyConfigs(List.of(
181+
FrequencyConfig.builder()
182+
.counterName(JsonNullable.of(null))
183+
.frequencyCap(960101)
184+
.frequencyGoal(613761)
185+
.resetIntervalInMinutes(369518)
186+
.build()))
181187
.build())
182188
.adGroups(List.of(
183189
CampaignCreateWorkflowAdGroupInput.builder()
@@ -648,6 +654,13 @@ public class Application {
648654
.startDateUtc(OffsetDateTime.parse("2024-07-24T11:58:59.190Z"))
649655
.build())
650656
.callerSource("<value>")
657+
.frequencyConfigs(List.of(
658+
FrequencyConfig.builder()
659+
.counterName("<value>")
660+
.frequencyCap(JsonNullable.of(null))
661+
.frequencyGoal(373225)
662+
.resetIntervalInMinutes(525344)
663+
.build()))
651664
.build())
652665
.adGroups(List.of(
653666
CampaignCreateWorkflowAdGroupInput.builder()

docs/sdks/dmp/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Dmp
2-
(*dmp()*)
32

43
## Overview
54

0 commit comments

Comments
 (0)