|
16 | 16 | using Google.Ads.Gax.Examples;
|
17 | 17 | using Google.Ads.Gax.Util;
|
18 | 18 | 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; |
22 | 22 | using System;
|
23 | 23 | using System.Collections.Generic;
|
24 | 24 | using System.Linq;
|
25 |
| -using static Google.Ads.GoogleAds.V15.Enums.ManagerLinkStatusEnum.Types; |
| 25 | +using static Google.Ads.GoogleAds.V16.Enums.ManagerLinkStatusEnum.Types; |
26 | 26 |
|
27 |
| -namespace Google.Ads.GoogleAds.Examples.V15 |
| 27 | +namespace Google.Ads.GoogleAds.Examples.V16 |
28 | 28 | {
|
29 | 29 | /// <summary>
|
30 | 30 | /// This code example demonstrates how to link an existing Google Ads manager customer
|
@@ -124,7 +124,7 @@ private string CreateInvitation(GoogleAdsClient client, long managerCustomerId,
|
124 | 124 | {
|
125 | 125 | // Get the CustomerClientLinkService.
|
126 | 126 | CustomerClientLinkServiceClient customerClientLinkService =
|
127 |
| - client.GetService(Services.V15.CustomerClientLinkService); |
| 127 | + client.GetService(Services.V16.CustomerClientLinkService); |
128 | 128 |
|
129 | 129 | // Create a client with the manager customer ID as login customer ID.
|
130 | 130 | client.Config.LoginCustomerId = managerCustomerId.ToString();
|
@@ -175,7 +175,7 @@ private string GetManagerLinkResourceName(GoogleAdsClient client, long managerCu
|
175 | 175 | {
|
176 | 176 | // Get the GoogleAdsService.
|
177 | 177 | GoogleAdsServiceClient googleAdsService =
|
178 |
| - client.GetService(Services.V15.GoogleAdsService); |
| 178 | + client.GetService(Services.V16.GoogleAdsService); |
179 | 179 |
|
180 | 180 | // Create a client with the manager customer ID as login customer ID.
|
181 | 181 | client.Config.LoginCustomerId = managerCustomerId.ToString();
|
@@ -211,7 +211,7 @@ private void AcceptInvitation(GoogleAdsClient client, long clientCustomerId,
|
211 | 211 | {
|
212 | 212 | // Get the CustomerManagerLinkService.
|
213 | 213 | CustomerManagerLinkServiceClient customerManagerLinkService =
|
214 |
| - client.GetService(Services.V15.CustomerManagerLinkService); |
| 214 | + client.GetService(Services.V16.CustomerManagerLinkService); |
215 | 215 |
|
216 | 216 | // Create a client with the client customer ID as login customer ID.
|
217 | 217 | client.Config.LoginCustomerId = clientCustomerId.ToString();
|
|
0 commit comments