Skip to content

Commit

Permalink
Merge pull request #553 from googleads/release-v16_0-a9b085a972af2e4d…
Browse files Browse the repository at this point in the history
…6b1b

Changes for release v16_0.
  • Loading branch information
Raibaz authored Feb 22, 2024
2 parents 59e2dc8 + e210116 commit 210a2b9
Show file tree
Hide file tree
Showing 1,519 changed files with 799,745 additions and 3,726 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
18.1.0
======
- Added support for version 16.0 of the Google Ads API.
- Upgraded the Google.Api.Gax.Grpc dependency to 4.5.0 and the Google.Protobuf dependency to 3.25.0.
- Updated code examples:
* DetectAndApplyRecommendations
* AddResponsiveSearchAdFull
* AddCall
* AddHotelCallout
* AddLeadFormAsset
* AddPrices
* AddSitelinks
- Added the VerifyAdvertiserIdentity example.

18.0.0
======
- Removed support for version 13.0 of the Google Ads API.
Expand Down
10 changes: 5 additions & 5 deletions Google.Ads.Gax/src/Google.Ads.Gax.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Title>Google Ads GAPIC Extensions Dotnet Client Library</Title>
<PackageId>Google.Ads.Gax</PackageId>
<Version>3.1.0</Version>
<Version>3.2.0</Version>
<Description>This library provides functionality that makes it easier to work with Generated
API Client GAPIC client libraries for Google's Ads APIs.</Description>
<PackageReleaseNotes>https://github.com/googleads/google-ads-dotnet/blob/main/ChangeLog</PackageReleaseNotes>
Expand Down Expand Up @@ -31,8 +31,8 @@
<IncludeSource>true</IncludeSource>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AssemblyVersion>3.1.0</AssemblyVersion>
<FileVersion>3.1.0</FileVersion>
<AssemblyVersion>3.2.0</AssemblyVersion>
<FileVersion>3.2.0</FileVersion>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
Expand All @@ -42,10 +42,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="Google.Api.Gax.Grpc" Version="4.2.0" />
<PackageReference Include="Google.Api.Gax.Grpc" Version="4.5.0" />
<PackageReference Include="Google.Api.Gax.Grpc.GrpcCore" Version="3.7.0" />
<PackageReference Include="Google.LongRunning" Version="3.0.0" />
<PackageReference Include="Google.Protobuf" Version="3.21.5" />
<PackageReference Include="Google.Protobuf" Version="3.25.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
<PrivateAssets>all</PrivateAssets>
Expand Down
1 change: 0 additions & 1 deletion Google.Ads.Gax/tests/Google.Ads.Gax.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<None Remove="TestUtilities\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Google.Apis.Auth" Version="1.57.0" />
<PackageReference Include="JunitXml.TestLogger" Version="3.0.114" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="NUnit" Version="3.13.3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Title>Google Ads API Core Dotnet Client Library</Title>
<PackageId>Google.Ads.GoogleAds.Core</PackageId>
<Version>3.1.0</Version>
<Version>3.2.0</Version>
<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>
<PackageReleaseNotes>https://github.com/googleads/google-ads-dotnet/blob/master/ChangeLog</PackageReleaseNotes>
<PackageTags>GoogleAds Google</PackageTags>
Expand All @@ -30,8 +30,8 @@
<IncludeSource>true</IncludeSource>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AssemblyVersion>3.1.0</AssemblyVersion>
<FileVersion>3.1.0</FileVersion>
<AssemblyVersion>3.2.0</AssemblyVersion>
<FileVersion>3.2.0</FileVersion>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
Expand All @@ -40,7 +40,7 @@
<None Include="..\..\logo.png" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Condition="!Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="Google.Ads.Gax" Version="3.1.0" />
<PackageReference Condition="!Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="Google.Ads.Gax" Version="3.2.0" />
<ProjectReference Condition="Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<AssemblyOriginatorKeyFile>..\..\GoogleAds.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Google.Apis.Auth" Version="1.57.0" />
<PackageReference Include="JunitXml.TestLogger" Version="3.0.114" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="NUnit" Version="3.13.3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
<None Include="..\..\logo.png" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Condition="!Exists('..\..\Google.Ads.GoogleAds.Core\src\Google.Ads.GoogleAds.Core.csproj')" Include="Google.Ads.GoogleAds.Core" Version="3.1.0" />
<PackageReference Condition="!Exists('..\..\Google.Ads.GoogleAds.Core\src\Google.Ads.GoogleAds.Core.csproj')" Include="Google.Ads.GoogleAds.Core" Version="3.2.0" />
<ProjectReference Condition="Exists('..\..\Google.Ads.GoogleAds.Core\src\Google.Ads.GoogleAds.Core.csproj')" Include="..\..\Google.Ads.GoogleAds.Core\src\Google.Ads.GoogleAds.Core.csproj" />
<PackageReference Condition="!Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="Google.Ads.Gax" Version="3.1.0" />
<PackageReference Condition="!Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="Google.Ads.Gax" Version="3.2.0" />
<ProjectReference Condition="Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<AssemblyOriginatorKeyFile>..\..\GoogleAds.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Google.Apis.Auth" Version="1.57.0" />
<PackageReference Include="JunitXml.TestLogger" Version="3.0.114" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="NUnit" Version="3.13.3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
using CommandLine;
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V15.Errors;
using Google.Ads.GoogleAds.V15.Resources;
using Google.Ads.GoogleAds.V15.Services;
using Google.Ads.GoogleAds.V16.Errors;
using Google.Ads.GoogleAds.V16.Resources;
using Google.Ads.GoogleAds.V16.Services;
using System;
using System.Collections.Generic;

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

Customer customer = new Customer()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
using CommandLine;
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V15.Resources;
using Google.Ads.GoogleAds.V15.Services;
using Google.Ads.GoogleAds.V16.Resources;
using Google.Ads.GoogleAds.V16.Services;
using Google.Api.Gax;
using System;
using System.Collections.Generic;

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

GoogleAdsServiceClient googleAdsServiceClient =
googleAdsClient.GetService(Services.V15.GoogleAdsService);
googleAdsClient.GetService(Services.V16.GoogleAdsService);

CustomerServiceClient customerServiceClient =
googleAdsClient.GetService(Services.V15.CustomerService);
googleAdsClient.GetService(Services.V16.CustomerService);

// List of Customer IDs to handle.
List<long> seedCustomerIds = new List<long>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
using Google.Ads.Gax.Examples;
using Google.Ads.Gax.Util;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V15.Errors;
using Google.Ads.GoogleAds.V15.Resources;
using Google.Ads.GoogleAds.V15.Services;
using Google.Ads.GoogleAds.V16.Errors;
using Google.Ads.GoogleAds.V16.Resources;
using Google.Ads.GoogleAds.V16.Services;
using Google.Protobuf;
using System;
using System.Collections.Generic;
using static Google.Ads.GoogleAds.V15.Enums.ChangeEventResourceTypeEnum.Types;
using static Google.Ads.GoogleAds.V15.Enums.ResourceChangeOperationEnum.Types;
using static Google.Ads.GoogleAds.V15.Resources.ChangeEvent.Types;
using static Google.Ads.GoogleAds.V16.Enums.ChangeEventResourceTypeEnum.Types;
using static Google.Ads.GoogleAds.V16.Enums.ResourceChangeOperationEnum.Types;
using static Google.Ads.GoogleAds.V16.Resources.ChangeEvent.Types;

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

// Construct a query to find details for recent changes in your account.
// The LIMIT clause is required for the change_event resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
using CommandLine;
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V15.Errors;
using Google.Ads.GoogleAds.V15.Services;
using Google.Ads.GoogleAds.V16.Errors;
using Google.Ads.GoogleAds.V16.Services;
using Google.Api.Gax;
using System;
using System.Collections.Generic;
using static Google.Ads.GoogleAds.V15.Enums.ChangeStatusResourceTypeEnum.Types;
using static Google.Ads.GoogleAds.V16.Enums.ChangeStatusResourceTypeEnum.Types;

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

string searchQuery = @"
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
using CommandLine;
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V15.Errors;
using Google.Ads.GoogleAds.V15.Resources;
using Google.Ads.GoogleAds.V15.Services;
using Google.Ads.GoogleAds.V16.Errors;
using Google.Ads.GoogleAds.V16.Resources;
using Google.Ads.GoogleAds.V16.Services;
using System;
using System.Collections.Generic;
using static Google.Ads.GoogleAds.V15.Enums.AccessRoleEnum.Types;
using static Google.Ads.GoogleAds.V16.Enums.AccessRoleEnum.Types;

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

// [START invite_user_with_access_role]
MutateCustomerUserAccessInvitationRequest invitationRequest =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
using Google.Ads.Gax.Examples;
using Google.Ads.Gax.Util;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V15.Errors;
using Google.Ads.GoogleAds.V15.Resources;
using Google.Ads.GoogleAds.V15.Services;
using Google.Ads.GoogleAds.V16.Errors;
using Google.Ads.GoogleAds.V16.Resources;
using Google.Ads.GoogleAds.V16.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using static Google.Ads.GoogleAds.V15.Enums.ManagerLinkStatusEnum.Types;
using static Google.Ads.GoogleAds.V16.Enums.ManagerLinkStatusEnum.Types;

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

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

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

// Create a client with the client customer ID as login customer ID.
client.Config.LoginCustomerId = clientCustomerId.ToString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
using CommandLine;
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V15.Errors;
using Google.Ads.GoogleAds.V15.Services;
using Google.Ads.GoogleAds.V16.Errors;
using Google.Ads.GoogleAds.V16.Services;
using System;
using System.Collections.Generic;

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

try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using System;
using System.Collections.Generic;

namespace Google.Ads.GoogleAds.Examples.V14
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
using Google.Ads.Gax.Examples;
using Google.Ads.Gax.Util;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V15.Errors;
using Google.Ads.GoogleAds.V15.Resources;
using Google.Ads.GoogleAds.V15.Services;
using Google.Ads.GoogleAds.V16.Errors;
using Google.Ads.GoogleAds.V16.Resources;
using Google.Ads.GoogleAds.V16.Services;
using Google.Api.Gax;
using System;
using System.Collections.Generic;
using System.Linq;
using static Google.Ads.GoogleAds.V15.Enums.AccessRoleEnum.Types;
using static Google.Ads.GoogleAds.V16.Enums.AccessRoleEnum.Types;

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

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

// Creates the modified user access.
CustomerUserAccess userAccess = new CustomerUserAccess()
Expand Down
Loading

0 comments on commit 210a2b9

Please sign in to comment.