Skip to content

Commit

Permalink
Merge pull request #578 from googleads/release-V21.1.0-8844fc83b51dcf…
Browse files Browse the repository at this point in the history
…2ab468

Changes for release V21.1.0.
  • Loading branch information
Raibaz authored Oct 17, 2024
2 parents f6c97c6 + 6cdc033 commit 7a7553c
Show file tree
Hide file tree
Showing 1,553 changed files with 842,979 additions and 921 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
21.1.0
======
- Added support for version 18.0 of the Google Ads API.
- Updated the `GetAllDisapprovedAds` example to use the `SearchSettings` object.
- Added support for adding a `GoogleAdsClient` to a DI container, see [#573](https://github.com/googleads/google-ads-dotnet/pull/573)

21.0.0
======
- Added support for version 17.1 of the Google Ads API.
- Removed support for version 15 of the Google Ads API.

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>4.0.1</Version>
<Version>4.0.2</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>4.0.1</AssemblyVersion>
<FileVersion>4.0.1</FileVersion>
<AssemblyVersion>4.0.2</AssemblyVersion>
<FileVersion>4.0.2</FileVersion>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Title>Google Ads API Dotnet Client Library Extensions</Title>
<PackageId>Google.Ads.GoogleAds.Extensions</PackageId>
<Version>2.0.0</Version>
<Version>2.0.1</Version>
<Description>This library provides you with extensions for the Google Ads API client library. The Google Ads API is the modern programmatic interface to Google Ads. 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 Down Expand Up @@ -31,8 +31,8 @@
<IncludeSource>true</IncludeSource>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<AssemblyVersion>2.0.1</AssemblyVersion>
<FileVersion>2.0.1</FileVersion>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
Expand All @@ -45,7 +45,7 @@
<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="4.0.0" />
<PackageReference Condition="!Exists('..\..\Google.Ads.GoogleAds.Core\src\Google.Ads.GoogleAds.Core.csproj')" Include="Google.Ads.GoogleAds.Core" Version="4.0.2" />
<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="4.0.0" />
<ProjectReference Condition="Exists('..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj')" Include="..\..\Google.Ads.Gax\src\Google.Ads.Gax.csproj" />
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.V17.Errors;
using Google.Ads.GoogleAds.V17.Resources;
using Google.Ads.GoogleAds.V17.Services;
using Google.Ads.GoogleAds.V18.Errors;
using Google.Ads.GoogleAds.V18.Resources;
using Google.Ads.GoogleAds.V18.Services;
using System;
using System.Collections.Generic;

namespace Google.Ads.GoogleAds.Examples.V17
namespace Google.Ads.GoogleAds.Examples.V18
{
/// <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.V17.CustomerService);
CustomerServiceClient customerService = client.GetService(Services.V18.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.V17.Resources;
using Google.Ads.GoogleAds.V17.Services;
using Google.Ads.GoogleAds.V18.Resources;
using Google.Ads.GoogleAds.V18.Services;
using Google.Api.Gax;
using System;
using System.Collections.Generic;

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

GoogleAdsServiceClient googleAdsServiceClient =
googleAdsClient.GetService(Services.V17.GoogleAdsService);
googleAdsClient.GetService(Services.V18.GoogleAdsService);

CustomerServiceClient customerServiceClient =
googleAdsClient.GetService(Services.V17.CustomerService);
googleAdsClient.GetService(Services.V18.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.V17.Errors;
using Google.Ads.GoogleAds.V17.Resources;
using Google.Ads.GoogleAds.V17.Services;
using Google.Ads.GoogleAds.V18.Errors;
using Google.Ads.GoogleAds.V18.Resources;
using Google.Ads.GoogleAds.V18.Services;
using Google.Protobuf;
using System;
using System.Collections.Generic;
using static Google.Ads.GoogleAds.V17.Enums.ChangeEventResourceTypeEnum.Types;
using static Google.Ads.GoogleAds.V17.Enums.ResourceChangeOperationEnum.Types;
using static Google.Ads.GoogleAds.V17.Resources.ChangeEvent.Types;
using static Google.Ads.GoogleAds.V18.Enums.ChangeEventResourceTypeEnum.Types;
using static Google.Ads.GoogleAds.V18.Enums.ResourceChangeOperationEnum.Types;
using static Google.Ads.GoogleAds.V18.Resources.ChangeEvent.Types;

namespace Google.Ads.GoogleAds.Examples.V17
namespace Google.Ads.GoogleAds.Examples.V18
{
/// <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.V17.GoogleAdsService);
Services.V18.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.V17.Errors;
using Google.Ads.GoogleAds.V17.Services;
using Google.Ads.GoogleAds.V18.Errors;
using Google.Ads.GoogleAds.V18.Services;
using Google.Api.Gax;
using System;
using System.Collections.Generic;
using static Google.Ads.GoogleAds.V17.Enums.ChangeStatusResourceTypeEnum.Types;
using static Google.Ads.GoogleAds.V18.Enums.ChangeStatusResourceTypeEnum.Types;

namespace Google.Ads.GoogleAds.Examples.V17
namespace Google.Ads.GoogleAds.Examples.V18
{
/// <summary>
/// This code example gets a list of which resources have been changed in your account
Expand Down Expand Up @@ -73,7 +73,7 @@ public void Run(GoogleAdsClient client, long customerId)
{
// Get the GoogleAdsService.
GoogleAdsServiceClient googleAdsService = client.GetService(
Services.V17.GoogleAdsService);
Services.V18.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.V17.Errors;
using Google.Ads.GoogleAds.V17.Resources;
using Google.Ads.GoogleAds.V17.Services;
using Google.Ads.GoogleAds.V18.Errors;
using Google.Ads.GoogleAds.V18.Resources;
using Google.Ads.GoogleAds.V18.Services;
using System;
using System.Collections.Generic;
using static Google.Ads.GoogleAds.V17.Enums.AccessRoleEnum.Types;
using static Google.Ads.GoogleAds.V18.Enums.AccessRoleEnum.Types;

namespace Google.Ads.GoogleAds.Examples.V17
namespace Google.Ads.GoogleAds.Examples.V18
{
/// <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.V17.CustomerUserAccessInvitationService);
Services.V18.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.V17.Errors;
using Google.Ads.GoogleAds.V17.Resources;
using Google.Ads.GoogleAds.V17.Services;
using Google.Ads.GoogleAds.V18.Errors;
using Google.Ads.GoogleAds.V18.Resources;
using Google.Ads.GoogleAds.V18.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using static Google.Ads.GoogleAds.V17.Enums.ManagerLinkStatusEnum.Types;
using static Google.Ads.GoogleAds.V18.Enums.ManagerLinkStatusEnum.Types;

namespace Google.Ads.GoogleAds.Examples.V17
namespace Google.Ads.GoogleAds.Examples.V18
{
/// <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.V17.CustomerClientLinkService);
client.GetService(Services.V18.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.V17.GoogleAdsService);
client.GetService(Services.V18.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.V17.CustomerManagerLinkService);
client.GetService(Services.V18.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.V17.Errors;
using Google.Ads.GoogleAds.V17.Services;
using Google.Ads.GoogleAds.V18.Errors;
using Google.Ads.GoogleAds.V18.Services;
using System;
using System.Collections.Generic;

namespace Google.Ads.GoogleAds.Examples.V17
namespace Google.Ads.GoogleAds.Examples.V18
{
/// <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.V17.CustomerService);
CustomerServiceClient customerService = client.GetService(Services.V18.CustomerService);

try
{
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.V17.Errors;
using Google.Ads.GoogleAds.V17.Resources;
using Google.Ads.GoogleAds.V17.Services;
using Google.Ads.GoogleAds.V18.Errors;
using Google.Ads.GoogleAds.V18.Resources;
using Google.Ads.GoogleAds.V18.Services;
using Google.Api.Gax;
using System;
using System.Collections.Generic;
using System.Linq;
using static Google.Ads.GoogleAds.V17.Enums.AccessRoleEnum.Types;
using static Google.Ads.GoogleAds.V18.Enums.AccessRoleEnum.Types;

namespace Google.Ads.GoogleAds.Examples.V17
namespace Google.Ads.GoogleAds.Examples.V18
{
/// <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.V17.GoogleAdsService);
Services.V18.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.V17.CustomerUserAccessService);
Services.V18.CustomerUserAccessService);

// Creates the modified user access.
CustomerUserAccess userAccess = new CustomerUserAccess()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
using CommandLine;
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V17.Errors;
using Google.Ads.GoogleAds.V17.Services;
using static Google.Ads.GoogleAds.V17.Enums.IdentityVerificationProgramEnum.Types;
using static Google.Ads.GoogleAds.V17.Enums.IdentityVerificationProgramStatusEnum.Types;
using Google.Ads.GoogleAds.V18.Errors;
using Google.Ads.GoogleAds.V18.Services;
using static Google.Ads.GoogleAds.V18.Enums.IdentityVerificationProgramEnum.Types;
using static Google.Ads.GoogleAds.V18.Enums.IdentityVerificationProgramStatusEnum.Types;
using System;
using Google.Ads.GoogleAds.Config;
using Google.Ads.GoogleAds.Extensions.Config;

namespace Google.Ads.GoogleAds.Examples.V17
namespace Google.Ads.GoogleAds.Examples.V18
{
/// <summary>
/// This code example illustrates how to retrieve the status of the advertiser identity
Expand Down Expand Up @@ -130,7 +130,7 @@ private static IdentityVerification GetIdentityVerification(
GoogleAdsClient client, long customerId)
{
IdentityVerificationServiceClient identityVerificationService =
client.GetService(Services.V17.IdentityVerificationService);
client.GetService(Services.V18.IdentityVerificationService);

try {
GetIdentityVerificationResponse response =
Expand Down Expand Up @@ -179,7 +179,7 @@ private static IdentityVerification GetIdentityVerification(
private static void StartIdentityVerification(GoogleAdsClient client, long customerId)
{
IdentityVerificationServiceClient identityVerificationService =
client.GetService(Services.V17.IdentityVerificationService);
client.GetService(Services.V18.IdentityVerificationService);

StartIdentityVerificationRequest request = new StartIdentityVerificationRequest()
{
Expand Down
Loading

0 comments on commit 7a7553c

Please sign in to comment.