Skip to content

Commit

Permalink
Changes for release 17.0.0. (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnashOommen authored Aug 10, 2023
1 parent c564e4e commit 7e88307
Show file tree
Hide file tree
Showing 1,445 changed files with 8,610 additions and 724,337 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
17.0.0
======
- Added support for version v14.1 of the Google Ads API.
- Removed support for v12 of the Google Ads API.
- Moved the ResourceNames utility to the Google.Ads.GoogleAds.V14.Resources namespace.

16.1.0
======
- Added support for version 14.0 of the Google Ads API.
Expand Down
1 change: 1 addition & 0 deletions Google.Ads.GoogleAds/examples/BasicOperations/RemoveAd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using System;
using System.Collections.Generic;
Expand Down
1 change: 1 addition & 0 deletions Google.Ads.GoogleAds/examples/Feeds/RemoveFeedItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</ItemGroup>
<ItemGroup>
<!-- Include local projects over nuget dependencies if available -->
<PackageReference Condition="!Exists('..\src\Google.Ads.GoogleAds.csproj')" Include="Google.Ads.GoogleAds" Version="16.1.0" />
<PackageReference Condition="!Exists('..\src\Google.Ads.GoogleAds.csproj')" Include="Google.Ads.GoogleAds" Version="17.0.0" />
<ProjectReference Condition="Exists('..\src\Google.Ads.GoogleAds.csproj')" Include="..\src\Google.Ads.GoogleAds.csproj" />
<PackageReference Condition="!Exists('..\..\Google.Ads.GoogleAds.Extensions\src\Google.Ads.GoogleAds.Extensions.csproj')" Include="Google.Ads.GoogleAds.Extensions" Version="1.0.1" />
<ProjectReference Condition="Exists('..\..\Google.Ads.GoogleAds.Extensions\src\Google.Ads.GoogleAds.Extensions.csproj')" Include="..\..\Google.Ads.GoogleAds.Extensions\src\Google.Ads.GoogleAds.Extensions.csproj" />
Expand Down
6 changes: 3 additions & 3 deletions Google.Ads.GoogleAds/examples/Misc/CampaignReportToCsv.cs
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.V13.Services;
using Google.Ads.GoogleAds.V14.Services;
using Google.Api.Ads.Common.Util;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

namespace Google.Ads.GoogleAds.Examples.V13
namespace Google.Ads.GoogleAds.Examples.V14
{
/// <summary>
/// This code example illustrates how to use Google Ads API to get metrics about a campaign and
Expand Down Expand Up @@ -83,7 +83,7 @@ public static void Main(string[] args)
public void Run(GoogleAdsClient client, long customerId, string outputFilePath)
{
GoogleAdsServiceClient googleAdsServiceClient =
client.GetService(Services.V13.GoogleAdsService);
client.GetService(Services.V14.GoogleAdsService);

// Create a query that retrieves campaigns.
string query = @"
Expand Down
12 changes: 6 additions & 6 deletions Google.Ads.GoogleAds/examples/Misc/GetAllImageAssets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
using CommandLine;
using Google.Ads.Gax.Examples;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.V13.Common;
using Google.Ads.GoogleAds.V13.Errors;
using Google.Ads.GoogleAds.V13.Resources;
using Google.Ads.GoogleAds.V13.Services;
using Google.Ads.GoogleAds.V14.Common;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using Google.Api.Gax;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Google.Ads.GoogleAds.Examples.V13
namespace Google.Ads.GoogleAds.Examples.V14
{
/// <summary>
/// This code example gets all image assets.
Expand Down Expand Up @@ -72,7 +72,7 @@ public void Run(GoogleAdsClient client, long customerId)
{
// Get the GoogleAdsServiceClient.
GoogleAdsServiceClient googleAdsService =
client.GetService(Services.V13.GoogleAdsService);
client.GetService(Services.V14.GoogleAdsService);

// Creates the search query.
string searchQuery = "SELECT asset.name, asset.image_asset.file_size, " +
Expand Down
10 changes: 5 additions & 5 deletions Google.Ads.GoogleAds/examples/Misc/GetAllVideosAndImages.cs
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.V13.Errors;
using Google.Ads.GoogleAds.V13.Resources;
using Google.Ads.GoogleAds.V13.Services;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using System;
using System.Collections.Generic;

namespace Google.Ads.GoogleAds.Examples.V13
namespace Google.Ads.GoogleAds.Examples.V14
{
/// <summary>
/// This code example gets all video and image files.
Expand Down Expand Up @@ -68,7 +68,7 @@ public void Run(GoogleAdsClient client, long customerId)
{
// Get the GoogleAdsServiceClient.
GoogleAdsServiceClient googleAdsService =
client.GetService(Services.V13.GoogleAdsService);
client.GetService(Services.V14.GoogleAdsService);

// Creates a request that will retrieve all video and image files.
SearchGoogleAdsRequest request = new SearchGoogleAdsRequest()
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.V13.Errors;
using Google.Ads.GoogleAds.V13.Resources;
using Google.Ads.GoogleAds.V13.Services;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Google.Ads.GoogleAds.Examples.V13
namespace Google.Ads.GoogleAds.Examples.V14
{
/// <summary>
/// GoogleAdsService.Search results are paginated but they can only be retrieved in sequence
Expand Down Expand Up @@ -96,7 +96,7 @@ public void Run(GoogleAdsClient client, long customerId)
{
// Get the GoogleAdsServiceClient.
GoogleAdsServiceClient googleAdsService =
client.GetService(Services.V13.GoogleAdsService);
client.GetService(Services.V14.GoogleAdsService);

// The cache of page tokens. The first page's token is always an empty string.
Dictionary<int, string> pageTokens = new Dictionary<int, string>();
Expand Down
10 changes: 5 additions & 5 deletions Google.Ads.GoogleAds/examples/Misc/SetCustomClientTimeouts.cs
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.V13.Errors;
using Google.Ads.GoogleAds.V13.Services;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Services;
using Google.Api.Gax;
using Google.Api.Gax.Grpc;
using Grpc.Core;
using System;
using System.IO;

namespace Google.Ads.GoogleAds.Examples.V13
namespace Google.Ads.GoogleAds.Examples.V14
{
/// <summary>
/// This code example illustrates the use of custom client timeouts in the context
Expand Down Expand Up @@ -118,7 +118,7 @@ private void MakeServerStreamingCall(GoogleAdsClient client, long customerId)
{
// Get the GoogleAdsService.
GoogleAdsServiceClient googleAdsService = client.GetService(
Services.V13.GoogleAdsService);
Services.V14.GoogleAdsService);

string query = "SELECT campaign.id FROM campaign";
SearchGoogleAdsStreamRequest request = new SearchGoogleAdsStreamRequest()
Expand Down Expand Up @@ -180,7 +180,7 @@ private void MakeUnaryCall(GoogleAdsClient client, long customerId)
{
// Get the GoogleAdsService.
GoogleAdsServiceClient googleAdsService = client.GetService(
Services.V13.GoogleAdsService);
Services.V14.GoogleAdsService);

string query = "SELECT campaign.id FROM campaign";
SearchGoogleAdsRequest request = new SearchGoogleAdsRequest()
Expand Down
12 changes: 6 additions & 6 deletions Google.Ads.GoogleAds/examples/Misc/UploadImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
using Google.Ads.Gax.Util;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.Util;
using Google.Ads.GoogleAds.V13.Errors;
using Google.Ads.GoogleAds.V13.Resources;
using Google.Ads.GoogleAds.V13.Services;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using Google.Protobuf;
using System;
using System.Collections.Generic;
using static Google.Ads.GoogleAds.V13.Enums.MediaTypeEnum.Types;
using static Google.Ads.GoogleAds.V14.Enums.MediaTypeEnum.Types;

namespace Google.Ads.GoogleAds.Examples.V13
namespace Google.Ads.GoogleAds.Examples.V14
{
/// <summary>
/// This code example uploads an image.
Expand Down Expand Up @@ -72,7 +72,7 @@ public void Run(GoogleAdsClient client, long customerId)
{
// Get the MediaFileServiceClient.
MediaFileServiceClient mediaFileService =
client.GetService(Services.V13.MediaFileService);
client.GetService(Services.V14.MediaFileService);

const string URL = "https://gaagl.page.link/Eit5";

Expand Down
16 changes: 8 additions & 8 deletions Google.Ads.GoogleAds/examples/Misc/UploadImageAsset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
using Google.Ads.Gax.Util;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.Util;
using Google.Ads.GoogleAds.V13.Common;
using Google.Ads.GoogleAds.V13.Errors;
using Google.Ads.GoogleAds.V13.Resources;
using Google.Ads.GoogleAds.V13.Services;
using Google.Ads.GoogleAds.V14.Common;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.Linq;
using static Google.Ads.GoogleAds.V13.Enums.AssetTypeEnum.Types;
using static Google.Ads.GoogleAds.V13.Enums.MimeTypeEnum.Types;
using static Google.Ads.GoogleAds.V14.Enums.AssetTypeEnum.Types;
using static Google.Ads.GoogleAds.V14.Enums.MimeTypeEnum.Types;

namespace Google.Ads.GoogleAds.Examples.V13
namespace Google.Ads.GoogleAds.Examples.V14
{
/// <summary>
/// This code example uploads an image asset. To get image assets, run GetAllImageAssets.cs.
Expand Down Expand Up @@ -83,7 +83,7 @@ public void Run(GoogleAdsClient client, long customerId)
{
// Get the AssetServiceClient.
AssetServiceClient assetService =
client.GetService(Services.V13.AssetService);
client.GetService(Services.V14.AssetService);

// Creates an image content.
byte[] imageContent = MediaUtilities.GetAssetDataFromUrl(IMAGE_URL, client.Config);
Expand Down
12 changes: 6 additions & 6 deletions Google.Ads.GoogleAds/examples/Misc/UploadMediaBundle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
using Google.Ads.Gax.Util;
using Google.Ads.GoogleAds.Lib;
using Google.Ads.GoogleAds.Util;
using Google.Ads.GoogleAds.V13.Errors;
using Google.Ads.GoogleAds.V13.Resources;
using Google.Ads.GoogleAds.V13.Services;
using Google.Ads.GoogleAds.V14.Errors;
using Google.Ads.GoogleAds.V14.Resources;
using Google.Ads.GoogleAds.V14.Services;
using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.Linq;
using static Google.Ads.GoogleAds.V13.Enums.MediaTypeEnum.Types;
using static Google.Ads.GoogleAds.V14.Enums.MediaTypeEnum.Types;

namespace Google.Ads.GoogleAds.Examples.V13
namespace Google.Ads.GoogleAds.Examples.V14
{
/// <summary>
/// This code example uploads an HTML5 zip file as a media bundle.
Expand Down Expand Up @@ -79,7 +79,7 @@ public void Run(GoogleAdsClient client, long customerId)
{
// Get the MediaFileServiceClient.
MediaFileServiceClient mediaFileService = client.GetService(
Services.V13.MediaFileService);
Services.V14.MediaFileService);

// Creates an HTML5 zip file media bundle content.
byte[] bundleContent = MediaUtilities.GetAssetDataFromUrl(BUNDLE_URL, client.Config);
Expand Down
Loading

0 comments on commit 7e88307

Please sign in to comment.