Skip to content

Commit 8026bc6

Browse files
Changes for release v23_1. (#879)
1 parent d1a4f08 commit 8026bc6

3,717 files changed

Lines changed: 44668 additions & 15044 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
42.1.0 - 2026-02-25
2+
-------------------
3+
- Add support and examples for v23_1 of the Google Ads API.
4+
15
42.0.0 - 2026-01-28
26
-------------------
37
- Add support and examples for v23 of the Google Ads API.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ This project hosts the Java client library for the Google Ads API.
1818
<dependency>
1919
<groupId>com.google.api-ads</groupId>
2020
<artifactId>google-ads</artifactId>
21-
<version>42.0.0</version>
21+
<version>42.1.0</version>
2222
</dependency>
2323

2424
## Gradle dependency
2525

26-
implementation 'com.google.api-ads:google-ads:42.0.0'
26+
implementation 'com.google.api-ads:google-ads:42.1.0'
2727

2828
## Documentation
2929

buildSrc/src/main/groovy/com.google.api-ads.java-conventions.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ dependencies {
206206
api 'io.grpc:grpc-protobuf'
207207
api 'com.google.auth:google-auth-library-oauth2-http'
208208
api 'com.google.auth:google-auth-library-credentials'
209-
api platform('com.google.cloud:google-cloud-shared-dependencies:3.56.0')
209+
api platform('com.google.cloud:google-cloud-shared-dependencies:3.57.0')
210210
implementation 'com.google.guava:guava'
211211
implementation 'com.google.auto.service:auto-service:1.0.1'
212212
implementation 'javax.annotation:javax.annotation-api'

google-ads-bom/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ dependencies {
126126
// This makes this BOM inherit all dependency versions from the Google Cloud
127127
// BOM. This version is determined based on the current used version of
128128
// google-cloud-shared-dependencies.
129-
api(platform("com.google.cloud:libraries-bom:26.74.0"))
129+
api(platform("com.google.cloud:libraries-bom:26.76.0"))
130130

131131
// Add constraints for all of this project's artifacts.
132132
constraints {

google-ads-examples/src/main/java/com/google/ads/googleads/examples/advancedoperations/AddPerformanceMaxCampaign.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import com.google.ads.googleads.v23.enums.AssetGroupStatusEnum.AssetGroupStatus;
3636
import com.google.ads.googleads.v23.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod;
3737
import com.google.ads.googleads.v23.enums.CampaignStatusEnum.CampaignStatus;
38+
import com.google.ads.googleads.v23.enums.MessagingRestrictionTypeEnum.MessagingRestrictionType;
3839
import com.google.ads.googleads.v23.errors.GoogleAdsError;
3940
import com.google.ads.googleads.v23.errors.GoogleAdsException;
4041
import com.google.ads.googleads.v23.resources.Asset;
@@ -43,7 +44,8 @@
4344
import com.google.ads.googleads.v23.resources.AssetGroupSignal;
4445
import com.google.ads.googleads.v23.resources.Campaign;
4546
import com.google.ads.googleads.v23.resources.Campaign.AssetAutomationSetting;
46-
import com.google.ads.googleads.v23.resources.Campaign.AssetAutomationSettingOrBuilder;
47+
import com.google.ads.googleads.v23.resources.Campaign.MessagingRestriction;
48+
import com.google.ads.googleads.v23.resources.Campaign.TextGuidelines;
4749
import com.google.ads.googleads.v23.resources.CampaignAsset;
4850
import com.google.ads.googleads.v23.resources.CampaignBudget;
4951
import com.google.ads.googleads.v23.resources.CampaignCriterion;
@@ -256,6 +258,22 @@ private MutateOperation createCampaignBudgetOperation(long customerId) {
256258
/** Creates a MutateOperation that creates a new Performance Max campaign. */
257259
private MutateOperation createPerformanceMaxCampaignOperation(
258260
long customerId, boolean brandGuidelinesEnabled) {
261+
// [START add_performance_max_text_guidelines]
262+
TextGuidelines textGuidelines =
263+
TextGuidelines.newBuilder()
264+
// Specifies a list of terms that should not be used in any auto-generated
265+
// text assets.
266+
.addAllTermExclusions(ImmutableList.of("cheap", "free"))
267+
// Specifies freeform messaging restriction prompts that will apply to all
268+
// auto-generated text assets.
269+
.addMessagingRestrictions(
270+
MessagingRestriction.newBuilder()
271+
.setRestrictionText("Don't mention competitor names")
272+
.setRestrictionType(
273+
MessagingRestrictionType.RESTRICTION_BASED_EXCLUSION)
274+
.build())
275+
.build();
276+
// [END add_performance_max_text_guidelines]
259277
Campaign performanceMaxCampaign =
260278
Campaign.newBuilder()
261279
.setName("Performance Max campaign #" + getPrintableDateTime())
@@ -280,6 +298,8 @@ private MutateOperation createPerformanceMaxCampaignOperation(
280298
// Sets if the campaign is enabled for brand guidelines. For more information on brand
281299
// guidelines, see https://support.google.com/google-ads/answer/14934472.
282300
.setBrandGuidelinesEnabled(brandGuidelinesEnabled)
301+
// Sets the text guidelines.
302+
.setTextGuidelines(textGuidelines)
283303
// Assigns the resource name with a temporary ID.
284304
.setResourceName(
285305
ResourceNames.campaign(customerId, PERFORMANCE_MAX_CAMPAIGN_TEMPORARY_ID))

google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/AdditionalApplicationInfo.java

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/IpBlockInfo.java

Lines changed: 55 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/IpBlockInfoOrBuilder.java

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)