Skip to content

Commit 092f0bf

Browse files
regen: Regenerate Google.Ads.AdManager.V1 at API commit 8c06c1e
fix!: Added proto3 optional to Network primitive fields fix!: Added pagination to ListNetworks fix!: Renamed `USER_MESSAGES_CCPA_MESSAGES_SHOWN` `Metric` to `USER_MESSAGES_US_STATES_MESSAGES_SHOWN` docs: Updated documentation for `ad_review_center_ad_id` filter feat: Added LineItem service feat: Added additional Report metrics and dimensions feat: Added write methods for AdUnits feat: Added write methods for CustomTargetingKeys docs: Updated documentation for Report metrics and dimensions docs: Made `status` optional for SearchAdReviewCenterAds PiperOrigin-RevId: 842183588 Source-Link: googleapis/googleapis@8c06c1e
1 parent f8f2565 commit 092f0bf

File tree

124 files changed

+31460
-7264
lines changed

Some content is hidden

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

124 files changed

+31460
-7264
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START admanager_v1_generated_AdUnitService_BatchActivateAdUnits_async_flattened]
20+
using Google.Ads.AdManager.V1;
21+
using System.Collections.Generic;
22+
using System.Threading.Tasks;
23+
24+
public sealed partial class GeneratedAdUnitServiceClientSnippets
25+
{
26+
/// <summary>Snippet for BatchActivateAdUnitsAsync</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public async Task BatchActivateAdUnitsAsync()
35+
{
36+
// Create client
37+
AdUnitServiceClient adUnitServiceClient = await AdUnitServiceClient.CreateAsync();
38+
// Initialize request argument(s)
39+
string parent = "networks/[NETWORK_CODE]";
40+
IEnumerable<string> names = new string[]
41+
{
42+
"networks/[NETWORK_CODE]/adUnits/[AD_UNIT]",
43+
};
44+
// Make the request
45+
BatchActivateAdUnitsResponse response = await adUnitServiceClient.BatchActivateAdUnitsAsync(parent, names);
46+
}
47+
}
48+
// [END admanager_v1_generated_AdUnitService_BatchActivateAdUnits_async_flattened]
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START admanager_v1_generated_AdUnitService_BatchActivateAdUnits_async]
20+
using Google.Ads.AdManager.V1;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedAdUnitServiceClientSnippets
24+
{
25+
/// <summary>Snippet for BatchActivateAdUnitsAsync</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public async Task BatchActivateAdUnitsRequestObjectAsync()
34+
{
35+
// Create client
36+
AdUnitServiceClient adUnitServiceClient = await AdUnitServiceClient.CreateAsync();
37+
// Initialize request argument(s)
38+
BatchActivateAdUnitsRequest request = new BatchActivateAdUnitsRequest
39+
{
40+
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
41+
AdUnitNames =
42+
{
43+
AdUnitName.FromNetworkCodeAdUnit("[NETWORK_CODE]", "[AD_UNIT]"),
44+
},
45+
};
46+
// Make the request
47+
BatchActivateAdUnitsResponse response = await adUnitServiceClient.BatchActivateAdUnitsAsync(request);
48+
}
49+
}
50+
// [END admanager_v1_generated_AdUnitService_BatchActivateAdUnits_async]
51+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START admanager_v1_generated_AdUnitService_BatchActivateAdUnits_sync]
20+
using Google.Ads.AdManager.V1;
21+
22+
public sealed partial class GeneratedAdUnitServiceClientSnippets
23+
{
24+
/// <summary>Snippet for BatchActivateAdUnits</summary>
25+
/// <remarks>
26+
/// This snippet has been automatically generated and should be regarded as a code template only.
27+
/// It will require modifications to work:
28+
/// - It may require correct/in-range values for request initialization.
29+
/// - It may require specifying regional endpoints when creating the service client as shown in
30+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
31+
/// </remarks>
32+
public void BatchActivateAdUnitsRequestObject()
33+
{
34+
// Create client
35+
AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.Create();
36+
// Initialize request argument(s)
37+
BatchActivateAdUnitsRequest request = new BatchActivateAdUnitsRequest
38+
{
39+
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
40+
AdUnitNames =
41+
{
42+
AdUnitName.FromNetworkCodeAdUnit("[NETWORK_CODE]", "[AD_UNIT]"),
43+
},
44+
};
45+
// Make the request
46+
BatchActivateAdUnitsResponse response = adUnitServiceClient.BatchActivateAdUnits(request);
47+
}
48+
}
49+
// [END admanager_v1_generated_AdUnitService_BatchActivateAdUnits_sync]
50+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START admanager_v1_generated_AdUnitService_BatchActivateAdUnits_async_flattened_resourceNames]
20+
using Google.Ads.AdManager.V1;
21+
using System.Collections.Generic;
22+
using System.Threading.Tasks;
23+
24+
public sealed partial class GeneratedAdUnitServiceClientSnippets
25+
{
26+
/// <summary>Snippet for BatchActivateAdUnitsAsync</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public async Task BatchActivateAdUnitsResourceNamesAsync()
35+
{
36+
// Create client
37+
AdUnitServiceClient adUnitServiceClient = await AdUnitServiceClient.CreateAsync();
38+
// Initialize request argument(s)
39+
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
40+
IEnumerable<AdUnitName> names = new AdUnitName[]
41+
{
42+
AdUnitName.FromNetworkCodeAdUnit("[NETWORK_CODE]", "[AD_UNIT]"),
43+
};
44+
// Make the request
45+
BatchActivateAdUnitsResponse response = await adUnitServiceClient.BatchActivateAdUnitsAsync(parent, names);
46+
}
47+
}
48+
// [END admanager_v1_generated_AdUnitService_BatchActivateAdUnits_async_flattened_resourceNames]
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START admanager_v1_generated_AdUnitService_BatchActivateAdUnits_sync_flattened_resourceNames]
20+
using Google.Ads.AdManager.V1;
21+
using System.Collections.Generic;
22+
23+
public sealed partial class GeneratedAdUnitServiceClientSnippets
24+
{
25+
/// <summary>Snippet for BatchActivateAdUnits</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public void BatchActivateAdUnitsResourceNames()
34+
{
35+
// Create client
36+
AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.Create();
37+
// Initialize request argument(s)
38+
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
39+
IEnumerable<AdUnitName> names = new AdUnitName[]
40+
{
41+
AdUnitName.FromNetworkCodeAdUnit("[NETWORK_CODE]", "[AD_UNIT]"),
42+
};
43+
// Make the request
44+
BatchActivateAdUnitsResponse response = adUnitServiceClient.BatchActivateAdUnits(parent, names);
45+
}
46+
}
47+
// [END admanager_v1_generated_AdUnitService_BatchActivateAdUnits_sync_flattened_resourceNames]
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START admanager_v1_generated_AdUnitService_BatchActivateAdUnits_sync_flattened]
20+
using Google.Ads.AdManager.V1;
21+
using System.Collections.Generic;
22+
23+
public sealed partial class GeneratedAdUnitServiceClientSnippets
24+
{
25+
/// <summary>Snippet for BatchActivateAdUnits</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public void BatchActivateAdUnits()
34+
{
35+
// Create client
36+
AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.Create();
37+
// Initialize request argument(s)
38+
string parent = "networks/[NETWORK_CODE]";
39+
IEnumerable<string> names = new string[]
40+
{
41+
"networks/[NETWORK_CODE]/adUnits/[AD_UNIT]",
42+
};
43+
// Make the request
44+
BatchActivateAdUnitsResponse response = adUnitServiceClient.BatchActivateAdUnits(parent, names);
45+
}
46+
}
47+
// [END admanager_v1_generated_AdUnitService_BatchActivateAdUnits_sync_flattened]
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_async_flattened]
20+
using Google.Ads.AdManager.V1;
21+
using System.Collections.Generic;
22+
using System.Threading.Tasks;
23+
24+
public sealed partial class GeneratedAdUnitServiceClientSnippets
25+
{
26+
/// <summary>Snippet for BatchArchiveAdUnitsAsync</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public async Task BatchArchiveAdUnitsAsync()
35+
{
36+
// Create client
37+
AdUnitServiceClient adUnitServiceClient = await AdUnitServiceClient.CreateAsync();
38+
// Initialize request argument(s)
39+
string parent = "networks/[NETWORK_CODE]";
40+
IEnumerable<string> names = new string[]
41+
{
42+
"networks/[NETWORK_CODE]/adUnits/[AD_UNIT]",
43+
};
44+
// Make the request
45+
BatchArchiveAdUnitsResponse response = await adUnitServiceClient.BatchArchiveAdUnitsAsync(parent, names);
46+
}
47+
}
48+
// [END admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_async_flattened]
49+
}

0 commit comments

Comments
 (0)