Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,619 changes: 2,178 additions & 441 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@ generation:
requestResponseComponentNamesFeb2024: true
securityFeb2025: true
sharedErrorComponentsApr2025: false
sharedNestedComponentsJan2026: false
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
versioningStrategy: automatic
persistentEdits: {}
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 0.12.0
version: 0.13.0
additionalDependencies: []
additionalPlugins: []
artifactID: workflows
Expand All @@ -37,10 +40,11 @@ java:
companyURL: https://www.thetradedesk.com/
defaultErrorName: APIException
enableCustomCodeRegions: false
enableSlf4jLogging: false
enableStreamingUploads: false
enhancedUnionMemberResolution: true
envVarPrefix: WORKFLOWS
flattenGlobalSecurity: true
forwardCompatibleEnumsByDefault: false
generateOptionalUnionAccessors: false
generateSpringBootStarter: true
githubURL: github.com/thetradedesk/ttd-workflows-java
Expand All @@ -53,6 +57,7 @@ java:
operations: models/operations
shared: models/components
webhooks: models/webhooks
inferUnionDiscriminators: false
inputModelSuffix: input
languageVersion: 11
license:
Expand All @@ -61,9 +66,13 @@ java:
url: https://mit-license.org/
maxMethodParams: 999
methodArguments: infer-optional-args
multipartArrayFormat: legacy
nullFriendlyParameters: false
openUnions: true
operationScopedParams: true
outputModelSuffix: output
projectName: ttd-workflows
respectTitlesForPrimitiveUnionMembers: false
responseFormat: envelope-http
templateVersion: v2
unionStrategy: populated-fields
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.659.0
speakeasyVersion: 1.704.0
sources:
Workflows API:
sourceNamespace: workflows-api
sourceRevisionDigest: sha256:3aa657c02887fcb0ef2cfab5f5bdb208acba9d6931520130b81c496004dd5c30
sourceBlobDigest: sha256:36e1dc69edd63f499614e073d4730afdb239c8a265f7ef5414f2315276d7653a
sourceRevisionDigest: sha256:507ad9edab3caa470c1ba40bb4680f830bb0fd8f3ec7fa883af3d5b00a7eb740
sourceBlobDigest: sha256:f4ef96b43642cbb3abcc258b0c88cb0a148b06c7801bea5dad77458df3685331
tags:
- latest
- speakeasy-sdk-regen-1762133040
- speakeasy-sdk-regen-1765243467
- v1
targets:
ttd-workflows:
source: Workflows API
sourceNamespace: workflows-api
sourceRevisionDigest: sha256:3aa657c02887fcb0ef2cfab5f5bdb208acba9d6931520130b81c496004dd5c30
sourceBlobDigest: sha256:36e1dc69edd63f499614e073d4730afdb239c8a265f7ef5414f2315276d7653a
sourceRevisionDigest: sha256:507ad9edab3caa470c1ba40bb4680f830bb0fd8f3ec7fa883af3d5b00a7eb740
sourceBlobDigest: sha256:f4ef96b43642cbb3abcc258b0c88cb0a148b06c7801bea5dad77458df3685331
codeSamplesNamespace: workflows-api-java-code-samples
codeSamplesRevisionDigest: sha256:3c1de06201eb90df74c8494ac195ce46b3140ce5b07a65202a1a74a0e735cb37
codeSamplesRevisionDigest: sha256:4ae0e2b091129f6a0c0c0210cc76d89f43b9266b550af0f58c3b65a2aa60743f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
123 changes: 114 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.thetradedesk:workflows:0.12.0'
implementation 'com.thetradedesk:workflows:0.13.0'
```

Maven:
```xml
<dependency>
<groupId>com.thetradedesk</groupId>
<artifactId>workflows</artifactId>
<version>0.12.0</version>
<version>0.13.0</version>
</dependency>
```

Expand Down Expand Up @@ -646,6 +646,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -678,15 +695,15 @@ public class Application {
<details open>
<summary>Available methods</summary>

### [adGroup()](docs/sdks/adgroup/README.md)
### [AdGroup](docs/sdks/adgroup/README.md)

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

### [campaign()](docs/sdks/campaign/README.md)
### [Campaign](docs/sdks/campaign/README.md)

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

### [dmp()](docs/sdks/dmp/README.md)
### [Dmp](docs/sdks/dmp/README.md)

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

### [graphQLRequest()](docs/sdks/graphqlrequest/README.md)
### [GraphQLRequest](docs/sdks/graphqlrequest/README.md)

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

### [jobStatus()](docs/sdks/jobstatus/README.md)
### [JobStatus](docs/sdks/jobstatus/README.md)

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

### [restRequest()](docs/sdks/restrequest/README.md)
### [RESTRequest](docs/sdks/restrequest/README.md)

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

Expand Down Expand Up @@ -841,6 +858,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -1005,6 +1039,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -1168,6 +1219,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -1376,6 +1444,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -1520,6 +1605,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down Expand Up @@ -1686,9 +1788,11 @@ public class Application {
## Debugging

### Debug

You can setup your SDK to emit debug logs for SDK requests and responses.

For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:

```java
SDK.builder()
.enableHTTPDebugLogging(true)
Expand All @@ -1706,10 +1810,11 @@ Response body:
"token": "global"
}
```
__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`.
__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`.

__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.


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

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,14 @@ Based on:
### Generated
- [java v0.12.0] .
### Releases
- [Maven Central v0.12.0] https://central.sonatype.com/artifact/com.thetradedesk/workflows/0.12.0 - .
- [Maven Central v0.12.0] https://central.sonatype.com/artifact/com.thetradedesk/workflows/0.12.0 - .

## 2026-02-05 01:56:57
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.704.0 (2.806.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.13.0] .
### Releases
- [Maven Central v0.13.0] https://central.sonatype.com/artifact/com.thetradedesk/workflows/0.13.0 - .
17 changes: 17 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,23 @@ public class Application {
.frequencyGoal(534735)
.resetIntervalInMinutes(788122)
.build()))
.inventoryTargeting(AdGroupWorkflowInventoryTargetingInput.builder()
.dealGroupIdsToInclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealGroupIdsToExclude(List.of(
"<value 1>",
"<value 2>",
"<value 3>"))
.dealIdsToExclude(List.of(
117039L,
278677L,
217940L))
.dealIdsToInclude(JsonNullable.of(null))
.includeDefaultOnDeals(true)
.build())
.isNonDecisioned(true)
.flights(List.of(
AdGroupWorkflowFlightInput.builder()
.campaignFlightId(874887L)
Expand Down
Loading