Skip to content

Commit 210a2b9

Browse files
authored
Merge pull request #553 from googleads/release-v16_0-a9b085a972af2e4d6b1b
Changes for release v16_0.
2 parents 59e2dc8 + e210116 commit 210a2b9

File tree

1,519 files changed

+799745
-3726
lines changed

Some content is hidden

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

1,519 files changed

+799745
-3726
lines changed

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
18.1.0
2+
======
3+
- Added support for version 16.0 of the Google Ads API.
4+
- Upgraded the Google.Api.Gax.Grpc dependency to 4.5.0 and the Google.Protobuf dependency to 3.25.0.
5+
- Updated code examples:
6+
* DetectAndApplyRecommendations
7+
* AddResponsiveSearchAdFull
8+
* AddCall
9+
* AddHotelCallout
10+
* AddLeadFormAsset
11+
* AddPrices
12+
* AddSitelinks
13+
- Added the VerifyAdvertiserIdentity example.
14+
115
18.0.0
216
======
317
- Removed support for version 13.0 of the Google Ads API.

Google.Ads.Gax/src/Google.Ads.Gax.csproj

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Title>Google Ads GAPIC Extensions Dotnet Client Library</Title>
55
<PackageId>Google.Ads.Gax</PackageId>
6-
<Version>3.1.0</Version>
6+
<Version>3.2.0</Version>
77
<Description>This library provides functionality that makes it easier to work with Generated
88
API Client GAPIC client libraries for Google's Ads APIs.</Description>
99
<PackageReleaseNotes>https://github.com/googleads/google-ads-dotnet/blob/main/ChangeLog</PackageReleaseNotes>
@@ -31,8 +31,8 @@
3131
<IncludeSource>true</IncludeSource>
3232
<GenerateDocumentationFile>true</GenerateDocumentationFile>
3333
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
34-
<AssemblyVersion>3.1.0</AssemblyVersion>
35-
<FileVersion>3.1.0</FileVersion>
34+
<AssemblyVersion>3.2.0</AssemblyVersion>
35+
<FileVersion>3.2.0</FileVersion>
3636
<LangVersion>latest</LangVersion>
3737
</PropertyGroup>
3838
<ItemGroup>
@@ -42,10 +42,10 @@
4242
</ItemGroup>
4343
<ItemGroup>
4444
<PackageReference Include="CommandLineParser" Version="2.9.1" />
45-
<PackageReference Include="Google.Api.Gax.Grpc" Version="4.2.0" />
45+
<PackageReference Include="Google.Api.Gax.Grpc" Version="4.5.0" />
4646
<PackageReference Include="Google.Api.Gax.Grpc.GrpcCore" Version="3.7.0" />
4747
<PackageReference Include="Google.LongRunning" Version="3.0.0" />
48-
<PackageReference Include="Google.Protobuf" Version="3.21.5" />
48+
<PackageReference Include="Google.Protobuf" Version="3.25.0" />
4949
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
5050
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
5151
<PrivateAssets>all</PrivateAssets>

Google.Ads.Gax/tests/Google.Ads.Gax.Tests.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<None Remove="TestUtilities\**" />
1919
</ItemGroup>
2020
<ItemGroup>
21-
<PackageReference Include="Google.Apis.Auth" Version="1.57.0" />
2221
<PackageReference Include="JunitXml.TestLogger" Version="3.0.114" />
2322
<PackageReference Include="Moq" Version="4.18.2" />
2423
<PackageReference Include="NUnit" Version="3.13.3" />

Google.Ads.GoogleAds.Core/src/Google.Ads.GoogleAds.Core.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Title>Google Ads API Core Dotnet Client Library</Title>
55
<PackageId>Google.Ads.GoogleAds.Core</PackageId>
6-
<Version>3.1.0</Version>
6+
<Version>3.2.0</Version>
77
<Description>This library provides you with functionality to access the Google Ads API. The Google Ads API is the modern programmatic interface to Google Ads and the next generation of the AdWords API. See https://developers.google.com/google-ads/api to learn more about Google Ads API.</Description>
88
<PackageReleaseNotes>https://github.com/googleads/google-ads-dotnet/blob/master/ChangeLog</PackageReleaseNotes>
99
<PackageTags>GoogleAds Google</PackageTags>
@@ -30,8 +30,8 @@
3030
<IncludeSource>true</IncludeSource>
3131
<GenerateDocumentationFile>true</GenerateDocumentationFile>
3232
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
33-
<AssemblyVersion>3.1.0</AssemblyVersion>
34-
<FileVersion>3.1.0</FileVersion>
33+
<AssemblyVersion>3.2.0</AssemblyVersion>
34+
<FileVersion>3.2.0</FileVersion>
3535
<LangVersion>latest</LangVersion>
3636
</PropertyGroup>
3737
<ItemGroup>
@@ -40,7 +40,7 @@
4040
<None Include="..\..\logo.png" Pack="true" PackagePath="" />
4141
</ItemGroup>
4242
<ItemGroup>
43-
<PackageReference Condition="!Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="Google.Ads.Gax" Version="3.1.0" />
43+
<PackageReference Condition="!Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="Google.Ads.Gax" Version="3.2.0" />
4444
<ProjectReference Condition="Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj" />
4545
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
4646
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.1" />

Google.Ads.GoogleAds.Core/tests/Google.Ads.GoogleAds.Core.Tests.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<AssemblyOriginatorKeyFile>..\..\GoogleAds.snk</AssemblyOriginatorKeyFile>
1414
</PropertyGroup>
1515
<ItemGroup>
16-
<PackageReference Include="Google.Apis.Auth" Version="1.57.0" />
1716
<PackageReference Include="JunitXml.TestLogger" Version="3.0.114" />
1817
<PackageReference Include="Moq" Version="4.18.2" />
1918
<PackageReference Include="NUnit" Version="3.13.3" />

Google.Ads.GoogleAds.Extensions/src/Google.Ads.GoogleAds.Extensions.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
<None Include="..\..\logo.png" Pack="true" PackagePath="" />
4646
</ItemGroup>
4747
<ItemGroup>
48-
<PackageReference Condition="!Exists('..\..\Google.Ads.GoogleAds.Core\src\Google.Ads.GoogleAds.Core.csproj')" Include="Google.Ads.GoogleAds.Core" Version="3.1.0" />
48+
<PackageReference Condition="!Exists('..\..\Google.Ads.GoogleAds.Core\src\Google.Ads.GoogleAds.Core.csproj')" Include="Google.Ads.GoogleAds.Core" Version="3.2.0" />
4949
<ProjectReference Condition="Exists('..\..\Google.Ads.GoogleAds.Core\src\Google.Ads.GoogleAds.Core.csproj')" Include="..\..\Google.Ads.GoogleAds.Core\src\Google.Ads.GoogleAds.Core.csproj" />
50-
<PackageReference Condition="!Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="Google.Ads.Gax" Version="3.1.0" />
50+
<PackageReference Condition="!Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="Google.Ads.Gax" Version="3.2.0" />
5151
<ProjectReference Condition="Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj" />
5252
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
5353
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />

Google.Ads.GoogleAds.Extensions/tests/Google.Ads.GoogleAds.Extensions.Tests.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<AssemblyOriginatorKeyFile>..\..\GoogleAds.snk</AssemblyOriginatorKeyFile>
1414
</PropertyGroup>
1515
<ItemGroup>
16-
<PackageReference Include="Google.Apis.Auth" Version="1.57.0" />
1716
<PackageReference Include="JunitXml.TestLogger" Version="3.0.114" />
1817
<PackageReference Include="Moq" Version="4.18.2" />
1918
<PackageReference Include="NUnit" Version="3.13.3" />

Google.Ads.GoogleAds/examples/AccountManagement/CreateCustomer.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
using CommandLine;
1616
using Google.Ads.Gax.Examples;
1717
using Google.Ads.GoogleAds.Lib;
18-
using Google.Ads.GoogleAds.V15.Errors;
19-
using Google.Ads.GoogleAds.V15.Resources;
20-
using Google.Ads.GoogleAds.V15.Services;
18+
using Google.Ads.GoogleAds.V16.Errors;
19+
using Google.Ads.GoogleAds.V16.Resources;
20+
using Google.Ads.GoogleAds.V16.Services;
2121
using System;
2222
using System.Collections.Generic;
2323

24-
namespace Google.Ads.GoogleAds.Examples.V15
24+
namespace Google.Ads.GoogleAds.Examples.V16
2525
{
2626
/// <summary>
2727
/// This code example illustrates how to create a new customer under a given manager account.
@@ -76,7 +76,7 @@ public static void Main(string[] args)
7676
public void Run(GoogleAdsClient client, long managerCustomerId)
7777
{
7878
// Get the CustomerService.
79-
CustomerServiceClient customerService = client.GetService(Services.V15.CustomerService);
79+
CustomerServiceClient customerService = client.GetService(Services.V16.CustomerService);
8080

8181
Customer customer = new Customer()
8282
{

Google.Ads.GoogleAds/examples/AccountManagement/GetAccountHierarchy.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
using CommandLine;
1616
using Google.Ads.Gax.Examples;
1717
using Google.Ads.GoogleAds.Lib;
18-
using Google.Ads.GoogleAds.V15.Resources;
19-
using Google.Ads.GoogleAds.V15.Services;
18+
using Google.Ads.GoogleAds.V16.Resources;
19+
using Google.Ads.GoogleAds.V16.Services;
2020
using Google.Api.Gax;
2121
using System;
2222
using System.Collections.Generic;
2323

24-
namespace Google.Ads.GoogleAds.Examples.V15
24+
namespace Google.Ads.GoogleAds.Examples.V16
2525
{
2626
/// <summary>
2727
/// This example gets the account hierarchy of the specified manager account. If you don't
@@ -99,10 +99,10 @@ public void Run(GoogleAdsClient googleAdsClient, long? managerCustomerId = null,
9999
}
100100

101101
GoogleAdsServiceClient googleAdsServiceClient =
102-
googleAdsClient.GetService(Services.V15.GoogleAdsService);
102+
googleAdsClient.GetService(Services.V16.GoogleAdsService);
103103

104104
CustomerServiceClient customerServiceClient =
105-
googleAdsClient.GetService(Services.V15.CustomerService);
105+
googleAdsClient.GetService(Services.V16.CustomerService);
106106

107107
// List of Customer IDs to handle.
108108
List<long> seedCustomerIds = new List<long>();

Google.Ads.GoogleAds/examples/AccountManagement/GetChangeDetails.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
using Google.Ads.Gax.Examples;
1717
using Google.Ads.Gax.Util;
1818
using Google.Ads.GoogleAds.Lib;
19-
using Google.Ads.GoogleAds.V15.Errors;
20-
using Google.Ads.GoogleAds.V15.Resources;
21-
using Google.Ads.GoogleAds.V15.Services;
19+
using Google.Ads.GoogleAds.V16.Errors;
20+
using Google.Ads.GoogleAds.V16.Resources;
21+
using Google.Ads.GoogleAds.V16.Services;
2222
using Google.Protobuf;
2323
using System;
2424
using System.Collections.Generic;
25-
using static Google.Ads.GoogleAds.V15.Enums.ChangeEventResourceTypeEnum.Types;
26-
using static Google.Ads.GoogleAds.V15.Enums.ResourceChangeOperationEnum.Types;
27-
using static Google.Ads.GoogleAds.V15.Resources.ChangeEvent.Types;
25+
using static Google.Ads.GoogleAds.V16.Enums.ChangeEventResourceTypeEnum.Types;
26+
using static Google.Ads.GoogleAds.V16.Enums.ResourceChangeOperationEnum.Types;
27+
using static Google.Ads.GoogleAds.V16.Resources.ChangeEvent.Types;
2828

29-
namespace Google.Ads.GoogleAds.Examples.V15
29+
namespace Google.Ads.GoogleAds.Examples.V16
3030
{
3131
/// <summary>
3232
/// This code example gets the changes in an account during the last 25 days.
@@ -76,7 +76,7 @@ public void Run(GoogleAdsClient client, long customerId)
7676
{
7777
// Get the GoogleAdsService.
7878
GoogleAdsServiceClient googleAdsService = client.GetService(
79-
Services.V15.GoogleAdsService);
79+
Services.V16.GoogleAdsService);
8080

8181
// Construct a query to find details for recent changes in your account.
8282
// The LIMIT clause is required for the change_event resource.

Google.Ads.GoogleAds/examples/AccountManagement/GetChangeSummary.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
using CommandLine;
1616
using Google.Ads.Gax.Examples;
1717
using Google.Ads.GoogleAds.Lib;
18-
using Google.Ads.GoogleAds.V15.Errors;
19-
using Google.Ads.GoogleAds.V15.Services;
18+
using Google.Ads.GoogleAds.V16.Errors;
19+
using Google.Ads.GoogleAds.V16.Services;
2020
using Google.Api.Gax;
2121
using System;
2222
using System.Collections.Generic;
23-
using static Google.Ads.GoogleAds.V15.Enums.ChangeStatusResourceTypeEnum.Types;
23+
using static Google.Ads.GoogleAds.V16.Enums.ChangeStatusResourceTypeEnum.Types;
2424

25-
namespace Google.Ads.GoogleAds.Examples.V15
25+
namespace Google.Ads.GoogleAds.Examples.V16
2626
{
2727
/// <summary>
2828
/// This code example gets a list of which resources have been changed in your account
@@ -78,7 +78,7 @@ public void Run(GoogleAdsClient client, long customerId)
7878
{
7979
// Get the GoogleAdsService.
8080
GoogleAdsServiceClient googleAdsService = client.GetService(
81-
Services.V15.GoogleAdsService);
81+
Services.V16.GoogleAdsService);
8282

8383
string searchQuery = @"
8484
SELECT

Google.Ads.GoogleAds/examples/AccountManagement/InviteUserWithAccessRole.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
using CommandLine;
1616
using Google.Ads.Gax.Examples;
1717
using Google.Ads.GoogleAds.Lib;
18-
using Google.Ads.GoogleAds.V15.Errors;
19-
using Google.Ads.GoogleAds.V15.Resources;
20-
using Google.Ads.GoogleAds.V15.Services;
18+
using Google.Ads.GoogleAds.V16.Errors;
19+
using Google.Ads.GoogleAds.V16.Resources;
20+
using Google.Ads.GoogleAds.V16.Services;
2121
using System;
2222
using System.Collections.Generic;
23-
using static Google.Ads.GoogleAds.V15.Enums.AccessRoleEnum.Types;
23+
using static Google.Ads.GoogleAds.V16.Enums.AccessRoleEnum.Types;
2424

25-
namespace Google.Ads.GoogleAds.Examples.V15
25+
namespace Google.Ads.GoogleAds.Examples.V16
2626
{
2727
/// <summary>
2828
/// This code example sends an invitation email to a user to manage a customer
@@ -92,7 +92,7 @@ public void Run(GoogleAdsClient client, long customerId, string emailAddress,
9292
{
9393
// Get the CustomerUserAccessInvitationService.
9494
CustomerUserAccessInvitationServiceClient service = client.GetService(
95-
Services.V15.CustomerUserAccessInvitationService);
95+
Services.V16.CustomerUserAccessInvitationService);
9696

9797
// [START invite_user_with_access_role]
9898
MutateCustomerUserAccessInvitationRequest invitationRequest =

Google.Ads.GoogleAds/examples/AccountManagement/LinkManagerToClient.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
using Google.Ads.Gax.Examples;
1717
using Google.Ads.Gax.Util;
1818
using Google.Ads.GoogleAds.Lib;
19-
using Google.Ads.GoogleAds.V15.Errors;
20-
using Google.Ads.GoogleAds.V15.Resources;
21-
using Google.Ads.GoogleAds.V15.Services;
19+
using Google.Ads.GoogleAds.V16.Errors;
20+
using Google.Ads.GoogleAds.V16.Resources;
21+
using Google.Ads.GoogleAds.V16.Services;
2222
using System;
2323
using System.Collections.Generic;
2424
using System.Linq;
25-
using static Google.Ads.GoogleAds.V15.Enums.ManagerLinkStatusEnum.Types;
25+
using static Google.Ads.GoogleAds.V16.Enums.ManagerLinkStatusEnum.Types;
2626

27-
namespace Google.Ads.GoogleAds.Examples.V15
27+
namespace Google.Ads.GoogleAds.Examples.V16
2828
{
2929
/// <summary>
3030
/// This code example demonstrates how to link an existing Google Ads manager customer
@@ -124,7 +124,7 @@ private string CreateInvitation(GoogleAdsClient client, long managerCustomerId,
124124
{
125125
// Get the CustomerClientLinkService.
126126
CustomerClientLinkServiceClient customerClientLinkService =
127-
client.GetService(Services.V15.CustomerClientLinkService);
127+
client.GetService(Services.V16.CustomerClientLinkService);
128128

129129
// Create a client with the manager customer ID as login customer ID.
130130
client.Config.LoginCustomerId = managerCustomerId.ToString();
@@ -175,7 +175,7 @@ private string GetManagerLinkResourceName(GoogleAdsClient client, long managerCu
175175
{
176176
// Get the GoogleAdsService.
177177
GoogleAdsServiceClient googleAdsService =
178-
client.GetService(Services.V15.GoogleAdsService);
178+
client.GetService(Services.V16.GoogleAdsService);
179179

180180
// Create a client with the manager customer ID as login customer ID.
181181
client.Config.LoginCustomerId = managerCustomerId.ToString();
@@ -211,7 +211,7 @@ private void AcceptInvitation(GoogleAdsClient client, long clientCustomerId,
211211
{
212212
// Get the CustomerManagerLinkService.
213213
CustomerManagerLinkServiceClient customerManagerLinkService =
214-
client.GetService(Services.V15.CustomerManagerLinkService);
214+
client.GetService(Services.V16.CustomerManagerLinkService);
215215

216216
// Create a client with the client customer ID as login customer ID.
217217
client.Config.LoginCustomerId = clientCustomerId.ToString();

Google.Ads.GoogleAds/examples/AccountManagement/ListAccessibleCustomers.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
using CommandLine;
1616
using Google.Ads.Gax.Examples;
1717
using Google.Ads.GoogleAds.Lib;
18-
using Google.Ads.GoogleAds.V15.Errors;
19-
using Google.Ads.GoogleAds.V15.Services;
18+
using Google.Ads.GoogleAds.V16.Errors;
19+
using Google.Ads.GoogleAds.V16.Services;
2020
using System;
2121
using System.Collections.Generic;
2222

23-
namespace Google.Ads.GoogleAds.Examples.V15
23+
namespace Google.Ads.GoogleAds.Examples.V16
2424
{
2525
/// <summary>
2626
/// This code example lists the resource names for the customers that the authenticating user
@@ -70,7 +70,7 @@ public static void Main(string[] args)
7070
public void Run(GoogleAdsClient client)
7171
{
7272
// Get the CustomerService.
73-
CustomerServiceClient customerService = client.GetService(Services.V15.CustomerService);
73+
CustomerServiceClient customerService = client.GetService(Services.V16.CustomerService);
7474

7575
try
7676
{

Google.Ads.GoogleAds/examples/AccountManagement/RejectMerchantCenterLink.cs

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
using Google.Ads.GoogleAds.V14.Resources;
2020
using Google.Ads.GoogleAds.V14.Services;
2121
using System;
22-
using System.Collections.Generic;
2322

2423
namespace Google.Ads.GoogleAds.Examples.V14
2524
{

Google.Ads.GoogleAds/examples/AccountManagement/UpdateUserAccess.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
using Google.Ads.Gax.Examples;
1717
using Google.Ads.Gax.Util;
1818
using Google.Ads.GoogleAds.Lib;
19-
using Google.Ads.GoogleAds.V15.Errors;
20-
using Google.Ads.GoogleAds.V15.Resources;
21-
using Google.Ads.GoogleAds.V15.Services;
19+
using Google.Ads.GoogleAds.V16.Errors;
20+
using Google.Ads.GoogleAds.V16.Resources;
21+
using Google.Ads.GoogleAds.V16.Services;
2222
using Google.Api.Gax;
2323
using System;
2424
using System.Collections.Generic;
2525
using System.Linq;
26-
using static Google.Ads.GoogleAds.V15.Enums.AccessRoleEnum.Types;
26+
using static Google.Ads.GoogleAds.V16.Enums.AccessRoleEnum.Types;
2727

28-
namespace Google.Ads.GoogleAds.Examples.V15
28+
namespace Google.Ads.GoogleAds.Examples.V16
2929
{
3030
/// <summary>
3131
/// This code example updates the access role of a user, given the email address.
@@ -131,7 +131,7 @@ public void Run(GoogleAdsClient client, long customerId, string emailAddress,
131131
{
132132
// Get the GoogleAdsService.
133133
GoogleAdsServiceClient googleAdsService = client.GetService(
134-
Services.V15.GoogleAdsService);
134+
Services.V16.GoogleAdsService);
135135

136136
// Create the search query. Use the LIKE query for filtering to ignore the text case
137137
// for email address when searching for a match.
@@ -175,7 +175,7 @@ private void ModifyUserAccess(GoogleAdsClient client, long customerId, long user
175175
{
176176
// Get the CustomerUserAccessService.
177177
CustomerUserAccessServiceClient userAccessService = client.GetService(
178-
Services.V15.CustomerUserAccessService);
178+
Services.V16.CustomerUserAccessService);
179179

180180
// Creates the modified user access.
181181
CustomerUserAccess userAccess = new CustomerUserAccess()

0 commit comments

Comments
 (0)